Karl Berry <[EMAIL PROTECTED]> writes:

> Well, the problem in the first case is that the file was being read in
> Texinfo syntax, for \ is a regular character and @ is the escape
> character.  That's the reason for the \tex you found.

I think I tried @catcode as well, without getting it to work. But
perhaps it's better to use \tex when reading the file.

> Then the problem is that @tex has to start a group, and the @end tex
> ends the group, so any non-global assignments within the group are
> lost.  So you have to make the assignments global.

What's the right way to make a global assignment? (Like I said, I'm a
beginner when it comes to TeX. Hmm. Now I found
http://personal.cfw.com/~davidb/cseq.15.html, which should answer
questions like this: \gdef, shorthand for \global\def).

> However, beyond all that, this approach of making the characters active
> and using TeX's primitive accent commands won't suffice.  We must make
> the ISO Latin 1 characters be real letters (catcode 11) and use the EC
> fonts.  Otherwise hyphenation, among other things, will not work.

When I write LaTeX, I use

  \usepackage[latin1]{inputenc}
  \usepackage[T1]{fontenc}.

which seems to do the right thing. I had assumed that those two things
were mostly orthogonal. Unfortunately, I don't understand how
inputenc does (and I haven't yet looked into fontenc).

> Thanks for your efforts.

I'll try some more with the simple catcode 13 approach. If you think
that is a bad idea, and that I better do it Right, fiddling with the
fonts as well, I really need some more hints on where to start.

/Niels

Reply via email to