From keld@dkuug.dk Fri Aug 23 13:09:08 1991 Received: by dkuug.dk (5.64+/8+bit/IDA-1.2.8) id AA18737; Fri, 23 Aug 91 13:09:08 +0200 Date: Fri, 23 Aug 91 13:09:08 +0200 From: Keld J|rn Simonsen Message-Id: <9108231109.AA18737@dkuug.dk> To: wg15rin@dkuug.dk Subject: example danish locale - short form X-Charset: ASCII X-Char-Esc: 29 Hello I18N-ers! Her is an example of a complete Danish locale with precisely the same functionality as the one in POSIX.2 draft 12 annex F, but considerably shorter. The reason it can be made shorter is because it builds on a reference locale called "CINT" and just copies the LC_CTYPE specs from this, and just lists the difference from the reference collating sequence. I think this locale is much clearer than the POSIX.2 da_DK locale and I also think that many European language (and maybe also ideographic) can be specified in this way - if we had a sufficiently general reference locale. Keld escape_char / comment_char % % Danish example national locale for the language Danish % Source: Danish Standards Association % Revision 1.8 1991-07-04 LC_CTYPE copy INTC END LC_CTYPE LC_COLLATE copy INTC % letters before letters replace-after % Greenlandic Kra is sorted as replace-after ;; replace-after <'y> % and are treated as in Danish ;; ;; ;; ;; replace-after % is treated as a separate letter in Danish ;; ;; ;; ;; ;; ;; % is treated as a separate letter in Danish ;; ;; ;; ;; ;; ;; % is treated as a separate letter in Danish ;; ;; ;; ;; ;; replace-end END LC_COLLATE LC_MONETARY % int_curr_symbol according to ISO 4217 int_curr_symbol "DKK " currency_symbol "kr." mon_decimal_point <,> mon_thousands_sep <.> mon_grouping 3;0 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 4 n_sign_posn 4 END LC_MONETARY LC_NUMERIC decimal_point <,> thousands_sep <.> grouping 3;0 END LC_NUMERIC LC_TIME abday "sn";"man";"tir";"ons";"tor";"fre";"lr" day "sndag";"mandag";"tirsdag";"onsdag";/ "torsdag";"fredag";"lrdag" abmon "jan";"feb";"mar";"apr";"maj";"jun";/ "jul";"aug";"sep";"okt";"nov";"dec" mon "januar";"februar";"marts";"april";"maj";"juni";/ "juli";"august";"september";"oktober";"november";"december" d_t_fmt "%a %d %b %Y %T %Z" d_fmt "%d %b %Y" t_fmt "%T" % The AM/PM notation is not used in Denmark and thus not allowed. am_pm "";"" t_fmt_ampm "" END LC_TIME LC_MESSAGES % Must be careful to avoid interpreting "nej" (no) as "ja" (yes). % yesexpr "^[[:blank:]]*[JjYy][[:alpha:]]*" % noexpr "^[[:blank:]]*[Nn][[:alpha:]]*" yesexpr "<'//><<(><<(>:blank:<)//><)//>*<<(>JjYy<)//><<(><<(>:alpha:<)//><)//>*" noexpr "<'//><<(><<(>:blank:<)//><)//>*<<(>Nn<)//><<(><<(>:alpha:<)//><)//>*" END LC_MESSAGES