different behavior between xetex and luatex
Hi, all. I expect different output in xetex and luatex using context. and I think the problem is quite serious although I do not speak Turkish. in turkish, fi can not be treat as ligatures and I can see luatex handle that quite well. however, in xetex, fi are treated as ligatures. I attach the files and output here. I don't know it is a bug in xetex, context or dvipdfmx:( Yue Wang
On 23 Dec 2008, at 04:26, Yue Wang wrote:
Hi, all.
I expect different output in xetex and luatex using context. and I think the problem is quite serious although I do not speak Turkish. in turkish, fi can not be treat as ligatures and I can see luatex handle that quite well. however, in xetex, fi are treated as ligatures. I attach the files and output here. I don't know it is a bug in xetex, context or dvipdfmx:(
Yue Wang
I don't know how the ConTeXt+XeTeX font setup works, but I notice "language=trk" in your file. OpenType language tags are all-uppercase, so I would have expected this to be "language=TRK". If the proper language system isn't specified, you will get the default behavior, which includes the "fi" ligatures. In the LuaTeX case, I don't think *any* ligatures are enabled by default, so the language is irrelevant; notice that there's no "ff" ligature in your output either, even though this should be expected. JK
On Tue, Dec 23, 2008 at 9:08 AM, Jonathan Kew wrote:
On 23 Dec 2008, at 04:26, Yue Wang wrote:
Hi, all.
I expect different output in xetex and luatex using context. and I think the problem is quite serious although I do not speak Turkish. in turkish, fi can not be treat as ligatures and I can see luatex handle that quite well. however, in xetex, fi are treated as ligatures. I attach the files and output here. I don't know it is a bug in xetex, context or dvipdfmx:(
Yue Wang
I don't know how the ConTeXt+XeTeX font setup works, but I notice "language=trk" in your file. OpenType language tags are all-uppercase, so I would have expected this to be "language=TRK". If the proper language system isn't specified, you will get the default behavior, which includes the "fi" ligatures.
When trk is replaced by TRK it works OK in XeTeX.
In the LuaTeX case, I don't think *any* ligatures are enabled by default, so the language is irrelevant; notice that there's no "ff" ligature in your output either, even though this should be expected.
LuaTeX (ConTeXt with LuaTeX support) is a bit broken at the moment - the example doesn't compile here, so it's difficult to say anything. Mojca
Hi, Jonathan: Thanks for the analysis! Now I replace the trk with TRK, and xetex output is right.
In the LuaTeX case, I don't think *any* ligatures are enabled by default, so the language is irrelevant; notice that there's no "ff" ligature in your output either, even though this should be expected.
The input file is not right. here is the right one: luatex do not enable kerning and ligatures by default, users should specify them or just using the "default" feature. Sorry for the noise. Yue Wang
participants (3)
-
Jonathan Kew
-
Mojca Miklavec
-
Yue Wang