ktraunmueller / Compositor

The WYSIWYG LaTeX app for Mac
https://compositorapp.com
81 stars 3 forks source link

No source position for ligatures that are broken up during hyphenation #558

Closed ktraunmueller closed 2 years ago

ktraunmueller commented 2 years ago

TeX may break up ligatures into their constituent characters during line breaking / hyphenation, causing problems with WYSWYIG editing.

Consider the word "different" in the following example. The two characters "ff" will usually be combined into a ligature (note: this is one character in the DVI):

Screenshot 2022-11-01 at 12 55 35

During paragraph forming / line breaking, however, TeX may decide that the optimal break point in a line is between the two f's of the ligature. In such cases, the ligature is converted back to the original characters, and a hyphen is inserted between them:

Screenshot 2022-11-01 at 12 53 35

Up to and including version 1.18, Compositor could not figure out source information for the original characters of a broken-up ligature.

ktraunmueller commented 2 years ago

Fixed in 1.19