From: Andres Conrado Montoya <andresconrado@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Regarding XML export and EPUB
Date: Mon, 21 Dec 2020 17:31:28 -0500 [thread overview]
Message-ID: <CAGhDZhApxnThdMErFg5XaoRTL0hTzyD+m7EELx5mu8NghJ-EXQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1926 bytes --]
Hello, list.
I've been experimenting with the export scripts and the instructions and
manuals you can find in:
https://wiki.contextgarden.net/XML
https://wiki.contextgarden.net/Export
https://wiki.contextgarden.net/Epub
https://wiki.contextgarden.net/ePub
This with the expectation of being able to make an epub file form a context
document that epubcheck can accept. I see there is an experimental support
for epub, and I have played around with the export options a bit. However,
what I would really want to know is. It's possible and if so, how can you
map context's elements so they can get translated to specific html tags? I
mean, the current export output uses divs with custom attributes and
classes, or custom tags; but I would like to map lists to ul, list-items to
li, headings to h1, h2, h3, paragraphs to <p> etc. In the manuals I see
that you can do the opposite: map xml/html tags to context's elements; I
wonder if you can go the other way around, and a good place to start
reading about it. Apologies if I missed something obvious.
Thank you.
--
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------
“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
[-- Attachment #1.2: Type: text/html, Size: 2709 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
___________________________________________________________________________________
next reply other threads:[~2020-12-21 22:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-21 22:31 Andres Conrado Montoya [this message]
2020-12-22 8:40 ` Henning Hraban Ramm
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=CAGhDZhApxnThdMErFg5XaoRTL0hTzyD+m7EELx5mu8NghJ-EXQ@mail.gmail.com \
--to=andresconrado@gmail.com \
--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).