1Locale::Codes::LangFam(U3s)er Contributed Perl DocumentatLioocnale::Codes::LangFam(3)
2
3
4
6 Locale::Codes::LangFam - standard codes for language extension
7 identification
8
10 use Locale::Codes::LangFam;
11
12 $lext = code2langfam('apa'); # $lext gets 'Apache languages'
13 $code = langfam2code('Apache languages'); # $code gets 'apa'
14
15 @codes = all_langfam_codes();
16 @names = all_langfam_names();
17
19 The "Locale::Codes::LangFam" module provides access to standard codes
20 used for identifying language families, such as those as defined in ISO
21 639-5.
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 639-5
25 language family codes will be used.
26
28 There are several different code sets you can use for identifying
29 language families. A code set may be specified using either a name, or
30 a constant that is automatically exported by this module.
31
32 For example, the two are equivalent:
33
34 $lext = code2langfam('apa','alpha');
35 $lext = code2langfam('apa',LOCALE_LANGFAM_ALPHA);
36
37 The codesets currently supported are:
38
39 alpha
40 This is the set of three-letter (lowercase) codes from ISO 639-5
41 such as 'apa' for Apache languages.
42
43 This is the default code set.
44
46 code2langfam ( CODE [,CODESET] )
47 langfam2code ( NAME [,CODESET] )
48 langfam_code2code ( CODE ,CODESET ,CODESET2 )
49 all_langfam_codes ( [CODESET] )
50 all_langfam_names ( [CODESET] )
51 Locale::Codes::LangFam::rename_langfam ( CODE ,NEW_NAME [,CODESET] )
52 Locale::Codes::LangFam::add_langfam ( CODE ,NAME [,CODESET] )
53 Locale::Codes::LangFam::delete_langfam ( CODE [,CODESET] )
54 Locale::Codes::LangFam::add_langfam_alias ( NAME ,NEW_NAME )
55 Locale::Codes::LangFam::delete_langfam_alias ( NAME )
56 Locale::Codes::LangFam::rename_langfam_code ( CODE ,NEW_CODE
57 [,CODESET] )
58 Locale::Codes::LangFam::add_langfam_code_alias ( CODE ,NEW_CODE
59 [,CODESET] )
60 Locale::Codes::LangFam::delete_langfam_code_alias ( CODE [,CODESET] )
61 These routines are all documented in the Locale::Codes::API man
62 page.
63
65 Locale::Codes
66 The Locale-Codes distribution.
67
68 Locale::Codes::API
69 The list of functions supported by this module.
70
71 http://www.loc.gov/standards/iso639-5/id.php
72 ISO 639-5 .
73
75 See Locale::Codes for full author history.
76
77 Currently maintained by Sullivan Beck (sbeck@cpan.org).
78
80 Copyright (c) 2011-2013 Sullivan Beck
81
82 This module is free software; you can redistribute it and/or modify it
83 under the same terms as Perl itself.
84
85
86
87perl v5.16.3 2013-02-27 Locale::Codes::LangFam(3)