summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/CJK/CJKutf8.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:49:33 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:49:33 +0000
commit9c13b7d529c1df9b36a4a1cfae5893423f71f9f0 (patch)
treefb0eab8645d8ce722f854856b6281582007930d7 /Master/texmf-dist/tex/latex/CJK/CJKutf8.sty
parent537a62abf2208730c27ee774a90f39a41a8cce70 (diff)
CJK
git-svn-id: svn://tug.org/texlive/trunk@630 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/CJK/CJKutf8.sty')
-rw-r--r--Master/texmf-dist/tex/latex/CJK/CJKutf8.sty72
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/CJK/CJKutf8.sty b/Master/texmf-dist/tex/latex/CJK/CJKutf8.sty
new file mode 100644
index 00000000000..8b2601b437a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/CJK/CJKutf8.sty
@@ -0,0 +1,72 @@
+% This is the file CJKutf8.sty of the CJK package
+% for using Asian logographs (Chinese/Japanese/Korean) with LaTeX2e
+%
+% created by Werner Lemberg <wl@gnu.org>
+%
+% Version 4.6.0 (11-Aug-2005)
+
+\NeedsTeXFormat{LaTeX2e}[2003/12/01]
+
+\def\fileversion{4.6.0}
+\def\filedate{2005/08/11}
+\ProvidesFile{CJKutf8.sty}[\filedate\space\fileversion]
+
+\RequirePackage[utf8]{inputenc}
+\RequirePackage[encapsulated]{CJK}
+\RequirePackageWithOptions{fontenc}
+
+\DeclareOption*{\OptionNotUsed}
+
+\ProcessOptions
+
+
+% we suppress any unwanted spaces produced by linefeeds
+
+\endlinechar\m@ne
+
+% We redefine the basic macros for handling multibyte sequences to call
+% a `\u8:...' macro if it has been defined.
+
+\def\CJK@XX#1#2{
+ \ifx #2\protect
+ \expandafter\CJK@XXp\expandafter#1
+ \else
+ \expandafter\ifx\csname u8:\string #1\string #2\endcsname \relax
+ \csname CJK@\number `#1\endcsname{`#2}
+ \else
+ \csname u8:\string #1\string #2\endcsname
+ \fi
+ \CJK@ignorespaces
+ \fi}
+\def\CJK@XXp#1#2{
+ \expandafter\ifx\csname u8:\string #1\string #2\endcsname \relax
+ \csname CJK@\number `#1\endcsname{`#2}\CJK@ignorespaces
+ \else
+ \csname u8:\string #1\string #2\endcsname
+ \fi
+ \CJK@ignorespaces}
+
+\def\CJK@XXX#1#2#3{
+ \ifx #2\protect
+ \expandafter\CJK@XXXp\expandafter#1#3
+ \else
+ \expandafter\ifx\csname u8:\string #1\string #2\string #3\endcsname \relax
+ \csname CJK@\number `#1\endcsname{`#2}{`#3}
+ \else
+ \csname u8:\string #1\string #2\string #3\endcsname
+ \fi
+ \CJK@ignorespaces
+ \fi}
+\def\CJK@XXXp#1#2#3#4{
+ \expandafter\ifx\csname u8:\string #1\string #2\string #4\endcsname \relax
+ \csname CJK@\number `#1\endcsname{`#2}{`#4}
+ \else
+ \csname u8:\string #1\string #2\string #4\endcsname
+ \fi
+ \CJK@ignorespaces}
+
+% reset endline character
+
+\endlinechar `\^^M
+
+\endinput