i18nlangtag/source/isolang/mslangid.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7650d164a1e9c34ce99bf30bf4198e7ceb21fb5d
Author:     Hossein <hoss...@libreoffice.org>
AuthorDate: Sat Jan 8 23:24:38 2022 +0100
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Sun Jan 9 04:58:11 2022 +0100

    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 <fit...@ubuntu.com>

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;

Reply via email to