consortium / transformer

HTML 2 EPUB conversion using the Transpect tool set
0 stars 0 forks source link

Is it possible that @font-face gets stripped? #5

Closed codingisacopingstrategy closed 8 years ago

codingisacopingstrategy commented 8 years ago

Hello, when providing a CSS file that starts with a number of @font-face declarations, these declarations seem to get stripped out. Also, the fonts files themselves do not seem to seem to get copied to the resulting ePub.

Does that give any clue as to what could be going on?

The conversion is launched like this:

make conversion IN_FILE=/Volumes/Switzerland/e/Projects/pipeline-tests/reproducing-autonomy.zip

You can find the zip at http://silo.schr.fr/reproducing-autonomy.zip

Makefile target: messages

BASENAME:       reproducing-autonomy
OUT_DIR:            /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip
MAKEFILE_DIR:       /Volumes/Switzerland/e/Projects/html2epub
CALABASH:       /Volumes/Switzerland/e/Projects/html2epub/calabash/calabash.sh
DEBUG:          yes
DEBUG_DIR:      /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/debug
STATUS_DIR:     /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/status

Makefile target: checkinput

File exists /Volumes/Switzerland/e/Projects/pipeline-tests/reproducing-autonomy.zip

Makefile target: preprocess

rm -rf /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip
mkdir -p /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip
mkdir -p /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/debug
mkdir -p /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/status
cp /Volumes/Switzerland/e/Projects/pipeline-tests/reproducing-autonomy.zip /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip

Makefile target: html2epub

HEAP=1024m /Volumes/Switzerland/e/Projects/html2epub/calabash/calabash.sh -D \
        -o htmlreport=/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/report.xhtml \
        -o result=/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/debug/result.xml \
        /Volumes/Switzerland/e/Projects/html2epub/a9s/common/xpl/html2epub.xpl\
        file=/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip \
        status-dir-uri=/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/status \
        debug-dir-uri=/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/debug \
        debug=yes \

INFO : cascade/xpl/paths.xpl:122:27:A clade name=value token must match the regular expression '^([a-zA-Z][-a-zA-Z0-9]+)[=_]([-.a-zA-Z0-9~]+)$'. Found: 'html2epub'
INFO : htmlreports/xpl/assemble-schematron.xpl:34:23:Schematron family: html
INFO : htmlreports/xpl/assemble-schematron.xpl:34:23:        from URIs: file:/Volumes/Switzerland/e/Projects/html2epub/a9s/common/schematron/html/html.sch.xml
/Volumes/Switzerland/e/Projects/html2epub/htmlreports/xpl/assemble-schematron.xpl:22:143: error: element "let" not allowed here; expected the element end-tag, element "assert", "extends", "include" or "report" or an element from another namespace
INFO : htmlreports/xpl/errorPI2svrl.xpl:57:31:errorPI2svrl: could not find srcpath for PI letex: RNG_iso-schematron /schema/pattern[1]/rule[1]/let[1] element "let" not allowed here; expected the element end-tag, element "assert", "extends", "include" or "report" or an element from another namespace
INFO : cascade/xpl/load-cascaded.xpl:35:59:load-cascaded: using fallback file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/template.html
INFO : cascade/xpl/load-cascaded.xpl:35:59:load-cascaded: using fallback http://transpect.io/htmlreports/xsl/svrl2xsl.xsl
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Styles/internal-1.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-Bold.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-Italic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-BoldItalic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBookBasic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Images/Mute-logo2.png
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/reset.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/bootstrap.min.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/fonts/glyphicons-halflings-regular.eot
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/fonts/glyphicons-halflings-regular.eot?#iefix
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/scrolling-nav.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/stylesheet.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/icons/logo-transpect.svg
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/keypress.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/jquery-2.1.4.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/bootstrap.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/jquery.easing.1.3.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/scrolling-nav.js
INFO : htmlreports/xpl/patch-svrl.xpl:239:65:[WARNING] Schematron rule family: 'html', rule(s): 'book_date'
No srcpath-span found. Using Schematron location @attribute as fallback.
INFO : epubtools/modules/create-ops/xpl/create-ops.xpl:223:33:attach-cover: width=2159px, height=3474px
INFO : epubtools/modules/create-ops/xpl/create-ops.xpl:291:38:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EXTRACT FILEREFS FROM HTML SOURCE FILE:

