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 The C<Locale::Script> module provides access to standards codes used
22 for identifying scripts, such as those defined in ISO 15924.
24 Most of the routines take an optional additional argument which
25 specifies the code set to use. If not specified, the default ISO
26 15924 four-letter codes will be used.
28 =head1 SUPPORTED CODE SETS
30 There are several different code sets you can use for identifying
31 scripts. The ones currently supported are:
37 This is a set of four-letter (capitalized) codes from ISO 15924
38 such as 'Phnx' for Phoenician.
40 This code set is identified with the symbol C<LOCALE_SCRIPT_ALPHA>.
42 The Zxxx, Zyyy, and Zzzz codes are not used.
44 This is the default code set.
48 This is a set of three-digit numeric codes from ISO 15924 such as 115
51 This code set is identified with the symbol C<LOCALE_SCRIPT_NUMERIC>.
59 =item B<code2script ( CODE [,CODESET] )>
61 =item B<script2code ( NAME [,CODESET] )>
63 =item B<script_code2code ( CODE ,CODESET ,CODESET2 )>
65 =item B<all_script_codes ( [CODESET] )>
67 =item B<all_script_names ( [CODESET] )>
69 =item B<Locale::Script::rename_script ( CODE ,NEW_NAME [,CODESET] )>
71 =item B<Locale::Script::add_script ( CODE ,NAME [,CODESET] )>
73 =item B<Locale::Script::delete_script ( CODE [,CODESET] )>
75 =item B<Locale::Script::add_script_alias ( NAME ,NEW_NAME )>
77 =item B<Locale::Script::delete_script_alias ( NAME )>
79 =item B<Locale::Script::rename_script_code ( CODE ,NEW_CODE [,CODESET] )>
81 =item B<Locale::Script::add_script_code_alias ( CODE ,NEW_CODE [,CODESET] )>
83 =item B<Locale::Script::delete_script_code_alias ( CODE [,CODESET] )>
85 These routines are all documented in the Locale::Codes man page.
93 =item B<Locale::Codes>
95 =item B<Locale::Constants>
97 =item B<http://www.unicode.org/iso15924/>
99 Home page for ISO 15924.
105 See Locale::Codes for full author history.
107 Currently maintained by Sullivan Beck (sbeck@cpan.org).
111 Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
112 Copyright (c) 2001-2010 Neil Bowers
113 Copyright (c) 2010-2010 Sullivan Beck
115 This module is free software; you can redistribute it and/or
116 modify it under the same terms as Perl itself.