1Locale::Script(3)     User Contributed Perl Documentation    Locale::Script(3)
2
3
4

NAME

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

SYNOPSIS

9          use Locale::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::Script" module provides access to standards codes used for
21       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::Script::rename_script  ( CODE ,NEW_NAME [,CODESET] )
59       Locale::Script::add_script  ( CODE ,NAME [,CODESET] )
60       Locale::Script::delete_script  ( CODE [,CODESET] )
61       Locale::Script::add_script_alias  ( NAME ,NEW_NAME )
62       Locale::Script::delete_script_alias  ( NAME )
63       Locale::Script::rename_script_code  ( CODE ,NEW_CODE [,CODESET] )
64       Locale::Script::add_script_code_alias  ( CODE ,NEW_CODE [,CODESET] )
65       Locale::Script::delete_script_code_alias  ( CODE [,CODESET] )
66           These routines are all documented in the Locale::Codes::API man
67           page.
68

SEE ALSO

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

AUTHOR

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