From - Tue Apr  1 01:19:50 2003
Return-Path: <beesley@wanadoo.fr>
Received: from mwinf0404.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.27]) by
    nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h2VNJbbX017630 for
    <metafont@ens.fr>; Tue, 1 Apr 2003 01:19:37 +0200 (CEST)
Received: from wanadoo.fr (AGrenoble-202-1-2-48.abo.wanadoo.fr
    [80.13.189.48]) by mwinf0404.wanadoo.fr (Postfix) with ESMTP id
    F39C63800086 for <metafont@ens.fr>; Tue,  1 Apr 2003 01:19:36 +0200 (CEST)
Date: Tue, 1 Apr 2003 01:22:35 +0200
Mime-Version: 1.0 (Apple Message framework v551)
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Kenneth Beesley <beesley@wanadoo.fr>
To: metafont <metafont@ens.fr>
Content-Transfer-Encoding: 7bit
Message-Id: <A7CD3C4A-63CF-11D7-9D90-000393454058@wanadoo.fr>
X-Mailer: Apple Mail (2.551)
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 603
Precedence: list
Subject: [metafont] problem: package for new font


Dear Friends of Metafont,

I'm trying to define a package desalph.sty, on the model of tipa.sty,
to facilitate use of my desalph font for the Deseret Alphabet, just as
tipa.sty facilitates use of the TIPA (IPA) fonts.   Typically
my documents will need to include both packages:

\usepackage{tipa}
\usepackage{desalph}

The desalph font itself (METAFONT) seems OK.  I can view the proofs and 
I generate
(currently) 12pt and 24pt sizes.  The Deseret Alphabet is a phonemic
alphabet (for English) so I defined an encoding called LDA which is
based as closely as possible on the T3 encoding used for tipa; this
allows me to use much the same entry shortcuts for both.  I have defined

	desalph.sty                       (defines  \textda{.....} and 
environment da for Deseret Alphabet)
	ldaenc.def                         (defines the LDA encoding)
	ldadesalph.fd

********
I also have a file
	ldacmr.fd       but do I need this?

*********

I'm doing something(s) wrong.  When I try to run the following document
(in TeXShop 1.28 on Mac OS X 10.2.4)

\documentclass[12pt,a4paper]{article}
\usepackage{tracefnt}
\usepackage{xspace}
%\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{desalph}
\usepackage{tipa}

\title{This is the Title}
\author{Kenneth R. Beesley}
\date{29 March 2003}

\begin{document}
\maketitle

Here is a test of simple roman text.

Here is a test  of the TIPA package \begin{IPA}DIs iZ @ tEst\end{IPA}.

This is a test of the desalph font \begin{da}dEzirEt 
\ae{}lf\ae{}bEt\end{da} package.

Another test \textda{hw6t Iz D pr6blEm} with this font?

\end{document}

TeXShop/pdflatex happily loads article.cls, size12.clo, tracefnt.sty, 
xspace.sty,
times.sty, and then (of course) has problems with desalph.sty.

******
First it loads fontenc.sty, because desalph.sty has a line

\usepackage[LDA,\f@encoding]{fontenc}

to cause ldaenc.def to be loaded.
Question:  Is this the right way to cause ldaenc.def to be loaded?

******
Then ldaenc.def gets loaded, then ot1enc.def.  And I get a message

LaTeX Font Info:  Redeclaring font encoding OT1 on inputline 38
))))
!Missing = inserted for \ifnum.
<to be read again>
         -
l.8 \usepackage
                {tipa}
?

The TeXShop test-consol interface then stops and asks for Tex Input.  
If I enter a newline, the
processing continues, loading tipa.sty--- and my document, including 
the desired Deseret Alphabet
text,  actually gets generated.   So I'm almost there.

If anyone could clarify the "Redeclaring font encoding OT1" and 
"Missing = for \ifnum"
messages and help me load the font encoding(s) correctly, I would be 
most grateful.

Ken Beesley


From - Mon Apr  7 22:42:29 2003
Return-Path: <beesley@wanadoo.fr>
Received: from mwinf0504.wanadoo.fr (smtp2.wanadoo.fr [193.252.22.26]) by
    nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id h37KgHbX065726 for
    <metafont@ens.fr>; Mon, 7 Apr 2003 22:42:17 +0200 (CEST)
Received: from wanadoo.fr (AGrenoble-202-1-3-102.abo.wanadoo.fr
    [80.14.224.102]) by mwinf0504.wanadoo.fr (SMTP Server) with ESMTP id
    55A0A1001167; Mon,  7 Apr 2003 22:42:16 +0200 (CEST)
Date: Mon, 7 Apr 2003 22:45:22 +0200
Mime-Version: 1.0 (Apple Message framework v551)
Content-Type: text/plain; charset=US-ASCII; format=flowed
From: Kenneth Beesley <beesley@wanadoo.fr>
To: macosx-tex <MacOSX-TeX@email.esm.psu.edu>, metafont <metafont@ens.fr>,
    Pierre VINET <vinp@globetrotter.net>, Nelson Beebe <beebe@math.utah.edu>,
    bdesgraupes@easyconnect.fr, FUKUI Rei <fkr@tooyoo1.l.u-tokyo.ac.jp>,
    home <beesley@wanadoo.fr>
Content-Transfer-Encoding: 7bit
Message-Id: <DA6A9BD0-6939-11D7-B279-000393454058@wanadoo.fr>
X-Mailer: Apple Mail (2.551)
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 604
Precedence: list
Subject: [metafont] Problem:  New METAFONT font; installing in a package


RE:  New METAFONT font; installing it via a package
[involves NFSS, new font encoding, tracing a font-loading problem]
(I'm using TeXShop 1.28 (pdflatex) on a TiBook running OS X 10.2.4. In 
general,
everything is working for me.)

I'm having some difficulty loading my new METAFONT font, called
Desalph, via a _package_.  I'd be very grateful for any help from people
who know NFSS, font encodings, and packages better than I do.

I've tried to write a new package called desalph.sty on the model of
the tipa.sty package that allows you to load and use the International 
Phonetic
Alphabet.  So just as you indicate  \usepackage{tipa}
to be able to use IPA in your documents I want to be able to indicate
\usepackage{desalph}
to use the Deseret Alphabet in my documents.  I've tried to follow the
model of the tipa.sty code as much as possible, but I'm doing something 
slightly
wrong and don't know how to trace it.  It may well have to do with 
loading a new
font encoding.   tipa.sty uses the T3 font encoding, which it loads (in 
tipa.sty) with
a command like

	\RequirePackage[T3, \f@encoding]{fontenc}

(tipa.sty has encoding options that complicate the code.)
This command causes the t3enc.def file to be loaded.  The Deseret 
Alphabet is
a phonemic alphabet for English, so I based the encoding as closely as 
possible
on T3, which allows me to use most of the same inputting shortcuts.  
The  Desalph
font uses my own LDA encoding, defined in ldaenc.def, and my desalph.sty
file has a command

         \RequirePackage[LDA, \f@encoding]{fontenc}

It _may_ be here that something is going wrong.

Here's the runtime behavior.  The start of a typical sample .tex file
looks like this:

\documentclass[a4paper,12pt]{article}

\usepackage[infoshow]{tracefnt}
\usepackage{graphics}
\usepackage{rotating}
\usepackage{alltt}
\usepackage{times}
\usepackage{desalph}
\usepackage{latexsym}

\pagestyle{empty}
\renewcommand{\abstractname}{Document Identification}

\begin{abstract}[Letter: Orson Pratt, Sen. (in SLC) to D.O. Calder (in 
New York City),
1 June 1868.]
\end{abstract}

\begin{document}
....
\end{document}

When I typeset the document using TeXShop (or calling pdflatex 
directly)  the loading of
packages goes well until \usepackage{desalph}, at which time TeXShop 
stops and prints
	!Missing = inserted for \ifnum.
and waits for me to enter Tex Input:

Question:  can anyone help me understand what that means?

Here's the screen display starting from the (successful) loading of 
times.sty

(/usr/local/teTeX/share/texmf.tetex/tex/latex/psnfss/times.sty)
/Users/beesley/Library/texmf/tex/latex/desalph/desalph.sty
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
(/Users/beesley/Library/texmf/tex/latex/desalph/ldaenc.def)
(/usr/local/teTeX/share/texmf/tetex/tex/latex/base/ot1enc.def

LaTeX Font Info:  Redeclaring font encoding OT1 on input line 38.

)))
!Missing = inserted for \ifnum.
<to be read again>
                     -
