Information technology — Specification methods for cultural conventions

ISO/TR 30112:2014 specifies description formats and functionality for the specification of cultural conventions, description formats for character sets, and description formats for binding character names to ISO/IEC 10646, plus a set of default values for some of these items. The specification is upward compatible with POSIX locale specifications - a locale conformant to POSIX specifications will also be conformant to specifications in this Technical Report, while the reverse condition will not hold. Some of the descriptions are intended to be coded in text files to be used via Application Programming Interfaces, that are expected to be developed for a number of systems which comply with ISO/IEC 9945. An alignment effort has been undertaken for this specification to be aligned with ISO/IEC 9945.

Technologies de l'information — Méthodes de spécification des conventions culturelles

General Information

Status
Withdrawn
Publication Date
05-Jun-2014
Withdrawal Date
05-Jun-2014
Current Stage
9599 - Withdrawal of International Standard
Completion Date
30-Apr-2021
Ref Project

Relations

Buy Standard

Technical report
ISO/IEC TR 30112:2014 - Information technology -- Specification methods for cultural conventions
English language
135 pages
sale 15% off
Preview
sale 15% off
Preview
Technical report
ISO/IEC TR 30112:2014 - Information technology -- Specification methods for cultural conventions
English language
135 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)

TECHNICAL ISO/IEC
REPORT TR
30112
First edition
2014-06-15
Corrected version
2014-08-01
Information technology —
Specification methods for cultural
conventions
Technologies de l’information — Méthodes de spécification des
conventions culturelles
Reference number
ISO/IEC TR 30112:2014(E)
©
ISO/IEC 2014

---------------------- Page: 1 ----------------------
ISO/IEC TR 30112:2014(E)

COPYRIGHT PROTECTED DOCUMENT
© ISO/IEC 2014
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form
or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior
written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of
the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii © ISO/IEC 2014 – All rights reserved

---------------------- Page: 2 ----------------------
ISO/IEC TR 30112:2014(E)

Contents Page
Foreword .iv
Introduction .v
1 Scope . 1
2 Normative references . 1
3 Terms and definitions, and notations . 1
3.1 Terms and definitions . 1
3.2 Notations . 3
4 FDCC-set . 6
4.1 FDCC-set description . 7
4.2 LC_IDENTIFICATION .10
4.3 LC_CTYPE .12
4.4 LC_COLLATE .40
4.5 LC_MONETARY .49
4.6 LC_NUMERIC .52
4.7 LC_TIME .53
4.8 LC_MESSAGES .59
4.9 LC_XLITERATE .59
4.10 LC_NAME .61
4.11 LC_ADDRESS .62
4.12 LC_TELEPHONE.64
4.13 LC_PAPER .65
4.14 LC_MEASUREMENT .66
4.15 LC_KEYBOARD .66
5 CHARMAP .66
5.1 Character Set Description Text .66
5.2 WIDTH section .70
6 REPERTOIREMAP .70
Annex A (informative) Differences from the ISO/IEC 9945 standard .104
Annex B (informative) Rationale .106
Annex C (informative) BNF Grammar .117
Annex D (informative) Relation to taxonomy .122
Annex E (informative) Implementation in glibc .125
Annex F (informative) Index.126
Bibliography .135
© ISO/IEC 2014 – All rights reserved iii

---------------------- Page: 3 ----------------------
ISO/IEC TR 30112:2014(E)

Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are
members of ISO or IEC participate in the development of International Standards through technical
committees established by the respective organization to deal with particular fields of technical
activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international
organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the
work. In the field of information technology, ISO and IEC have established a joint technical committee,
ISO/IEC JTC 1.
The procedures used to develop this document and those intended for its further maintenance are
described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for
the different types of document should be noted. This document was drafted in accordance with the
editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).
Attention is drawn to the possibility that some of the elements of this document may be the subject
of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
Details of any patent rights identified during the development of the document will be in the Introduction
and/or on the ISO list of patent declarations received (see www.iso.org/patents).
Any trade name used in this document is information given for the convenience of users and does not
constitute an endorsement.
For an explanation on the meaning of ISO specific terms and expressions related to conformity
assessment, as well as information about ISO’s adherence to the WTO principles in the Technical Barriers
to Trade (TBT) see the following URL: Foreword - Supplementary information
The committee responsible for this document is ISO/IEC JTC 1, Information technology, SC 35, User
interfaces.
This corrected version of ISO/IEC/TR 30112:2014 incorporates the following corrections: the cover
page, the header on page 1 and the reference number have been corrected to reflect that this document
is a Technical Report, and not an International Standard.
iv © ISO/IEC 2014 – All rights reserved

---------------------- Page: 4 ----------------------
ISO/IEC TR 30112:2014(E)

