ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Can't generate an epub - what am I doing wrong?
@ 2012-08-09 13:09 Marcin Borkowski
  2012-08-09 14:33 ` Rogers, Michael K
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2012-08-09 13:09 UTC (permalink / raw)
  To: ConTeXt mailing list

Hello all,

my problem is as in the topic;).  The minimal example from the wiki
works fine, but this does not:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupbackend[export=yes,xhtml=yes]

\settaggedmetadata
  [title=My Document,
   author=A. U. Thor]

\starttext

\startchapter[title={First chapter}]
\input tufte  
\stopchapter

\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The resulting epub file (after the mtxrun, of course) does not contain
any metadata; also, there is no chapter structure whatsoever.

What am I missing?

TIA,

-- 
Marcin Borkowski
http://mbork.pl


-- 
Marcin Borkowski
http://mbork.pl
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Can't generate an epub - what am I doing wrong?
  2012-08-09 13:09 Can't generate an epub - what am I doing wrong? Marcin Borkowski
@ 2012-08-09 14:33 ` Rogers, Michael K
  2012-08-09 15:55   ` Marcin Borkowski
  0 siblings, 1 reply; 5+ messages in thread
From: Rogers, Michael K @ 2012-08-09 14:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

I don't seem to have an epub reader that can format the output.  (MS Word complain there was no xslt file,  But the xhtml file produced contains the metadata and the document structure.  Output pasted below.

Michael

On Aug 9, 2012, at 9:09 AM, Marcin Borkowski wrote:

Hello all,

my problem is as in the topic;).  The minimal example from the wiki
works fine, but this does not:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setupbackend[export=yes,xhtml=yes]

\settaggedmetadata
 [title=My Document,
  author=A. U. Thor]

\starttext

\startchapter[title={First chapter}]
\input tufte
\stopchapter

\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

The resulting epub file (after the mtxrun, of course) does not contain
any metadata; also, there is no chapter structure whatsoever.

What am I missing?

TIA,

--
Marcin Borkowski
http://mbork.pl

XHTML output (text shortened):

<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

<!-- input filename   : foo13338          -->
<!-- processing date  : Thu Aug  9 09:30:38 2012 -->
<!-- context version  : 2012.08.05 12:52  -->
<!-- exporter version : 0.30              -->


<document xmlns:m="http://www.w3.org/1998/Math/MathML" version="0.30" language="en" date="Thu Aug  9 09:30:38 2012" file="foo13338" context="2012.08.05 12:52" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<metadata>
  <metavariable name="author">A. U. Thor</metavariable>
  <metavariable name="title">My Document</metavariable>
</metadata>
  <xhtml:a name="aut_1"><section location="aut:1" detail="chapter">
    <sectionnumber>1</sectionnumber>
    <sectiontitle>First chapter</sectiontitle>
    <sectioncontent>
We thrive...
    </sectioncontent>
  </section></xhtml:a>
  <xhtml:a name="aut_2"><section location="aut:2" detail="chapter">
    <sectionnumber>2</sectionnumber>
    <sectiontitle>Second chapter</sectiontitle>
    <sectioncontent>
Thus,...
      <break/>
The separation...
      <break/>
But...
    </sectioncontent>
  </section></xhtml:a>
</document>

________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

[-- Attachment #1.2: Type: text/html, Size: 11985 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] 5+ messages in thread

* Re: Can't generate an epub - what am I doing wrong?
  2012-08-09 14:33 ` Rogers, Michael K
@ 2012-08-09 15:55   ` Marcin Borkowski
  2012-08-09 16:11     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2012-08-09 15:55 UTC (permalink / raw)
  To: ntg-context

Dnia 2012-08-09, o godz. 14:33:36
"Rogers, Michael K" <mroge02@emory.edu> napisał(a):

> Hi,
> 
> I don't seem to have an epub reader that can format the output.  (MS
> Word complain there was no xslt file,  But the xhtml file produced
> contains the metadata and the document structure.  Output pasted
> below.
> 
> Michael

Agreed, but opening in fbreader showed blank screen, and in sigil I saw
the text but not divided into chapters.

Best,

-- 
Marcin Borkowski
http://mbork.pl
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Can't generate an epub - what am I doing wrong?
  2012-08-09 15:55   ` Marcin Borkowski
@ 2012-08-09 16:11     ` Wolfgang Schuster
  2012-08-09 16:38       ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2012-08-09 16:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 09.08.2012 um 17:55 schrieb Marcin Borkowski <mbork@wmi.amu.edu.pl>:

> Dnia 2012-08-09, o godz. 14:33:36
> "Rogers, Michael K" <mroge02@emory.edu> napisał(a):
> 
>> Hi,
>> 
>> I don't seem to have an epub reader that can format the output.  (MS
>> Word complain there was no xslt file,  But the xhtml file produced
>> contains the metadata and the document structure.  Output pasted
>> below.
>> 
>> Michael
> 
> Agreed, but opening in fbreader showed blank screen, and in sigil I saw
> the text but not divided into chapters.

ConTeXt uses it’s own tag names for the elements and doesn’t use the normal HTML structure which is a problem for most epub readers (hardware and software).

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
___________________________________________________________________________________

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

* Re: Can't generate an epub - what am I doing wrong?
  2012-08-09 16:11     ` Wolfgang Schuster
@ 2012-08-09 16:38       ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2012-08-09 16:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

On 9-8-2012 18:11, Wolfgang Schuster wrote:
>
> Am 09.08.2012 um 17:55 schrieb Marcin Borkowski <mbork@wmi.amu.edu.pl>:
>
>> Dnia 2012-08-09, o godz. 14:33:36
>> "Rogers, Michael K" <mroge02@emory.edu> napisał(a):
>>
>>> Hi,
>>>
>>> I don't seem to have an epub reader that can format the output.  (MS
>>> Word complain there was no xslt file,  But the xhtml file produced
>>> contains the metadata and the document structure.  Output pasted
>>> below.
>>>
>>> Michael
>>
>> Agreed, but opening in fbreader showed blank screen, and in sigil I saw
>> the text but not divided into chapters.
>
> ConTeXt uses it’s own tag names for the elements and doesn’t use the normal HTML structure which is a problem for most epub readers (hardware and software).

that's because it's an export (ie .. we want to preserve information). 
One can easily transform the export into something suitable for some 
purpose.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2012-08-09 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 13:09 Can't generate an epub - what am I doing wrong? Marcin Borkowski
2012-08-09 14:33 ` Rogers, Michael K
2012-08-09 15:55   ` Marcin Borkowski
2012-08-09 16:11     ` Wolfgang Schuster
2012-08-09 16:38       ` Hans Hagen

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