View Revisions: Issue #15584

Summary 0015584: [patch] Warn when a hyphenation dictionary is missing
Revision 2019-03-01 08:29 by ale
Description I had two documents, both in English, and Scribus was hyphenating one but not the other.
I put in debug code, and apparently one document was British English and the other was US English.
Scribus found the British English hyphenation dictionary hyph_en_GB.dic in its resources, but it didn't have a corresponding US English hyphenation dictionary.
I have Fedora 28 x86_64 Linux, and I installed the 'hyphen-en' package, which created /usr/share/hyphen/hyph_en_US.dic, and then Scribus found it and hyphenated my document.
The Fedora/RedHat/CentOS notes for Scribus should probably mention installing the hyphen-en package.
The hyphen-en package creates a lot of symbolic links in /usr/share/hyphen that all point to hyph_en_US.dic, so maybe Scribus can use its en_GB dictionary for other English regions as well.
I have attached a patch to hyphenator.cpp that shows a warning on the first attempt to reference a missing hyphenation dictionary.
Probably LanguageManager should have a flag for languages that are ok without hyphenation dictionaries so this warning does not get annoying.
I have Scribus 1.5.5.svn that I built from source. The product version pull down in mantis only goes up to 1.5.4.svn.
Revision 2019-03-01 00:02 by william
Description I had two documents, both in English, and Scribus was hyphenating one but not the other.
I put in debug code, and apparently one document was British English and the other was US English.
Scribus found the British English hyphenation dictionary hyph_en_GB.dic in its resources, but it didn't have a corresponding US English hyphenation dictionary.
I have Fedora 28 x86_64 Linux, and I installed the 'hyphen-en' package, which created /usr/share/hyphen/hyph_en_US.dic, and then Scribus found it and hyphenated my document.
The Fedora/RedHat/CentOS notes for Scribus should probably mention installing the hyphen-en package.
The hyphen-en package creates a lot of symbolic links in /usr/share/hyphen that all point to hyph_en_US.dic, so maybe Scribus can use its en_GB dictionary for other English regions as well.
I have attached a patch to hyphenator.cpp that shows a warning on the first attempt to reference a missing hyphenation dictionary.
Probably LanguageManager should have a flag for languages that are ok without hyphenation dictionaries so this warning does not get annoying.
I have Scribus 1.5.5.svn that I built from source. The product version pull down in mantis only goes up to 1.5.4.svn.