Blame internal/ADDING_CODESET

Packit f3e6b9
Packit f3e6b9
To add a codeset:
Packit f3e6b9
Packit f3e6b9
1)  modify harvest data
Packit f3e6b9
Packit f3e6b9
    add data at the top
Packit f3e6b9
Packit f3e6b9
    modify do_TYPE function
Packit f3e6b9
Packit f3e6b9
    add functions named:
Packit f3e6b9
       _init_TYPE_SRC
Packit f3e6b9
       _read_TYPE_SRC
Packit f3e6b9
Packit f3e6b9
2)  modify data.TYPE.pl
Packit f3e6b9
Packit f3e6b9
    add a new section
Packit f3e6b9
Packit f3e6b9
    if there are non-ASCII names, add them to:
Packit f3e6b9
       $Data{TYPE}{SRC}{orig}{name}
Packit f3e6b9
    Otherwise you'll see warnings 'NON-ASCII'
Packit f3e6b9
Packit f3e6b9
    if there are new names in this list (except for the first codeset
Packit f3e6b9
    of a given TYPE), they must be explicitly allowed by adding them
Packit f3e6b9
    to:
Packit f3e6b9
       $Data{TYPE}{SRC}{new}
Packit f3e6b9
    or:
Packit f3e6b9
       $Data{TYPE}{SRC}{orig}{name}
Packit f3e6b9
    Otherwise you'll see warning 'new name not allowed'
Packit f3e6b9
Packit f3e6b9
3)  modify lib/Locale/Codes/Constants.pm
Packit f3e6b9
Packit f3e6b9
    Public Global Variables:
Packit f3e6b9
       @EXPORT
Packit f3e6b9
Packit f3e6b9
    Constants:
Packit f3e6b9
       use constant
Packit f3e6b9
       $ALL_CODESETS
Packit f3e6b9
Packit f3e6b9
4)  modify lib/Locale/Codes/TYPE.pod
Packit f3e6b9
Packit f3e6b9
       Supported code sets
Packit f3e6b9
       SEE ALSO (cite source)
Packit f3e6b9