ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Epub broken
@ 2018-07-04 13:17 Rik Kabel
  2018-07-05 14:27 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Rik Kabel @ 2018-07-04 13:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2240 bytes --]

The following example fails with recent betas, but not with TL18:

    \setupinteraction [state=start]
    \setuptagging     [state=start]
    \setupbackend     [export=yes,xhtml=yes]
    \setupexport      [title={Title}]
    \setupstructure   [state=start]
    \starttext
    \startchapter[title={Chapter title}]
    \startparagraph
       Chapter introduction.
    \stopparagraph
    \startsection[title={Section 1 title}]
    \startparagraph
       Section one text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 2 title}]
    \startparagraph
       Section two text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 3 title}]
    \startparagraph
       Section three text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 4 title}]
    \startparagraph
       Section four text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 5 title}]
    \startparagraph
       Section five text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 6 title}]
    \startparagraph
       Section six text.
    \stopparagraph
    \stopsection
    \startsection[title={Section 7 title}]
    \startparagraph
       Aaaa aaaaa aa aaaaaaa (aa aaaaaa) aaaaaaaa, aaa aa aaa aaaa aaaa aaaa aaaa aaa aaaaaaaaaa aa aaaaaaaa aaaa aaaa aa aa aaa aaaaaaaa. Aa aaaa aaaaaaaaaaa aaaaa, aaaa aaaaa aaaaaaaaaaaaaa aa aaaaaaaaa, aa aaaaa, aa aaaaaa aaa aaaa-aaaaaa. aaa’a aaaa aa aaaa aaa aa—aaaaa aaaaaa aaaa, aa aaa aaaaa. Aaaa aaaaa aa aaaaaaa aaaaaaaa, aaa aa aaa aaaa aaaa aaaa aaaa aaa aaaaaaaaaa aa aaaaaaaa aaaa aaaa aa aa aaa aaaaaaaa. Aaaa aaaaa aa aaaaaaa aaaaaaaa, aaa aa aaa aaaa aaaa aaaa aaaa aaa aaaaaaaaaa aa aaaaaaaa aaaa aaaa aa aa aaa aaaaaaaa.
    \stopparagraph
    \stopsection
    \startsection[title={Section 8 title}]
    \startparagraph
       Aaaa aaaaa aa aaaaaaa (aa aaaaaa) aaaaaaaa, aaa aa aaa aaaa aaaa aaaa aaaa aaa aaaaaaaaaa aa aaaaaaaa aaaa aaaa aa aa aaa aaaaaaaa. Aa aaaa aaaaaaaaaaa aaaaa, aaaa aaaaa aaaaaaaaaaaaaa aa aaaaaaaaa, aa aaaaa, aa aaaaaa aaa aaaa-aaaaaa. aaa’a aaaa aa aaaa aaa aa—aaaaa aaaaaa aaaa, aa aaa aaaaa aaaaaaaaaa aaaaaaa.
    \stopparagraph
    \stopsection
    \stopchapter
    \stoptext

-- 
Rik


[-- Attachment #1.2: Type: text/html, Size: 2273 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Epub broken
  2018-07-04 13:17 Epub broken Rik Kabel
@ 2018-07-05 14:27 ` Hans Hagen
  2018-07-05 14:47   ` Rik Kabel
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2018-07-05 14:27 UTC (permalink / raw)
  To: ntg-context

On 7/4/2018 3:17 PM, Rik Kabel wrote:
> The following example fails with recent betas, but not with TL18:
define fails



-----------------------------------------------------------------
                                           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] 6+ messages in thread

* Re: Epub broken
  2018-07-05 14:27 ` Hans Hagen
@ 2018-07-05 14:47   ` Rik Kabel
  2018-07-05 21:18     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Rik Kabel @ 2018-07-05 14:47 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 661 bytes --]

On 7/5/2018 10:27, Hans Hagen wrote:
> On 7/4/2018 3:17 PM, Rik Kabel wrote:
>> The following example fails with recent betas, but not with TL18:
> define fails

Sorry to be so terse in the original note. By failure, I mean that the 
generated .epub document is incorrect; parts are out of order, as:


(When one section is removed, the disorder is gone, so a smaller test 
file will not exhibit this problem.)

In a larger document, endnotes are scrambled as well, with two index 
marks for some and none for others. The generated .pdf (which is a 
throw-away when trying to produce epub) does not show the same problems.

The .epub file is attached.

-- 
RIk

