1Locale::Codes::Script(3U)ser Contributed Perl DocumentatiLooncale::Codes::Script(3)
2
3
4

NAME

6       Locale::Codes::Script - standard codes for script identification
7

SYNOPSIS

9          use Locale::Codes::Script;
10
11          $script  = code2script('phnx');                     # 'Phoenician'
12          $code    = script2code('Phoenician');               # 'Phnx'
13          $code    = script2code('Phoenician',
14                                 LOCALE_CODE_NUMERIC);        # 115
15
16          @codes   = all_script_codes();
17          @scripts = all_script_names();
18

DESCRIPTION

20       The "Locale::Codes::Script" module provides access to standards codes
21       used for identifying scripts, such as those defined in ISO 15924.
22
23       Most of the routines take an optional additional argument which
24       specifies the code set to use. If not specified, the default ISO 15924
25       four-letter codes will be used.
26

SUPPORTED CODE SETS

28       There are several different code sets you can use for identifying
29       scripts. A code set may be specified using either a name, or a constant
30       that is automatically exported by this module.
31
32       For example, the two are equivalent:
33
34          $script = code2script('phnx','alpha');
35          $script = code2script('phnx',LOCALE_SCRIPT_ALPHA);
36
37       The codesets currently supported are:
38
39       alpha, LOCALE_SCRIPT_ALPHA
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.
43
44           The Zxxx, Zyyy, and Zzzz codes are not used.
45
46           This is the default code set.
47
48       num, LOCALE_SCRIPT_NUMERIC
49           This is a set of three-digit numeric codes from ISO 15924 such as
50           115 for Phoenician.
51

ROUTINES

53       code2script ( CODE [,CODESET] )
54       script2code ( NAME [,CODESET] )
55       script_code2code ( CODE ,CODESET ,CODESET2 )
56       all_script_codes ( [CODESET] )
57       all_script_names ( [CODESET] )
58       Locale::Codes::Script::rename_script  ( CODE ,NEW_NAME [,CODESET] )
59       Locale::Codes::Script::add_script  ( CODE ,NAME [,CODESET] )
60       Locale::Codes::Script::delete_script  ( CODE [,CODESET] )
61       Locale::Codes::Script::add_script_alias  ( NAME ,NEW_NAME )
62       Locale::Codes::Script::delete_script_alias  ( NAME )
63       Locale::Codes::Script::rename_script_code  ( CODE ,NEW_CODE [,CODESET]
64       )
65       Locale::Codes::Script::add_script_code_alias  ( CODE ,NEW_CODE
66       [,CODESET] )
67       Locale::Codes::Script::delete_script_code_alias  ( CODE [,CODESET] )
68           These routines are all documented in the Locale::Codes::API man
69           page.
70

SEE ALSO

72       Locale::Codes
73           The Locale-Codes distribution.
74
75       Locale::Codes::API
76           The list of functions supported by this module.
77
78       http://www.unicode.org/iso15924/
79           Home page for ISO 15924.
80
81       http://www.iana.org/assignments/language-subtag-registry
82           The IANA language subtag registry.
83

AUTHOR

85       See Locale::Codes for full author history.
86
87       Currently maintained by Sullivan Beck (sbeck@cpan.org).
88
90          Copyright (c) 1997-2001 Canon Research Centre Europe (CRE).
91          Copyright (c) 2001-2010 Neil Bowers
92          Copyright (c) 2010-2013 Sullivan Beck
93
94       This module is free software; you can redistribute it and/or modify it
95       under the same terms as Perl itself.
96
97
98
99perl v5.16.3                      2013-02-27          Locale::Codes::Script(3)
Impressum