[gnome-applets] Add support for South African languages to charpick



commit de79d68eba4fd705ca6322fe98c82fe329ffa3a9
Author: Callum McKenzie <callum spooky-possum org>
Date:   Tue May 26 11:30:35 2009 +1200

    Add support for South African languages to charpick
    
    Added a patch from Dwayne Bailey to support Afrikaans, Nothern Sotho
    Tswana and Venda. Bug 407409. The selection system really needs to
    be better if we keep this up, but two more entries isn't going to kill
    it yet.
---
 charpick/charpick.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/charpick/charpick.c b/charpick/charpick.c
index 64a8d0c..fc708e2 100644
--- a/charpick/charpick.c
+++ b/charpick/charpick.c
@@ -77,6 +77,15 @@ static const gunichar one_code[] = {185, 178, 179, 188, 189, 190, 0};
 /* µ ¶ ® ¿ ¡ |  */
 static const gunichar misc_code[] = {181, 182, 174, 191, 161, 124, 0};
 
+/* language/region specific character groups */
+/* South Africa: Venda, Tswana and Northern Sotho */
+/* static const gchar *ZA_list = "�ḽ�ṱ�Ḽ�Ṱ��šŠ"; */
+static const gunichar ZA_code[] = {7699, 7741, 7755, 7793, 7698, 7740, 7754, 7792, 7749, 7748, 353, 352, 0};
+/* South Africa: Afrikaans */
+/* static const gchar *af_ZA_list = "áéíóúýêîôûèäëïöü����������������"; */
+static const gunichar af_ZA_code[] = {225, 233, 237, 243, 250, 253, 234, 238, 244, 251, 232, 228, 235, 239, 246, 252, 193, 201, 205, 211, 218, 221, 202, 206, 212, 219, 200, 196, 203, 207, 214, 220, 0};
+
+
 static const gunichar * const chartable[] = {
 	def_code,
 	a_code,
@@ -98,7 +107,9 @@ static const gunichar * const chartable[] = {
 	quote_code,
 	currency_code,
 	one_code,
-	misc_code
+	misc_code,
+	ZA_code,
+	af_ZA_code
 };
 
 gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]