Attached patch (against master) adds two new languages (Komi-Zyrian and
Komi-Permyak) to the list of possible text languages. Please check if the
language codes I added to i18npool/inc/i18npool/lang.h are correct. I
could not find these languages in any Microsoft language lists. These
languages are very closely related and Komi-Zyrian is the more widely used
so I used the same pattern for language codes as is used with
LANGUAGE_USER_TETUN and LANGUAGE_USER_TETUN_TIMOR_LESTE.
With this patch I was able to select these languages as text languages and
I even got a prototype spell checker (based on
http://giellatekno.uit.no/doc/lang/kom/index.html) working with them.
Harri
From 0d005c807426748ff27ee3a0c9137f4256ac3301 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Harri=20Pitk=C3=A4nen?= <hatapitk@iki.fi>
Date: Fri, 27 Jan 2012 20:28:45 +0200
Subject: [PATCH] Support Komi-Zyrian and Komi-Permyak as text language for
spell checking
---
i18npool/inc/i18npool/lang.h | 2 ++
i18npool/source/isolang/isolang.cxx | 2 ++
svtools/source/misc/langtab.src | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/i18npool/inc/i18npool/lang.h b/i18npool/inc/i18npool/lang.h
index 177d2a7..502afdd 100644
--- a/i18npool/inc/i18npool/lang.h
+++ b/i18npool/inc/i18npool/lang.h
@@ -538,6 +538,8 @@ typedef unsigned short LanguageType;
#define LANGUAGE_USER_KEYID 0x0666 /* key id pseudolanguage */
#define LANGUAGE_USER_PALI_LATIN 0x0667
#define LANGUAGE_USER_KYRGYZ_CHINA 0x0668 /* not derived from LANGUAGE_KIRGHIZ as these
may be different scripts, see http://www.omniglot.com/writing/kirghiz.htm */
+#define LANGUAGE_USER_KOMI_ZYRIAN 0x0669
+#define LANGUAGE_USER_KOMI_PERMYAK 0x0A69
#endif /* INCLUDED_I18NPOOL_LANG_H */
diff --git a/i18npool/source/isolang/isolang.cxx b/i18npool/source/isolang/isolang.cxx
index 610ea7f..00af58c 100644
--- a/i18npool/source/isolang/isolang.cxx
+++ b/i18npool/source/isolang/isolang.cxx
@@ -483,6 +483,8 @@ static MsLangId::IsoLangEntry const aImplIsoLangEntries[] =
{ LANGUAGE_USER_KEYID, "qtz", "" }, // key id pseudolanguage used for UI
testing
{ LANGUAGE_USER_PALI_LATIN, "pli", "" }, // Pali with Latin script
{ LANGUAGE_USER_KYRGYZ_CHINA, "ky", "CN" },
+ { LANGUAGE_USER_KOMI_ZYRIAN, "kpv", "" },
+ { LANGUAGE_USER_KOMI_PERMYAK, "koi", "" },
{ LANGUAGE_NONE, "zxx", "" }, // added to ISO 639-2 on 2006-01-11:
Used to declare the absence of linguistic information
{ LANGUAGE_DONTKNOW, "", "" } // marks end of table
};
diff --git a/svtools/source/misc/langtab.src b/svtools/source/misc/langtab.src
index 01b2846..fc83ec7 100644
--- a/svtools/source/misc/langtab.src
+++ b/svtools/source/misc/langtab.src
@@ -344,6 +344,8 @@ StringArray STR_ARR_SVT_LANGUAGE_TABLE
< "KeyID" ; LANGUAGE_USER_KEYID ; > ;
< "Pali Latin" ; LANGUAGE_USER_PALI_LATIN ; > ;
< "Kyrgyz (China)" ; LANGUAGE_USER_KYRGYZ_CHINA ; > ;
+ < "Komi-Zyrian" ; LANGUAGE_USER_KOMI_ZYRIAN ; > ;
+ < "Komi-Permyak" ; LANGUAGE_USER_KOMI_PERMYAK ; > ;
};
};
--
1.7.8.3
Context
- [Libreoffice] [PATCH] Support Komi-Zyrian and Komi-Permyak as text language for spell checking · Harri Pitkänen
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.