From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41735 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: searchable pdf in mkii, usepdffontresource stub Date: Tue, 17 Jun 2008 21:13:23 +0200 Message-ID: <48580CD3.5000100@wxs.nl> References: <4857E026.2020105@mail.ru> <4857E785.50706@wxs.nl> <485808B6.3050709@mail.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213730168 10737 80.91.229.12 (17 Jun 2008 19:16:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 19:16:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 17 21:16:50 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1K8gfB-0000Us-HM for gctc-ntg-context-518@m.gmane.org; Tue, 17 Jun 2008 21:16:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D2421FCA0; Tue, 17 Jun 2008 21:15:10 +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 24476-02; Tue, 17 Jun 2008 21:14:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F0541FC27; Tue, 17 Jun 2008 21:14:21 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 69A411FC27 for ; Tue, 17 Jun 2008 21:14:08 +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 24442-05-2 for ; Tue, 17 Jun 2008 21:13:30 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id C331C1FB39 for ; Tue, 17 Jun 2008 21:13:27 +0200 (CEST) Original-Received: from [10.100.1.124] (unverified [10.100.1.124]) by controller-1 (SurgeMail 3.9e) with ESMTP id 13708-1840426 for ; Tue, 17 Jun 2008 21:13:26 +0200 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <485808B6.3050709@mail.ru> X-Originating-IP: 10.100.1.124 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:41735 Archived-At: Oleg Kolosov wrote: > Hans Hagen wrote: >> Oleg Kolosov wrote: >> >>> Hello! >>> >>> I'm trying to generate searchable pdf with cyrrillic glyphs with the >>> following: >>> >>> \enableregime[utf] >>> \mainlanguage[ru] >>> \setupencoding[default=t2a] >>> \useencoding[pfr] >>> \usepdffontresource t2a >>> \usetypescript[pscyr][\defaultencoding] % type-pscyr is my own >>> typescript file >>> \setupbodyfont[pscyr,14pt] >>> >>> also tried with: >>> >>> \startencoding[t2a] >>> \usepdffontresource t2a >>> \stopencoding >>> >>> It seems that \usepdffontresource does nothing. I see pdfr-def loaded >>> in log, but not pdfr-t2a. \input pdfr-t2a (or pdfr-ec) says that >>> \startpdffontresource is undefined command. I've created pdfr-t2a.tex >>> by replacing definitions in pdfr-ec with ones from cmap latex package >>> (found in file t2a.cmap). I'm using ConTeXt mkII since mkIV is in >>> active development. Tried also with ec as default encoding with the >>> same result (pdfr-ec.tex is not loaded). >>> >>> Please help me create header for minimal file which will generate >>> searchable PDF. >>> >> >> pdftex does it itself (i.e. create the vectors) using pdfr-def.tex >> (unless i did something wrong) >> >> Hans >> >> > It's unlikely. I've tested it with minimal file and english text is > indeed searchable, but cyrillic is not, with copy-paste I get some > strange symbols. I'm using type1 fonts from PSCyr package with my own > typescript, does this matter? I've attached typescript file just in > case (it's still incomplete but works fine for me). Maybe I miss some > definition or option? BTW cyrillic in PDF TOC works fine (with inclusion > of spec-tst.tex). can you check if the file has the right entris for your font? pdfr-def.tex the old mechanism is obsolete so pdfr-t2a will not do anything Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________