Am 2017-11-11 um 19:46 schrieb Pablo Rodriguez
On 11/11/2017 06:30 PM, Henning Hraban Ramm wrote:
Here are a few problems that I encountered in my current ePub projects:
* \color[]{} leaves no trace in export.
Hi Hraban,
this works with PDF, it should work with ePub:
\definehighlight[read][color=red, style=\sc] \starttext \starthighlight[read] rot\stophighlight \stoptext
I guess you have to use this instead of \color[]{}.
Yes, I guess too. I remembered highlight suits color after sending, but that means I need to define a new highlight for every color - as semantic as that may be, it’s a PITA.
* As soon as I activate export, my PDFs get two pages more, i.e. page breaking changes somehow, I didn’t yet track how.
Without minimal sample and invocation command, it is rather hard to reproduce the issue.
Of course. I still didn’t check what changes at all.
* For quotability, I’d like to set markers in my HTML, where the print version has page breaks. But the exported XML doesn’t contain anything like that. Is it possible to add?
Just out of curiosity, I wonder how this could be achieved.
Do you have other approach than the following?
1. Complete PDF compilation with saving of page breaks.
2. Add the markers in XML code generation.
At the state where it exports XML, ConTeXt already knows about page breaks, doesn’t it?
* Errors in exported XML: [...] (2) \def\SC#1{\dostarttagged{highlight}{scaps}{\sc\lowercase{#1}}\dostoptagged} [...] - <highlight> breaks <tabulatecell> (maybe my \SC definition is bad, but nobody answered to my according question)
Try the approach proposed above. I think it should work.
No, that was my question in the thread "insert tags in export xml". \definehighlight only supports style and color, but not command. I tried to understand its definition and found \dostarttagged, but I guess I used it the wrong way, since it breaks the tabulation. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD