Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Just as the title of the questions says, is there an LuaTeX analogue to XeTeXinterchartoks?

share|improve this question
I don't know XeTeX, can you tell us what XeTeXinterchartoks are? –  topskip Jun 25 '11 at 21:26
@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
LuaTeX has more powerful mechanisms, so better ask about what you want to achieve. –  Khaled Hosny Jun 26 '11 at 6:06
A 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 7:17
@Khaled, I opened a new question here –  pmav99 Jun 26 '11 at 9:38
add comment

1 Answer

up vote 6 down vote accepted

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.

share|improve this answer
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 7:15
thank you –  pmav99 Jun 26 '11 at 9:40
@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
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.