From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: problems with XML export
Date: Sat, 11 Nov 2017 18:30:10 +0100 [thread overview]
Message-ID: <E5F1676A-42B8-4347-ABFF-59571BA40129@fiee.net> (raw)
Here are a few problems that I encountered in my current ePub projects:
* \color[]{} leaves no trace in export.
* As soon as I activate export, my PDFs get two pages more, i.e. page breaking changes somehow, I didn’t yet track how.
* 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?
* Some spacing like \, gets lost. I’m sure there’s an appropriate Unicode glyph. Would it be possible to add that?
* Errors in exported XML:
(1)
<registerentry>
<registercontent>Brecht, Bertolt</registercontent>
<registerpages><registerpage><link destination="internal(358)" location="358" prefix="c_anhang">53</link></registerpage><registerseparator>,</registerseparator><registerpagerange>–</registerpagerange><registerseparator>,</registerseparator><registerpage><link destination="internal(635)" location="635" prefix="c_anhang">88</link></registerpage></registerpages>
</registerentry>
Here we have a register entry with (only) a page range. There should be no <registerseparator> (it’s unneccessarily complicated to filter that out if there’s also a <registerpagerange>).
I.e. text content has ",–," instead of just "–".
(2)
\def\SC#1{\dostarttagged{highlight}{scaps}{\sc\lowercase{#1}}\dostoptagged}
\starttabulate[|lw(1cm)|p|]
\NC AFG\NC \SC{SED}, Akademie für Gesellschaftswissenschaften, Schriftenverzeichnis\NC\NR
\NC BER\crlf\color[white]{dummy}\NC Hochschule der Deutschen Gewerkschaften \quotation{Fritz Heckert} in Bernau, Schriftenverzeichnis\NC\NR
\stoptabulate
leads to
<tabulate>
<tabulaterow>
<tabulatecell align="flushleft">AFG</tabulatecell>
<break/>
<highlight detail="scaps"><tabulatecell>sed</tabulatecell>, Akademie für Gesellschaftswissenschaften, Schriftenverzeichnis</highlight> </tabulaterow>
<tabulaterow>
<tabulatecell align="flushleft">BERdummy</tabulatecell>
<tabulatecell>Hochschule der Deutschen Gewerkschaften <delimited detail="quotation-1"><delimitedsymbol symbol="left">»</delimitedsymbol><delimitedcontent>Fritz Heckert</delimitedcontent><delimitedsymbol symbol="right">«</delimitedsymbol></delimited> in Bernau, Schriftenverzeichnis</tabulatecell>
</tabulaterow>
</tabulate>
- <break /> is nonsense
- <highlight> breaks <tabulatecell> (maybe my \SC definition is bad, but nobody answered to my according question)
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2017-11-11 17:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-11 17:30 Henning Hraban Ramm [this message]
2017-11-11 18:46 ` Pablo Rodriguez
2017-11-12 8:33 ` Henning Hraban Ramm
2017-11-12 10:29 ` Pablo Rodriguez
2017-11-12 16:06 ` Alan Braslau
2017-11-12 16:49 ` Pablo Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E5F1676A-42B8-4347-ABFF-59571BA40129@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).