From f1f5e5024ae310ddb4962a8e205396e0211e57e6 Mon Sep 17 00:00:00 2001 From: dillon Date: Mon, 14 Dec 1998 02:59:15 +0000 Subject: [PATCH] Added support for DIS 8859-15 based locales using patch from Kaleb. Obtained from: Kaleb Keithley --- share/mklocale/Makefile | 7 ++- share/mklocale/la_LN.DIS_8859-15.src | 47 +++++++++++++++++++++ share/mklocale/la_LN.ISO8859-15.src | 47 +++++++++++++++++++++ share/mklocale/la_LN.ISO_8859-15.src | 47 +++++++++++++++++++++ share/mklocale/lt_LN.DIS_8859-15.src | 47 +++++++++++++++++++++ usr.bin/mklocale/data/Makefile | 7 ++- usr.bin/mklocale/data/lt_LN.DIS_8859-15.src | 47 +++++++++++++++++++++ 7 files changed, 247 insertions(+), 2 deletions(-) create mode 100644 share/mklocale/la_LN.DIS_8859-15.src create mode 100644 share/mklocale/la_LN.ISO8859-15.src create mode 100644 share/mklocale/la_LN.ISO_8859-15.src create mode 100644 share/mklocale/lt_LN.DIS_8859-15.src create mode 100644 usr.bin/mklocale/data/lt_LN.DIS_8859-15.src diff --git a/share/mklocale/Makefile b/share/mklocale/Makefile index e2481e485cf5..5e9075d3204b 100644 --- a/share/mklocale/Makefile +++ b/share/mklocale/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.15 1998/08/10 09:49:42 phk Exp $ +# $Id: Makefile,v 1.16 1998/08/15 12:51:48 phk Exp $ NOMAN=YES CLEANFILES+= ${LOCALES:S/$/.out/g} @@ -9,6 +9,7 @@ LOCALES= ja_JP.EUC \ lt_LN.ASCII \ lt_LN.ISO_8859-1 \ lt_LN.ISO_8859-2 \ + lt_LN.DIS_8859-15 \ ru_SU.CP866 \ ru_SU.KOI8-R \ zh_CN.EUC \ @@ -42,6 +43,10 @@ afterinstall: ln -fs ../lt_LN.ISO_8859-1/LC_CTYPE \ ${LOCALEDIR}/${link}.ISO_8859-1/LC_CTYPE .endfor +.for link in ${LATIN1LINKS} + ln -fs ../lt_LN.DIS_8859-15/LC_CTYPE \ + ${LOCALEDIR}/${link}.DIS_8859-15/LC_CTYPE +.endfor .for link in ${LATIN2LINKS} ln -fs ../lt_LN.ISO_8859-2/LC_CTYPE \ ${LOCALEDIR}/${link}.ISO_8859-2/LC_CTYPE diff --git a/share/mklocale/la_LN.DIS_8859-15.src b/share/mklocale/la_LN.DIS_8859-15.src new file mode 100644 index 000000000000..7d89e03673b9 --- /dev/null +++ b/share/mklocale/la_LN.DIS_8859-15.src @@ -0,0 +1,47 @@ +/* + * Standard LOCALE_CTYPE for the dis_8859_15 Locale + */ +ENCODING "NONE" +VARIABLE DIS 8859-15 Latin-9 character set + +# +# This is a comment +# +ALPHA 'A' - 'Z' 'a' - 'z' 0xa6 0xa8 0xb4 0xb8 0xbc - 0xbe 0xc0 - 0xd6 0xd8 - 0xf6 0xf8 - 0xff +CONTROL 0x00 - 0x1f 0x7f - 0x9f +DIGIT '0' - '9' +GRAPH 0x21 - 0x7e 0xa1 - 0xff +LOWER 'a' - 'z' 0xa8 0xb8 0xbd 0xdf - 0xf6 0xf8 - 0xff +PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e 0xa1 - 0xa5 0xa7 0xa9 - 0xb3 0xb5 - 0xb7 0xb9 - 0xbb 0xbf 0xd7 0xf7 +SPACE 0x09 - 0x0d ' ' 0xa0 +UPPER 'A' - 'Z' 0xa6 0xb4 0xbc 0xc0 - 0xd6 0xd8 - 0xde +XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F' +BLANK ' ' '\t' 0xa0 +PRINT 0x20 - 0x7e 0xa0 - 0xff +# IDEOGRAM +# SPECIAL +# PHONEGRAM + +MAPLOWER <'A' - 'Z' : 'a'> +MAPLOWER <'a' - 'z' : 'a'> +MAPLOWER <0xa6 - 0xa6 : 0xa8> +MAPLOWER <0xb4 - 0xb4 : 0xb8> +MAPLOWER <0xbc - 0xbc : 0xbd> +MAPLOWER <0xbe - 0xbe : 0xff> +MAPLOWER <0xc0 - 0xd6 : 0xe0> +MAPLOWER <0xd8 - 0xde : 0xf8> +MAPLOWER <0xdf - 0xf6 : 0xdf> +MAPLOWER <0xf8 - 0xff : 0xf8> +MAPUPPER <'A' - 'Z' : 'A'> +MAPUPPER <'a' - 'z' : 'A'> +MAPUPPER <0xa8 - 0xa8 : 0xa6> +MAPUPPER <0xb8 - 0xb8 : 0xb4> +MAPUPPER <0xbd - 0xbd : 0xbc> +MAPUPPER <0xc0 - 0xd6 : 0xc0> +MAPUPPER <0xd8 - 0xde : 0xd8> +MAPUPPER <0xe0 - 0xf6 : 0xc0> +MAPUPPER <0xf8 - 0xfe : 0xd8> +MAPUPPER <0xff - 0xff : 0xbe> +TODIGIT <'0' - '9' : 0> +TODIGIT <'A' - 'F' : 10> +TODIGIT <'a' - 'f' : 10> diff --git a/share/mklocale/la_LN.ISO8859-15.src b/share/mklocale/la_LN.ISO8859-15.src new file mode 100644 index 000000000000..7d89e03673b9 --- /dev/null +++ b/share/mklocale/la_LN.ISO8859-15.src @@ -0,0 +1,47 @@ +/* + * Standard LOCALE_CTYPE for the dis_8859_15 Locale + */ +ENCODING "NONE" +VARIABLE DIS 8859-15 Latin-9 character set + +# +# This is a comment +# +ALPHA 'A' - 'Z' 'a' - 'z' 0xa6 0xa8 0xb4 0xb8 0xbc - 0xbe 0xc0 - 0xd6 0xd8 - 0xf6 0xf8 - 0xff +CONTROL 0x00 - 0x1f 0x7f - 0x9f +DIGIT '0' - '9' +GRAPH 0x21 - 0x7e 0xa1 - 0xff +LOWER 'a' - 'z' 0xa8 0xb8 0xbd 0xdf - 0xf6 0xf8 - 0xff +PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e 0xa1 - 0xa5 0xa7 0xa9 - 0xb3 0xb5 - 0xb7 0xb9 - 0xbb 0xbf 0xd7 0xf7 +SPACE 0x09 - 0x0d ' ' 0xa0 +UPPER 'A' - 'Z' 0xa6 0xb4 0xbc 0xc0 - 0xd6 0xd8 - 0xde +XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F' +BLANK ' ' '\t' 0xa0 +PRINT 0x20 - 0x7e 0xa0 - 0xff +# IDEOGRAM +# SPECIAL +# PHONEGRAM + +MAPLOWER <'A' - 'Z' : 'a'> +MAPLOWER <'a' - 'z' : 'a'> +MAPLOWER <0xa6 - 0xa6 : 0xa8> +MAPLOWER <0xb4 - 0xb4 : 0xb8> +MAPLOWER <0xbc - 0xbc : 0xbd> +MAPLOWER <0xbe - 0xbe : 0xff> +MAPLOWER <0xc0 - 0xd6 : 0xe0> +MAPLOWER <0xd8 - 0xde : 0xf8> +MAPLOWER <0xdf - 0xf6 : 0xdf> +MAPLOWER <0xf8 - 0xff : 0xf8> +MAPUPPER <'A' - 'Z' : 'A'> +MAPUPPER <'a' - 'z' : 'A'> +MAPUPPER <0xa8 - 0xa8 : 0xa6> +MAPUPPER <0xb8 - 0xb8 : 0xb4> +MAPUPPER <0xbd - 0xbd : 0xbc> +MAPUPPER <0xc0 - 0xd6 : 0xc0> +MAPUPPER <0xd8 - 0xde : 0xd8> +MAPUPPER <0xe0 - 0xf6 : 0xc0> +MAPUPPER <0xf8 - 0xfe : 0xd8> +MAPUPPER <0xff - 0xff : 0xbe> +TODIGIT <'0' - '9' : 0> +TODIGIT <'A' - 'F' : 10> +TODIGIT <'a' - 'f' : 10> diff --git a/share/mklocale/la_LN.ISO_8859-15.src b/share/mklocale/la_LN.ISO_8859-15.src new file mode 100644 index 000000000000..7d89e03673b9 --- /dev/null +++ b/share/mklocale/la_LN.ISO_8859-15.src @@ -0,0 +1,47 @@ +/* + * Standard LOCALE_CTYPE for the dis_8859_15 Locale + */ +ENCODING "NONE" +VARIABLE DIS 8859-15 Latin-9 character set + +# +# This is a comment +# +ALPHA 'A' - 'Z' 'a' - 'z' 0xa6 0xa8 0xb4 0xb8 0xbc - 0xbe 0xc0 - 0xd6 0xd8 - 0xf6 0xf8 - 0xff +CONTROL 0x00 - 0x1f 0x7f - 0x9f +DIGIT '0' - '9' +GRAPH 0x21 - 0x7e 0xa1 - 0xff +LOWER 'a' - 'z' 0xa8 0xb8 0xbd 0xdf - 0xf6 0xf8 - 0xff +PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e 0xa1 - 0xa5 0xa7 0xa9 - 0xb3 0xb5 - 0xb7 0xb9 - 0xbb 0xbf 0xd7 0xf7 +SPACE 0x09 - 0x0d ' ' 0xa0 +UPPER 'A' - 'Z' 0xa6 0xb4 0xbc 0xc0 - 0xd6 0xd8 - 0xde +XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F' +BLANK ' ' '\t' 0xa0 +PRINT 0x20 - 0x7e 0xa0 - 0xff +# IDEOGRAM +# SPECIAL +# PHONEGRAM + +MAPLOWER <'A' - 'Z' : 'a'> +MAPLOWER <'a' - 'z' : 'a'> +MAPLOWER <0xa6 - 0xa6 : 0xa8> +MAPLOWER <0xb4 - 0xb4 : 0xb8> +MAPLOWER <0xbc - 0xbc : 0xbd> +MAPLOWER <0xbe - 0xbe : 0xff> +MAPLOWER <0xc0 - 0xd6 : 0xe0> +MAPLOWER <0xd8 - 0xde : 0xf8> +MAPLOWER <0xdf - 0xf6 : 0xdf> +MAPLOWER <0xf8 - 0xff : 0xf8> +MAPUPPER <'A' - 'Z' : 'A'> +MAPUPPER <'a' - 'z' : 'A'> +MAPUPPER <0xa8 - 0xa8 : 0xa6> +MAPUPPER <0xb8 - 0xb8 : 0xb4> +MAPUPPER <0xbd - 0xbd : 0xbc> +MAPUPPER <0xc0 - 0xd6 : 0xc0> +MAPUPPER <0xd8 - 0xde : 0xd8> +MAPUPPER <0xe0 - 0xf6 : 0xc0> +MAPUPPER <0xf8 - 0xfe : 0xd8> +MAPUPPER <0xff - 0xff : 0xbe> +TODIGIT <'0' - '9' : 0> +TODIGIT <'A' - 'F' : 10> +TODIGIT <'a' - 'f' : 10> diff --git a/share/mklocale/lt_LN.DIS_8859-15.src b/share/mklocale/lt_LN.DIS_8859-15.src new file mode 100644 index 000000000000..7d89e03673b9 --- /dev/null +++ b/share/mklocale/lt_LN.DIS_8859-15.src @@ -0,0 +1,47 @@ +/* + * Standard LOCALE_CTYPE for the dis_8859_15 Locale + */ +ENCODING "NONE" +VARIABLE DIS 8859-15 Latin-9 character set + +# +# This is a comment +# +ALPHA 'A' - 'Z' 'a' - 'z' 0xa6 0xa8 0xb4 0xb8 0xbc - 0xbe 0xc0 - 0xd6 0xd8 - 0xf6 0xf8 - 0xff +CONTROL 0x00 - 0x1f 0x7f - 0x9f +DIGIT '0' - '9' +GRAPH 0x21 - 0x7e 0xa1 - 0xff +LOWER 'a' - 'z' 0xa8 0xb8 0xbd 0xdf - 0xf6 0xf8 - 0xff +PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e 0xa1 - 0xa5 0xa7 0xa9 - 0xb3 0xb5 - 0xb7 0xb9 - 0xbb 0xbf 0xd7 0xf7 +SPACE 0x09 - 0x0d ' ' 0xa0 +UPPER 'A' - 'Z' 0xa6 0xb4 0xbc 0xc0 - 0xd6 0xd8 - 0xde +XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F' +BLANK ' ' '\t' 0xa0 +PRINT 0x20 - 0x7e 0xa0 - 0xff +# IDEOGRAM +# SPECIAL +# PHONEGRAM + +MAPLOWER <'A' - 'Z' : 'a'> +MAPLOWER <'a' - 'z' : 'a'> +MAPLOWER <0xa6 - 0xa6 : 0xa8> +MAPLOWER <0xb4 - 0xb4 : 0xb8> +MAPLOWER <0xbc - 0xbc : 0xbd> +MAPLOWER <0xbe - 0xbe : 0xff> +MAPLOWER <0xc0 - 0xd6 : 0xe0> +MAPLOWER <0xd8 - 0xde : 0xf8> +MAPLOWER <0xdf - 0xf6 : 0xdf> +MAPLOWER <0xf8 - 0xff : 0xf8> +MAPUPPER <'A' - 'Z' : 'A'> +MAPUPPER <'a' - 'z' : 'A'> +MAPUPPER <0xa8 - 0xa8 : 0xa6> +MAPUPPER <0xb8 - 0xb8 : 0xb4> +MAPUPPER <0xbd - 0xbd : 0xbc> +MAPUPPER <0xc0 - 0xd6 : 0xc0> +MAPUPPER <0xd8 - 0xde : 0xd8> +MAPUPPER <0xe0 - 0xf6 : 0xc0> +MAPUPPER <0xf8 - 0xfe : 0xd8> +MAPUPPER <0xff - 0xff : 0xbe> +TODIGIT <'0' - '9' : 0> +TODIGIT <'A' - 'F' : 10> +TODIGIT <'a' - 'f' : 10> diff --git a/usr.bin/mklocale/data/Makefile b/usr.bin/mklocale/data/Makefile index e2481e485cf5..5e9075d3204b 100644 --- a/usr.bin/mklocale/data/Makefile +++ b/usr.bin/mklocale/data/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.15 1998/08/10 09:49:42 phk Exp $ +# $Id: Makefile,v 1.16 1998/08/15 12:51:48 phk Exp $ NOMAN=YES CLEANFILES+= ${LOCALES:S/$/.out/g} @@ -9,6 +9,7 @@ LOCALES= ja_JP.EUC \ lt_LN.ASCII \ lt_LN.ISO_8859-1 \ lt_LN.ISO_8859-2 \ + lt_LN.DIS_8859-15 \ ru_SU.CP866 \ ru_SU.KOI8-R \ zh_CN.EUC \ @@ -42,6 +43,10 @@ afterinstall: ln -fs ../lt_LN.ISO_8859-1/LC_CTYPE \ ${LOCALEDIR}/${link}.ISO_8859-1/LC_CTYPE .endfor +.for link in ${LATIN1LINKS} + ln -fs ../lt_LN.DIS_8859-15/LC_CTYPE \ + ${LOCALEDIR}/${link}.DIS_8859-15/LC_CTYPE +.endfor .for link in ${LATIN2LINKS} ln -fs ../lt_LN.ISO_8859-2/LC_CTYPE \ ${LOCALEDIR}/${link}.ISO_8859-2/LC_CTYPE diff --git a/usr.bin/mklocale/data/lt_LN.DIS_8859-15.src b/usr.bin/mklocale/data/lt_LN.DIS_8859-15.src new file mode 100644 index 000000000000..7d89e03673b9 --- /dev/null +++ b/usr.bin/mklocale/data/lt_LN.DIS_8859-15.src @@ -0,0 +1,47 @@ +/* + * Standard LOCALE_CTYPE for the dis_8859_15 Locale + */ +ENCODING "NONE" +VARIABLE DIS 8859-15 Latin-9 character set + +# +# This is a comment +# +ALPHA 'A' - 'Z' 'a' - 'z' 0xa6 0xa8 0xb4 0xb8 0xbc - 0xbe 0xc0 - 0xd6 0xd8 - 0xf6 0xf8 - 0xff +CONTROL 0x00 - 0x1f 0x7f - 0x9f +DIGIT '0' - '9' +GRAPH 0x21 - 0x7e 0xa1 - 0xff +LOWER 'a' - 'z' 0xa8 0xb8 0xbd 0xdf - 0xf6 0xf8 - 0xff +PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e 0xa1 - 0xa5 0xa7 0xa9 - 0xb3 0xb5 - 0xb7 0xb9 - 0xbb 0xbf 0xd7 0xf7 +SPACE 0x09 - 0x0d ' ' 0xa0 +UPPER 'A' - 'Z' 0xa6 0xb4 0xbc 0xc0 - 0xd6 0xd8 - 0xde +XDIGIT '0' - '9' 'a' - 'f' 'A' - 'F' +BLANK ' ' '\t' 0xa0 +PRINT 0x20 - 0x7e 0xa0 - 0xff +# IDEOGRAM +# SPECIAL +# PHONEGRAM + +MAPLOWER <'A' - 'Z' : 'a'> +MAPLOWER <'a' - 'z' : 'a'> +MAPLOWER <0xa6 - 0xa6 : 0xa8> +MAPLOWER <0xb4 - 0xb4 : 0xb8> +MAPLOWER <0xbc - 0xbc : 0xbd> +MAPLOWER <0xbe - 0xbe : 0xff> +MAPLOWER <0xc0 - 0xd6 : 0xe0> +MAPLOWER <0xd8 - 0xde : 0xf8> +MAPLOWER <0xdf - 0xf6 : 0xdf> +MAPLOWER <0xf8 - 0xff : 0xf8> +MAPUPPER <'A' - 'Z' : 'A'> +MAPUPPER <'a' - 'z' : 'A'> +MAPUPPER <0xa8 - 0xa8 : 0xa6> +MAPUPPER <0xb8 - 0xb8 : 0xb4> +MAPUPPER <0xbd - 0xbd : 0xbc> +MAPUPPER <0xc0 - 0xd6 : 0xc0> +MAPUPPER <0xd8 - 0xde : 0xd8> +MAPUPPER <0xe0 - 0xf6 : 0xc0> +MAPUPPER <0xf8 - 0xfe : 0xd8> +MAPUPPER <0xff - 0xff : 0xbe> +TODIGIT <'0' - '9' : 0> +TODIGIT <'A' - 'F' : 10> +TODIGIT <'a' - 'f' : 10>