Introduction
This Technical Report defines general mechanisms to specify cultural conventions, and it defines formats
for a number of specific cultural conventions in the areas of character classification and conversion,
sorting, number formatting, monetary formatting, date formatting, message display, addressing of
persons, postal address formatting, and telephone number handling.
There are a number of benefits coming from this Technical Report:
Rigid specification: Using this Technical Report, a user can rigidly specify a number of the cultural
conventions that apply to the information technology environment of the user.
Cultural adaptability: If an application has been designed and built in a culturally neutral manner,
the application may use the specifications as data to its APIs, and thus the same application may
accommodate different users in a culturally acceptable way to each of the users, without change of the
binary application.
Productivity: This Technical Report specifies cultural conventions and how to specify data for them.
With that data an application developer is relieved from getting the different information to support all
the cultural environments for the expected customers of the product. The application developer is thus
ensured of culturally correct behaviour as specified by the customer, and possibly more markets may
be reached as customers may have the possibility to provide the data themselves for markets that were
not targeted.
Uniform behaviour: When a number of applications share one cultural specification, which may be
supplied from the user or provided by the application or operating system, their behaviour for cultural
adaptation becomes uniform.
The specification formats are independent of platforms and specific encoding, and targeted to be usable
from a wide range of programming languages.
A number of cultural conventions, such as spelling, hyphenation rules and terminology, are not specifiable
with this Technical Report, but the Technical Report provides mechanisms to define new categories and
also new keywords within existing categories. An internationalized application may take advantage
of information provided with the FDCC-set (such as the language) to provide further internationalized
services to the user.
This Technical Report defines a format compatible with the one used in the International string ordering
standard, ISO/IEC 14651. This Technical Report is upward compatible with parts of the ISO/IEC 9945
POSIX standard, especially those on POSIX locales and charmaps. The major extensions from that text
are listed in annex A. This Technical Report has enhanced functionality in a number of areas such as
ISO/IEC 10646 support, more classification of characters, transliteration, dual (multi) currency support,
enhanced date and time formatting, personal name writing, postal address formatting, telephone
number handling, keyboard handling, and management of categories. There is enhanced support for
character sets including ISO/IEC 2022 handling and an enhanced method to separate the specification
of cultural conventions from an actual encoding via a description of the character repertoire employed.
A standard set of values for all the categories has been defined covering the repertoire of ISO/IEC 10646.
© ISO/IEC 2014 – All rights reserved v

---------------------- Page: 5 ----------------------
TECHNICAL REPORT ISO/IEC TR 30112:2014(E)
Information technology — Specification methods for
cultural conventions
1 Scope
This Technical Report specifies description formats and functionality for the specification of cultural
conventions, description formats for character sets, and description formats for binding character
names to ISO/IEC 10646, plus a set of default values for some of these items.
The specification is upward compatible with POSIX locale specifications - a locale conformant to POSIX
specifications will also be conformant to specifications in this Technical Report, while the reverse
condition will not hold. Some of the descriptions are intended to be coded in text files to be used via
Application Programming Interfaces, that are expected to be developed for a number of systems which
comply with ISO/IEC 9945. An alignment effort has been undertaken for this specification to be aligned
with ISO/IEC 9945.
2 Normative references
The following referenced documents are indispensable for the application of this document. For dated
references, only the edition cited applies. For undated references, the latest edition of the referenced
document (including any amendments) applies.
This document contains no normative references.
3 Terms and definitions, and notations
3.1 Terms and definitions
For the purposes of this document, the following terms and definitions apply.
3.1.1 Bytes and characters
3.1.1.1
byte
individually addressable unit of data storage that is equal to or larger than an octet, used to store a
character or a portion of a character
Note 1 to entry: A byte is composed of a contiguous sequence of bits, the number of which is implementation
defined. The least significant bit is called the low-order bit; the most significant bit is called the high-order bit
3.1.1.2
character
member of a set of elements used for the organization, control or representation of data
3.1.1.3
coded character
sequence of one or more bytes representing a single character
3.1.1.4
text file
file that contains characters organized into one or more lines
© ISO/IEC 2014 – All rights reserved 1

---------------------- Page: 6 ----------------------
ISO/IEC TR 30112:2014(E)

3.1.2 Cultural and other major concepts
3.1.2.1
cultural convention
data item for information technology that may vary dependent on language, territory, or other cultural
habits
3.1.2.2
FDCC
Formal Definition of a Cultural Convention
cultural convention put into a formal definition scheme
3.1.2.3
FDCC-set
set of Formal Definitions of Cultural Conventions (FDCC’s)
definition of the subset of a user’s information technology environment that depends on language and
cultural conventions
Note 1 to entry: the FDCC-set is a superset of the “locale” term in C and POSIX.
3.1.2.4
charmap
definition of a mapping between symbolic character names and character codes, plus related information
3.1.2.5
repertoiremap
definition of a mapping between symbolic character names and characters for the repertoire of
characters used in a FDCC-set
Note 1 to entry: This is further described in clause 6.
3.1.3 FDCC categories related
3.1.3.1
character class:
named set of characters sharing an attribute associated with the name of the class
3.1.3.2
collation
logical ordering of strings according to defined precedence rules
3.1.3.3
collating element
smallest entity used to determine logical ordering
Note 1 to entry: See collating sequence. A collating element consists of either a single character, or two or more
characters collating as a single entity. The LC_COLLATE category in the associated FDCC-set determines the set
of collating elements.
3.1.3.4
multicharacter collating element
sequence of two or more characters that collate as an entity
Note 1 to entry: For example, in some languages two characters are sorted as one letter, as in the case for Danish
and Norwegian “aa”.
3.1.3.5
collating sequence
relative order of collating elements as determined by the setting of the LC_COLLATE category in the
applied FDCC-set
2 © ISO/IEC 2014 – All rights reserved

