@UlrikeFischer that was my question:-) I was wondering if we need to fake XeTeXpicfile it would be mostly unused if we use luatex back end for l3backend and graphcs/color, but it is used in few places directly but fontspec, l3names, pdfmanagement, ... I suppose we should fake it anyway... (@JosephWright, @HenriMenke)
@DavidCarlisle ah it is already in the original file. It is part of the old code to support the loading of xunicode which tests for xetexpicfile. Perhaps one should simply drop that?
@DavidCarlisle yes, and after 11 years fontspec should perhaps stop to work around that?
@DavidCarlisle I didn't mean drop xetexpicfile, I was only wondering about fontspec and the euenc support etc. For xxetex one should probably try to add this primitive.
@UlrikeFischer have you ever used this??? manual says \XeTeXpicfile ⟨filename⟩ [ scaled ⟨int⟩... int?? so you can make it twice as big but not half? but 1: [\XeTeXpicfile example-image.png] works but [\XeTeXpicfile example-image.png scaled 2] not
I am sorry for asking this not latexy question, but I couldn't extend your beautiful answer here https://tex.stackexchange.com/a/632145/2288 to make it work with a plain text file in Notepad++
@Diaa Just to make sure: your cursor was in front of the text you wanted to find, right? Asking because you did not select wrap around and the curly braces seem highlighted as if the cursor has been placed there.
@Diaa Why is that special though? Every editor I know of would search from the caret onwards if you do not check wrap around. It's not a bug, it's a feature ;)
First is with opticals, second without, but it seems there is no character in your example that even has an optical variant.
@orthocresol I don't see how you're going to save money on this though. Sales tax is 19% in Germany and 20% in the UK and Typoma will surely have to pay sales tax in the UK for any purchase from there.
@HenriMenke Thanks again - much appreciated. Yes, I'm 'just' a chemist so the equations I have are quite simple. ;) re. tax: I confess I don't know how it works, but I will make sure to check if I buy.
@DavidCarlisle In XeTeX it's somewhat more complicated due to HarfBuzz direction detection interfering in odd ways in XeTeX. For xpdftex it would help a lot to have some example documents using TeX--XeT to be able to test correct behavior and see how it is usually used.
@MarcelKrüger I think TeX--XeT _ HarfBuzz doesn't really work
@DavidCarlisle Ah, that is 'interesting'
@DavidCarlisle As you are loading afterexpl3, not actually so much of an issue - I think as this is really 'LuaTeX + adaptation' I can live with that :)
@MarcelKrüger I was using github.com/latex3/xpdftex/blob/tex--xet/examples/test-xet-1.tex but as that is LTR abc probably only working with pdftex, xetex/hb reverses the direction again, but really I don't think it matters if such examples can't be emulated as long as scripts in their natural direction work
@JosephWright yes given lua has to be executed late it seemed simplest just to do it all late so it's functionally equivalent to using lualatex and adding \input{xxetex} to the document
@UlrikeFischer you need to map \beginR and friends to something Marcel has some code in xpdtex but I couldn't quite get it working
@JosephWright xepersian seems to work well enough for its target users
@DavidCarlisle Right, we need a bit of documentation then we are basically good to go here: it's luatex from an engine POV but can load XeTeX docs: sounds ideal
@JosephWright xtex-et perhaps and for char toks I fudged it not to start until \XeTeXinterchartokenstate seen, but \XeTeXinterchartokenstate=0 doesn't unregister th callback (just makes it do nothing), you need new \XeTeXinterchartokenstateOFF to really remove it
@JosephWright I wanted to define \XeTeXinterchartokenstate as a lua scanner so =1 registered the callback and =0 removed it but then I could see no way to support \ifnum\XeTeXinterchartokenstate=1 so (like Marcel's tex-xet one) \XeTeXinterchartokenstate is a real count register and the callback still runs but does nothing when that is 0
@orthocresol Well, you don't actually have to check. It's the merchant that has to check because they are the one that have to pay tax on their revenue for the sale.
@JosephWright if it was a real lua table of count values you could (probably) use a metatable so setting count.XeTeXinterchartokenstate=1 in Lua activated the callback as well as setting the int but it's all smoke and mirrors accessing the tex part of the code...