From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104281 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Denis Maier Newsgroups: gmane.comp.tex.context Subject: Re: XML roundtripping Date: Wed, 15 May 2019 16:35:47 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1658646219317906152==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="147205"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed May 15 16:37:15 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hQv1u-000c7n-RN for gctc-ntg-context-518@m.gmane.org; Wed, 15 May 2019 16:37:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85A90138D51; Wed, 15 May 2019 16:36:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NRK44xb3geAS; Wed, 15 May 2019 16:36:06 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F2CB3138D43; Wed, 15 May 2019 16:36:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0704C138D40 for ; Wed, 15 May 2019 16:36:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id is4DVP-T8ct3 for ; Wed, 15 May 2019 16:36:03 +0200 (CEST) Original-Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 74F46138D3F for ; Wed, 15 May 2019 16:36:03 +0200 (CEST) Original-Received: by mail-pf1-f193.google.com with SMTP id s11so66129pfm.12 for ; Wed, 15 May 2019 07:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N3k/+LW0BigIE6/9HKsaLBF9gDfGv0X8hRKkB1tJYms=; b=T794jMeGiirIroED8AWUCZIedzLrBO939t8wfaHm5A+uapruZLM5GDxt91PCrz6CK4 DNmMkBtnz3WT09SjOOrdg1nM3QGOnQ/19of7kQx2i958YRKKBgtoC2XZPDdOu+nt6oVT CizHbzkuBVH7WMD5yU22azvEqv82w/cDWmSyPXr9Zt+QqCBRf3QQ0zXEJskxMWhD7nlL CGc3557ztZqtNu5KkSm1fI1FpOStieYEMqXFvLBO5b7Qlin+efevmzXcMzRZYHCEHit5 JeuwoaybYJ107BXYbtK/kIqIwR0ivAwVrO9i+NScMrYb8JsD2QmkFx75Rhhor1DDbyg2 vlYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N3k/+LW0BigIE6/9HKsaLBF9gDfGv0X8hRKkB1tJYms=; b=s/HT0qUbVYBpLpsyWa9w0XEjZs79mo/dcnB9spS9uuOfmIjjvVCb1Il8FWcV4kdrKX UlP5UCmycSn5Kv2CQIS2EFO6xbJL1QPDlfz7fpsrsc/Te2nPzeRi7DaA9InzQ+YkxhlV pMfUwYAFnT+XCRIKupWRXjA8ZaoG4kmjG2zYbJriBW5oWwp74DLB7nRn/hfD/COZgi2j WdPqaJA9LZ7ySdHl7TXwI3ulc2/4vwOw7IvUJh4v3MuHBfyeG4eOwNgIlOWRkgLvrXHu 8a+d5Lhe0gfSr1SD63W33cTOKVKOwkw88FCY6OO/LLgNDUeNO5WxZ01Lg7Ukuo8gBtYI hRdw== X-Gm-Message-State: APjAAAWZj4cIk+0Xn3qiEagh1ipJhB+DH7tTy6hVa5jhDWpE57dmse50 cDBrHCySC4g4uueu/kysw28eUlxmLZ8HasgqS99f6oip X-Google-Smtp-Source: APXvYqzKfe561OPub+075kMVZMxhuZ7R6SUnl7cVvoON7Rw45rZx71jVaKxZqTlMjPhNhX9OSJ/SXMKZpCsPlOBLYZc= X-Received: by 2002:a63:2b03:: with SMTP id r3mr43161779pgr.105.1557930961125; Wed, 15 May 2019 07:36:01 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:104281 Archived-At: --===============1658646219317906152== Content-Type: multipart/alternative; boundary="00000000000085c7ed0588ee11dc" --00000000000085c7ed0588ee11dc Content-Type: text/plain; charset="UTF-8" Our workflow is not settled yet; we're still discussing options. All depends upon what is possible ... That being said, for the purpose of displaying the articles online we'll need every article in a separate XML file. The question is if and how we will produce a PDF version containing a whole volume (we'll probably need one PDF for the whole volume and also PDFs for each article). One option would be: - merge the articles into a single XML, - typeset from there - split the PDF (Hence my question here, https://mailman.ntg.nl/pipermail/ntg-context/2019/095011.html). Another option could be: - Typeset each article individually. - Get the last page number => in the next article, set the first page number to this + 1 (So, we do not necessarily need to write the page numbers back to the XML, but we'll somehow need to pass the page number to the next article in the chain.) Am Mi., 15. Mai 2019 um 14:46 Uhr schrieb Hans Hagen : > On 5/15/2019 12:57 PM, Denis Maier wrote: > > Hmm, getting the page number back from the tuc file sound feasible. I'll > > have to look into this. > > > > But how would I write the information back to the XML? Is this explained > > somewhere? > all depends on the workflow ... why does it need to be written back? > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --00000000000085c7ed0588ee11dc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Our workflow is not settled yet; we're still disc= ussing options. All depends upon what is possible ...

That being said, for the purpose of displaying the articles online = we'll need every article in a separate XML file. The question is if and= how we will produce a PDF version containing a whole volume (we'll pro= bably need one PDF for the whole volume and also PDFs for each article).

One option would be:
- merge the articles = into a single XML,
- typeset from there
- spl= it the PDF

=
Another option could be:
- Typeset each article indivi= dually.
- Get the last page number =3D>=20 in the next article, set the first page number to this + 1
(So, we do not necessar= ily need to write the page numbers back to the XML, but we'll somehow n= eed to pass the page number to the next article in the chain.)


Am Mi., 15. Mai 2019 um 14:46=C2=A0Uhr schrieb Hans Hagen <<= a href=3D"mailto:j.hagen@xs4all.nl" target=3D"_blank">j.hagen@xs4all.nl= >:
On 5/15/20= 19 12:57 PM, Denis Maier wrote:
> Hmm, getting the page number back from the tuc file sound feasible. I&= #39;ll
> have to look into this.
>
> But how would I write the information back to the XML? Is this explain= ed
> somewhere?
all depends on the workflow ... why does it need to be written back?


-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--00000000000085c7ed0588ee11dc-- --===============1658646219317906152== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1658646219317906152==--