Just as the title of the questions says, is there an LuaTeX analogue to XeTeXinterchartoks?
Asked
Active
Viewed 499 times
8
-
2I don't know XeTeX, can you tell us what XeTeXinterchartoks are? – topskip Jun 25 '11 at 21:26
-
1@Patrick, see xetex-referece (page 14). It allows you to do stuff like changing fonts of hyphenation rules for different languages without explicitly declaring them – pmav99 Jun 25 '11 at 22:05
-
1LuaTeX has more powerful mechanisms, so better ask about what you want to achieve. – خالد حسني Jun 26 '11 at 06:06
-
1A replacement for XeTeXinterchartoks & co could be implemented using the token_filter callback that is available in luatex. The fact that nobody has done so yet indicates to me that most people have indeed switched to other mechanisms available in luatex, as Khaled mentions. – Taco Hoekwater Jun 26 '11 at 07:17
-
@Khaled, I opened a new question here – pmav99 Jun 26 '11 at 09:38
1 Answers
8
I hope so, but the answer is no.
We use \XeTeXinterchartoks mechanism heavily to implement zhspacing and xeCJK packages to support auto font switching and other features or CJK. But we cannot transplant them to LuaTeX.
Now the same feature in LuaTeX (zhfonts module of ConTeXt) uses a totally different mechanism to implement: \definefontfallback and pre_linebreak_filter etc. If you want to do similar things in Greek, I hope it would help.
Leo Liu
- 77,365
-
I'd say the answer is incorrect, because LuaTeX does have mechanisms that are much more powerful then
\XeTeXinterchartoks(you already give the answer), but does not have a built-in TeX interface. But in the strict sense, you are right, of course. – topskip Jun 26 '11 at 07:15 -
2@Patrick: What I want to say is that, the concept and the interface in LuaTeX is quite different. LuaTeX may do what XeTeX do, but not in the same way. – Leo Liu Jun 26 '11 at 12:59