summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2022-01-08 23:24:38 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2022-01-09 04:58:11 +0100
commit7650d164a1e9c34ce99bf30bf4198e7ceb21fb5d (patch)
treecffdc2d6a044d39c980a59fd553be0fa9e4148a7 /i18nlangtag
parent35d8a3f15266e5280c9a1255417c47b5ad22a5e6 (diff)
tdf#146084 No hyphenation warning for Vietnamese
The Vietnamese language does not use hyphenation, so LO should not warn for lack of hyphenation data. This was described in the commit message of 151c56ed547490a99d912524c0e56b5d6d4a1939, but the actual code for fixing the problem for Vietnamese langauge was missing. This patch, adds the Vietnamese language to the list of languages that do not use hyphenation, so the warning for the lack of hyphenation data will no longer be displayed for this language. As described in the above commit: "In Vietnamese all words consist of single syllables, so they are often very short; hyphenation is not allowed at all." https://tug.org/TUGboat/tb29-1/tb91thanh-vntex.pdf Hyphenation is declined in Vietnamese orthography since 1975 https://www.quora.com/When-did-hyphenation-decline-in-Vietnamese-orthography Change-Id: Id8d3681ad0a93065e61e9da2422af64793fbc111 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128177 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/isolang/mslangid.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18nlangtag/source/isolang/mslangid.cxx b/i18nlangtag/source/isolang/mslangid.cxx
index ad062a8d3dcf..0143ea228596 100644
--- a/i18nlangtag/source/isolang/mslangid.cxx
+++ b/i18nlangtag/source/isolang/mslangid.cxx
@@ -178,7 +178,8 @@ bool MsLangId::usesHyphenation(LanguageType nLang)
primary(LANGUAGE_USER_MALAY_ARABIC_MALAYSIA),
primary(LANGUAGE_SOMALI),
primary(LANGUAGE_SWAHILI),
- primary(LANGUAGE_URDU_PAKISTAN))
+ primary(LANGUAGE_URDU_PAKISTAN),
+ primary(LANGUAGE_VIETNAMESE))
|| isCJK(nLang))
{
return false;