Images/Mute-logo2.png
file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Images/cover.jpg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/cover.xhtml (1 of 6): 1 element: svg
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/reproducing-autonomy_000026.xhtml (2 of 6): 3 elements, starting with h1
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/reproducing-autonomy_000035.xhtml (3 of 6): 20 elements, starting with div
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/reproducing-autonomy_000135.xhtml (4 of 6): 75 elements, starting with h1
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/reproducing-autonomy_000730.xhtml (5 of 6): 21 elements, starting with h1
INFO : epubtools/modules/html-splitter/xpl/html-splitter.xpl:123:49:Chunk text/reproducing-autonomy_000928.xhtml (6 of 6): 58 elements, starting with h1
WARN : err:SXXP0005:The source document is in no namespace, but the template rules all expect elements in a namespace (Use --suppressXsltNamespaceCheck:on to avoid this warning)
INFO : epubtools/modules/zip-package/xpl/zip-package.xpl:91:40:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 COLLECT FILES FOR EPUB PACKAGE:

OEBPS/content.opf
OEBPS/Images/Mute-logo2.png
OEBPS/Images/cover.jpg
OEBPS/styles/cover.css
OEBPS/Styles/internal-1.css
OEBPS/toc.ncx
OEBPS/nav.xhtml
OEBPS/text/cover.xhtml
OEBPS/text/reproducing-autonomy_000026.xhtml
OEBPS/text/reproducing-autonomy_000035.xhtml
OEBPS/text/reproducing-autonomy_000135.xhtml
OEBPS/text/reproducing-autonomy_000730.xhtml
OEBPS/text/reproducing-autonomy_000928.xhtml
mimetype
META-INF/container.xml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INFO : /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip
INFO : /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip
INFO : /Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/reproducing-autonomy.epub
INFO : cascade/xpl/load-cascaded.xpl:35:59:load-cascaded: using fallback file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/template.html
INFO : cascade/xpl/load-cascaded.xpl:35:59:load-cascaded: using fallback http://transpect.io/htmlreports/xsl/svrl2xsl.xsl
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Styles/internal-1.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-Bold.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-Italic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBasic-BoldItalic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Fonts/GentiumBookBasic.otf
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/output/reproducing-autonomy.zip/reproducing-autonomy.zip.tmp/Images/Mute-logo2.png
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/reset.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/bootstrap.min.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/fonts/glyphicons-halflings-regular.eot
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/fonts/glyphicons-halflings-regular.eot?#iefix
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/scrolling-nav.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/css/stylesheet.css
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/icons/logo-transpect.svg
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/keypress.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/jquery-2.1.4.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/bootstrap.min.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/jquery.easing.1.3.js
Message: embed: file:/Volumes/Switzerland/e/Projects/html2epub/htmlreports/template/js/scrolling-nav.js
INFO : htmlreports/xpl/patch-svrl.xpl:239:65:[WARNING] Schematron rule family: 'html', rule(s): 'book_date'
No srcpath-span found. Using Schematron location @attribute as fallback.

Makefile target: postprocess

Makefile target: conversion FINISHED
codingisacopingstrategy commented 8 years ago

Did someone from Le-tex have time to look into this?

Cheers,

haendwic commented 8 years ago

The missing @font-face attributes were caused by a bug in the css-tools external fixed by @mkraetke. Originally, @font-face attributes were deleted by default if they dont appear as a reference in the html. Thats why one of the actual @font-faces is left out in the process already.

In case of the uncopied fonts i have to say that the font files themselves got into the resulting epub in any case. Now they are just used by the fixed css.