ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \pdfannot and \tooltip won't work with Chinese characters
Date: Tue, 17 Apr 2007 15:02:51 +0200	[thread overview]
Message-ID: <4624C57B.7070502@wxs.nl> (raw)
In-Reply-To: <769ba7780704170552q23c2872ahb263c8b7852777db@mail.gmail.com>

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
-----------------------------------------------------------------

  reply	other threads:[~2007-04-17 13:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11  4:51 Zhichu Chen
2007-04-13  6:24 ` Zhichu Chen
2007-04-17 11:31   ` Hans Hagen
2007-04-17 12:52     ` Zhichu Chen
2007-04-17 13:02       ` Hans Hagen [this message]
2007-04-18  0:41         ` Zhichu Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4624C57B.7070502@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).