ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* epub-mkiv-demo.epub
@ 2015-04-11  7:12 Piotr Kopszak
  2015-04-11 10:52 ` epub-mkiv-demo.epub Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Piotr Kopszak @ 2015-04-11  7:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello list,

I am trying to compile example epub file epub-mkiv-demo.tex which is
provided with the recent beta, however I'm getting following errors
when I run:mtxrun --script epub --make "epub-mkiv-demo"

resolvers       | trees | analyzing 'home:texmf'
mtx-epub        | using specification file
'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
mtx-epub        | the 'mudraw' binary is not present
mtx-epub        | cover page image 'cover.xhtml' is not present
mtx-epub        | saving dummy coverpage to
'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
bad argument #1 to 'gsub' (string expected, got nil)

No epub file is generated.

Any help would be greatly appreciated

Piotr

-- 
http://okle.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: epub-mkiv-demo.epub
  2015-04-11  7:12 epub-mkiv-demo.epub Piotr Kopszak
@ 2015-04-11 10:52 ` Hans Hagen
  2015-04-13 13:37   ` epub-mkiv-demo.epub Piotr Kopszak
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2015-04-11 10:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/11/2015 9:12 AM, Piotr Kopszak wrote:
> Hello list,
>
> I am trying to compile example epub file epub-mkiv-demo.tex which is
> provided with the recent beta, however I'm getting following errors
> when I run:mtxrun --script epub --make "epub-mkiv-demo"
>
> resolvers       | trees | analyzing 'home:texmf'
> mtx-epub        | using specification file
> 'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
> mtx-epub        | the 'mudraw' binary is not present

install mudraw

> mtx-epub        | cover page image 'cover.xhtml' is not present
> mtx-epub        | saving dummy coverpage to
> 'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
> bad argument #1 to 'gsub' (string expected, got nil)
>
> No epub file is generated.
>
> Any help would be greatly appreciated

i'll add a check

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

* Re: epub-mkiv-demo.epub
  2015-04-11 10:52 ` epub-mkiv-demo.epub Hans Hagen
@ 2015-04-13 13:37   ` Piotr Kopszak
  2015-04-13 16:16     ` epub-mkiv-demo.epub Hans Hagen
  2015-04-13 17:46     ` epub-mkiv-demo.epub Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Piotr Kopszak @ 2015-04-13 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 4057 bytes --]

Thanks Hans!

That did the trick, just a README mentioning mudraw as dependency in
the source directory would do, however the file which is generated
contains errors, at least according to epubcheck and kindlegen, which
prevents conversion of resulting epub file to mobi format, what I
would ultimately like to do.

epubcheck output
------------------------------------------------------------------------
Validating against EPUB version 3.0 - custom validation
Validating using EPUB version 3.0 rules.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79):
Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
Error while parsing file 'duplicate resource: OEBPS/images/cow.svg'.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML
should either have an alt text attribute or annotation-xml child
element.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(42,120): MathML
should either have an alt text attribute or annotation-xml child
element.
WARNING(ACC-009):
epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(54,198): MathML
should either have an alt text attribute or annotation-xml child
element.

Check finished with errors

epubcheck completed
-----------------------------------------------------------------------

kindlegen output
----------------------------------------------------------------------
*************************************************************
 Amazon kindlegen(Windows) V2.9 build 1029-0897292
 A command line e-book compiler
 Copyright Amazon.com and its Affiliates 2014
*************************************************************

Info:I9026:option: (hidden) amazon creator tool or pipeline

Info:I9014:option: -verbose: Verbose output

Info(prcgen):I1048: Unpacking ePub file

Error(xmlmake):E27012: Item or process id already used: cow-svg
-------------------------------------------------------------------------

Any chance these might be fixed?

Best

Piotr


2015-04-11 12:52 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
> On 4/11/2015 9:12 AM, Piotr Kopszak wrote:
>>
>> Hello list,
>>
>> I am trying to compile example epub file epub-mkiv-demo.tex which is
>> provided with the recent beta, however I'm getting following errors
>> when I run:mtxrun --script epub --make "epub-mkiv-demo"
>>
>> resolvers       | trees | analyzing 'home:texmf'
>> mtx-epub        | using specification file
>> 'epub-mkiv-demo-export/epub-mkiv-demo-pub.lua'
>> mtx-epub        | the 'mudraw' binary is not present
>
>
> install mudraw
>
>> mtx-epub        | cover page image 'cover.xhtml' is not present
>> mtx-epub        | saving dummy coverpage to
>>
>> 'epub-mkiv-demo-export/cover.xhtml'...42015/tex/texmf-context/scripts/context/lua/mtx-epub.lua:606:
>> bad argument #1 to 'gsub' (string expected, got nil)
>>
>> No epub file is generated.
>>
>> Any help would be greatly appreciated
>
>
> i'll add a check
>
> -----------------------------------------------------------------
>                                           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
> ___________________________________________________________________________________



-- 
http://okle.pl

[-- Attachment #2: epub-mkiv-demo.epub --]
[-- Type: application/epub+zip, Size: 13077 bytes --]

[-- Attachment #3: 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: epub-mkiv-demo.epub
  2015-04-13 13:37   ` epub-mkiv-demo.epub Piotr Kopszak
