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

open source project universal locales for linux
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

2001/5/17 1

Open Source Project Universal Locales for Linux

Kentaro Noji Globalization Center of Competency,Yamato Yamato Software Laboratory, IBM Japan Ltd.

  • Locale data in XML and Transformer
slide-2
SLIDE 2

2001/5/17 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

slide-3
SLIDE 3

2001/5/17 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

slide-4
SLIDE 4

2001/5/17 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

slide-5
SLIDE 5

2001/5/17 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 Java/ICU Linux

slide-6
SLIDE 6

2001/5/17 6

Platform independent

Linux POSIX Java ICU New Platform

Locale DB

Transformer

slide-7
SLIDE 7

2001/5/17 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

slide-8
SLIDE 8

2001/5/17 8

Universal Locales project

Java/ICU Linux

LC_COLLATE

  • Collation -

Unicode Collation Algorithm Tables

Unicode Org.

Unicode Collation Algorithm Tables Unicode Locales LC_CTYPE

  • Character class -

Unicode Locales Character Database Character Database

Locale in XML

Unicode Locales in XML

..Transformer Locale database

slide-9
SLIDE 9

2001/5/17 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> …

slide-10
SLIDE 10

2001/5/17 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

slide-11
SLIDE 11

2001/5/17 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

slide-12
SLIDE 12

2001/5/17 12

Example – Transformation from XML to Linux

XML-based Locale

<currencies> <currency id="JPY" default="true"> <symbol>¥ ¥ ¥ ¥</symbol> <name>JPY</name> <decimal>.</decimal> <pattern>¤#,##0</pattern> </currency> </currencies>

Universal Locales for Linux

LC_MONETARY int_curr_symbol "<U004A><U0050><U0059><U0020>" currency_symbol "<UFFE5>" mon_decimal_point "<U002E>" mon_thousands_sep "<U002C>" mon_grouping 3 positive_sign "" negative_sign "<U002D>" int_frac_digits frac_digits p_cs_precedes 1 p_sep_by_space n_cs_precedes 1 n_sep_by_space p_sign_posn 1 n_sign_posn 1 END LC_MONETARY

Transformer

slide-13
SLIDE 13

2001/5/17 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 …

slide-14
SLIDE 14

2001/5/17 14

What we will: 2001

Add Indian Locales

Calling for contributors!

Collation enhancement

Support New UCA table Add Tailoring

Add demonstration

Locale Walker

slide-15
SLIDE 15

2001/5/17 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

slide-16
SLIDE 16

2001/5/17 16

slide-17
SLIDE 17

2001/5/17 17

slide-18
SLIDE 18

2001/5/17 18

slide-19
SLIDE 19

2001/5/17 19

slide-20
SLIDE 20

2001/5/17 20

slide-21
SLIDE 21

2001/5/17 21

slide-22
SLIDE 22

2001/5/17 22

slide-23
SLIDE 23

2001/5/17 23

slide-24
SLIDE 24

2001/5/17 24

URL

http://oss.software.ibm.com /developerworks/opensource/locale/

slide-25
SLIDE 25

2001/5/17 25

Thank you!