[Libreoffice] [PATCH] hyphenation fixes

Németh László nemeth at numbertext.org
Mon Oct 10 08:05:47 PDT 2011


I have attached new patches for the Hyphen library and Hungarian
hyphenation patterns, and the old one for English dictionaries and the
test file from my previous letter.

I have found and fixed a new hyphenation problem at the hyphen
character. OpenOffice.org/LibreOffice can hyphenate the words with
hyphens and en-dashes without explicite hyphenation patterns. From
OpenOffice.org 3.3, the hyphenator gets the hyphens, too (related to a
spell check fix). This is useful to set bigger hyphenation distances
from the hyphens, but the implicite hyphenation of hyphens and the
hyphenation by Hyphen library have a conflict, and often LibreOffice
missed the hyphenation at hyphens, depending from the position of the
compound word in the line. The new Hyphen uses the following implicite
hyphenation settings to fix this problem for all languages:


So the hyphenation is enabled at hyphens by also the Hyphen library,
removing the original hyphen (using only the automatic hyphen added by
LibreOffice). Unfortunatelly, this method is not suitable for
en-dashes (eg. in Hungarian texts), but at least, with the new Hyphen
LibreOffice doesn't hyphenate the en-dash with a plus hyphen (–-).

PS.: The new Hyphen 2.8.3:


More information about the LibreOffice mailing list