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 <pra...@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: epub-mkiv-demo.epub
Description: application/epub

___________________________________________________________________________________
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 via email to