Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OpenOffice-style hyphenation patterns #277

Open
brawer opened this issue Feb 22, 2016 · 4 comments
Open

Support OpenOffice-style hyphenation patterns #277

brawer opened this issue Feb 22, 2016 · 4 comments
Labels
enhancement Software improvement or feature request

Comments

@brawer
Copy link
Contributor

brawer commented Feb 22, 2016

Could SILE support OpenOffice-style hyphenation patterns? The pattern syntax would be a small extension to TeX hyphenation patterns. This helps supporting languages where hyphenation changes the string. For example: Catalan [ca] paral·lel → paral-lel; German [de-1901] Zucker → Zuk-ker; Swedish [sv] tillåta → till-låta.

This paper explains the motivation, pattern syntax, and implementation:
https://www.tug.org/TUGboat/tb27-1/tb86nemeth.pdf

@simoncozens simoncozens added the enhancement Software improvement or feature request label Feb 22, 2016
@simoncozens
Copy link
Member

I'm in favour of this - in theory. In practice, I think I would like to see it implemented as a separate hyphenator, possibly subclassing hyphenator-liang rather than modifying it. Ideally there'd be a C library we could use which handles hyphenation, but I don't think Open/LibreOffice is implemented like that. I think I probably won't get around to this myself but it would be a fun thing for others to implement.

@khaledhosny
Copy link
Contributor

I think libhyphen would handle the new patterns, given that it is maintained by the same person AFAIK, but I haven’t checked that.

@cmahte
Copy link

cmahte commented Feb 23, 2016

I'm a bit confused maybe, but that paper on Open Office hyphenation is
related to OO 2.0. On or around OO 3.0, Open Office dumped it's own
hyphenation and now uses hunspell logic? Is that paper describing an
ongoing supported concern?

On Tue, Feb 23, 2016 at 6:24 AM, Khaled Hosny notifications@github.com
wrote:

I think libhyphen
https://sourceforge.net/projects/hunspell/files/Hyphen/ would handle
the new patterns, given that it is maintained by the same person AFAIK, but
I haven’t checked that.


Reply to this email directly or view it on GitHub
#277 (comment).

@khaledhosny
Copy link
Contributor

This seems to be the current home for libhypeh https://github.com/hunspell/hyphen, and it seems to be indeed what LibreOffice uses for its hyphenation support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Software improvement or feature request
Projects
Development

No branches or pull requests

4 participants