l.9 \usepackage
                  {latexsym}
?
Tex Input:

It's at this point that TeXShop/pdflatex stops and asks for "TeX 
Input", which I don't
understand.  If I just enter a newline, then it somehow continues to 
load the
package latexsym and prints out

LaTeX Font Info:  Overwriting symbol font 'lasy' in verion 'bold'
(Font)   U/lasy/m/n -->U/lasy/b/n on input line 42.

!LaTeX Error: Missing \begin{document}

at which point it stops again, asking for "TeX Input:"  If I enter 
another newline,
then typesetting continues and my document comes out perfectly.  So 
everything
seems to be working, except that processing always stops twice during 
typesetting,
forcing me to respond with newlines to get it going again.  Very 
annoying.

Here's the information in the .log file.

(/usr/local/teTeX/share/texmf.tetex/tex/latex/psnfss/times.sty
Package: times 2002/09/08 PSNFSS-v9.0a (SPQR)
)
(/Users/beesley/Library/texmf/tex/latex/desalph/desalph.sty
Package: desalph 2003-03-31 DESALPH version 0.2

(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/fontenc.sty
Package: fontenc 2001/06/05 v1.94 Standard LaTeX package

(/Users/beesley/Library/texmf/tex/latex/desalph/ldaenc.def
File: ldaenc.def 2003-03-31 DESALPH font-definition file
)
(/usr/local/teTeX/share/texmf.tetex/tex/latex/base/ot1enc.def
File: ot1enc.def 2001/06/05 v1.94 Standard LaTeX file


LaTeX Font Info:    Redeclaring font encoding OT1 on input line 38.

)))
! Missing = inserted for \ifnum.
<to be read again>
                    -
l.9 \usepackage
                {latexsym}
?

Can anyone give me a clue as to what is going wrong and how to fix it?

Thanking you in anticipation.

Ken
ken.beesley@xrce.xerox.com


From - Tue Apr  8 06:33:41 2003
Return-Path: <bdesgraupes@easyconnect.fr>
Received: from smarthost2.mail.easynet.fr (smarthost2.mail.easynet.fr
    [212.180.1.69]) by nef.ens.fr (8.12.9/1.01.28121999) with ESMTP id
    h384XTbX030457 for <metafont@ens.fr>; Tue, 8 Apr 2003 06:33:29 +0200
    (CEST)
Received: from [212.180.63.163] (helo=easyconnect.fr) by
    smarthost2.mail.easynet.fr with esmtp (Exim 3.35 #1 (Debian)) id
    192knY-0001wt-00; Tue, 08 Apr 2003 06:33:29 +0200
Message-Id: <3E92511B.51B10430@easyconnect.fr>
Date: Tue, 08 Apr 2003 06:33:31 +0200
From: Bernard Desgraupes <bdesgraupes@easyconnect.fr>
X-Mailer: Mozilla 4.5 [fr] (Macintosh; U; PPC)
X-Accept-Language: fr
Mime-Version: 1.0
To: Kenneth Beesley <beesley@wanadoo.fr>
Cc: metafont <metafont@ens.fr>
Subject: Re: [metafont] Problem:  New METAFONT font; installing in a package
References: <DA6A9BD0-6939-11D7-B279-000393454058@wanadoo.fr>
Content-Type: text/plain; charset=us-ascii;
    x-mac-type="54455854";
    x-mac-creator="4D4F5353"
Content-Transfer-Encoding: 7bit
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: metafont@nef.ens.fr
X-Sequence: 605
Precedence: list

>
>
> When I typeset the document using TeXShop (or calling pdflatex
> directly)  the loading of
> packages goes well until \usepackage{desalph}, at which time TeXShop
> stops and prints
>         !Missing = inserted for \ifnum.
> and waits for me to enter Tex Input:
>
> Question:  can anyone help me understand what that means?

Kenneth,
this looks like there is simply some syntax error in your .sty file. It
would help us if we could see the code in this file.

Bernard


