Just as the title of the questions says, is there an LuaTeX analogue to XeTeXinterchartoks?
-
2I don't know XeTeX, can you tell us what XeTeXinterchartoks are?– topskipCommented Jun 25, 2011 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– pmav99Commented Jun 25, 2011 at 22:05
-
1LuaTeX has more powerful mechanisms, so better ask about what you want to achieve.– خالد حسنيCommented Jun 26, 2011 at 6: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 HoekwaterCommented Jun 26, 2011 at 7:17
-
@Khaled, I opened a new question here– pmav99Commented Jun 26, 2011 at 9:38
1 Answer
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.– topskipCommented Jun 26, 2011 at 7: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 LiuCommented Jun 26, 2011 at 12:59