[Top][All Lists]

[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.

reply via email to

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