From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16468 Path: main.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: CMAP and IL2 encoding Date: Wed, 15 Sep 2004 20:27:18 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41488986.2060808@seznam.cz> References: <413B2C15.9080305@seznam.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1095272860 15344 80.91.229.6 (15 Sep 2004 18:27:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2004 18:27:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 15 20:27:24 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 1C7eV2-0008Bk-00 for ; Wed, 15 Sep 2004 20:27:24 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B38B71278D; Wed, 15 Sep 2004 20:27:23 +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 09265-05; Wed, 15 Sep 2004 20:27:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F40CE1276B; Wed, 15 Sep 2004 20:27:22 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 338991276B for ; Wed, 15 Sep 2004 20:27:22 +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 09327-03 for ; Wed, 15 Sep 2004 20:27:21 +0200 (CEST) Original-Received: from smtp.seznam.cz (unknown [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id 5FC41126F8 for ; Wed, 15 Sep 2004 20:27:21 +0200 (CEST) Original-Received: (qmail 29909 invoked from network); 15 Sep 2004 18:27:19 -0000 Original-Received: from unknown (HELO ?192.168.1.45?) (vit.zyka@82.142.74.35) by smtp.seznam.cz with SMTP; 15 Sep 2004 18:27:19 -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 In-Reply-To: <413B2C15.9080305@seznam.cz> 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:16468 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16468 Some auto-answers ;-) Add 1: I thing the answer is waiting only for Hans. Add 2: il2 name is all right for encoding of csr fonts in ConTeXt. I was confused of what is called il2. il2 in TeX world is encoding of CS fonts (csr). Do not confuse with ISO-8859-2 so called Latin 2. Never mind, in enco-il2.tex are still missing some not-so-important chars. Add 3: Definition of pdfr-il2.tex (CMAP) is for ISO-8859-2 fonts so it is not suited for csr font (I believe it was the first [and perhaps last also] intention). Add 4: Decision for ConTeXt developers(?) According to the decision I can prepare the CMAP files for il2, xl2, cp1250, and ISO-8859-2 encodings. Vit Zyka > I played with ToUnicode resource (for correct copy&paste and search=20 > opperation in PDF). I noticed a package cmap.sty was done by Mr.=20 > Volovich for LaTeX a year ago; I did one (cmap.tex) for plain TeX=20 > yesterday and started to be interested in the situation in ConTeXt. No=20 > wonder you did it 4 years ago. But I met some minor problems: >=20 > 1) if you run example file > \useencoding[pfr] > \setupbodyfont[csr] >=20 > \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 du= e > 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 (?)). >=20 > Might you look at a proper \fontfile definition? >=20 > 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. >=20 > 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. >=20 > 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 fil= e > 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? >=20 > Vit Zyka --=20 V=EDt Z=FDka --- http://typokvitek.com Automatic document typesetting Automaticka sazba dokumentu -- --