@ 2015-04-13 16:16     ` Hans Hagen
  2015-04-13 17:46     ` epub-mkiv-demo.epub Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2015-04-13 16:16 UTC (permalink / raw)
  To: ntg-context

On 4/13/2015 3:37 PM, Piotr Kopszak wrote:
> Thanks Hans!
>
> That did the trick, just a README mentioning mudraw as dependency in
> the source directory would do, however the file which is generated
> contains errors, at least according to epubcheck and kindlegen, which
> prevents conversion of resulting epub file to mobi format, what I
> would ultimately like to do.
>
> epubcheck output
> ------------------------------------------------------------------------
> Validating against EPUB version 3.0 - custom validation
> Validating using EPUB version 3.0 rules.
> ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79):
> Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
> ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
> Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.
> ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(27,79):
> Error while parsing file 'duplicate resource: OEBPS/images/cow.svg'.
> WARNING(ACC-009):
> epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML
> should either have an alt text attribute or annotation-xml child
> element.
> WARNING(ACC-009):
> epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(42,120): MathML
> should either have an alt text attribute or annotation-xml child
> element.
> WARNING(ACC-009):
> epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(54,198): MathML
> should either have an alt text attribute or annotation-xml child
> element.
>
> Check finished with errors

hm, last time i checked it was ok .. epub is such a mess (to put it 
mildly) ... one manages to satisfy one checker/viewer and in the end it 
breaks another (which is probably why there are so many converters ... 
vendors don't care as they love to lock you in)

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

* Re: epub-mkiv-demo.epub
  2015-04-13 13:37   ` epub-mkiv-demo.epub Piotr Kopszak
  2015-04-13 16:16     ` epub-mkiv-demo.epub Hans Hagen
@ 2015-04-13 17:46     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2015-04-13 17:46 UTC (permalink / raw)
  To: ntg-context

On 4/13/2015 3:37 PM, Piotr Kopszak wrote:

> ERROR(RSC-005): epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo.opf(26,79):
> Error while parsing file 'assertion failed: Duplicate ID 'cow-svg''.

we can probably catch that one

> epub-mkiv-demo.epub/OEBPS/epub-mkiv-demo-div.xhtml(38,120): MathML
> should either have an alt text attribute or annotation-xml child
> element.

but this is crap .. i see no tex user adding an alternate to each formula

in fact, the epub script has the option to turn the mathml into svg, 
this was added after google decided to kick out mathml (ok, we could 
push some svg into the annotation-xml i guess)

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:[~2015-04-13 17:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11  7:12 epub-mkiv-demo.epub Piotr Kopszak
2015-04-11 10:52 ` epub-mkiv-demo.epub Hans Hagen
2015-04-13 13:37   ` epub-mkiv-demo.epub Piotr Kopszak
2015-04-13 16:16     ` epub-mkiv-demo.epub Hans Hagen
2015-04-13 17:46     ` epub-mkiv-demo.epub 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).