---------------------- Page: 7 ----------------------
ISO/IEC TR 30112:2014(E)

3.1.3.6
equivalence class
set of collating elements with the same primary collation weight
Note 1 to entry: Elements in an equivalence class are typically elements that naturally group together, such
as all accented letters based on the same letter. The collation order of elements within an equivalence class is
determined by the weights assigned on any subsequent levels after the primary weight.
3.2 Notations
The following notations and common conventions for specifications apply to this Technical Report:
3.2.1 Notation for defining syntax
In this Technical Report, the description of an individual record in a FDCC-set is done using the syntax
notation given in the following.
The syntax notation looks as follows:
“”,[,,.,]
The is given in a format string enclosed in double quotes, followed by a number of parameters,
separated by commas. It is similar to the format specification defined in the ISO/IEC 9945 standard and
the format specification used in C language printf() function. The format of each parameter is given by
an escape sequence as follows:
— %s specifies a string
— %d specifies a decimal integer
— %c specifies a character
— %o specifies an octal integer
— %x specifies a hexadecimal integer
A “ “ (an empty character position) in the syntax string represents one or more characters.
All other characters in the format string represent themselves, except:
— %% specifies a single %
— \n specifies an end-of-line
The notation “.” is used to specify that repetition of the previous specification is optional, and this is
done in both the format string and in the parameter list.
3.2.2 Portable character set
A set of symbolic names for characters in Table 1, which is called the portable character set, is used
in character description text of this specification. The first eight entries in Table 1 are defined in
ISO/IEC 6429 and the rest is defined in ISO/IEC 9945 with some definitions from ISO/IEC 10646.
Table 1 — Portable character set
Symbolic name Glyph UCS Description
NULL (NUL)
BELL (BEL)
BACKSPACE (BS)
© ISO/IEC 2014 – All rights reserved 3

---------------------- Page: 8 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
CHARACTER TABULATION (HT)
CARRIAGE RETURN (CR)
LINE FEED (LF)
LINE TABULATION (VT)
FORM FEED (FF)
SPACE
! EXCLAMATION MARK
“ QUOTATION MARK
# NUMBER SIGN
$ DOLLAR SIGN
% PERCENT SIGN
& AMPERSAND
‘ APOSTROPHE
( LEFT PARENTHESIS
) RIGHT PARENTHESIS
* ASTERISK
+ PLUS SIGN
, COMMA
- HYPHEN-MINUS
- HYPHEN-MINUS
. FULL STOP
. FULL STOP
/ SOLIDUS
/ SOLIDUS
0 DIGIT ZERO
1 DIGIT ONE
2 DIGIT TWO
3 DIGIT THREE
4 DIGIT FOUR
5 DIGIT FIVE
6 DIGIT SIX
7 DIGIT SEVEN
8 DIGIT EIGHT
9 DIGIT NINE
: COLON
; SEMICOLON
< LESS-THAN SIGN
= EQUALS SIGN
> GREATER-THAN SIGN
? QUESTION MARK
@ COMMERCIAL AT
4 © ISO/IEC 2014 – All rights reserved

---------------------- Page: 9 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
A LATIN CAPITAL LETTER A
B LATIN CAPITAL LETTER B
C LATIN CAPITAL LETTER C
D LATIN CAPITAL LETTER D
E LATIN CAPITAL LETTER E
F LATIN CAPITAL LETTER F
G LATIN CAPITAL LETTER G
H LATIN CAPITAL LETTER H
I LATIN CAPITAL LETTER I
J LATIN CAPITAL LETTER J
K LATIN CAPITAL LETTER K
L LATIN CAPITAL LETTER L
M LATIN CAPITAL LETTER M
N LATIN CAPITAL LETTER N
O LATIN CAPITAL LETTER O

p LATIN SMALL LETTER P
q LATIN SMALL LETTER Q
r LATIN SMALL LETTER R
s LATIN SMALL LETTER S
t LATIN SMALL LETTER T
u LATIN SMALL LETTER U
v LATIN SMALL LETTER V
w LATIN SMALL LETTER W
x LATIN SMALL LETTER X
y LATIN SMALL LETTER Y
z LATIN SMALL LETTER Z
{ LEFT CURLY BRACKET
{ LEFT CURLY BRACKET
| VERTICAL LINE
} RIGHT CURLY BRACKET
} RIGHT CURLY BRACKET
~ TILDE
This Technical Report may use other symbolic character names than the above in examples, to illustrate
the use of the range of symbols allowed by the syntax specified in 4.1.1.
4 FDCC-set
A FDCC-set is the definition of the subset of a user’s information technology environment that depends
on language and cultural conventions. A FDCC-set is made up from one or more categories. Each category
is identified by its name and controls specific aspects of the behaviour of components of the system. The
functionality is implied by the description of the categories. This Technical Report defines the following
categories:
— LC_IDENTIFICATION Versions and status of categories
— LC_CTYPE Character classification, case conversion and code transformation.
— LC_COLLATE Collation order.
— LC_TIME Date and time formats.
— LC_NUMERIC Numeric, non-monetary formatting.
6 © ISO/IEC 2014 – All rights reserved

---------------------- Page: 11 ----------------------
ISO/IEC TR 30112:2014(E)

— LC_MONETARY Monetary formatting.
— LC_MESSAGES Formats of informative and diagnostic messages and interactive responses.
— LC_XLITERATE Character transliteration.
— LC_NAME Format of writing personal names.
— LC_ADDRESS Format of postal addresses.
— LC_TELEPHONE Format for telephone numbers, and other telephone information.
— LC_PAPER Paper format
— LC_MEASUREMENT Information on measurement system
— LC_KEYBOARD Format for identifying keyboards.
NOTE In future editions of this Technical Report further categories may be added.
Other category names beginning with the 3 characters “LC_” are reserved for future standardization,
except for category names beginning with the five characters “LC_X_” which is not used for future
addition of categories specified in this Technical Report. An application may thus use category names
beginning with the five characters “LC_X_” for application defined categories to avoid clashes with
future standardized categories.
This Technical Report also defines an FDCC-set named “i18n” with values for some of the above categories
in order to simplify FDCC-set descriptions for a number of cultures. The contents of “i18n” categories
should not necessarily be considered as the most commonly accepted values, while in many cases it
could be the recommended values. The complete “i18n” FDCC-set is defined as the sum of the “i18n”
categories specified in the clauses below. The ”i18n” FDCC-set and its parts are released under the GNU
Public License, version 2, as it is taken from glibc sources.
4.1 FDCC-set description
FDCC-sets are described with the syntax presented in this subclause. For the purposes of this Technical
Report, the text is referred to as the FDCC-set definition text or FDCC-set source text.
The FDCC-set definition text contains one or more FDCC-set category source definitions, and does not
contain more than one definition for the same FDCC-set category. If the text contains source definitions
for more than one category, application-defined categories, if present, appears after the categories
defined by this clause. A category source definition contains either the definition of a category or a copy
directive. In the event that some of the information for a FDCC-set category, as specified in this Technical
Report, is missing from the FDCC-set source definition, the behaviour of that category, if it is referenced,
is unspecified. A FDCC-set category is the normal way of specifying a single FDCC.
There are no naming conventions for FDCC-sets specified in this Technical Report, but clause 6.8 in
ISO/IEC 15897:1999 specifies naming rules for POSIX locales, charmaps and repertoiremaps, that may
also be applied to FDCC-sets, charmaps and repertoiremaps specified according to this Technical Report.
A category source definition consists of a category header, a category body, and a category trailer. A
category header consists of the character string naming of the category, beginning with the characters
“LC_”. The category trailer consists of the string “END”, followed by one or more “blank”s and the string
used in the corresponding category header.
The category body consists of one or more lines of text. Each line is one of the following:
— a line containing an identifier, optionally followed by one or more operands. Identifiers are either
keywords, identifying a particular FDCC, or collating elements, or section symbols,
— one of transliteration statements defined in 4.3.
© ISO/IEC 2014 – All rights reserved 7

---------------------- Page: 12 ----------------------
ISO/IEC TR 30112:2014(E)

In addition to the keywords defined in this Technical Report, the source can contain application-
defined keywords. Each keyword within a category has a unique name (i.e., two categories can have
a commonly-named keyword); no keyword starts with the characters “LC_”. Identifiers are separated
from the operands by one or more “blank”s.
Operands are characters, collating elements, section symbols, or strings of characters. Strings are
enclosed in double-quotes. Literal double-quotes within strings are preceded by the ,
described below. When a keyword is followe
...

