feat: Added Ukrainian language hyphenation support (#646)
* **What is the goal of this PR?** Add proper hyphenation support for the Ukrainian language. * **What changes are included?** - Added Ukrainian hyphenation rules/dictionary --- Did you use AI tools to help write this code? _**NO**_
This commit is contained in:
@@ -22,6 +22,9 @@
|
||||
#ifndef OMIT_HYPH_RU
|
||||
#include "generated/hyph-ru.trie.h"
|
||||
#endif
|
||||
#ifndef OMIT_HYPH_UK
|
||||
#include "generated/hyph-uk.trie.h"
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -44,6 +47,9 @@ LanguageHyphenator spanishHyphenator(es_patterns, isLatinLetter, toLowerLatin);
|
||||
#ifndef OMIT_HYPH_IT
|
||||
LanguageHyphenator italianHyphenator(it_patterns, isLatinLetter, toLowerLatin);
|
||||
#endif
|
||||
#ifndef OMIT_HYPH_UK
|
||||
LanguageHyphenator ukrainianHyphenator(uk_patterns, isCyrillicLetter, toLowerCyrillic);
|
||||
#endif
|
||||
|
||||
const LanguageEntryView entries() {
|
||||
static const std::vector<LanguageEntry> kEntries = {
|
||||
@@ -64,6 +70,9 @@ const LanguageEntryView entries() {
|
||||
#endif
|
||||
#ifndef OMIT_HYPH_IT
|
||||
{"italian", "it", &italianHyphenator},
|
||||
#endif
|
||||
#ifndef OMIT_HYPH_UK
|
||||
{"ukrainian", "uk", &ukrainianHyphenator},
|
||||
#endif
|
||||
};
|
||||
static const LanguageEntryView view{kEntries.data(), kEntries.size()};
|
||||
|
||||
1347
lib/Epub/Epub/hyphenation/generated/hyph-uk.trie.h
Normal file
1347
lib/Epub/Epub/hyphenation/generated/hyph-uk.trie.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user