From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65855 Path: news.gmane.org!not-for-mail From: Steffen Wolfrum Newsgroups: gmane.comp.tex.context Subject: conversionsets fall back in bookmarks Date: Sun, 6 Feb 2011 10:35:55 +0100 Message-ID: <6E941DD7-4E7D-48D2-B70F-417193662F2F@st.estfiles.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1296984979 23245 80.91.229.12 (6 Feb 2011 09:36:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Feb 2011 09:36:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Feb 06 10:36:15 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pm12V-0006ty-3v for gctc-ntg-context-518@m.gmane.org; Sun, 06 Feb 2011 10:36:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2E62CA88B; Sun, 6 Feb 2011 10:36:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pPCvUBgV8vTe; Sun, 6 Feb 2011 10:36:10 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA0F0CA933; Sun, 6 Feb 2011 10:36:10 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AAC1ACA933 for ; Sun, 6 Feb 2011 10:36:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9VsylbhLtOMv for ; Sun, 6 Feb 2011 10:35:58 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 7A0E8CA88B for ; Sun, 6 Feb 2011 10:35:58 +0100 (CET) Original-Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.18.44]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p169ZvA1019418 for ; Sun, 6 Feb 2011 10:35:58 +0100 Original-Received: from [89.247.97.252] (helo=[192.168.1.4]) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Pm12C-0003A1-PE for ntg-context@ntg.nl; Sun, 06 Feb 2011 10:35:56 +0100 X-Mailer: Apple Mail (2.1082) X-Df-Sender: 698580 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.67.18.44; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eE4xzVfF - 696b859f1523 - 20110206 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:65855 Archived-At: Hi, own conversionsets can be defined eg. like this: \define[1]\TestConversion {(\characters{#1}\characters{#1})} \defineconversion [TestCon] [\TestConversion] As expected this gives "aa" and "bb" etc. Only when using PDF bookmarks these conversions fall back to numbers (see example below). A workaround could be to write these conversions explicitly: \defineconversion [TestCon][{aa},{bb},{cc},{dd},...] Here the "aa" etc conversion is preserved in bookmarks too. Only, it is not very elegant and for long documents with many sections it may lead to typos. Hence, my question: Is there a low-level trick to preserve conversionsets, defined like {(\characters{#1}\characters{#1})}, so they appear in bookmarks, too? Thanks, Steffen ------ \setupinteraction[state=start] \setupinteractionscreen [option=bookmark] \placebookmarks[chapter,section][chapter,section] %This does nots work: \define[1]\TestConversion {(\characters{#1}\characters{#1})} \defineconversion [TestCon] [\TestConversion] % % This works: %\defineconversion [TestCon][{aa},{bb},{cc},{dd},{ee},{ff},{gg},{hh},{ii},{jj},{kk},{ll},{mm},{nn},{oo},{pp},{qq},{rr}] % \definestructureconversionset [default] [ , TestCon,characters] [numbers] \starttext \chapter{one} \section{two} test \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________