-
Notifications
You must be signed in to change notification settings - Fork 8
letters and spacing in Arabic — bug in OpenType layout of LuaLaTeX #318
Comments
Let me please add that I am certain that this is only a minor bug (because (a) I experienced it before (b) it occurred only very recently, and (c) it was already fixed until a few days ago). In addition, I really need this to be fixed soon and would like to offer my help on this in any way I can. Please do contact me, if you need help, e.g., with the Arabic. |
···<date: 2016-01-03, Sunday>···<from: ClintEastwood>···
Reproducible with Amiri and Luaotfload. Interestingly, it doesn’t Test files: https://bitbucket.org/phg/lua-la-tex-tests/src/tip/plain/pln-arabic-1.tex
Can you reproduce this with a free font, if possible one that
That shouldn’t affect text rendering at all. |
Thanks for your reply. Actually I am guessing that the errors produced by Amiri and by Arabic Typesetting are the same i.e. have the same cause, they just manifest themselves differently. Only the letters for R (ر) and Z (ز) seem to be affected and, as it seems, only in some combinations (eg. after ح/خ/ج or ع/غ). I have proof that it was everything alright by 11th of December 2015. The error was introduced probably around Christmas (thanks for the present ... =) ). As I said, I had the same issue before in 2013, with the same erroneous results. |
I just found a similar error appearing in the word |
···<date: 2016-01-08, Friday>···<from: ClintEastwood>···
Probably not the same bug. This one is related to upstream
Which corresponds to this changeset:
For the time being, reverting to the TL 2014 fontloader seems to
NB this can introduce other issues but it builds the minimal |
Thanks, I will try this. Can you please tell me what I have to do with your "trick" on a mac? (Sorry for my ignorance.) |
···<date: 2016-01-11, Monday>···<from: ClintEastwood>···
Create a config file (
That makes Luaotfload use the fontloader code from the 2014 Fwiw the documentation for config files can be accessed as a man
|
I am now using your suggested way to bypass the error and it works. Another user complained about a similar issue on tex.sx: http://tex.stackexchange.com/q/287150/12277 . I referred him to your suggestion and it works for him too. Now, that I am able to compare an old erroneous pdf (with the recent fontloader) and a new correct pdf (with the old fontloader), I see many many erroneous differences. The issue concerns not only the letters for R and Z (as in my original post) or to the diacritical strokes and lines (as in the other user's complaint). If you are interested, I can show you examples of a number of errors. Now that we know that it does not only affect a limit number of characters but that there must be something fundamentally wrong, do you have an idea what it could be and how it could be fixed, despite the fact that your suggestion to use "fontloader = tl2014" works for the time being? |
I have another issue which is in my opinion related to this one. This mwe:
To be more precise, each vowel seems to be moved one letter back (i.e. to the right).
|
···<date: 2016-01-19, Tuesday>···<from: Robert Alessi>···
If you have Context installed (I’m assuming TeX Live) you could |
Ok, narrowed it down to |
Address issue lualatex#318 This reverts the changes made to font-otn.lua with commit adc43c3c24.. Certain features related to directionality are not handled correctly with the most recent fontloader. As a temporary measure, revert the handling code in font-otn.lua and restore the values it references. While this appears to suppress the issue, we’ll switch back to the upstream code once we have an actual solution.
Solved it. The Luatex in TL is too old. The culprit appears to be We’re going to have to keep those hunks reverted until TL2016. |
New release |
You do an amazing work here! I am infinitely grateful! I'll test as soon as it is up. |
I'd like to express my thanks as well for your excellent work! I'll test it too as soon as it is up. |
I just tested the latest release: everything seems ok to me. Great! |
Excellent, closing this. |
I perceive the following unwanted outcome:
Two issues:
I had issue #1 before in June 2013. I wrote to Khaled Hosny about it and he told me that it is a
The solution back in 2013 was to update
luaotfload
through issuingluaotfload-tool --update
.Today, that does not do the trick.
So what am I going to do? I am very surpised to suddenly see the old error again after 2,5 years. What happened?
I also reported the bug on tex.sx: http://tex.stackexchange.com/q/285674/12277 .
The MWE, in case somebody is interested:
The text was updated successfully, but these errors were encountered: