5 Locale::Script - standard codes for script identification
11 $script = code2script('phnx'); # 'Phoenician'
12 $code = script2code('Phoenician'); # 'Phnx'
13 $code = script2code('Phoenician',
14 LOCALE_CODE_NUMERIC); # 115
16 @codes = all_script_codes();
17 @scripts = all_script_names();
21 This module exists as both Locale::Codes::Script and Locale::Script (for
22 historical reasons). The Locale::Script module will continue to work.
24 The C<Locale::Script> module provides access to standards codes used
25 for identifying scripts, such as those defined in ISO 15924.
27 Most of the routines take an optional additional argument which
28 specifies the code set to use. If not specified, the default ISO
29 15924 four-letter codes will be used.
31 =head1 SUPPORTED CODE SETS
33 There are several different code sets you can use for identifying
34 scripts. The ones currently supported are:
40 This is a set of four-letter (capitalized) codes from ISO 15924
41 such as 'Phnx' for Phoenician. It also includes additions to this
42 set included in the IANA language registry.
44 This code set is identified with the symbol C<LOCALE_SCRIPT_ALPHA>.
46 The Zxxx, Zyyy, and Zzzz codes are not used.
48 This is the default code set.
52 This is a set of three-digit numeric codes from ISO 15924 such as 115
55 This code set is identified with the symbol C<LOCALE_SCRIPT_NUMERIC>.
63 =item B<code2script ( CODE [,CODESET] )>
65 =item B<script2code ( NAME [,CODESET] )>
67 =item B<script_code2code ( CODE ,CODESET ,CODESET2 )>
69 =item B<all_script_codes ( [CODESET] )>
71 =item B<all_script_names ( [CODESET] )>
73 =item B<Locale::Script::rename_script ( CODE ,NEW_NAME [,CODESET] )>
75 =item B<Locale::Script::add_script ( CODE ,NAME [,CODESET] )>
77 =item B<Locale::Script::delete_script ( CODE [,CODESET] )>
79 =item B<Locale::Script::add_script_alias ( NAME ,NEW_NAME )>
81 =item B<Locale::Script::delete_script_alias ( NAME )>
83 =item B<Locale::Script::rename_script_code ( CODE ,NEW_CODE [,CODESET] )>
85 =item B<Locale::Script::add_script_code_alias ( CODE ,NEW_CODE [,CODESET] )>
87 =item B<Locale::Script::delete_script_code_alias ( CODE [,CODESET] )>
89 These routines are all documented in the Locale::Codes::API man page.
97 =item B<Locale::Codes>
99 The Locale-Codes distribution.
101 =item B<Locale::Codes::API>
103 The list of functions supported by this module.
105 =item B<http://www.unicode.org/iso15924/>
107 Home page for ISO 15924.
109 =item B<http://www.iana.org/assignments/language-subtag-registry>
111 The IANA language subtag registry.
117 See Locale::Codes for full author history.
119 Currently maintained by Sullivan Beck (sbeck@cpan.org).
123 Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
124 Copyright (c) 2001-2010 Neil Bowers
125 Copyright (c) 2010-2011 Sullivan Beck
127 This module is free software; you can redistribute it and/or
128 modify it under the same terms as Perl itself.