bug-texinfo
[Top][All Lists]
Advanced

[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:47:19 +0000

On 10 January 2016 at 19:21, Gavin Smith <address@hidden> wrote:
> For LuaTeX the code should be something like

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]