>    What is the prerequisite for gererating a pdf file with chinese
> characters can be copied and pasted?

`ToUnicode' dictionaries for all (sub)fonts within the PDF file.

>    I found when I use the dvipdfmx, both the type1 chinese character
> and truetype chinese character can be copied and pasted; when I use
> the pdflatex to work with TrueType fonts, I can't copy and paster
> them, why?

dvipdfmx generates ToUnicode dictionaries automatically, but pdftex
doesn't do that (yet).  Instead, you have to use Vladimir Volovich's
`cmap.sty', providing proper mapping files for all subfonts of an
encoding.  Below you can find a sample cmap file (c1017.cmap) for
subfont 17 of the C10 encoding (GB 2312) -- it is incomplete and
contains just the value for a single character.  Because dvipdfmx
works just fine I was always too lazy to write proper scripts which
create such cmap files automatically from SFD files.  Volunteers
welcome.

Here a sample input file for pdftex which uses just this single
character:

  \documentclass{article}

  \usepackage{CJK}
  \usepackage{cmap}
  \usepackage[T1]{fontenc}

  \begin{document}

  blablabla

  \begin{CJK}{GB}{gbsn}
    \hbox{^^ce^^ce}
  \end{CJK}

  \end{document}



    Werner


======================================================================


%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: ProcSet (CIDInit)
%%IncludeResource: ProcSet (CIDInit)
%%BeginResource: CMap (TeX-C10-17-0)
%%Title: (TeX-C10-17-0 TeX C10-17 0)
%%Version: 1.000
%%EndComments
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (TeX)
/Ordering (C10-17)
/Supplement 0
>> def
/CMapName /TeX-C10-17-0 def
/CMapType 2 def
1 begincodespacerange
<00> <FF>
endcodespacerange
1 beginbfchar
<B3> <631D>
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
%%EndResource
%%EOF

_______________________________________________
Cjk maillist  -  Cjk@ffii.org
http://lists.ffii.org/mailman/listinfo/cjk

Reply via email to