From patchwork Thu Jun 28 10:32:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rafal Luzynski X-Patchwork-Id: 28091 Received: (qmail 23450 invoked by alias); 28 Jun 2018 10:32:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 23441 invoked by uid 89); 28 Jun 2018 10:32:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.0 required=5.0 tests=AWL, BAYES_50, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, WEIRD_QUOTING autolearn=ham version=3.3.2 spammy=press, browser, ch, H*x:Mailer X-HELO: ano163.rev.netart.pl X-Spam-Score: 0.001 Date: Thu, 28 Jun 2018 12:32:48 +0200 (CEST) From: Rafal Luzynski Reply-To: Rafal Luzynski To: libc-alpha@sourceware.org Message-ID: <1692783399.1120662.1530181968375@poczta.nazwa.pl> In-Reply-To: <1382833401.420415.1529365499080@poczta.nazwa.pl> References: <744203676.887878.1529363268253@poczta.nazwa.pl> <1382833401.420415.1529365499080@poczta.nazwa.pl> Subject: [PATCH v2] New language: Lower Sorbian (dsb_DE) [BZ #23208] MIME-Version: 1.0 It is likely that I will push this patch tomorrow. In this version I took the freedom to introduce the changes according to my previous concerns, please see below: 19.06.2018 01:44 Rafal Luzynski wrote: > > And here is my review: > > > diff --git a/localedata/locales/dsb_DE b/localedata/locales/dsb_DE > > [...] > > +LC_IDENTIFICATION > > +title "Lower Sorbian locale for Germany" > > +source "Information from Michael Wolf" > > +address "" > > +contact "" > > +email "" > > +tel "" > > +fax "" > > It's not obligatory but wouldn't you like to add your personal data here? > If not, then maybe let's add "bug-glibc-locales@gnu.org" as the email? Added "bug-glibc-locales@gnu.org". > > > [...] > > +LC_COLLATE > > +copy "iso14651_t1" > > + > > +% CLDR collation rules for Lower Sorbian: > > +% > > (see:https://unicode.org/cldr/trac/browser/trunk/common/collation/dsb.xml) > > +% > > [...] > > We have agreed [1] to accept this chunk as is even if it is not perfect > (I'm not telling it is not perfect, I'm just considering a possible case) > so we will have a chance to tweak it in future. Not changed. > > + [...] > > +% The characters ě, ń, ó, ŕ are usually used as lower case characters only, > > +% only in fully capitalized words they exist as upper case characters > > +% In contrast to Upper Sorbian, the character ř does not exist in Lower > > Sorbian > > + > > + > > + > > + > > + > > + > > I think we can collapse this vertical space here. One empty line > should be sufficient. Done. > > + [...] > > +LC_CTYPE > > +copy "i18n" > > +END LC_CTYPE > > I'm not sure. I have a feeling that something is missing here. > But if we don't figure out let's leave it as is. Not changed. > > +LC_MESSAGES > > +yesexpr "^[+1hHyY]" > > +noexpr "^[-0nN]" > > +yesstr "jo" > > +nostr "n" > > +END LC_MESSAGES > > > If "yes" is "jo" in DSB then "yesexpr" must contain "jJ". Also as it has > been copied from HSB I think that HSB should include "jJ" for the > compatibility with German. Whether DSB should include "hH" for the > compatibility with HSB... well, it's a question to you if there are DSB > computer users so used to HSB that they may press 'H' as the answer for "yes"? "jJ" added, this was necessary. "hH" left unchanged. Not needed but not destructive. > [...] > > +LC_TIME > > +abday "Nj";"P";/ > > + "Wa";"Sr";/ > > + "St";"P";/ > > + "So" > > +day "Njeela";/ > > + "Pnela";/ > > This says: "Pónźela" - CLDR says "pónjeźele". I have decided to use "Pónjeźele". This is what CLDR says except that it is titlecased, same as other day names. Wikipedia provides another name but says that "pónjeźele" is also used. > > + "Watora";/ > > + "Srjoda";/ > > + "Stwrtk";/ > > + "Ptk";/ > > + "Sobota" > > Do you want to start all weekday names with uppercase? According to CLDR > it is not necessary but if you think that weekday names usually appear in > the beginning of the sentence and therefore you want to leave it like this > then it is OK. Not changed. > > +abmon "Jan";"Feb";/ > > + "Mr";"Apr";/ > > + "Maj";"Jun";/ > > + "Jul";"Awg";/ > > + "Sep";"Okt";/ > > + "Now";"Dec" > > +alt_mon "Januar";/ > > I will adjust spaces here. Adjusted here and in another place. > [...] > > +LC_PAPER > > +copy "de_DE" > > +END LC_PAPER > > Most of the locales use either “copy "i18n"” or “copy "en_US"”. Changed to “copy "i18n"”. > > + [...] > > +LC_NAME > > +name_fmt "%d%t%g%t%m%t%f" > > +name_miss "knna" > > +name_mr "knz" > > +name_mrs "knni" > > +%name_ms "" > > +END LC_NAME > > What about: > > name_ms "knni" Added “name_ms "knni"” > > > +LC_ADDRESS > > +postal_fmt "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N" > > +country_name "Nimska" > > +country_post "D" > > +country_ab2 "DE" > > +country_ab3 "DEU" > > +country_num 276 > > +country_car "D" > > +country_isbn 3 > > +lang_name "dolnoserbina" > > +lang_ab "" > > +lang_term "dsb" > > +lang_lib "dsb" > > +END LC_ADDRESS > > I can see this is copied from hsb_DE except few fields which had obligatorily > to be changed. Therefore I believe this is correct. Not changed but adjusted spaces. Regards, Rafal From a9e2e72a8394401e5114946a0f893313aae15d87 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Fri, 8 Jun 2018 01:26:43 +0200 Subject: [PATCH] New language: Lower Sorbian (dsb_DE) [BZ #23208] [BZ #23208] * localedata/SUPPORTED (dsb_DE/UTF-8): New entry. * localedata/locales/dsb_DE: New file. --- localedata/SUPPORTED | 1 + localedata/locales/dsb_DE | 251 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 252 insertions(+) create mode 100644 localedata/locales/dsb_DE diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED index 8754b13..74aa15d 100644 --- a/localedata/SUPPORTED +++ b/localedata/SUPPORTED @@ -119,6 +119,7 @@ de_LU.UTF-8/UTF-8 \ de_LU/ISO-8859-1 \ de_LU@euro/ISO-8859-15 \ doi_IN/UTF-8 \ +dsb_DE/UTF-8 \ dv_MV/UTF-8 \ dz_BT/UTF-8 \ el_GR.UTF-8/UTF-8 \ diff --git a/localedata/locales/dsb_DE b/localedata/locales/dsb_DE new file mode 100644 index 0000000..419d0b3 --- /dev/null +++ b/localedata/locales/dsb_DE @@ -0,0 +1,251 @@ +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. + +% Lower Sorbian Language Locale for Germany + +% Source: information from Michael Wolf + +LC_IDENTIFICATION +title "Lower Sorbian locale for Germany" +source "Information from Michael Wolf" +address "" +contact "" +email "bug-glibc-locales@gnu.org" +tel "" +fax "" +language "Lower Sorbian" +territory "Germany" +revision "0.1" +date "" + +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_COLLATE +copy "iso14651_t1" + +% CLDR collation rules for Lower Sorbian: +% (see:https://unicode.org/cldr/trac/browser/trunk/common/collation/dsb.xml) +% +% &C<č<<<ÄŒ<ć<<<Ć +% &E<Ä›<<<Äš +% &H[A B C ÄŒ Ć D E F G H {Ch} I J K Ł L M N O P Q R S Å  Åš T U V W X Y Z Ž Ź] +% [a b c č ć d e Ä› f g h {ch} i j k Å‚ l m n Å„ o ó p q r Å• s Å¡ Å› t u v w x y z ž ź] + +% The characters Ä›, Å„, ó, Å• are usually used as lower case characters only, +% only in fully capitalized words they exist as upper case characters +% In contrast to Upper Sorbian, the character Å™ does not exist in Lower Sorbian + +collating-element from "" +collating-element from "" +collating-element from "" +collating-element from "" + +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating symbol +collating symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol +collating-symbol + +reorder-after + + +reorder-after + +reorder-after + + reorder-after + +reorder-after + +reorder-after + +reorder-after + +reorder-after + +reorder-after + + +reorder-after + + + + ;;;IGNORE % č + ;;;IGNORE % ÄŒ + ;;;IGNORE % ć + ;;;IGNORE % Ć + ;;"";IGNORE % dź + ;;"";IGNORE % dŹ + ;;"";IGNORE % Dź + ;;"";IGNORE % DŹ + ;;;IGNORE % Ä› + ;;;IGNORE % Äš + ;;"";IGNORE % ch + ;;"";IGNORE % cH + ;;"";IGNORE % Ch + ;;"";IGNORE % CH + ;;;IGNORE % Å‚ + ;;;IGNORE % Ł + ;;;IGNORE % Å„ + ;;;IGNORE % Ń + ;;;IGNORE % ó + ;;;IGNORE % Ó + ;;;IGNORE % Å• + ;;;IGNORE % Å” + ;;;IGNORE % Å¡ + ;;;IGNORE % Å  + ;;;IGNORE % Å› + ;;;IGNORE % Åš + ;;;IGNORE % ž + ;;;IGNORE % Ž + ;;;IGNORE % ź + ;;;IGNORE % Ź + +reorder-end + +END LC_COLLATE + +LC_CTYPE +copy "i18n" +END LC_CTYPE + +LC_MESSAGES +yesexpr "^[+1jJhHyY]" +noexpr "^[-0nN]" +yesstr "jo" +nostr "n" +END LC_MESSAGES + +LC_MONETARY +copy "de_DE" +END LC_MONETARY + +LC_NUMERIC +copy "de_DE" +END LC_NUMERIC + +LC_TIME +abday "Nj";"P";/ + "Wa";"Sr";/ + "St";"P";/ + "So" +day "Njeela";/ + "Pnjeele";/ + "Watora";/ + "Srjoda";/ + "Stwrtk";/ + "Ptk";/ + "Sobota" +abmon "Jan";"Feb";/ + "Mr";"Apr";/ + "Maj";"Jun";/ + "Jul";"Awg";/ + "Sep";"Okt";/ + "Now";"Dec" +alt_mon "Januar";/ + "Februar";/ + "Mrc";/ + "Apryl";/ + "Maj";/ + "Junij";/ + "Julij";/ + "Awgust";/ + "September";/ + "Oktober";/ + "Nowember";/ + "December" +mon "januara";/ + "februara";/ + "mrca";/ + "apryla";/ + "maja";/ + "junija";/ + "julija";/ + "awgusta";/ + "septembra";/ + "oktobra";/ + "nowembra";/ + "decembra" +d_t_fmt "%a %d %b %Y %T %Z" +d_fmt "%d.%m.%Y" +t_fmt "%T" +am_pm "";"" +t_fmt_ampm "" + +week 7;19971130;4 +first_weekday 2 +END LC_TIME + +LC_PAPER +copy "i18n" +END LC_PAPER + +LC_TELEPHONE +copy "de_DE" +END LC_TELEPHONE + +LC_MEASUREMENT +copy "de_DE" +END LC_MEASUREMENT + +LC_NAME +name_fmt "%d%t%g%t%m%t%f" +name_miss "knna" +name_mr "knz" +name_mrs "knni" +name_ms "knni" +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" +country_name "Nimska" +country_post "D" +country_ab2 "DE" +country_ab3 "DEU" +country_num 276 +country_car "D" +country_isbn 3 +lang_name "dolnoserbina" +lang_ab "" +lang_term "dsb" +lang_lib "dsb" +END LC_ADDRESS -- 2.7.5