From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88592 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: E-books and XML. Date: Fri, 29 Aug 2014 12:17:21 +0200 Message-ID: <54005331.4060603@wxs.nl> References: <20140826110712.2b02eff7@localb.wexfordpress.net> <60DE02B5-FC2C-4656-92A4-2E0B87D86C9F@fiee.net> <53FCC415.2070001@wxs.nl> <11FBFD1E-F926-4897-8ECE-ABA34F1B104A@fiee.net> <53FD9F76.40309@wxs.nl> <53FDA6F1.9000800@wxs.nl> <53FDADB8.50403@wxs.nl> <53FEE6B3.8040502@wxs.nl> <252EE179-5D8F-4E30-9493-B73DF04817CD@fiee.net> <53FF6966.5020505@wxs.nl> <7093C082-9948-4BBF-B85C-255231394D5B@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1409307470 14948 80.91.229.3 (29 Aug 2014 10:17:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 10:17:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 29 12:17:46 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XNJFX-000856-6t for gctc-ntg-context-518@m.gmane.org; Fri, 29 Aug 2014 12:17:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94045102C7 for ; Fri, 29 Aug 2014 12:17:42 +0200 (CEST) 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 WVeEnYO3uAuH for ; Fri, 29 Aug 2014 12:17:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 259231021F for ; Fri, 29 Aug 2014 12:17:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3376101E3 for ; Fri, 29 Aug 2014 12:17:30 +0200 (CEST) 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 EC5b+7cVm8ch for ; Fri, 29 Aug 2014 12:17:25 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id C9A70101E1 for ; Fri, 29 Aug 2014 12:17:25 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7TAHO8r030508 for ; Fri, 29 Aug 2014 12:17:24 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 5873-1713362 for ; Fri, 29 Aug 2014 12:17:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <7093C082-9948-4BBF-B85C-255231394D5B@fiee.net> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5125; longitude=6.0944; http://maps.google.com/maps?q=52.5125,6.0944&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VMIyhoJx - c6e4cdb8cb9a - 20140829 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88592 Archived-At: On 8/29/2014 8:33 AM, Henning Hraban Ramm wrote: > Am 2014-08-28 um 23:39 schrieb Hans Hagen : >>> I just recognized there=92s a problem with references, esp. register: >>> >>> .... >>>
>>> Erinnerung >>> .... >>> Erinnerung >>> >>> 4 >>> .... >>> Vor meinem inn=92ren Auge schweben Namen >>> >>> 4 >>> >>> (These are title and start of lyrics of a song.) >>> >>> Beside the inconvenience that there is no node wrapping registerentry a= nd registerpages, the locations don=92t match. >>> If there are several index entries pointing to the same point (page), a= s here, they=92re continuously numbered, so that it=92s no solution to just= subtract 1, as I do at the moment to create my ToC. >> >> new beta >> >> \setupbackend >> [export=3Dyes, >> xhtml=3Dyes, >> css=3Dexport-example.css] >> >> \starttext >> >> \index{foo}foo \page >> \index{bar}bar \page >> \index{foo}foo \page >> \index{bar}bar \page >> \index{foo+test}foo \page >> \index{bar+test}bar \page >> >> \placeregister[index] >> >> \stoptext >> >> gives: >> >> >> >> b >> >> >> bar >> 2,4 >> >> >> >> test >> 6 >> >> >> >> >> >> f >> >> >> foo >> 1,3 >> >> >> >> test >> 5 >> >> >> >> >> >> >>> Maybe the internal location numbers mean something, but I need a workin= g reference; export.xml doesn=92t know anything about pages, therefore the = destination makes no sense. Doesn=92t ConTeXt have some unique internal ref= erence name? > > Thank you for caring, the tag hierarchy is good now, but why did you leav= e out the locations now? > I need some connection between register entry and the origin to be able t= o create a link. > I can=92t use the page numbers, since they don=92t exist in the XML (and = of course they make no sense there). There is probably some more cleanup to do with respect to referencing = (like with lists) but it takes time (till now I never really needed the = export which started as a quick and dirty experiment and normally I need = usage in projects to spend real time on such things.) Anyway. I've added some more register stuff, but not yet in the default = css where the register is simply ignored (no time for that now). Maybe we should make a todo list for the export. It's not that complex = but just takes time. New beta ... Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________