ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: epub
Date: Thu, 16 Feb 2012 21:08:13 +0100	[thread overview]
Message-ID: <E064F567-E4C4-418C-960D-67A9C768BE99@googlemail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1202161436200.32152@qrpragenyvmrq>


Am 16.02.2012 um 20:38 schrieb Aditya Mahajan:

> On Thu, 16 Feb 2012, Wolfgang Schuster wrote:
> 
>> 
>> Am 16.02.2012 um 16:19 schrieb Jörg Hagmann:
>> 
>>> This discussion was continued privately (my mistake). A summary:
>>> 
>>> Thanks for the file, Luigi -- getting closer. Two problems left:
>>> 
>>> 1. I was using Calibre. Maybe I simply don't know how to use that programme. Whereas a free epub book downloaded from the net opens as it should, the files generated by myself and by you just show the unformatted text. With Firefox it works.
>>> 
>>> 2. In Firefox: My version lacks the images; in fact, the figures showing up in the OPS directory after the mtxrun have zero KB. But it is ok for me to copy them there manually.
>> 
>> Isn’t the problem with context pub’s the format of the xhtml file, when I compile this example:
>> 
>> \setupbackend[export=yes,xhtml=yes]
>> 
>> \starttext
>> 
>> \startparagraph
>> The Earth, as a habitat for animal life, is in old age and
>> has a fatal illness. Several, in fact. It would be happening
>> whether humans had ever evolved or not. But our presence is
>> like the effect of an old|-|age patient who smokes many packs
>> of cigarettes per day – and we humans are the cigarettes.
>> \stopparagraph
>> 
>> \stoptext
>> 
>> I get a xhtml file with the following content (I removed the comments):
>> 
>> <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
>> 
>> <document xmlns:m="http://www.w3.org/1998/Math/MathML" version="0.30" language="en" date="Thu Feb 16 20:00:31 2012" file="test" context="2012.02.16 17:54" xmlns:xhtml="http://www.w3.org/1999/xhtml">
>> <paragraph>The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes.</paragraph>
>> </document>
>> 
>> but the produced epub file doesn’t work on my ereader. After I changed the tags of the file to this:
> 
> You also need to add the appropriate css file (there is an example css file in $TEXMF/tex/context/base IIRC). Any epub reader that understands xml+css will be able to read the file.

I know the example file but I forgot to add it.

>> <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
>> 
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <body>
>>   <p>The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes.</p>
>> </body>
>> </html>
>> 
>> I got now a epub file which renders on my ereader without problems.
> 
> I do agree if the export tags were configurable. Something similar to multi-lingual interface, but for output rather than input.

You mean like labeltexts :)

Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2012-02-16 20:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16 10:51 epub Jörg Hagmann
2012-02-16 11:13 ` epub luigi scarso
2012-02-16 13:07   ` epub Jörg Hagmann
2012-02-16 13:17     ` epub luigi scarso
2012-02-16 13:30       ` epub Jörg Hagmann
2012-02-16 15:19         ` epub Jörg Hagmann
2012-02-16 19:04           ` epub Wolfgang Schuster
2012-02-16 19:38             ` epub Aditya Mahajan
2012-02-16 20:08               ` Wolfgang Schuster [this message]
2012-02-16 21:53               ` epub Hans Hagen
2012-02-17  9:42                 ` epub Wolfgang Schuster
2012-02-17 11:44                   ` epub Hans Hagen
2012-02-17 13:57                     ` epub Jörg Hagmann
2012-02-20 17:45                       ` epub George N. White III
2012-02-20 18:25                         ` epub Khaled Hosny
2012-02-18  7:17                     ` epub Wolfgang Schuster
2012-02-18  8:25                       ` epub Hans Hagen
2012-02-18  8:31                         ` epub luigi scarso
2012-02-18  8:35                           ` epub luigi scarso
2012-02-18  9:50                             ` epub Hans Hagen
2012-02-17 10:04           ` epub luigi scarso
2012-02-17 10:17             ` epub Jörg Hagmann
2012-02-17 10:23               ` epub luigi scarso
2012-02-17 11:40               ` epub Hans Hagen
2012-02-16 14:07     ` epub Henning Hraban Ramm
2012-06-07 16:04 epub Hans Hagen
2012-06-08  4:19 ` epub Khaled Hosny

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=E064F567-E4C4-418C-960D-67A9C768BE99@googlemail.com \
    --to=schuster.wolfgang@googlemail.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).