[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XeTeX encoding problem
From: |
Masamichi HOSODA |
Subject: |
Re: XeTeX encoding problem |
Date: |
Mon, 11 Jan 2016 12:47:28 +0900 (JST) |
> Here's the code that worked for me:
>
> local function convert_line_out (line)
> local line_out = ""
> for c in string.utfvalues(line) do
> line_out = line_out .. string.char(c)
> end
> return line_out
> end
>
> callback.register("process_output_buffer", convert_line_out)
>
> Apparently LuaTeX will freeze if there's an error in the lua code.
> Also it has its own versions of the Lua libraries: string.utfvalues
> was mentioned in the LuaTeX reference manual, and the other functions
> I was trying to use evidently weren't there.
Thank you.
It works for my LuaTeX environment.
On the other hands, in XeTeX,
it seems that XeTeX does not have something like \XeTeXoutputencoding.
At least in XeTeX, byte wise input is hard to use, isn't it?
To use XeTeX (and also maybe LuaTex) native Unicode support is better
than byte wise input in my humble opinion.
- Re: luatex problems with texinfo.tex, (continued)
- Re: luatex problems with texinfo.tex, Werner LEMBERG, 2016/01/03
- Re: luatex problems with texinfo.tex, Gavin Smith, 2016/01/04
- Re: luatex problems with texinfo.tex, Masamichi HOSODA, 2016/01/04
- XeTeX @image support (was Re: luatex problems with texinfo.tex), Masamichi HOSODA, 2016/01/05
- Re: XeTeX @image support, Masamichi HOSODA, 2016/01/05
- Re: XeTeX @image support, Masamichi HOSODA, 2016/01/06
- XeTeX encoding problem (was Re: luatex problems with texinfo.tex), Masamichi Hosoda, 2016/01/06
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/10
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/10
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/10
- Re: XeTeX encoding problem,
Masamichi HOSODA <=
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/11
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/11
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/11
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/13
- Re: XeTeX encoding problem, Karl Berry, 2016/01/14
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/15
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/15
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/15
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/15
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/15