From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34310 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \pdfannot and \tooltip won't work with Chinese characters Date: Tue, 17 Apr 2007 15:02:51 +0200 Message-ID: <4624C57B.7070502@wxs.nl> References: <769ba7780704102151j32030d30v9282e3bd9fd91d12@mail.gmail.com> <769ba7780704122324p797ac6f7qed0da9ceb8ba26cb@mail.gmail.com> <4624B00E.8050103@wxs.nl> <769ba7780704170552q23c2872ahb263c8b7852777db@mail.gmail.com> 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: sea.gmane.org 1176814982 10952 80.91.229.12 (17 Apr 2007 13:03:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Apr 2007 13:03:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 17 15:02:55 2007 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 1HdnKf-0001yE-Jf for gctc-ntg-context-518@m.gmane.org; Tue, 17 Apr 2007 15:02:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4D91820277; Tue, 17 Apr 2007 15:02:52 +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 03817-09-3; Tue, 17 Apr 2007 15:02:43 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3DAF72026C; Tue, 17 Apr 2007 15:02:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5C3E2026C for ; Tue, 17 Apr 2007 15:02:39 +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 03817-09-2 for ; Tue, 17 Apr 2007 15:02:36 +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 C9E4020262 for ; Tue, 17 Apr 2007 15:02:36 +0200 (CEST) Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 18776 for ; Tue, 17 Apr 2007 15:02:36 +0200 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <769ba7780704170552q23c2872ahb263c8b7852777db@mail.gmail.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 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:34310 Archived-At: Zhichu Chen wrote: > Thanks Hans, > > It works. But only the /Contents part was converted correctly, the /T > part > is still not so good. So I redefined your \doPDFinsertcomment macro and > changed the third line from > ======================== > \doifelsenothing{#1} > {\let\PDFidentifier\empty} > {\def\PDFidentifier{/T (#1)}}% > ======================== > to > ======================== > \doifelsenothing{#1} > {\let\PDFidentifier\empty} > {\sanitizePDFencoding#1\to\PDFcommenttitle\def\PDFidentifier{/T > \ifPDFunicode <\PDFcommenttitle>\else (\PDFcommenttitle)\fi}}% > ======================== > > Now it's OK for me. I hope there's a more clever way that I don't need to > copy such long codes to my source file. just patch spec-fdf i changed it here so it will be in the next release (which reminds me that for luatex i need to make a driver file dealing with such issues) 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 -----------------------------------------------------------------