summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/CJK/CJK.enc
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/CJK/CJK.enc')
-rw-r--r--Master/texmf-dist/tex/latex/CJK/CJK.enc57
1 files changed, 52 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/CJK/CJK.enc b/Master/texmf-dist/tex/latex/CJK/CJK.enc
index 64766a18de4..dc4d94fa401 100644
--- a/Master/texmf-dist/tex/latex/CJK/CJK.enc
+++ b/Master/texmf-dist/tex/latex/CJK/CJK.enc
@@ -3,10 +3,27 @@
%
% created by Werner Lemberg <wl@gnu.org>
%
-% Version 4.6.0 (11-Aug-2005)
+% Version 4.7.0 (17-Oct-2006)
-\def\fileversion{4.6.0}
-\def\filedate{2005/08/11}
+% Copyright (C) 1994-2006 Werner Lemberg <wl@gnu.org>
+%
+% This program is free software; you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation; either version 2 of the License, or
+% (at your option) any later version.
+%
+% This program is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with this program in doc/COPYING; if not, write to the Free
+% Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+% MA 02110-1301 USA
+
+\def\fileversion{4.7.0}
+\def\filedate{2006/10/17}
\ProvidesFile{CJK.enc}[\filedate\space\fileversion]
@@ -100,8 +117,8 @@
\fi
-% single shifts (EUC-TW, EUC-JP) and three-byte UTF8 values can't be used
-% in preprocessed mode
+% single shifts (EUC-TW, EUC-JP), three-byte, and four-byte UTF8 values
+% can't be used in preprocessed mode
\def\CJK@shiftError{
\PackageError{CJK}{
@@ -114,6 +131,11 @@
Three-Byte UTF8 values can't be used in preprocessed mode
}
{Maybe you've forgotten to change the encoding?}}
+\def\CJK@unicodexError{
+ \PackageError{CJK}{
+ Four-Byte UTF8 values can't be used in preprocessed mode
+ }
+ {Maybe you've forgotten to change the encoding?}}
% the following macro is used to map the CJK (font) encoding to the
@@ -155,6 +177,8 @@
% Chinese: Bg5 C00
% Bg5pmC C01
%
+% HK C05
+%
% Bg5+ C09
%
% GB C10
@@ -326,6 +350,29 @@
\CJK@global\def\CJK@spaceChar{\CJKchar{"0A1}{"040}}}
+% support for Hong Kong
+%
+% character set: Big 5 + HKSCS-2004 (or HKSCS-2001)
+% encoding: Big 5
+% font encoding: CJK
+
+\CJK@mapToNFSS{HK}{C05}{song}{m}{n}
+\CJKencfamily{HK}{song}
+\CJKfontenc{HK}{}
+\@namedef{CJK@HK@hook}{}
+
+\def\CJK@HK@enc{
+ \CJK@makeEnvironment{HK}
+
+ \CJK@loadBinding{standard}
+
+ \CJK@global\chardef\CJK@min "040% don't forget `0' before the number,
+ \CJK@global\chardef\CJK@max "0FE% otherwise german.sty will not work.
+
+ \CJK@loadEncoding{HK}
+
+ \CJK@global\def\CJK@spaceChar{\CJKchar{"0A1}{"040}}}
+
% Chinese characters (extension of Big 5)
%
% character set: Big 5+