[luatex] Using classic TeX 8-bit fonts in LuaTeX

Khaled Hosny khaledhosny at eglug.org
Thu Dec 6 20:27:04 CET 2012


On Thu, Dec 06, 2012 at 06:16:46PM +0100, Taco Hoekwater wrote:
> On 12/06/2012 06:15 PM, Taco Hoekwater wrote:
> >On 12/06/2012 05:17 PM, Petr Olsak wrote:
> >>luatex -fmt plain '\chardef\x=`č \show\x'
> >>>\x=\char"10D.
> >><*> \chardef\x=`č \show\x
> >>
> >>(the letter after =` is ccaron, the one of letters from Czech alhpbet).
> >>We can see, that Unicode font is needed, because the character slot is
> >>"10D and this is greater than 255 and impossible to prit it by 8bit font.
> >
> >You asked about fonts, not about input encoding :)
> >
> >Using active characters could 'fix' your problem by reverting
> >everything back to horrible 7bit mode, I assume.
> 
> But it is true that luatex is not the same as pdftex with it's
> 8-bit input extensions, so it is not quite identical. Sorry,
> I misinformed you about that.

One can use process_(input|output)_buffer callbacks to handle non-UTF8
input, there is even a LaTeX package that do just that (whose name I
shall not mention to not commit any more sins).

Regards,
Khaled


More information about the luatex mailing list