[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XeTeX encoding problem
From: |
Gavin Smith |
Subject: |
Re: XeTeX encoding problem |
Date: |
Sun, 10 Jan 2016 19:21:18 +0000 |
On 10 January 2016 at 17:59, Masamichi HOSODA <address@hidden> wrote:
> In XeTeX and LuaTex, non-ascii chapter name of ``Table of contents''
> is broken.
> In pdfTeX, it is not broken.
For LuaTeX the code should be something like
local function convert_line_out (line)
local line_out = ''
for p, c in unicode.utf8.codes(line) do
line_out = line_out .. c
end
return line_out
end
callback.register("process_output_buffer", convert_line_out)
but I can't get it to work. It outputs:
This is LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev)
(./aaa.texi (./texinfo.tex Loading texinfo [version 2016-01-07.22]: pdf,
fonts, markup, glyphs, page headings, tables, conditionals, indexing,
sectioning, toc, environments, defuns, macros, cross references, insertions,
(./epsf.tex
This is `epsf.tex' v2.7.4 <14 February 2011>
) localization, formatting, and turning on texinfo input format.) (./aaa.toc)
[-1] Chapter 1 [1
and hangs. I have no knowledge of Lua so am probably missing something
simple. Experimenting I found utf8.char would hang and utf8_char (the
alias declared earlier in the file) doesn't - I don't know what that
indicates.
- Re: luatex problems with texinfo.tex, (continued)
- Re: luatex problems with texinfo.tex, Gavin Smith, 2016/01/03
- Re: luatex problems with texinfo.tex, Karl Berry, 2016/01/03
- 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 <=
- Re: XeTeX encoding problem, Gavin Smith, 2016/01/10
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/01/10
- 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