ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* unwanted <break/> with epub
@ 2020-03-03 21:51 Hans van der Meer
  2020-03-05  2:08 ` Rik Kabel
  0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2020-03-03 21:51 UTC (permalink / raw)
  To: NTG ConTeXt


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

In producing epub <break/>s are appearing (on the -raw.xml file) that are unwanted and seem spurious to me. For example aftersome macro's. 
Can someone tell me what triggers a <break/>? In the pdf output such breaks are absent.

dr. Hans van der Meer



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

[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread

* Re: unwanted <break/> with epub
  2020-03-03 21:51 unwanted <break/> with epub Hans van der Meer
@ 2020-03-05  2:08 ` Rik Kabel
  2020-03-05  8:33   ` Hans van der Meer
  0 siblings, 1 reply; 4+ messages in thread
From: Rik Kabel @ 2020-03-05  2:08 UTC (permalink / raw)
  To: ntg-context


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


On 3/3/2020 16:51, Hans van der Meer wrote:
> In producing epub <break/>s are appearing (on the -raw.xml file) that 
> are unwanted and seem spurious to me. For example aftersome macro's.
> Can someone tell me what triggers a <break/>? In the pdf output such 
> breaks are absent.
>
> dr. Hans van der Meer
>
There are many situations in which the export contains break elements 
that don't appear to be associated with aspects of the pdf output.  See, 
for example, the following messages from 2018 in which I noted a few of 
them:

  * Spurious breaks in export when blank line ends paragraph
    <https://www.mail-archive.com/ntg-context@ntg.nl/msg88729.html>
  * More spurious problems in exports
    <https://www.mail-archive.com/ntg-context@ntg.nl/msg88311.html>
  * Unexpected <break/> in XML output
    <https://www.mail-archive.com/ntg-context@ntg.nl/msg88268.html>

If you provide an example of your ConTeXt source demonstrating the 
problem, perhaps someone on the list can help.

-- 
Rik


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

[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread

* Re: unwanted <break/> with epub
  2020-03-05  2:08 ` Rik Kabel
@ 2020-03-05  8:33   ` Hans van der Meer
  2020-03-05  9:32     ` Hans van der Meer
  0 siblings, 1 reply; 4+ messages in thread
From: Hans van der Meer @ 2020-03-05  8:33 UTC (permalink / raw)
  To: NTG ConTeXt


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

Found the cause in my case: a \penalty0 statement.

dr. Hans van der Meer


> On 5 Mar 2020, at 03:08, Rik Kabel <ConTeXt@rik.users.panix.com> wrote:
> 
> 
> 
> On 3/3/2020 16:51, Hans van der Meer wrote:
>> In producing epub <break/>s are appearing (on the -raw.xml file) that are unwanted and seem spurious to me. For example aftersome macro's. 
>> Can someone tell me what triggers a <break/>? In the pdf output such breaks are absent.
>> 
>> dr. Hans van der Meer
>> 
> There are many situations in which the export contains break elements that don't appear to be associated with aspects of the pdf output.  See, for example, the following messages from 2018 in which I noted a few of them:
> 
> Spurious breaks in export when blank line ends paragraph <https://www.mail-archive.com/ntg-context@ntg.nl/msg88729.html>
> More spurious problems in exports <https://www.mail-archive.com/ntg-context@ntg.nl/msg88311.html>
> Unexpected <break/> in XML output <https://www.mail-archive.com/ntg-context@ntg.nl/msg88268.html>
> If you provide an example of your ConTeXt source demonstrating the problem, perhaps someone on the list can help.
> 
> -- 
> 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
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread

* Re: unwanted <break/> with epub
  2020-03-05  8:33   ` Hans van der Meer
@ 2020-03-05  9:32     ` Hans van der Meer
  0 siblings, 0 replies; 4+ messages in thread
From: Hans van der Meer @ 2020-03-05  9:32 UTC (permalink / raw)
  To: NTG ConTeXt


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

I was wrong. The \penalty is not the culprit, but it turns out to be the \Word macro that introduces the <break/> through a parfillskip_code in the internal list.

dr. Hans van der Meer


> On 5 Mar 2020, at 09:33, Hans van der Meer <havdmeer@ziggo.nl> wrote:
> 
> Found the cause in my case: a \penalty0 statement.
> 
> dr. Hans van der Meer


> On 3/3/2020 16:51, Hans van der Meer wrote:
>> In producing epub <break/>s are appearing (on the -raw.xml file) that are unwanted and seem spurious to me. For example aftersome macro's. 
>> Can someone tell me what triggers a <break/>? In the pdf output such breaks are absent.
>> 
>> dr. Hans van der Meer
>> 


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

[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread

end of thread, other threads:[~2020-03-05  9:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 21:51 unwanted <break/> with epub Hans van der Meer
2020-03-05  2:08 ` Rik Kabel
2020-03-05  8:33   ` Hans van der Meer
2020-03-05  9:32     ` Hans van der Meer

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