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 20:04:23 +0100	[thread overview]
Message-ID: <1FFD39A3-2189-404B-8BCE-C875304C5D5E@googlemail.com> (raw)
In-Reply-To: <6DE2D0F8-C4B8-4FB3-97E2-3B1D4535CB90@unibas.ch>


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:

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

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 19:04 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           ` Wolfgang Schuster [this message]
2012-02-16 19:38             ` epub Aditya Mahajan
2012-02-16 20:08               ` epub Wolfgang Schuster
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=1FFD39A3-2189-404B-8BCE-C875304C5D5E@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).