[-- Attachment #1.2.1: Type: text/html, Size: 1257 bytes --]

[-- Attachment #1.2.2: efejfbplkcnfpklo.png --]
[-- Type: image/png, Size: 6388 bytes --]

[-- Attachment #2: test.epub --]
[-- Type: application/epub+zip, Size: 8703 bytes --]

[-- Attachment #3: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Epub broken
  2018-07-05 14:47   ` Rik Kabel
@ 2018-07-05 21:18     ` Hans Hagen
  2018-07-05 22:45       ` Rik Kabel
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2018-07-05 21:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Rik Kabel

On 7/5/2018 4:47 PM, Rik Kabel wrote:
> On 7/5/2018 10:27, Hans Hagen wrote:
>> On 7/4/2018 3:17 PM, Rik Kabel wrote:
>>> The following example fails with recent betas, but not with TL18:
>> define fails
> 
> Sorry to be so terse in the original note. By failure, I mean that the 
> generated .epub document is incorrect; parts are out of order, as:
new beta


-----------------------------------------------------------------
                                           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] 6+ messages in thread

* Re: Epub broken
  2018-07-05 21:18     ` Hans Hagen
@ 2018-07-05 22:45       ` Rik Kabel
  2018-07-06  9:05         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Rik Kabel @ 2018-07-05 22:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans Hagen

On 7/5/2018 17:18, Hans Hagen wrote:
> On 7/5/2018 4:47 PM, Rik Kabel wrote:
>> On 7/5/2018 10:27, Hans Hagen wrote:
>>> On 7/4/2018 3:17 PM, Rik Kabel wrote:
>>>> The following example fails with recent betas, but not with TL18:
>>> define fails
>>
>> Sorry to be so terse in the original note. By failure, I mean that 
>> the generated .epub document is incorrect; parts are out of order, as:
> new beta
>
Thank you, Hans, for the quick repair.

I understand that ePub is not a priority 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg87829.html) but I 
would like to make a request to put into the queue. Currently references 
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms 
as well) do not generate ID attributes where they are created, and so 
references to them (which do generate href=#...) link to nothing. Even 
creating an empty div with an appropriate class (labelname, 
enumerationname, reference?) and the id attribute would help. Currently 
there is no placeholder in the html file to locate the proper place to 
insert this information with an external filter.

Of course, once that is done, there are lots more. So it goes.

-- 
Rik


___________________________________________________________________________________
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] 6+ messages in thread

* Re: Epub broken
  2018-07-05 22:45       ` Rik Kabel
@ 2018-07-06  9:05         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2018-07-06  9:05 UTC (permalink / raw)
  To: Rik Kabel, mailing list for ConTeXt users

On 7/6/2018 12:45 AM, Rik Kabel wrote:
> On 7/5/2018 17:18, Hans Hagen wrote:
>> On 7/5/2018 4:47 PM, Rik Kabel wrote:
>>> On 7/5/2018 10:27, Hans Hagen wrote:
>>>> On 7/4/2018 3:17 PM, Rik Kabel wrote:
>>>>> The following example fails with recent betas, but not with TL18:
>>>> define fails
>>>
>>> Sorry to be so terse in the original note. By failure, I mean that 
>>> the generated .epub document is incorrect; parts are out of order, as:
>> new beta
>>
> Thank you, Hans, for the quick repair.
> 
> I understand that ePub is not a priority 
> (https://www.mail-archive.com/ntg-context@ntg.nl/msg87829.html) but I 
> would like to make a request to put into the queue. Currently references 
> (via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms 
> as well) do not generate ID attributes where they are created, and so 
> references to them (which do generate href=#...) link to nothing. Even 
> creating an empty div with an appropriate class (labelname, 
> enumerationname, reference?) and the id attribute would help. Currently 
> there is no placeholder in the html file to locate the proper place to 
> insert this information with an external filter.

i can add something for a reference (the problem with such things is 
that there is no real anchor for it and i don't want such features to 
(1) interfere with regular typesetting and (2) have even the least 
impact on performance of regular runs

> Of course, once that is done, there are lots more. So it goes.
hm, lots sounds bad ...

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] 6+ messages in thread

end of thread, other threads:[~2018-07-06  9:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-04 13:17 Epub broken Rik Kabel
2018-07-05 14:27 ` Hans Hagen
2018-07-05 14:47   ` Rik Kabel
2018-07-05 21:18     ` Hans Hagen
2018-07-05 22:45       ` Rik Kabel
2018-07-06  9:05         ` Hans Hagen

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