Download presentation
Presentation is loading. Please wait.
Published byMavis Bates Modified over 9 years ago
1
23rd Internationalization and Unicode Conference, Prague, Czech Republic – March, 2003 Common XML Locale Repository Dr. Mark Davis mark.davis@us.ibm.com Steven R. Loomis srloomis@us.ibm.com IBM San José Globalization Center of Competency Copyright © 2003 IBM Corporation
2
Prague, Czech Republic, March 2003Common XML Locale Repository2 Locale Data Confusion Variations in localized data can irritate or confuse users… OS #1: 2003-02-17 (févr. ) OS #2: 03-02-17 (fév)
3
Prague, Czech Republic, March 2003Common XML Locale Repository3 Locale Data Problems But, over the network, mismatched data can be catastrophic. OS #1: 2003-02-17 (févr. ) OS #2: 03-02-17 (fév)
4
Prague, Czech Republic, March 2003Common XML Locale Repository4 What is Locale Data? Locale = identifier string referring to linguistic and cultural preferences Typical data –Dates/times –Numbers –Measurement –Currency –Sorting (Collation) –Translated country and language names
5
Prague, Czech Republic, March 2003Common XML Locale Repository5 Where is locale data found? International Components for Unicode (ICU) OpenOffice.org Operating Systems –Linux, Solaris, AIX, Windows, … Java
6
Prague, Czech Republic, March 2003Common XML Locale Repository6 Common XML Locale Repository Team Li18nux is now OpenI18N (part of the Free Standards Group) –Linux Application Development Environment subgroup Common XML Locale Repository project http://www.openi18n.org/subgroups/lade/locale/
7
Prague, Czech Republic, March 2003Common XML Locale Repository7 Repository Objectives Common XML format for locale data Collect data from platforms Make repository available to the public Validate and release corrected data Enable W3C Web Services –Exchange and display of data in localized form
8
Prague, Czech Republic, March 2003Common XML Locale Repository8 Repository Features Version controlled database HTTP based- browsing or custom tools Compare data between platforms –(Comparisons available now)
9
Prague, Czech Republic, March 2003Common XML Locale Repository9 Repository Structure Contents –Common –ICU –OpenOffice.org –Windows? –… Migrate to Common over time
10
Prague, Czech Republic, March 2003Common XML Locale Repository10 Locale Data Markup Language XML “vocabulary” for locale data interchange Data stored in separate files (fr.xml or cs_CZ.xml) Inheritance used: ‘root.xml’ root locale, ‘fr.xml’ for French, ‘fr_CA.xml’ for French, Canada
11
Prague, Czech Republic, March 2003Common XML Locale Repository11 Locale Naming ISO-639 + ISO-3166 +Variant (POSIX-like) en — English fr_BE — French in Belgium de_DE — German in Germany sv_FI_AALAND — Swedish in Finland (Åland region) de_DE@collation=phonebook,currency@pre- euro German in Germany, Phonebook collation, pre-Euro Currency.
12
Prague, Czech Republic, March 2003Common XML Locale Repository12 Element Various notes and changes
13
Prague, Czech Republic, March 2003Common XML Locale Repository13 Inheritance fr Janvier, Février… 1,234.56 … fr_CA 1 234,57 $ … fr_LX 1.234,57 € …
14
Prague, Czech Republic, March 2003Common XML Locale Repository14 Aliasing zh (Chinese) zh_CN zh_HKzh_TW TraditionalSimplified
15
Prague, Czech Republic, March 2003Common XML Locale Repository15 element
16
Prague, Czech Republic, March 2003Common XML Locale Repository16 type attribute <numberFormatStyle type="decimal"> 1 234,57 <numberFormatStyle type="percent"> 123% cs_CZ
17
Prague, Czech Republic, March 2003Common XML Locale Repository17 type attribute in Locale <numberFormatStyle type="percent"> 123% cs_CZ @numberFormatStyle= percent
18
Prague, Czech Republic, March 2003Common XML Locale Repository18 Standard Keys/Types Collation Traditional, Pinyin, Stroke, Direct (Hindi), posix Currency Pre-Euro Calendar Gregorian, Arabic (Religious and Civil), Chinese, Hebrew, Japanese, Thai (Buddhist)
19
Prague, Czech Republic, March 2003Common XML Locale Repository19 draft and standard Unverified data may be marked with draft=true Standard-conforming data may be marked with standard= … –Name: –URL:
20
Prague, Czech Republic, March 2003Common XML Locale Repository20 Data Access Normal HTTP request http://openi18n.org/locale/ icu/de_DE.xml? version=2.2& currency=pre-euro Accessible by web browser or programmatically.
21
Prague, Czech Republic, March 2003Common XML Locale Repository21 Calendars Non-Gregorian calendars supported Gregorian data is the ‘root’for inheritance Calendars distinguished by ‘class’ ( class="japanese", class="arabic", …)
22
Prague, Czech Republic, March 2003Common XML Locale Repository22 January February Sunday Monday
23
Prague, Czech Republic, March 2003Common XML Locale Repository23 (cont’d) EEEE, MMMM d, yyyy MMM d, yyyy MMM dd, yyyy …
24
Prague, Czech Republic, March 2003Common XML Locale Repository24 (gregorian, continued) BC AD Taika Hakuchi
25
Prague, Czech Republic, March 2003Common XML Locale Repository25 - digits, separators, signs - Patterns - Monetary patterns, symbols
26
Prague, Czech Republic, March 2003Common XML Locale Repository26., ; % 0 # + - E ‰ ∞ _
27
Prague, Czech Republic, March 2003Common XML Locale Repository27 <pattern type="positive">#,##0.### <pattern type="negative">-#,##0.### #,##0%
28
Prague, Czech Republic, March 2003Common XML Locale Repository28 currency #,##0.00; ( #,##0.00)
29
Prague, Czech Republic, March 2003Common XML Locale Repository29 dollar $ yen ¥
30
Prague, Czech Republic, March 2003Common XML Locale Repository30 ‘root’ locale behavior = UCA Sub locales defined in terms of tailorings to the UCA
31
Prague, Czech Republic, March 2003Common XML Locale Repository31 : Swedish Z æ Æ aa aA Aa AA...
32
Prague, Czech Republic, March 2003Common XML Locale Repository32 Can appear anywhere in the locale Denotes data specific to is not part of the LDML specification. Used to store data specific to OpenOffice.org, ICU, or other sources –Single source.
33
Prague, Czech Republic, March 2003Common XML Locale Repository33 example <> a ; <> v ;
34
Prague, Czech Republic, March 2003Common XML Locale Repository34 Other Elements
35
Prague, Czech Republic, March 2003Common XML Locale Repository35 Open Issues Vetting process not defined Versioning and release of Repository not finalized
36
Prague, Czech Republic, March 2003Common XML Locale Repository36 Current Status LDML 1.0 Specification released, and approved by Openi18n steering committee Preliminary data available by CVS (Source code repository) Newsgroup available for discussions Database available for reporting bugs or feature requests
37
Prague, Czech Republic, March 2003Common XML Locale Repository37 For More Information http://www.openi18n.org/subgroups/l ade/locale/. http://www.openi18n.org/subgroups/l ade/locale/
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.