public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] localedata: add new locale tok
@ 2022-01-28 15:57 Janet Blackquill
  2024-01-07  2:38 ` [PATCH] localedata: add data for tok (Toki Pona) Janet Blackquill
  0 siblings, 1 reply; 2+ messages in thread
From: Janet Blackquill @ 2022-01-28 15:57 UTC (permalink / raw)
  To: libc-alpha

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

Toki Pona was recently given an ISO-639-3 code, tok,
https://iso639-3.sil.org/code/tok.

Signed-off-by: Janet Blackquill <uhhadd@gmail.com>

[-- Attachment #2: 0001-localedata-add-new-locale-tok.patch --]
[-- Type: text/x-patch, Size: 4746 bytes --]

From 1aff3b5637d47b39b67197943d6642940535a674 Mon Sep 17 00:00:00 2001
From: Janet Blackquill <uhhadd@gmail.com>
Date: Fri, 28 Jan 2022 10:02:10 -0500
Subject: [PATCH] localedata: add new locale tok

Add the Toki Pona language

tok was recently given an ISO-639-3 code,
https://iso639-3.sil.org/code/tok.

Signed-off-by: Janet Blackquill <uhhadd@gmail.com>
---
 locale/iso-639.def     |   1 +
 localedata/locales/tok | 154 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 155 insertions(+)
 create mode 100644 localedata/locales/tok

diff --git a/locale/iso-639.def b/locale/iso-639.def
index 926aebada0..5dea4e3966 100644
--- a/locale/iso-639.def
+++ b/locale/iso-639.def
@@ -479,6 +479,7 @@ DEFINE_LANGUAGE_CODE3 ("Timne", tem, tem)
 DEFINE_LANGUAGE_CODE3 ("Tiv", tiv, tiv)
 DEFINE_LANGUAGE_CODE3 ("Tlingit", tli, tli)
 DEFINE_LANGUAGE_CODE3 ("Tok Pisin", tpi, tpi)
+DEFINE_LANGUAGE_CODE3 ("Toki Pona", tok, tok)
 DEFINE_LANGUAGE_CODE3 ("Tokelau", tkl, tkl)
 DEFINE_LANGUAGE_CODE3 ("Tonga (Nyasa)", tog, tog)
 DEFINE_LANGUAGE_CODE ("Tonga (Tonga Islands)", to, ton, ton)
diff --git a/localedata/locales/tok b/localedata/locales/tok
new file mode 100644
index 0000000000..01f1993f8a
--- /dev/null
+++ b/localedata/locales/tok
@@ -0,0 +1,154 @@
+comment_char %
+escape_char /
+
+% This file is part of the GNU C Library and contains locale data.
+% The Free Software Foundation does not claim any copyright interest
+% in the locale data contained in this file.  The foregoing does not
+% affect the license of the GNU C Library as a whole.  It does not
+% exempt you from the conditions of the license if your use would
+% otherwise be governed by that license.
+
+% Toki Pona Language Locale
+% Source: Toki Pona Dictionary
+% Address:
+% Contact: Janet Blackquill
+% Email: uhhadd@gmail.com
+% Tel:
+% Fax:
+% Language: tok
+% Territory:
+% Revision: 1.0
+% Date: 2022-01-28
+% Application: general
+% Users: general
+% License: Public Domain
+
+LC_IDENTIFICATION
+title      "Toki Pona language locale"
+source     ""
+address    ""
+contact    ""
+email      ""
+tel        ""
+fax        ""
+language   "Toki Pona"
+territory  ""
+revision   "1.0"
+date       "2022-01-28"
+
+category "i18n:2012";LC_IDENTIFICATION
+category "i18n:2012";LC_CTYPE
+category "i18n:2012";LC_COLLATE
+category "i18n:2012";LC_TIME
+category "i18n:2012";LC_NUMERIC
+category "i18n:2012";LC_MONETARY
+category "i18n:2012";LC_MESSAGES
+category "i18n:2012";LC_PAPER
+category "i18n:2012";LC_NAME
+category "i18n:2012";LC_ADDRESS
+category "i18n:2012";LC_TELEPHONE
+category "i18n:2012";LC_MEASUREMENT
+END LC_IDENTIFICATION
+
+LC_CTYPE
+copy "i18n"
+END LC_CTYPE
+
+LC_COLLATE
+
+copy "iso14651_t1"
+
+END LC_COLLATE
+
+LC_MONETARY
+int_curr_symbol     "XDR "
+currency_symbol     "<U00A4>"
+mon_decimal_point   "."
+mon_thousands_sep   "<U202F>"
+mon_grouping        3;3
+positive_sign       ""
+negative_sign       "-"
+int_frac_digits     2
+frac_digits         2
+p_cs_precedes       1
+p_sep_by_space      1
+n_cs_precedes       1
+n_sep_by_space      1
+p_sign_posn         1
+n_sign_posn         1
+END LC_MONETARY
+
+LC_NUMERIC
+decimal_point "."
+thousands_sep "<U202F>"
+grouping      0;0
+END LC_NUMERIC
+
+LC_TIME
+abday	"suno esun #7";/
+	"suno esun #1";"suno esun #2";/
+	"suno esun #3";"suno esun #4";/
+	"suno esun #5";"suno esun #6"
+day	"tenpo suno esun nanpa 7";/
+	"tenpo suno esun nanpa 1";/
+	"tenpo suno esun nanpa 2";/
+	"tenpo suno esun nanpa 3";/
+	"tenpo suno esun nanpa 4";/
+	"tenpo suno esun nanpa 5";/
+	"tenpo suno esun nanpa 6"
+abmon	"mun #1";"mun #2";"mun #3";"mun #4";"mun #5";"mun #6";"mun #7";"mun #8";"mun #9";"mun #10";"mun #11";"mun #12"
+mon	"tenpo mun nanpa 1";/
+	"tenpo mun nanpa 2";/
+	"tenpo mun nanpa 3";/
+	"tenpo mun nanpa 4";/
+	"tenpo mun nanpa 5";/
+	"tenpo mun nanpa 6";/
+	"tenpo mun nanpa 7";/
+	"tenpo mun nanpa 8";/
+	"tenpo mun nanpa 9";/
+	"tenpo mun nanpa 10";/
+	"tenpo mun nanpa 11";/
+	"tenpo mun nanpa 12"
+am_pm "";""
+t_fmt_ampm ""
+d_t_fmt  "suno #%d (%a) %b sike #%Y tenpo %T"
+date_fmt "suno #%d (%a) %b sike #%Y tenpo %T %z"
+d_fmt   "suno #%d mun #%m sike #%Y"
+t_fmt   "tenpo %T"
+week 7;19971130;1
+END LC_TIME
+
+LC_MESSAGES
+yesexpr "^[+1yYlLwW]"
+noexpr  "^[-0nNaA]"
+yesstr  "lon"
+nostr   "ala"
+END LC_MESSAGES
+
+LC_PAPER
+copy "i18n"
+END LC_PAPER
+
+LC_TELEPHONE
+tel_int_fmt "+%c %a%t%l"
+int_select  "00"
+END LC_TELEPHONE
+
+LC_MEASUREMENT
+copy "i18n"
+END LC_MEASUREMENT
+
+LC_NAME
+name_fmt    "%d%t%g%t%m%t%f"
+name_mr     "jan"
+name_mrs    "jan"
+name_ms     "jan"
+name_gen    "jan"
+name_miss   "jan"
+END LC_NAME
+
+LC_ADDRESS
+postal_fmt   "%f%N%a%N%d%N%b%N%s %h %e %r%N%%z %T%N%c%N"
+lang_name    "toki pona"
+lang_term    "tok"
+END LC_ADDRESS
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] localedata: add data for tok (Toki Pona)
  2022-01-28 15:57 [PATCH] localedata: add new locale tok Janet Blackquill
@ 2024-01-07  2:38 ` Janet Blackquill
  0 siblings, 0 replies; 2+ messages in thread
