ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ePub issues: XML structure
@ 2020-03-04  6:55 Henning Hraban Ramm
  2020-03-04  8:58 ` Hans Hagen
  2020-03-06  8:33 ` Henning Hraban Ramm
  0 siblings, 2 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-03-04  6:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Not only Hans van der Meer is producing (or trying to produce) ePubs at the moment; I reviewed my XSLT workflow (https://wiki.contextgarden.net/Epub_Sample) since my publisher colleagues and our distributor aren’t happy about just publishing PDFs as eBooks.

While the first book in a series of four is now ready with a lot of manual corrections, in the second one the XML structure is messed up: the chapter title structure comes only after the chapter content, and index entry tags are empty with the actual entry behind like this:

<paragraph>Ein sentimentales Rührstück ist <highlight detail="emph">Rico, Oskar und die Tieferschatten</highlight> dennoch nicht. Die beiden Hauptdarsteller <registerlocation detail="index" internal="396"></registerlocation>Anton Petzold (Rico) und <registerlocation detail="index" internal="397"></registerlocation>Juri Winkler (Oskar) füllen ihre Rollen ganz wunderbar aus...</paragraph>

In ConTeXt code I marked the actors with
\def\NPers#1#2{\index{#2, #1}#1 #2}
as \NPers{Anton}{Petzold}.

But since that just uses \index, the XML tag should catch the contents, don’t you think?

I’ll come up with a MWE; don’t know if I’ll manage to reproduce the title/contents mixup though. The other book’s export is ok within the same project. It uses the same environment, but a slightly differing chapter setup. Any hints which setting could cause the re-ordering? (And I use \startchapter … \stopchapter of course.)

Best, Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-04  6:55 ePub issues: XML structure Henning Hraban Ramm
@ 2020-03-04  8:58 ` Hans Hagen
  2020-03-11 19:59   ` Henning Hraban Ramm
  2020-03-06  8:33 ` Henning Hraban Ramm
  1 sibling, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2020-03-04  8:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

On 3/4/2020 7:55 AM, Henning Hraban Ramm wrote:
> Not only Hans van der Meer is producing (or trying to produce) ePubs at the moment; I reviewed my XSLT workflow (https://wiki.contextgarden.net/Epub_Sample) since my publisher colleagues and our distributor aren’t happy about just publishing PDFs as eBooks.
> 
> While the first book in a series of four is now ready with a lot of manual corrections, in the second one the XML structure is messed up: the chapter title structure comes only after the chapter content, and index entry tags are empty with the actual entry behind like this:
> 
> <paragraph>Ein sentimentales Rührstück ist <highlight detail="emph">Rico, Oskar und die Tieferschatten</highlight> dennoch nicht. Die beiden Hauptdarsteller <registerlocation detail="index" internal="396"></registerlocation>Anton Petzold (Rico) und <registerlocation detail="index" internal="397"></registerlocation>Juri Winkler (Oskar) füllen ihre Rollen ganz wunderbar aus...</paragraph>
> 
> In ConTeXt code I marked the actors with
> \def\NPers#1#2{\index{#2, #1}#1 #2}
> as \NPers{Anton}{Petzold}.
> 
> But since that just uses \index, the XML tag should catch the contents, don’t you think?
> 
> I’ll come up with a MWE; don’t know if I’ll manage to reproduce the title/contents mixup though. The other book’s export is ok within the same project. It uses the same environment, but a slightly differing chapter setup. Any hints which setting could cause the re-ordering? (And I use \startchapter … \stopchapter of course.)
personally id i'd want an export i'd use a mode where i turn off all 
kind of fancy formatting

at some time i might even split off the export in the sense that when 
enabled some other layout features get disabled (for instance: when you 
make a chapter title setup that completely decouples the order, e.g. put 
it on some layer, you can't expect an export to work: export doesn't 
look at the input, it works with the output and reconstructs from that)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-04  6:55 ePub issues: XML structure Henning Hraban Ramm
  2020-03-04  8:58 ` Hans Hagen
@ 2020-03-06  8:33 ` Henning Hraban Ramm
  1 sibling, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-03-06  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 2020-03-04 um 07:55 schrieb Henning Hraban Ramm <hraban@fiee.net>:
> 
> While the first book in a series of four is now ready with a lot of manual corrections, in the second one the XML structure is messed up: the chapter title structure comes only after the chapter content, and index entry tags are empty with the actual entry behind like this:
> 
> <paragraph>Ein sentimentales Rührstück ist <highlight detail="emph">Rico, Oskar und die Tieferschatten</highlight> dennoch nicht. Die beiden Hauptdarsteller <registerlocation detail="index" internal="396"></registerlocation>Anton Petzold (Rico) und <registerlocation detail="index" internal="397"></registerlocation>Juri Winkler (Oskar) füllen ihre Rollen ganz wunderbar aus...</paragraph>
> 
> In ConTeXt code I marked the actors with
> \def\NPers#1#2{\index{#2, #1}#1 #2}
> as \NPers{Anton}{Petzold}.
> 
> But since that just uses \index, the XML tag should catch the contents, don’t you think?

Coming back to this. I recognized that of course the name behind </registerlocation> is completely correct and according to my definition of \NPers.
But the content of \index (here: "Petzold, Anton") is still missing, while the command creates this <registerlocation> structure.

Since you (Hans) say the export only looks at the output, then it makes sense that is empty, since there’s nothing to see.

Actually my XSLT already looks for the <registerentry>:

<registerentry>
<registercontent>Petzold, Anton</registercontent>
<registerpages><registerpage><link destination="internal(396)" location="396" prefix="c_anhang">76</link></registerpage><registerseparator>,</registerseparator><registerpage><link destination="internal(406)" location="406" prefix="c_anhang">77</link></registerpage></registerpages>
</registerentry>

And the lookup actually works, so I don’t know why I’m complaining. Didn’t understand my own workflow any more.

Now to solve the title structure mystery…


Best, Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-04  8:58 ` Hans Hagen
@ 2020-03-11 19:59   ` Henning Hraban Ramm
  2020-03-11 21:42     ` Axel Kielhorn
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-03-11 19:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Axel,
will I meet you by chance at the DANTE in Lübeck?

In that case it would be nice if you could assist me with my "ConTeXt for beginners workshop" to tell something about Lua & XML.

Greetlings, Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-11 19:59   ` Henning Hraban Ramm
@ 2020-03-11 21:42     ` Axel Kielhorn
  2020-03-12  7:09       ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Axel Kielhorn @ 2020-03-11 21:42 UTC (permalink / raw)
  To: ntg-context



> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> Hi Axel,
> will I meet you by chance at the DANTE in Lübeck?
> 
> In that case it would be nice if you could assist me with my "ConTeXt for beginners workshop" to tell something about Lua & XML.
> 
> Greetlings, Hraban

Actually your workshop is the reason I plan to attend the meeting.

I hope Corona does not interfere.

Greetling[1], Axel

[1] There are no Tikzgreetlings, as far as I know.


___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-11 21:42     ` Axel Kielhorn
@ 2020-03-12  7:09       ` Henning Hraban Ramm
  2020-03-12 11:58         ` Axel Kielhorn
  0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-03-12  7:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn <tex@axelkielhorn.de>:
> 
>> Am 11.03.2020 um 20:59 schrieb Henning Hraban Ramm <texml@fiee.net>:
>> 
>> Hi Axel,
>> will I meet you by chance at the DANTE in Lübeck?
>> 
>> In that case it would be nice if you could assist me with my "ConTeXt for beginners workshop" to tell something about Lua & XML.
>> 
>> Greetlings, Hraban
> 
> Actually your workshop is the reason I plan to attend the meeting.

Nice to hear, you’re welcome!

> I hope Corona does not interfere.

me too! Yesterday the DANTE board wrote they’re still considering.
Well, my bed is paid for, and won’t get refunded.

> Greetling[1], Axel
> 
> [1] There are no Tikzgreetlings, as far as I know.

;)
While I got used to TikZ in a LaTeX project, I’m not very fond of TikZlings (funny, but not as funny as their creators seem to deem them).

(My greetlings are just a translation of the “Grüßlinge” that we used in one of my youth groups. I’m fading them out.)

Best, Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ePub issues: XML structure
  2020-03-12  7:09       ` Henning Hraban Ramm
@ 2020-03-12 11:58         ` Axel Kielhorn
  0 siblings, 0 replies; 7+ messages in thread
From: Axel Kielhorn @ 2020-03-12 11:58 UTC (permalink / raw)
  To: ntg-context



> Am 12.03.2020 um 08:09 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
>> Am 2020-03-11 um 22:42 schrieb Axel Kielhorn <tex@axelkielhorn.de>:
>> 
>> Actually your workshop is the reason I plan to attend the meeting.
> 
> Nice to hear, you’re welcome!

As a preparation I have updated my german intro at:

https://github.com/AKielhorn/Context-Intro

> 
>> I hope Corona does not interfere.
> 
> me too! Yesterday the DANTE board wrote they’re still considering.
> Well, my bed is paid for, and won’t get refunded.

We’ll see.

Greetings Axel

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-12 11:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04  6:55 ePub issues: XML structure Henning Hraban Ramm
2020-03-04  8:58 ` Hans Hagen
2020-03-11 19:59   ` Henning Hraban Ramm
2020-03-11 21:42     ` Axel Kielhorn
2020-03-12  7:09       ` Henning Hraban Ramm
2020-03-12 11:58         ` Axel Kielhorn
2020-03-06  8:33 ` Henning Hraban Ramm

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