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

  • 2
    I 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
  • 1
    LuaTeX has more powerful mechanisms, so better ask about what you want to achieve. – Khaled Hosny Jun 26 '11 at 6:06
  • 1
    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

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.

  • 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
  • @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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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