c91ab1769b
setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009
130 lines
5.6 KiB
Plaintext
130 lines
5.6 KiB
Plaintext
# $FreeBSD$
|
|
# $NetBSD: CP1046%UCS.src,v 1.1 2007/06/02 06:09:08 tnozaki Exp $
|
|
|
|
# Copyright (c)2007 Citrus Project,
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms, with or without
|
|
# modification, are permitted provided that the following conditions
|
|
# are met:
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
# notice, this list of conditions and the following disclaimer.
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
# documentation and/or other materials provided with the distribution.
|
|
#
|
|
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
# SUCH DAMAGE.
|
|
#
|
|
|
|
TYPE ROWCOL
|
|
NAME "CP1046/UCS"
|
|
SRC_ZONE 0x00-0xFF
|
|
OOB_MODE ILSEQ
|
|
DST_ILSEQ 0xFFFE
|
|
DST_UNIT_BITS 16
|
|
|
|
BEGIN_MAP
|
|
#
|
|
# CP1046 - Arabic Extended
|
|
# this mapping data is made from:
|
|
# ftp://ftp.software.ibm.com/software/globalization/gcoc/attachments/
|
|
# CP0{0864,1046}.{pdf,txt}
|
|
# ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/PC/CP864.TXT
|
|
# http://www.unicode.org/charts/PDF/U0600.pdf
|
|
# http://www.unicode.org/charts/PDF/UFE70.pdf
|
|
#
|
|
0x00 - 0x7F = 0x0000 -
|
|
0x80 = 0xFE88 # ARABIC LETTER ALEF WITH HAMZA BELOW FINAL FORM
|
|
0x81 = 0x00D7 # MULTIPLICATION SIGN
|
|
0x82 = 0x00F7 # DIVISION SIGN
|
|
0x83 = 0xF8F6 # ARABIC LETTER SEEN ISOLATED FORM
|
|
0x84 = 0xF8F5 # ARABIC LETTER SHEEN ISOLATED FORM
|
|
0x85 = 0xF8F4 # ARABIC LETTER SAD ISOLATED FORM
|
|
0x86 = 0xF8F7 # ARABIC LETTER DAD ISOLATED FORM
|
|
0x87 = 0xFE71 # ARABIC TATWHEEL WITH FATHATAN ABOVE
|
|
0x88 = 0x0088
|
|
0x89 = 0x25A0 # BLACK SQUARE
|
|
0x8A = 0x2502 # BOX DRAWINGS LIGHT VERTICAL
|
|
0x8B = 0x2500 # BOX DRAWINGS LIGHT HORIZONTAL
|
|
0x8C = 0x2510 # BOX DRAWINGS LIGHT DOWN AND LEFT
|
|
0x8D = 0x250C # BOX DRAWINGS LIGHT DOWN AND RIGHT
|
|
0x8E = 0x2514 # BOX DRAWINGS LIGHT UP AND RIGHT
|
|
0x8F = 0x2518 # BOX DRAWINGS LIGHT UP AND LEFT
|
|
0x90 = 0xFE79 # ARABIC LETTER DAMMA MEDIAL FORM
|
|
0x91 = 0xFE7B # ARABIC LETTER KASRA MEDIAL FORM
|
|
0x92 = 0xFE7D # ARABIC LETTER SHADDA MEDIAL FORM
|
|
0x93 = 0xFE7F # ARABIC LETTER SUKUN MEDIAL FORM
|
|
0x94 = 0xFE77 # ARABIC FATHA MEDIAL FORM
|
|
0x95 = 0xFE8A # ARABIC LETTER YEH WITH HAMZA ABOVE FINAL FORM
|
|
0x96 = 0xFEF0 # ARABIC LETTER ALEF MAKSUMA FINAL FORM
|
|
0x97 = 0xFEF3 # ARABIC LETTER YEH INITIAL FORM
|
|
0x98 = 0xFEF2 # ARABIC LETTER YEH FINAL FORM
|
|
0x99 = 0xFECE # ARABIC LETTER GHAIN FINAL FORM
|
|
0x9A = 0xFECF # ARABIC LETTER GHAIN INITIAL FORM
|
|
0x9B = 0xFED0 # ARABIC LETTER GHAIN MEDIAL FORM
|
|
0x9C = 0xFEF6 # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM
|
|
0x9D = 0xFEF8 # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM
|
|
0x9E = 0xFEFA # ARABIC LIGATURE LAM WITH ALEF WITH HANZA BELOW FINAL FORM
|
|
0x9F = 0xFEFC # ARABIC LIGATURE LAM WITH ALEF FINAL FORM
|
|
0xA0 = 0x00A0 # NO-BREAK SPACE
|
|
0xA1 = 0xF8FA # Aleph Madda (after Lam) != ARABIC LETTER ALEF WITH MADDA ABOVE(0x0622)
|
|
0xA2 = 0xF8F9 # Aleph Hamza (after Lam) != ARABIC LETTER ALEF WITH HAMZA ABOVE(0x0623)
|
|
0xA3 = 0xF8F8 # Hamza Under Aleph (after Lam) != ARABIC LETTER ALEF WITH HAMZA BELOW(0x0625)
|
|
0xA4 = 0x00A4 # CURRENCY SIGN
|
|
0xA5 = 0xF8FB # Aleph (after Lam) != ARABIC LETTER ALEF(0x0627)
|
|
0xA6 = 0xFE8B # ARABIC LETTER YEH WITH HAMZA ABOVE INITIAL FORM
|
|
0xA7 = 0xFE91 # ARABIC LETTER BEH INITIAL FORM
|
|
0xA8 = 0xFE97 # ARABIC LETTER TEH INITIAL FORM
|
|
0xA9 = 0xFE9B # ARABIC LETTER THEH INITIAL FORM
|
|
0xAA = 0xFE9F # ARABIC LETTER JEEM INITIAL FORM
|
|
0xAB = 0xFEA3 # ARABIC LETTER HAH INITIAL FORM
|
|
0xAC = 0x060C # ARABIC COMMA
|
|
0xAD = 0x00AD
|
|
0xAE = 0xFEA7 # ARABIC LETTER KHAH INITIAL FORM
|
|
0xAF = 0xFEB3 # ARABIC LETTER SEEN INITIAL FORM
|
|
0xB0 - 0xB9 = 0x0660 - # ARABIC-INDIC DIGIT ZERO - NINE
|
|
0xBA = 0xFEB7 # ARABIC LETTER SHEEN INITIAL FORM
|
|
0xBB = 0x061B # ARABIC SEMICOLON
|
|
0xBC = 0xFEBB # ARABIC LETTER SAD INITIAL FORM
|
|
0xBD = 0xFEBF # ARABIC LETTER DAD INITIAL FORM
|
|
0xBE = 0xFECA # ARABIC LETTER AIN FINAL FORM
|
|
0xBF = 0x061F # ARABIC QUESTION MARK
|
|
0xC0 = 0xFECB # ARABIC LETTER AIN INITIAL FORM
|
|
0xC1 - 0xD7 = 0x0621 -
|
|
0xD8 = 0xFEC7
|
|
0xD9 = 0x0639
|
|
0xDA = 0x063A
|
|
0xDB = 0xFECC # ARABIC LETTER AIN MEDIAL FORM
|
|
0xDC = 0xFE82 # ARABIC LETTER ALEF WITH MADDA ABOVE FINAL FORM
|
|
0xDD = 0xFE84 # ARABIC LETTER ALEF WITH HAMZA ABOVE FINAL FORM
|
|
0xDE = 0xFE8E # ARABIC LETTER ALEF FINAL FORM
|
|
0xDF = 0xFED3 # ARABIC LETTER FEH INITIAL FORM
|
|
0xE0 = 0x0640 # ARABIC TATWEEL
|
|
0xE1 - 0xF0 = 0x0641 -
|
|
0xF1 = 0x0651 # ARABIC SHADDA
|
|
0xF2 = 0x0652
|
|
0xF3 = 0xFED7 # ARABIC LETTER QAF INITIAL FORM
|
|
0xF4 = 0xFEDB # ARABIC LETTER KAF INITIAL FORM
|
|
0xF5 = 0xFEDF # ARABIC LETTER LAM INITIAL FORM
|
|
0xF6 = 0xF8FC
|
|
0xF7 = 0xFEF5 # ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM
|
|
0xF8 = 0xFEF7 # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM
|
|
0xF9 = 0xFEF9 # ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW ISOLATED FORM
|
|
0xFA = 0xFEFB # ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM
|
|
0xFB = 0xFEE3 # ARABIC LETTER MEEM INITIAL FORM
|
|
0xFC = 0xFEE7 # ARABIC LETTER NOON INITIAL FORM
|
|
0xFD = 0xFEEC # ARABIC LETTER HEH MEDIAL FORM
|
|
0xFE = 0xFEE9 # ARABIC LETTER HEH ISOLATED FORM
|
|
0xFF = 0x20AC # EURO SIGN
|
|
END_MAP
|