ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Documentation for EPUB conversion
@ 2013-08-28 16:29 Thangalin
  2013-08-28 17:13 ` Mica Semrick
  0 siblings, 1 reply; 2+ messages in thread
From: Thangalin @ 2013-08-28 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I ran the following simple document through ConTeXt:

\setupbackend[export=yes,xhtml=yes]

\enableregime[utf-8]
\mainlanguage[en]
\language[en]

\setupexport[
  title={A nice book},
  author={John Doe},
  firstpage={cover.jpg},
]

\starttext
  \startitemize
    \item First
    \item Second
    \item Third
  \stopitemize

\stoptext

I then ran mtxrun:

mtxrun --script epub --make t.specification

This produced a document with the cover page correctly; however, the items
were listed on a single line in the EPUB, instead of on lines by themselves.

I have a couple of questions:

   - *Styling.* Is custom styling required to format bullet or numbered
   lists in the resulting EPUB XHTML document?
   - *Knowledge.* Would anyone be willing to share their experiences (and
   tips) for transforming ConTeXt documents to EPUB?
   - *Examples.* Where can I find examples of simple and complex ConTeXt
   documents being converted to EPUB documents having a similar layout?

Many thanks and kind regards.

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Documentation for EPUB conversion
  2013-08-28 16:29 Documentation for EPUB conversion Thangalin
@ 2013-08-28 17:13 ` Mica Semrick
  0 siblings, 0 replies; 2+ messages in thread
From: Mica Semrick @ 2013-08-28 17:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

You will probably need CSS styling.

Maybe you can use one of the popular CSS reset or normalize stylesheets
available. I haven't tested, but http://necolas.github.io/normalize.css/ is
pretty popular.

Beware, a lot of EPUB rendering engines are crap, and there is not a lot of
conformity throughout various products. This seems sad... since it is just
XHTML.

-Mica


On Wed, Aug 28, 2013 at 9:29 AM, Thangalin <thangalin@gmail.com> wrote:

> Hi,
>
> I ran the following simple document through ConTeXt:
>
> \setupbackend[export=yes,xhtml=yes]
>
> \enableregime[utf-8]
> \mainlanguage[en]
> \language[en]
>
> \setupexport[
>   title={A nice book},
>   author={John Doe},
>   firstpage={cover.jpg},
> ]
>
> \starttext
>   \startitemize
>     \item First
>     \item Second
>     \item Third
>   \stopitemize
>
> \stoptext
>
> I then ran mtxrun:
>
> mtxrun --script epub --make t.specification
>
> This produced a document with the cover page correctly; however, the items
> were listed on a single line in the EPUB, instead of on lines by themselves.
>
> I have a couple of questions:
>
>    - *Styling.* Is custom styling required to format bullet or numbered
>    lists in the resulting EPUB XHTML document?
>    - *Knowledge.* Would anyone be willing to share their experiences (and
>    tips) for transforming ConTeXt documents to EPUB?
>    - *Examples.* Where can I find examples of simple and complex ConTeXt
>    documents being converted to EPUB documents having a similar layout?
>
> Many thanks and kind regards.
>
>
> ___________________________________________________________________________________
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-28 17:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-28 16:29 Documentation for EPUB conversion Thangalin
2013-08-28 17:13 ` Mica Semrick

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