cldr
— Unicode Common Locale Data Repository for Python¶Module author: Martin v. Löwis <martin@v.loewis.de>
The cldr
module supplies classes for localizing data. The focus of the
implementation is on efficient extraction of the iCLDR XML file for output
formatting and manipulation. For related functionality, see also the
datetime
module.
The cldr
module exports the following LDML base classes:
XXX child of YYY element
the class has the following attributes:
special
a list of Special
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
path
string
source
string
XXX child of YYY element
XXX child of YYY element
the class has the following attributes:
special
a list of Special
hex
string
XXX child of YYY element
the class has the following attributes:
special
a list of Special
alt
string
choice
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
type
string
XXX child of YYY element
XXX child of YYY element
the class has the following attributes:
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
XXX child of YYY element
the class has the following attributes:
date
e.g. '$Date: 2012-10-15 11:02:42 -0700 (Mon, 15 Oct 2012) $'
XXX child of YYY element
XXX child of YYY element
the class has the following attributes:
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
type
BCP 47 subtag values marked as type language, e.g. 'en'
(English) or 'gmh'
(Middle High German)
XXX child of YYY element
the class has the following attributes:
codePatterns
an instance of Codepatterns
keys
an instance of Keys
languages
an instance of Languages
localeDisplayPattern
an instance of Localedisplaypattern
measurementSystemNames
an instance of Measurementsystemnames
scripts
an instance of Scripts
special
a list of Special
territories
an instance of Territories
transformNames
an instance of Transformnames
types
an instance of Types
variants
an instance of Variants
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
XXX child of YYY element
the class has the following attributes:
localeKeyTypePattern
a list of Localekeytypepattern
localePattern
a list of Localepattern
localeSeparator
a list of Localeseparator
special
a list of Special
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
reference
string
XXX child of YYY element
the class has the following attributes:
currencies
an instance of Currencies
currencyFormats
dictionary of Currencyformats
, keyed by numberSystem=
decimalFormats
dictionary of Decimalformats
, keyed by numberSystem=
defaultNumberingSystem
a list of Defaultnumberingsystem
otherNumberingSystems
a list of Othernumberingsystems
percentFormats
dictionary of Percentformats
, keyed by numberSystem=
scientificFormats
dictionary of Scientificformats
, keyed by numberSystem=
special
a list of Special
symbols
dictionary of Symbols
, keyed by numberSystem=
XXX child of YYY element
XXX child of YYY element
XXX child of YYY element
the class has the following attributes:
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
type
BCP 47 subtag values marked as type script, e.g. Arab (Arabic) or Cyrl (Cyrillic)
XXX child of YYY element
XXX child of YYY element
the class has the following attributes:
currencyDecimal
an instance of Currencydecimal
currencyGroup
an instance of Currencygroup
decimal
an instance of Decimal
exponential
an instance of Exponential
group
an instance of Group
infinity
an instance of Infinity
list
an instance of List
minusSign
an instance of Minussign
nan
an instance of Nan
nativeZeroDigit
an instance of Nativezerodigit
patternDigit
an instance of Patterndigit
perMille
an instance of Permille
percentSign
an instance of Percentsign
plusSign
an instance of Plussign
special
a list of Special
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
numberSystem
string
references
string
standard
string
validSubLocales
string
XXX child of YYY element
the class has the following attributes:
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
type
a BCP 47 subtag value of type region, e.g. GB or DE
XXX child of YYY element
the class has the following attributes:
alt
string
draft
One of the values 'approved'
, 'contributed'
, 'provisional'
, 'unconfirmed'
.
references
string
type
a BCP 47 subtag of type variant, e.g. '1901'
(Traditional German Orthography)
XXX child of YYY element
the class has the following attributes:
cldrVersion
string
number
e.g. '$Revision: 7847 $'