On Tue, Feb 08, 2005 at 02:34:33AM -0500, Behdad Esfahbod wrote:
> On Tue, 8 Feb 2005 [EMAIL PROTECTED] wrote:
>
> > One omega question: how do I address a given font position?
> > In LaTeX I can write \char'0 and get position 0 of the font.
> > The same works in lambda, but as soon as I add
> > \usepackage{omega}
> > this no longer works:
> > ! Text line contains an invalid character.
> > OCP stack 1.0 entry 0:^^@
> > and I have to invent strange detours to get at given font positions.
>
> Easiest way is to {\clearocplists\char'0}, but you really should
> consider writing OTP files instead.
Thanks! However, in fact that is what I do. In order not to have
to type the utf8 for every symbol, I use the SERA (System for
Ethiopic Representation in ASCII) abbreviations in my text,
and an OTP file to convert them to the right symbols.
What I see is the following:
\documentclass{article}
\begin{document}
\char'0
\end{document}
with latex gives a single Gamma. Also with lambda.
Adding just the line \usepackage{omega} gives the error message
"Package babel Error: You haven't defined the language english yet."
Also adding the line \usepackage[english]{babel} causes the mentioned
! Text line contains an invalid character.
OCP stack 1.0 entry 0:^^@
(Here it is clear, but in general it is annoying that no line number
in given in the error messages.)
Your suggestion
\documentclass{article}
\usepackage[english]{babel}
\usepackage{omega}
\begin{document}
{\clearocplists\char'0}
\end{document}
does not give error messages, but the page remains empty, apart
from the page number. (Are things different for you?)
Your \clearocplists does help a little:
With \char'043 instead of \char'0 lambda gave
! You can't use `macro parameter character #' in horizontal mode.
OCP stack 1.0 entry 0:#
without it, and a # on the page with \clearocplists.
Things look like lambda parses the input twice, where \charN is
interpreted on the first pass and replaced by the appropriate
character, where then that character is parsed again.
Andries
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/