From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16366 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: CMAP and IL2 encoding Date: Sun, 05 Sep 2004 17:09:09 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <413B2C15.9080305@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000402030505070806080301" X-Trace: sea.gmane.org 1094397000 32533 80.91.224.253 (5 Sep 2004 15:10:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Sep 2004 15:10:00 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 05 17:09:39 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C3yeB-0001LI-00 for ; Sun, 05 Sep 2004 17:09:39 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A92901278A; Sun, 5 Sep 2004 17:09:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03070-01; Sun, 5 Sep 2004 17:09:33 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E54421276C; Sun, 5 Sep 2004 17:09:32 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 76B811276C for ; Sun, 5 Sep 2004 17:09:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02986-02 for ; Sun, 5 Sep 2004 17:09:29 +0200 (CEST) Original-Received: from smtp.seznam.cz (unknown [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 9EC111276B for ; Sun, 5 Sep 2004 17:09:29 +0200 (CEST) Original-Received: (qmail 15900 invoked from network); 5 Sep 2004 15:09:18 -0000 Original-Received: from unknown (HELO ?192.168.1.45?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 5 Sep 2004 15:09:18 -0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: cs, en-us, en Original-To: ConTeXt X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16366 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16366 This is a multi-part message in MIME format. --------------000402030505070806080301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nice Sunday evening Hans, I played with ToUnicode resource (for correct copy&paste and search opperation in PDF). I noticed a package cmap.sty was done by Mr. Volovich for LaTeX a year ago; I did one (cmap.tex) for plain TeX yesterday and started to be interested in the situation in ConTeXt. No wonder you did it 4 years ago. But I met some minor problems: 1) if you run example file \useencoding[pfr] \setupbodyfont[csr] \starttext test \`z \'z \bf test \sl test \bs quite funny \`z \page test \`z \'z \bf test \sl test \bs quite funny \`z \page \stoptext you obtain /ToUnicode resource ONLY for first roman variant. It is due to a condition in the file enco-pfr.tex \def\doincludepdffontresource {\ifcsname\s!ucmap\fontfile\endcsname\else \dodoincludepdffontresource \fi} The condition is correct but the \fontfile is not changed when \bf, \it, etc. is used (it is still cscsc10 (?)). Might you look at a proper \fontfile definition? 2) Technical note: in ConTeXt the il2 encoding is defined. But the definition is not ISO-8859-2 (Latin 2, IL2) encoding sharp. The definition is CS font encoding (IL2cs or 8z). It is derived from il2 but it differ in 49 positions (!). For usage in Czech or Slovac languages it causes no problem but what if somebody will want to use a proper il2 font? If you want I can prepare both IL2 and (a bit richer) il2cs (8z?) enco-??.tex files. 3) File pdfr-il2.tex with CMAP definition is proper IL2 mapping. So now we combine IL2 CMAP mapping with IL2cs ConTeXt encoding. It is nosence. Suggested solution: use csr fonts with new IL2cs encoding and create new pdfr-il2cs.tex. 4) Definitions of CMAP encodings are stored in pdfr-??.tex files - it means in TeX format. But the common way is to be a stand-alone PS file, see attachement. Now I know about 5 files from Mr. Volovich (Cork, 3 russian, vietnamese) and two from me (IL2, IL2cs). Such file can be easily included by \pdfobj stream file {} mechanism. Question: I can prepare pdfr-il2cs.tex but is it not better to use more standard stand-alone files in ConTeXt? Vit Zyka --------------000402030505070806080301 Content-Type: application/postscript; name="il2.cmap" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="il2.cmap" %!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%IncludeResource: ProcSet (CIDInit) %%BeginResource: CMap (IL2-0-0) %%Title: (IL2-0-0 IL2 0 0) %%Version: 1.000 %%Copyright: Copyright 2004 Vit Zyka, zyka.vit@seznam.cz %%Copyright: This package is distributed in the hope %%Copyright: that it will be useful, but WITHOUT ANY WARRANTY. %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (IL2) /Supplement 0 >> def /CMapName /TeX-T1-0 def /CMapType 2 def 1 begincodespacerange <00> endcodespacerange 1 beginbfrange <20> <7E> <0000> endbfrange 95 beginbfchar <0161> <02C7> <02D8> <0141> <00A4> <013D> <00A6> <00A7> <00A8> <0160> <015E> <0164> <00AC> <00AD> <017D> <017B> <00B0> <00B1> <02DB> <0142> <00B4> <013E> <00B6> <00B7> <00B8> <0161> <015F> <0165> <02DD> <017E> <017C> <0154> <00C1> <00C2> <0102> <00C4> <0139> <0106> <00C7> <010C> <00C9> <0118> <00CB> <011A> <00CD> <00CE> <010E> <0110> <0143> <0147> <00D3> <00D4> <0150> <00D6> <00D7> <0158> <016E> <00DA> <0170> <00DC>
<00DD> <0162> <00DF> <0155> <00E1> <00E2> <0103> <00E4> <013A> <0107> <00E7> <010D> <00E9> <0119> <00EB> <011B> <00ED> <00EE> <010F> <0111> <0144> <0148> <00F3> <00F4> <0151> <00F6> <00F7> <0159> <016F> <00FA> <0171> <00FC> <00FD> <0163> <02D9> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF --------------000402030505070806080301 Content-Type: application/postscript; name="il2cs.cmap" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="il2cs.cmap" %!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%IncludeResource: ProcSet (CIDInit) %%BeginResource: CMap (IL2-cs-0) %%Title: (IL2-cs-0 IL2 cs 0) %%Version: 1.000 %%Copyright: Copyright 2004 Vit Zyka, zyka.vit@seznam.cz %%Copyright: This package is distributed in the hope %%Copyright: that it will be useful, but WITHOUT ANY WARRANTY. %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (IL2cs) /Supplement 0 >> def /CMapName /TeX-IL2cs-0 def /CMapType 2 def 1 begincodespacerange <00> endcodespacerange 1 beginbfrange <20> <7A> <0020> endbfrange 91 beginbfchar <00> <0393> <01> <0394> <02> <0398> <03> <039B> <04> <039E> <05> <03A0> <06> <03A3> <07> <03D2> <08> <03A6> <09> <03A8> <0A> <03A9> <0B> <0C> <0D> <0E> <0F> <10> <0131> <11> <006A> <12> <0060> <13> <00B4> <14> <030C> <15> <0306> <16> <0305> <17> <030A> <18> <0327> <19> <00DF> <1A> <00E6> <1B> <00D3> <1C> <00F8> <1D> <00C6> <1E> <00D2> <1F> <00D8> <7B> <2013> <7C> <2014> <7D> <0022> <7E> <007E> <7F> <0308> <8D> <2030> <98> <00C0> <9C> <002D> <9D> <0328> <9E> <00AB> <9F> <00BB> <0161> <013D> <0160> <0164> <017D> <013E> <00B8> <0161> <0165> <017E> <0154> <00C1> <00C4> <0139> <010C> <00C9> <011A> <00CD> <010E> <0147> <00D3> <00D4> <00D6> <0158> <016E> <00DA> <00DC>
<00DD> <0155> <00E1> <00E4> <013A> <010D> <00E9> <011B> <00ED> <010F> <0148> <00F3> <00F4> <00F6> <0159> <016F> <00FA> <00FC> <00FD> <201E> <201F> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF --------------000402030505070806080301 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------000402030505070806080301--