File: ADDING_CODESET

package info (click to toggle)
liblocale-codes-perl 3.82-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,756 kB
  • sloc: perl: 137,696; sh: 22; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

To add a codeset:

1)  modify harvest data

    add data at the top

    modify do_TYPE function

    add functions named:
       _init_TYPE_SRC
       _read_TYPE_SRC

2)  modify data.TYPE.pl

    add a new section

    if there are non-ASCII names, add them to:
       $Data{TYPE}{SRC}{orig}{name}
    Otherwise you'll see warnings 'NON-ASCII'

    if there are new names in this list (except for the first codeset
    of a given TYPE), they must be explicitly allowed by adding them
    to:
       $Data{TYPE}{SRC}{new}
    or:
       $Data{TYPE}{SRC}{orig}{name}
    Otherwise you'll see warning 'new name not allowed'

3)  modify lib/Locale/Codes/Constants.pm

    Public Global Variables:
       @EXPORT

    Constants:
       use constant
       $ALL_CODESETS

4)  modify lib/Locale/Codes/TYPE.pod

       Supported code sets
       SEE ALSO (cite source)