From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21232 Path: news.gmane.org!not-for-mail From: Stuart Jansen Newsgroups: gmane.comp.tex.context Subject: Re: literal escape strings in bookmarks Date: Thu, 07 Jul 2005 10:29:08 -0600 Organization: Guru Labs, L.C. Message-ID: <1120753748.8987.8.camel@localhost.localdomain> References: <1120691134.8923.8.camel@localhost.localdomain> <42CCD714.6010509@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0542293962==" X-Trace: sea.gmane.org 1120753869 25214 80.91.229.2 (7 Jul 2005 16:31:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 16:31:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 07 18:31:00 2005 Return-path: 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 1DqZFz-0003MS-Gx for gctc-ntg-context-518@m.gmane.org; Thu, 07 Jul 2005 18:29:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1D622127CF; Thu, 7 Jul 2005 18:29:47 +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 23764-02; Thu, 7 Jul 2005 18:29:46 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A1EDF1279E; Thu, 7 Jul 2005 18:25:02 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A62E01279E for ; Thu, 7 Jul 2005 18:25:00 +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 23440-06-2 for ; Thu, 7 Jul 2005 18:24:59 +0200 (CEST) Original-Received: from mail.gurulabs.com (mail.gurulabs.com [67.137.148.7]) by ronja.ntg.nl (Postfix) with ESMTP id 9437E12772 for ; Thu, 7 Jul 2005 18:24:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by mail.gurulabs.com (Postfix) with ESMTP id A053DAF496 for ; Thu, 7 Jul 2005 10:24:58 -0600 (MDT) Original-Received: from mail.gurulabs.com ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 14113-06 for ; Thu, 7 Jul 2005 10:24:57 -0600 (MDT) Original-Received: from dhcp7.glwlan.gurulabs.com (dhcp7.glwlan.gurulabs.com [10.2.3.7]) by mail.gurulabs.com (Postfix) with ESMTP for ; Thu, 7 Jul 2005 10:24:57 -0600 (MDT) Original-To: mailing list for ConTeXt users In-Reply-To: <42CCD714.6010509@wxs.nl> X-Mailer: Evolution 2.2.1.1 X-Virus-Scanned: by amavisd-new at gurulabs.com X-Virus-Scanned: 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: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21232 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21232 --===============0542293962== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Pq8vRjnOrmR9x82XNsHt" --=-Pq8vRjnOrmR9x82XNsHt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2005-07-07 at 09:17 +0200, Hans Hagen wrote: > there some sanitizing mechanism, but i'm not sure if you wan that here; W= hy do=20 > you use the hard coded \char's? If you use the named access mechanisms th= ey are=20 > normally handled ok in bookmarks Mostly because I wasn't aware they existed. Your suggestion mostly works. Unfortunately, I still have a problem with the braces. I'm doing automated document generation, and I've had problems with stray spaces finding their way into the document, so I've taken to always using {\letterbar} or \letterunderscore{}. I suppose I might be able to solve the problem instead with some creative post-processing, but it'd be kinda tricky. Any simple solutions? =3D=3D=3D=3D=3D \setupinteraction[state=3Dstart] \starttext \placebookmarks[chapter,section] \chapter{test{\letterunderscore}chapter} The underscore character needs to be escaped in certain situations. \chapter{start\letterbar{}stop} So does the pipe symbol. \chapter{foo} \section{bar} How can I avoid literals escape strings in bookmarks? \stoptext =3D=3D=3D=3D=3D --=20 Stuart Jansen Guru Labs, L.C. --=-Pq8vRjnOrmR9x82XNsHt Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBCzVhTwTOJ4P81PNARAoI9AJ9DWnNdQvENCuNEg8WTDMbSKeItvACfaVPy LIW2i5PsMh5Kgg1Ml1gzA0I= =Byet -----END PGP SIGNATURE----- --=-Pq8vRjnOrmR9x82XNsHt-- --===============0542293962== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0542293962==--