P LATIN CAPITAL LETTER P
Q LATIN CAPITAL LETTER Q
R LATIN CAPITAL LETTER R
S LATIN CAPITAL LETTER S
T LATIN CAPITAL LETTER T
U LATIN CAPITAL LETTER U
V LATIN CAPITAL LETTER V
W LATIN CAPITAL LETTER W
X LATIN CAPITAL LETTER X
Y LATIN CAPITAL LETTER Y
Z LATIN CAPITAL LETTER Z
[ LEFT SQUARE BRACKET
\ REVERSE SOLIDUS
\ REVERSE SOLIDUS
] RIGHT SQUARE BRACKET
^ CIRCUMFLEX ACCENT
^ CIRCUMFLEX ACCENT
_ LOW LINE
_ LOW LINE
` GRAVE ACCENT
a LATIN SMALL LETTER A
b LATIN SMALL LETTER B
c LATIN SMALL LETTER C
d LATIN SMALL LETTER D
e LATIN SMALL LETTER E
f LATIN SMALL LETTER F
© ISO/IEC 2014 – All rights reserved 5

---------------------- Page: 10 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
g LATIN SMALL LETTER G
h LATIN SMALL LETTER H
I LATIN SMALL LETTER I
j LATIN SMALL LETTER J
k LATIN SMALL LETTER K
l LATIN SMALL LETTER L
m LATIN SMALL LETTER M
n LATIN SMALL LETTER N
o LATIN SMALL LETTER O

TECHNICAL ISO/IEC
REPORT TR
30112
First edition
Information technology —
Specification methods for cultural
conventions
Technologies de l’information — Méthodes de spécification des
conventions culturelles
PROOF/ÉPREUVE
Reference number
ISO/IEC TR 30112:2014(E)
©
ISO/IEC 2014

---------------------- Page: 1 ----------------------
ISO/IEC TR 30112:2014(E)

COPYRIGHT PROTECTED DOCUMENT
© ISO/IEC 2014
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form
or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior
written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of
the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii PROOF/ÉPREUVE © ISO/IEC 2014 – All rights reserved

---------------------- Page: 2 ----------------------
ISO/IEC TR 30112:2014(E)

Contents Page
Foreword .iv
Introduction .v
1 Scope . 1
2 Normative references . 1
3 Terms and definitions, and notations . 1
3.1 Terms and definitions . 1
3.2 Notations . 3
4 FDCC-set . 6
4.1 FDCC-set description . 7
4.2 LC_IDENTIFICATION .10
4.3 LC_CTYPE .12
4.4 LC_COLLATE .40
4.5 LC_MONETARY .49
4.6 LC_NUMERIC .52
4.7 LC_TIME .53
4.8 LC_MESSAGES .59
4.9 LC_XLITERATE .59
4.10 LC_NAME .61
4.11 LC_ADDRESS .62
4.12 LC_TELEPHONE.64
4.13 LC_PAPER .65
4.14 LC_MEASUREMENT .66
4.15 LC_KEYBOARD .66
5 CHARMAP .66
5.1 Character Set Description Text .66
5.2 WIDTH section .70
6 REPERTOIREMAP .70
Annex A (informative) Differences from the ISO/IEC 9945 standard .104
Annex B (informative) Rationale .106
Annex C (informative) BNF Grammar .117
Annex D (informative) Relation to taxonomy .122
Annex E (informative) Implementation in glibc .125
Annex F (informative) Index.126
Bibliography .135
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE iii

---------------------- Page: 3 ----------------------
ISO/IEC TR 30112:2014(E)

Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are
members of ISO or IEC participate in the development of International Standards through technical
committees established by the respective organization to deal with particular fields of technical
activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international
organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the
work. In the field of information technology, ISO and IEC have established a joint technical committee,
ISO/IEC JTC 1.
The procedures used to develop this document and those intended for its further maintenance are
described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for
the different types of document should be noted. This document was drafted in accordance with the
editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).
Attention is drawn to the possibility that some of the elements of this document may be the subject
of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
Details of any patent rights identified during the development of the document will be in the Introduction
and/or on the ISO list of patent declarations received (see www.iso.org/patents).
Any trade name used in this document is information given for the convenience of users and does not
constitute an endorsement.
For an explanation on the meaning of ISO specific terms and expressions related to conformity
assessment, as well as information about ISO’s adherence to the WTO principles in the Technical Barriers
to Trade (TBT) see the following URL: Foreword - Supplementary information
The committee responsible for this document is ISO/IEC JTC 1, Information technology, SC 35, User
interfaces.
iv PROOF/ÉPREUVE © ISO/IEC 2014 – All rights reserved

---------------------- Page: 4 ----------------------
ISO/IEC TR 30112:2014(E)

Introduction
This Technical Report defines general mechanisms to specify cultural conventions, and it defines formats
for a number of specific cultural conventions in the areas of character classification and conversion,
sorting, number formatting, monetary formatting, date formatting, message display, addressing of
persons, postal address formatting, and telephone number handling.
There are a number of benefits coming from this Technical Report:
Rigid specification: Using this Technical Report, a user can rigidly specify a number of the cultural
conventions that apply to the information technology environment of the user.
Cultural adaptability: If an application has been designed and built in a culturally neutral manner,
the application may use the specifications as data to its APIs, and thus the same application may
accommodate different users in a culturally acceptable way to each of the users, without change of the
binary application.
Productivity: This Technical Report specifies cultural conventions and how to specify data for them.
With that data an application developer is relieved from getting the different information to support all
the cultural environments for the expected customers of the product. The application developer is thus
ensured of culturally correct behaviour as specified by the customer, and possibly more markets may
be reached as customers may have the possibility to provide the data themselves for markets that were
not targeted.
Uniform behaviour: When a number of applications share one cultural specification, which may be
supplied from the user or provided by the application or operating system, their behaviour for cultural
adaptation becomes uniform.
The specification formats are independent of platforms and specific encoding, and targeted to be usable
from a wide range of programming languages.
A number of cultural conventions, such as spelling, hyphenation rules and terminology, are not specifiable
with this Technical Report, but the Technical Report provides mechanisms to define new categories and
also new keywords within existing categories. An internationalized application may take advantage
of information provided with the FDCC-set (such as the language) to provide further internationalized
services to the user.
This Technical Report defines a format compatible with the one used in the International string ordering
standard, ISO/IEC 14651. This Technical Report is upward compatible with parts of the ISO/IEC 9945
POSIX standard, especially those on POSIX locales and charmaps. The major extensions from that text
are listed in annex A. This Technical Report has enhanced functionality in a number of areas such as
ISO/IEC 10646 support, more classification of characters, transliteration, dual (multi) currency support,
enhanced date and time formatting, personal name writing, postal address formatting, telephone
number handling, keyboard handling, and management of categories. There is enhanced support for
character sets including ISO/IEC 2022 handling and an enhanced method to separate the specification
of cultural conventions from an actual encoding via a description of the character repertoire employed.
A standard set of values for all the categories has been defined covering the repertoire of ISO/IEC 10646.
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE v

---------------------- Page: 5 ----------------------
TECHNICAL REPORT ISO/IEC TR 30112:2014(E)
Information technology — Specification methods for
cultural conventions
1 Scope
This Technical Report specifies description formats and functionality for the specification of cultural
conventions, description formats for character sets, and description formats for binding character
names to ISO/IEC 10646, plus a set of default values for some of these items.
The specification is upward compatible with POSIX locale specifications - a locale conformant to POSIX
specifications will also be conformant to specifications in this Technical Report, while the reverse
condition will not hold. Some of the descriptions are intended to be coded in text files to be used via
Application Programming Interfaces, that are expected to be developed for a number of systems which
comply with ISO/IEC 9945. An alignment effort has been undertaken for this specification to be aligned
with ISO/IEC 9945.
2 Normative references
The following referenced documents are indispensable for the application of this document. For dated
references, only the edition cited applies. For undated references, the latest edition of the referenced
document (including any amendments) applies.
This document contains no normative references.
3 Terms and definitions, and notations
3.1 Terms and definitions
For the purposes of this document, the following terms and definitions apply.
3.1.1 Bytes and characters
3.1.1.1
byte
individually addressable unit of data storage that is equal to or larger than an octet, used to store a
character or a portion of a character
Note 1 to entry: A byte is composed of a contiguous sequence of bits, the number of which is implementation
defined. The least significant bit is called the low-order bit; the most significant bit is called the high-order bit
3.1.1.2
character
member of a set of elements used for the organization, control or representation of data
3.1.1.3
coded character
sequence of one or more bytes representing a single character
3.1.1.4
text file
file that contains characters organized into one or more lines
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE 1

---------------------- Page: 6 ----------------------
ISO/IEC TR 30112:2014(E)

3.1.2 Cultural and other major concepts
3.1.2.1
cultural convention
data item for information technology that may vary dependent on language, territory, or other cultural
habits
3.1.2.2
FDCC
Formal Definition of a Cultural Convention
cultural convention put into a formal definition scheme
3.1.2.3
FDCC-set
set of Formal Definitions of Cultural Conventions (FDCC’s)
definition of the subset of a user’s information technology environment that depends on language and
cultural conventions
Note 1 to entry: the FDCC-set is a superset of the “locale” term in C and POSIX.
3.1.2.4
charmap
definition of a mapping between symbolic character names and character codes, plus related information
3.1.2.5
repertoiremap
definition of a mapping between symbolic character names and characters for the repertoire of
characters used in a FDCC-set
Note 1 to entry: This is further described in clause 6.
3.1.3 FDCC categories related
3.1.3.1
character class:
named set of characters sharing an attribute associated with the name of the class
3.1.3.2
collation
logical ordering of strings according to defined precedence rules
3.1.3.3
collating element
smallest entity used to determine logical ordering
Note 1 to entry: See collating sequence. A collating element consists of either a single character, or two or more
characters collating as a single entity. The LC_COLLATE category in the associated FDCC-set determines the set
of collating elements.
3.1.3.4
multicharacter collating element
sequence of two or more characters that collate as an entity
Note 1 to entry: For example, in some languages two characters are sorted as one letter, as in the case for Danish
and Norwegian “aa”.
3.1.3.5
collating sequence
relative order of collating elements as determined by the setting of the LC_COLLATE category in the
applied FDCC-set
2 PROOF/ÉPREUVE © ISO/IEC 2014 – All rights reserved

---------------------- Page: 7 ----------------------
ISO/IEC TR 30112:2014(E)

3.1.3.6
equivalence class
set of collating elements with the same primary collation weight
Note 1 to entry: Elements in an equivalence class are typically elements that naturally group together, such
as all accented letters based on the same letter. The collation order of elements within an equivalence class is
determined by the weights assigned on any subsequent levels after the primary weight.
3.2 Notations
The following notations and common conventions for specifications apply to this Technical Report:
3.2.1 Notation for defining syntax
In this Technical Report, the description of an individual record in a FDCC-set is done using the syntax
notation given in the following.
The syntax notation looks as follows:
“”,[,,.,]
The is given in a format string enclosed in double quotes, followed by a number of parameters,
separated by commas. It is similar to the format specification defined in the ISO/IEC 9945 standard and
the format specification used in C language printf() function. The format of each parameter is given by
an escape sequence as follows:
— %s specifies a string
— %d specifies a decimal integer
— %c specifies a character
— %o specifies an octal integer
— %x specifies a hexadecimal integer
A “ “ (an empty character position) in the syntax string represents one or more characters.
All other characters in the format string represent themselves, except:
— %% specifies a single %
— \n specifies an end-of-line
The notation “.” is used to specify that repetition of the previous specification is optional, and this is
done in both the format string and in the parameter list.
3.2.2 Portable character set
A set of symbolic names for characters in Table 1, which is called the portable character set, is used
in character description text of this specification. The first eight entries in Table 1 are defined in
ISO/IEC 6429 and the rest is defined in ISO/IEC 9945 with some definitions from ISO/IEC 10646.
Table 1 — Portable character set
Symbolic name Glyph UCS Description
NULL (NUL)
BELL (BEL)
BACKSPACE (BS)
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE 3

---------------------- Page: 8 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
CHARACTER TABULATION (HT)
CARRIAGE RETURN (CR)
LINE FEED (LF)
LINE TABULATION (VT)
FORM FEED (FF)
SPACE
! EXCLAMATION MARK
“ QUOTATION MARK
# NUMBER SIGN
$ DOLLAR SIGN
% PERCENT SIGN
& AMPERSAND
‘ APOSTROPHE
( LEFT PARENTHESIS
) RIGHT PARENTHESIS
* ASTERISK
+ PLUS SIGN
, COMMA
- HYPHEN-MINUS
- HYPHEN-MINUS
. FULL STOP
. FULL STOP
/ SOLIDUS
/ SOLIDUS
0 DIGIT ZERO
1 DIGIT ONE
2 DIGIT TWO
3 DIGIT THREE
4 DIGIT FOUR
5 DIGIT FIVE
6 DIGIT SIX
7 DIGIT SEVEN
8 DIGIT EIGHT
9 DIGIT NINE
: COLON
; SEMICOLON
< LESS-THAN SIGN
= EQUALS SIGN
> GREATER-THAN SIGN
? QUESTION MARK
@ COMMERCIAL AT
4 PROOF/ÉPREUVE © ISO/IEC 2014 – All rights reserved

---------------------- Page: 9 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
A LATIN CAPITAL LETTER A
B LATIN CAPITAL LETTER B
C LATIN CAPITAL LETTER C
D LATIN CAPITAL LETTER D
E LATIN CAPITAL LETTER E
F LATIN CAPITAL LETTER F
G LATIN CAPITAL LETTER G
H LATIN CAPITAL LETTER H
I LATIN CAPITAL LETTER I
J LATIN CAPITAL LETTER J
K LATIN CAPITAL LETTER K
L LATIN CAPITAL LETTER L
M LATIN CAPITAL LETTER M
N LATIN CAPITAL LETTER N
O LATIN CAPITAL LETTER O

p LATIN SMALL LETTER P
q LATIN SMALL LETTER Q
r LATIN SMALL LETTER R
s LATIN SMALL LETTER S
t LATIN SMALL LETTER T
u LATIN SMALL LETTER U
v LATIN SMALL LETTER V
w LATIN SMALL LETTER W
x LATIN SMALL LETTER X
y LATIN SMALL LETTER Y
z LATIN SMALL LETTER Z
{ LEFT CURLY BRACKET
{ LEFT CURLY BRACKET
| VERTICAL LINE
} RIGHT CURLY BRACKET
} RIGHT CURLY BRACKET
~ TILDE
This Technical Report may use other symbolic character names than the above in examples, to illustrate
the use of the range of symbols allowed by the syntax specified in 4.1.1.
4 FDCC-set
A FDCC-set is the definition of the subset of a user’s information technology environment that depends
on language and cultural conventions. A FDCC-set is made up from one or more categories. Each category
is identified by its name and controls specific aspects of the behaviour of components of the system. The
functionality is implied by the description of the categories. This Technical Report defines the following
categories:
— LC_IDENTIFICATION Versions and status of categories
— LC_CTYPE Character classification, case conversion and code transformation.
— LC_COLLATE Collation order.
— LC_TIME Date and time formats.
— LC_NUMERIC Numeric, non-monetary formatting.
6 PROOF/ÉPREUVE © ISO/IEC 2014 – All rights reserved

---------------------- Page: 11 ----------------------
ISO/IEC TR 30112:2014(E)

— LC_MONETARY Monetary formatting.
— LC_MESSAGES Formats of informative and diagnostic messages and interactive responses.
— LC_XLITERATE Character transliteration.
— LC_NAME Format of writing personal names.
— LC_ADDRESS Format of postal addresses.
— LC_TELEPHONE Format for telephone numbers, and other telephone information.
— LC_PAPER Paper format
— LC_MEASUREMENT Information on measurement system
— LC_KEYBOARD Format for identifying keyboards.
NOTE In future editions of this Technical Report further categories may be added.
Other category names beginning with the 3 characters “LC_” are reserved for future standardization,
except for category names beginning with the five characters “LC_X_” which is not used for future
addition of categories specified in this Technical Report. An application may thus use category names
beginning with the five characters “LC_X_” for application defined categories to avoid clashes with
future standardized categories.
This Technical Report also defines an FDCC-set named “i18n” with values for some of the above categories
in order to simplify FDCC-set descriptions for a number of cultures. The contents of “i18n” categories
should not necessarily be considered as the most commonly accepted values, while in many cases it
could be the recommended values. The complete “i18n” FDCC-set is defined as the sum of the “i18n”
categories specified in the clauses below. The ”i18n” FDCC-set and its parts are released under the GNU
Public License, version 2, as it is taken from glibc sources.
4.1 FDCC-set description
FDCC-sets are described with the syntax presented in this subclause. For the purposes of this Technical
Report, the text is referred to as the FDCC-set definition text or FDCC-set source text.
The FDCC-set definition text contains one or more FDCC-set category source definitions, and does not
contain more than one definition for the same FDCC-set category. If the text contains source definitions
for more than one category, application-defined categories, if present, appears after the categories
defined by this clause. A category source definition contains either the definition of a category or a copy
directive. In the event that some of the information for a FDCC-set category, as specified in this Technical
Report, is missing from the FDCC-set source definition, the behaviour of that category, if it is referenced,
is unspecified. A FDCC-set category is the normal way of specifying a single FDCC.
There are no naming conventions for FDCC-sets specified in this Technical Report, but clause 6.8 in
ISO/IEC 15897:1999 specifies naming rules for POSIX locales, charmaps and repertoiremaps, that may
also be applied to FDCC-sets, charmaps and repertoiremaps specified according to this Technical Report.
A category source definition consists of a category header, a category body, and a category trailer. A
category header consists of the character string naming of the category, beginning with the characters
“LC_”. The category trailer consists of the string “END”, followed by one or more “blank”s and the string
used in the corresponding category header.
The category body consists of one or more lines of text. Each line is one of the following:
— a line containing an identifier, optionally followed by one or more operands. Identifiers are either
keywords, identifying a particular FDCC, or collating elements, or section symbols,
— one of transliteration statements defined in 4.3.
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE 7

---------------------- Page: 12 ----------------------
ISO/IEC TR 30112:2014(E)

In addition to the keywords defined in this Technical Report, the source can contain application-
defined keywords. Each keyword within a category has a unique name (i.e., two categories can have
a commonly-named keyword); no keyword starts with the characters “LC_”. Identifiers are separated
from the operands by one or more “blank”s.
Operands are characters, collating elements, section symbols, or strings of characters. Strings are
enclosed in double-quotes. Literal double-quotes within strings are preceded by the ,
described below. When a keyword is followed by more than one operand, the operands are separated by
semicolons; “blank”s are allowed before and/or after a semicolon.
4.1.1 Character re
...

P LATIN CAPITAL LETTER P
Q LATIN CAPITAL LETTER Q
R LATIN CAPITAL LETTER R
S LATIN CAPITAL LETTER S
T LATIN CAPITAL LETTER T
U LATIN CAPITAL LETTER U
V LATIN CAPITAL LETTER V
W LATIN CAPITAL LETTER W
X LATIN CAPITAL LETTER X
Y LATIN CAPITAL LETTER Y
Z LATIN CAPITAL LETTER Z
[ LEFT SQUARE BRACKET
\ REVERSE SOLIDUS
\ REVERSE SOLIDUS
] RIGHT SQUARE BRACKET
^ CIRCUMFLEX ACCENT
^ CIRCUMFLEX ACCENT
_ LOW LINE
_ LOW LINE
` GRAVE ACCENT
a LATIN SMALL LETTER A
b LATIN SMALL LETTER B
c LATIN SMALL LETTER C
d LATIN SMALL LETTER D
e LATIN SMALL LETTER E
f LATIN SMALL LETTER F
© ISO/IEC 2014 – All rights reserved PROOF/ÉPREUVE 5

---------------------- Page: 10 ----------------------
ISO/IEC TR 30112:2014(E)

Table 1 (continued)
Symbolic name Glyph UCS Description
g LATIN SMALL LETTER G
h LATIN SMALL LETTER H
I LATIN SMALL LETTER I
j LATIN SMALL LETTER J
k LATIN SMALL LETTER K
l LATIN SMALL LETTER L
m LATIN SMALL LETTER M
n LATIN SMALL LETTER N
o LATIN SMALL LETTER O

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.