From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31150 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: bfrange block CMap error in pdf file Date: Sun, 01 Oct 2006 11:06:28 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159715229 30934 80.91.229.2 (1 Oct 2006 15:07:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 1 Oct 2006 15:07:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 01 17:07:07 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GU2uC-0008AO-IH for gctc-ntg-context-518@m.gmane.org; Sun, 01 Oct 2006 17:07:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B80761FE1A; Sun, 1 Oct 2006 17:06:59 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09238-03-3; Sun, 1 Oct 2006 17:06:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 406591FDF8; Sun, 1 Oct 2006 17:06:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D65641FDF8 for ; Sun, 1 Oct 2006 17:06:46 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09238-03-2 for ; Sun, 1 Oct 2006 17:06:38 +0200 (CEST) Original-Received: from elasmtp-scoter.atl.sa.earthlink.net (elasmtp-scoter.atl.sa.earthlink.net [209.86.89.67]) by ronja.ntg.nl (Postfix) with SMTP id 407461FDF6 for ; Sun, 1 Oct 2006 17:06:36 +0200 (CEST) Original-Received: from [24.41.6.91] (helo=approximate.corpus.cam.ac.uk) by elasmtp-scoter.atl.sa.earthlink.net with asmtp (TLSv1:AES256-SHA:256) (Exim 4.34) id 1GU2tn-0008EJ-T7; Sun, 01 Oct 2006 11:06:36 -0400 Original-Received: from sanjoy by approximate.corpus.cam.ac.uk with local (Exim 4.60) (envelope-from ) id 1GU2tg-0005o5-7C; Sun, 01 Oct 2006 11:06:28 -0400 Original-To: ntg-context@ntg.nl X-Mailer: MH-E 7.85; nmh 1.1; GNU Emacs 21.4.1 X-ELNK-Trace: dcd19350f30646cc26f3bd1b5f75c9f474bf435c0eb9d4786a166ed818d7c747b09f03664947c8b69c1b7bb36377315a350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.6.91 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31150 Archived-At: This file produces just a boldface 'a' via metafun: ============= bf.tex ============== \setuppagenumbering[location=] \starttext \startreusableMPgraphic{fig} label (\sometxt{\bf a}, (0,0)); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext ============= bf.tex ============== 'xpdf bf.pdf' produces tons of this error: Error: Illegal entry in bfrange block in ToUnicode CMap The log file had complaints from pdfetex about not finding fonts: Warning: pdfetex (file /home/sanjoy/texmf/fonts/map/dvipdfm/context/original-public-lm.map): invalid entry for `cmex9': font file missing which I eventually fixed by getting it to use the pdftex map files instead of the dvipdfm map files. Though I don't understand fully why I could fix it (but that's for another msg). Even with the map files being found, the bfrange block error remained. The test file worked fine on the context live, so I diffed its pdf file with the one generated here, after uncompressing both (using pdftk: "pdftk bf.pdf output bb.pdf uncompress"). One difference is the following line in the broken pdf file: /CIDInit /ProcSet findresource begin12 dict beginbegincmap/CIDSystemInfo<< /Registry (TeX)/Ordering (T1)/Supplement 0>> def/CMapName /TeX-T1-0 def/CMapType 2 def1 begincodespacerange<00> endcodespacerange10 beginbfrange<0E> <0F> <2039><10> <12> <201C><15> <16> <2013><21> <26> <0021><28> <5F> <0028><61> <7E> <0061> <00C0> <00D8> <00E0> <00F8>endbfrange95 beginbfchar<00> <0060><01> <00B4><02> <02C6><03> <02DC><04> <00A8><05> <02DD><06> <02DA><07> <02C7><08> <02D8><09> <00AF><0A> <02D9><0B> <00B8><0C> <02DB><0D> <201A><13> <00AB><14> <00BB><17> <200C><19> <0131><1B> <00660066><1C> <00660069><1D> <0066006C><1E> <006600660069><1F> <00660066006C><20> <2423><27> <2019><60> <2018><7F> <002D><80> <0102><81> <0104><82> <0106><83> <010C><84> <010E><85> <011A><86> <0118><87> <011E><88> <0139><89> <013D><8A> <0141><8B> <0143><8C> <0147><8D> <014A><8E> <0150><8F > <0154><90> <0158><91> <015A><92> <0160><93> <015E><94> <0164><95> <021A><96> <0170><97> <016E><98> <0178><99> <0179><9A> <017D><9B> <017B><9C> <0132><9D> <0130><9E> <0111><9F> <00A7> <0103> <0105> <0107> <010D> <010F> <011B> <0119> <011F> <013A> <013E> <0142> <0144> <0148> <014B> <0151> <0155> <0159> <015B> <0161> <015F> <0165> <021B> <0171> <016F> <00FF> <017A> <017E> <017C> <0133> <00A1> <00BF> <00A3> <0152> <00530053> <0153> <00DF>endbfcharendcmapCMapName currentdict /CMap defineresource pop endend If I remove the '\bf' from the test .tex file, ============= bf-rm.tex ============== \setuppagenumbering[location=] \starttext \startreusableMPgraphic{fig} label (\sometxt{\a}, (0,0)); \stopreusableMPgraphic \reuseMPgraphic{fig} \stoptext ============= bf-rm.tex ============== the resulting pdf file views without any errors, and this is the corresponding line in its uncompressed pdf file: /CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (TeX) /Ordering (T1) /Supplement 0 >> def /CMapName /TeX-T1-0 def /CMapType 2 def 1 begincodespacerange <00> endcodespacerange 10 beginbfrange <0E> <0F> <2039> <10> <12> <201C> <15> <16> <2013> <21> <26> <0021> <28> <5F> <0028> <61> <7E> <0061> <00C0> <00D8> <00E0> <00F8> endbfrange 95 beginbfchar <00> <0060> <01> <00B4> <02> <02C6> <03> <02DC> <04> <00A8> <05> <02DD> <06> <02DA> <07> <02C7> <08> <02D8> <09> <00AF> <0A> <02D9> <0B> <00B8> <0C> <02DB> <0D> <201A> <13> <00AB> <14> <00BB> <17> <200C> <19> <0131> <1B> <00660066> <1C> <00660069> <1D> <0066006C> <1E> <006600660069> <1F> <00660066006C> <20> <2423> <27> <2019> <60> <2018> <7F> <002D> <80> <0102> <81> <0104> <82> <0106> <83> <010C> <84> <010E> <85> <011A> <86> <0118> <87> <011E> <88> <0139> <89> < 013D> <8A> <0141> <8B> <0143> <8C> <0147> <8D> <014A> <8E> <0150> <8F> <0154> <90> <0158> <91> <015A> <92> <0160> <93> <015E> <94> <0164> <95> <021A> <96> <0170> <97> <016E> <98> <0178> <99> <0179> <9A> <017D> <9B> <017B> <9C> <0132> <9D> <0130> <9E> <0111> <9F> <00A7> <0103> <0105> <0107> <010D> <010F> <011B> <0119> <011F> <013A> <013E> <0142> <0144> <0148> <014B> <0151> <0155> <0159> <015B> <0161> <015F> <0165> <021B> <0171> <016F> <00FF> <017A> <017E> <017C> <0133> <00A1> <00BF> <00A3> <0152> <00530053> <0153> <00DF> endbfchar endcmap CMapName currentdict /CMap defineresource pop end end One difference between the working and broken pdf file is the spacing in that line. The working pdf file has def /CMapType 2 def 1 begincodespacerange <00> ... beginbfrange <0E> The broken one has def/CMapType 2 def1 begincodespacerange<00> ... beginbfrange<0E> which may explain why xpdf is unhappy about the range entries. I'm not sure whether it's due to a further problem with my map files or texmf.cnf paths, or is a bug in pdftex. Any thoughts? Distribution: Ubuntu 6.06 with tetex 3.0 plus lmodern from Debian pkg pdfeTeX: Version 3.141592-1.30.6-2.2 (Web2C 7.5.5) ConTeXt: ver: 2006.09.28 22:43 MK II fmt: 2006.9.30 int: english/english (the live context uses pdfeTeX-1.21a, and didn't produce a corresponding CMap section, so it had no problem in xpdf). -Sanjoy `A society of sheep must in time beget a government of wolves.' -- Bertrand de Jouvenal