From: Janet Blackquill @ 2024-01-07  2:38 UTC (permalink / raw)
  To: libc-alpha; +Cc: Janet Blackquill

glibc can recognise its code, but does not have its data.
This patch remedies that.

Signed-off-by: Janet Blackquill <uhhadd@gmail.com>
---
 localedata/locales/tok | 154 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 154 insertions(+)
 create mode 100644 localedata/locales/tok

diff --git a/localedata/locales/tok b/localedata/locales/tok
new file mode 100644
index 0000000000..04292226fe
--- /dev/null
+++ b/localedata/locales/tok
@@ -0,0 +1,154 @@
+comment_char %
+escape_char /
+
+% This file is part of the GNU C Library and contains locale data.
+% The Free Software Foundation does not claim any copyright interest
+% in the locale data contained in this file.  The foregoing does not
+% affect the license of the GNU C Library as a whole.  It does not
+% exempt you from the conditions of the license if your use would
+% otherwise be governed by that license.
+
+% Toki Pona Language Locale
+% Source: Toki Pona Dictionary
+% Address:
+% Contact: Janet Blackquill
+% Email: uhhadd@gmail.com
+% Tel:
+% Fax:
+% Language: tok
+% Territory:
+% Revision: 1.0
+% Date: 2022-01-28
+% Application: general
+% Users: general
+% License: Public Domain
+
+LC_IDENTIFICATION
+title      "Toki Pona language locale"
+source     ""
+address    ""
+contact    ""
+email      ""
+tel        ""
+fax        ""
+language   "Toki Pona"
+territory  ""
+revision   "1.0"
+date       "2022-01-28"
+
+category "i18n:2012";LC_IDENTIFICATION
+category "i18n:2012";LC_CTYPE
+category "i18n:2012";LC_COLLATE
+category "i18n:2012";LC_TIME
+category "i18n:2012";LC_NUMERIC
+category "i18n:2012";LC_MONETARY
+category "i18n:2012";LC_MESSAGES
+category "i18n:2012";LC_PAPER
+category "i18n:2012";LC_NAME
+category "i18n:2012";LC_ADDRESS
+category "i18n:2012";LC_TELEPHONE
+category "i18n:2012";LC_MEASUREMENT
+END LC_IDENTIFICATION
+
+LC_CTYPE
+copy "i18n"
+END LC_CTYPE
+
+LC_COLLATE
+
+copy "iso14651_t1"
+
+END LC_COLLATE
+
+LC_MONETARY
+int_curr_symbol     "XDR "
+currency_symbol     "<U00A4>"
+mon_decimal_point   ","
+mon_thousands_sep   "<U202F>"
+mon_grouping        3;3
+positive_sign       ""
+negative_sign       "-"
+int_frac_digits     2
+frac_digits         2
+p_cs_precedes       1
+p_sep_by_space      1
+n_cs_precedes       1
+n_sep_by_space      1
+p_sign_posn         1
+n_sign_posn         1
+END LC_MONETARY
+
+LC_NUMERIC
+decimal_point "."
+thousands_sep "<U202F>"
+grouping      0;0
+END LC_NUMERIC
+
+LC_TIME
+abday	"suno esun #7";/
+	"suno esun #1";"suno esun #2";/
+	"suno esun #3";"suno esun #4";/
+	"suno esun #5";"suno esun #6"
+day	"tenpo suno esun nanpa 7";/
+	"tenpo suno esun nanpa 1";/
+	"tenpo suno esun nanpa 2";/
+	"tenpo suno esun nanpa 3";/
+	"tenpo suno esun nanpa 4";/
+	"tenpo suno esun nanpa 5";/
+	"tenpo suno esun nanpa 6"
+abmon	"mun #1";"mun #2";"mun #3";"mun #4";"mun #5";"mun #6";"mun #7";"mun #8";"mun #9";"mun #10";"mun #11";"mun #12"
+mon	"tenpo mun nanpa 1";/
+	"tenpo mun nanpa 2";/
+	"tenpo mun nanpa 3";/
+	"tenpo mun nanpa 4";/
+	"tenpo mun nanpa 5";/
+	"tenpo mun nanpa 6";/
+	"tenpo mun nanpa 7";/
+	"tenpo mun nanpa 8";/
+	"tenpo mun nanpa 9";/
+	"tenpo mun nanpa 10";/
+	"tenpo mun nanpa 11";/
+	"tenpo mun nanpa 12"
+am_pm "pi open suno";"pi pini suno"
+t_fmt_ampm "%I:%M:%S %p"
+d_t_fmt  "#%Y)#%m)#%d tenpo %T"
+date_fmt "#%Y)#%m)#%d tenpo %T lon %z"
+d_fmt   "#%Y)#%m)#%d"
+t_fmt   "%H:%M:%S"
+week 7;19971130;1
+END LC_TIME
+
+LC_MESSAGES
+yesexpr "^[+1wW]"
+noexpr  "^[-0aA]"
+yesstr  "wile"
+nostr   "ala"
+END LC_MESSAGES
+
+LC_PAPER
+copy "i18n"
+END LC_PAPER
+
+LC_TELEPHONE
+tel_int_fmt "+%c %a%t%l"
+int_select  "00"
+END LC_TELEPHONE
+
+LC_MEASUREMENT
+copy "i18n"
+END LC_MEASUREMENT
+
+LC_NAME
+name_fmt    "%d%t%g%t%m%t%f"
+name_mr     "jan"
+name_mrs    "jan"
+name_ms     "jan"
+name_gen    "jan"
+name_miss   "jan"
+END LC_NAME
+
+LC_ADDRESS
+postal_fmt   "%f%N%a%N%d%N%b%N%s %h %e %r%N%%z %T%N%c%N"
+lang_name    "toki pona"
+lang_term    "tok"
+END LC_ADDRESS
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-07  2:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-28 15:57 [PATCH] localedata: add new locale tok Janet Blackquill
2024-01-07  2:38 ` [PATCH] localedata: add data for tok (Toki Pona) Janet Blackquill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).