open source project universal locales for linux
play

Open Source Project Universal Locales for Linux - Locale data in - PowerPoint PPT Presentation

Open Source Project Universal Locales for Linux - Locale data in XML and Transformer Kentaro Noji Globalization Center of Competency,Yamato Yamato Software Laboratory, IBM Japan Ltd. 2001/5/17 1 Why Universal Locales for Linux Linux is


  1. Open Source Project Universal Locales for Linux - Locale data in XML and Transformer Kentaro Noji Globalization Center of Competency,Yamato Yamato Software Laboratory, IBM Japan Ltd. 2001/5/17 1

  2. Why Universal Locales for Linux � Linux is popular OS now … � Linux needs to improve globalization … � Solution � Li18nux:2000 Globalization Spec. � Deployment of Unicode technology for Linux 2001/5/17 2

  3. Objectives � Deployment of Unicode Technology � Usage of Unicode resources � Apply Unicode-based locale data in existing resources to Linux � Platform independent framework � Locale data consistency � Usage of XML for locale data definition � Open source license � For all Unicode user on Linux 2001/5/17 3

  4. Unicode Technical Resources � Deployment of Unicode Std. to Linux � Character Set : Unicode V3.0 � Encoding : UTF-8 � Collation � Unicode Collation Algorithm – UTS#10 � Character Classification � Unicode character data base 2001/5/17 4

  5. Unicode Locale Data � ICU architecture provides Unicode-based locale for Java and ICU for C/C++ � Co-work with ICU development ICU: International Components for Unicode Unicode Unicode Linux Java/ICU 2001/5/17 5

  6. Platform independent Linux Java Locale DB ICU POSIX New Transformer Platform 2001/5/17 6

  7. XML locale data and Transformer � XML Locale data � For platform independent � Transformer � Converts the XML locale data to a platform unique locale data format � E.g from XML to Linux locale source 2001/5/17 7

  8. Universal Locales project Unicode Org. Unicode Collation ..Transformer Algorithm Tables Character Database Linux Java/ICU Locale in XML Unicode Collation LC_COLLATE Algorithm Tables - Collation - Character LC_CTYPE Database - Character class - Unicode Locales in XML Unicode Locales Unicode Locales Locale database 2001/5/17 8

  9. Example – Currency locale data in XML <?xml version="1.0" encoding="UTF-8" ?> … <currencies> <currency id="JPY" default="true"> <symbol> ¥ ¥ ¥ ¥ </symbol> <name>JPY</name> <decimal>.</decimal> <pattern>¤#,##0</pattern> </currency> </currencies> … 2001/5/17 9

  10. Locale Data in XML � Easy to support new platforms by adding a transformer � Easy to verify locale data � Easy to add new locale data � Easy to make locale data consistent among various platforms 2001/5/17 10

  11. Transformer � Three transformations � XML locale data to POSIX style locale data except collation and character classification � Unicode Collation keys to POSIX style collation table � Unicode character database to POSIX style character classification table 2001/5/17 11

  12. Example – Transformation from XML to Linux XML-based Locale <currencies> <currency id="JPY" default="true"> Universal Locales for Linux <symbol> ¥ ¥ ¥ ¥ </symbol> LC_MONETARY <name>JPY</name> int_curr_symbol <decimal>.</decimal> "<U004A><U0050><U0059><U0020>" <pattern>¤#,##0</pattern> currency_symbol "<UFFE5>" </currency> mon_decimal_point "<U002E>" </currencies> mon_thousands_sep "<U002C>" mon_grouping 3 positive_sign "" negative_sign "<U002D>" int_frac_digits 0 frac_digits 0 Transformer p_cs_precedes 1 p_sep_by_space 0 n_cs_precedes 1 n_sep_by_space 0 p_sign_posn 1 n_sign_posn 1 END LC_MONETARY 2001/5/17 12

  13. Conclusion: What we have done � Used XML to define locale data � Platform independent � Locale data consistent � Developed transformer � Made Unicode-based Linux Locales available � 146 locales � IBM devleoperWorks � Li18nux � … 2001/5/17 13

  14. What we will: 2001 � Add Indian Locales � Calling for contributors! � Collation enhancement � Support New UCA table � Add Tailoring � Add demonstration � Locale Walker 2001/5/17 14

  15. Demonstration � Locale Walker � Web Browser-based Locale data viewer � Month, Week, Date and Time format � Currency data and format � Numeric data and format � Collation � Character Classification 2001/5/17 15

  16. 2001/5/17 16

  17. 2001/5/17 17

  18. 2001/5/17 18

  19. 2001/5/17 19

  20. 2001/5/17 20

  21. 2001/5/17 21

  22. 2001/5/17 22

  23. 2001/5/17 23

  24. URL http://oss.software.ibm.com /developerworks/opensource/locale/ 2001/5/17 24

  25. 25 Thank you! 2001/5/17

Recommend


More recommend