~ubuntu-branches/ubuntu/quantal/cjk/quantal

« back to all changes in this revision

Viewing changes to texinput/CJKutf8.sty

  • Committer: Bazaar Package Importer
  • Author(s): Danai SAE-HAN (韓達耐), README.Debian-msgothic
  • Date: 2008-01-30 18:53:24 UTC
  • mfrom: (1.1.3 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080130185324-53m4h647q3v5nlzf
Tags: 4.7.0+git20080122-1
* The "Shoe polish" release.
* Acknowledge the NMU.  Thanks to Lucas Nussbaum.
* New upstream release:
   - a few fixes for PinYin;
   - fix punctuation in GBK and math mode;
   - dvipdfmx can now make use the correct /ToUnicode CMap;
   - fix a few typo's.
* [latex-cjk-japanese.install] Install DNP.sfd in
   /usr/share/texmf/fonts/sfd/.  Thanks to Gernot Hassenpflug
   (Closes: #434478).
* [README.Debian]
   - change 10cyberbit.cfg into 20cyberbit.cfg.
  [README.Debian-msgothic] Add some DIY information how to get the Japanese
   Gothic font from Microsoft working under CJK.  This is largely based on
   Gernot Hassenplug's HOWTO.  This is a work in progress, however, as I've
   stumbled upon a segmentation fault in Fontforge.
* [control]
   - Bump Standards-Version from 3.7.2.0 tp 3.7.3;
   - make latex-cjk-korean depend on "ko.tex-extra-hlfont" instead of
     the old "hlatex-fonts-extra".  Thanks to Changwoo Ryu
     (Closes: #462025).
* [rules]
   - fix bashism: apparently other shells don't understand the accolade.
     Thanks to Mario Bonino for the report and Lucas Nussbaum for the NMU
     which closed #457710;
   - change /usr/bin/rename to /usr/bin/prename;
   - don't install the empty "CEF/" directory in $TEXMF; the
     hbf-* packages will take care of this in the future.
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
      {\expandafter%                            % CJK extension
98
98
        \ifx\csname \curr@fontshape/\f@size/\CJK@plane\endcsname \relax
99
99
         \define@newfont
100
 
         \CJK@addcmap\CJK@plane
 
100
         \def\CJK@temp{v}
 
101
         \ifx\CJK@temp\CJK@plane
 
102
           \expandafter
 
103
            \ifx\csname CJK@cmap@\f@family\CJK@plane\endcsname \relax
 
104
           \else
 
105
             \csname CJK@cmap@\f@family\CJK@plane\endcsname
 
106
           \fi
 
107
         \else
 
108
           \CJK@addcmap\CJK@plane
 
109
         \fi
101
110
       \else
102
111
         \xdef\font@name{
103
112
           \csname \curr@fontshape/\f@size/\CJK@plane\endcsname}
133
142
 
134
143
  \def\CJK@addcmap#1{
135
144
    {\expandafter\ifx\csname CJK@CMap@#1\endcsname \relax
136
 
     \CJK@surr{\CJK@gtemp}{#1}
137
 
      \immediate\pdfobj stream {
138
 
        /CIDInit /ProcSet findresource begin                      %
139
 
          12 dict begin                                           %
140
 
            begincmap                                             %
141
 
              /CIDSystemInfo <<                                   %
142
 
                /Registry (TeX)                                   %
143
 
                /Ordering (Uni#1)                                 %
144
 
                /Supplement 0 >> def                              %
145
 
              /CMapName /TeX-Uni#1-0 def                          %
146
 
              1 begincodespacerange <00> <FF> endcodespacerange   %
147
 
              1 beginbfrange <00> <FF> <\CJK@gtemp 00> endbfrange %
148
 
            endcmap                                               %
149
 
            CMapName currentdict /CMap defineresource             %
150
 
            pop                                                   %
151
 
          end                                                     %
152
 
        end }
153
 
      \expandafter\xdef\csname CJK@CMap@#1\endcsname{
154
 
        \the\pdflastobj}
155
 
    \fi
156
 
    \pdffontattr\font@name{
157
 
      /ToUnicode \csname CJK@CMap@#1\endcsname\space 0 R}}}
 
145
       \CJK@surr{\CJK@gtemp}{#1}
 
146
       \immediate\pdfobj stream {
 
147
         /CIDInit /ProcSet findresource begin                      %
 
148
           12 dict begin                                           %
 
149
             begincmap                                             %
 
150
               /CIDSystemInfo <<                                   %
 
151
                 /Registry (TeX)                                   %
 
152
                 /Ordering (Uni#1)                                 %
 
153
                 /Supplement 0 >> def                              %
 
154
               /CMapName /TeX-Uni#1-0 def                          %
 
155
               1 begincodespacerange <00> <FF> endcodespacerange   %
 
156
               1 beginbfrange <00> <FF> <\CJK@gtemp 00> endbfrange %
 
157
             endcmap                                               %
 
158
             CMapName currentdict /CMap defineresource             %
 
159
             pop                                                   %
 
160
           end                                                     %
 
161
         end }
 
162
       \expandafter\xdef\csname CJK@CMap@#1\endcsname{
 
163
         \the\pdflastobj}
 
164
     \fi
 
165
     \pdffontattr\font@name{
 
166
       /ToUnicode \csname CJK@CMap@#1\endcsname\space 0 R}}}
158
167
\fi
159
168
 
160
169
 
182
191
%
183
192
% 110110aa aabbbbbb 110111cc ccdddddd
184
193
%
185
 
% (aaaa = uuuuu - 1; 0 <= uuuuu <= 10000)
 
194
% (aaaa = uuuuu - 1; 0 < uuuuu <= 10000)
186
195
%
187
196
% 110110aaaa (four octal digits) is handled by \CJK@UnicodeFourBytesFirst
188
197
% bbbbbb (two octal digits) is handled by \CJK@UnicodeFourBytesSecond