sile-typesetter / sile

The SILE Typesetter — Simon’s Improved Layout Engine
https://sile-typesetter.org
MIT License
1.65k stars 98 forks source link

Generalize/refactor language-specific discretionary handling #1966

Closed Omikhleia closed 8 months ago

Omikhleia commented 8 months ago

With Catalan, we now have another special case, similar to Turkish, of specific discretionary handling in core/hyphenator-liang.lua

I would suggest we discuss moving those in some dedicated language-specific classes for handling post-segmentation exceptions. Other noteworthy points

_Originally posted by @Omikhleia in https://github.com/sile-typesetter/sile/pull/1964#discussion_r1460863582_

alerque commented 8 months ago

The main issue was addressed, but not the subpoints.