honkit: epub generation: fail for CSS image path mis-detecting?
Summary
Create PDF & EPUB, EPUB is success but PDF is failed. PDF include CSS background image for ./images/*.png contain fail. (Web Hosted also success see source’s GitHub Pages)
- HonKit version: 3.6.6 at 2020/09/23
Step to reproduce
- checkout source
- build to PDF
Link to code example:
- source : https://github.com/tsuyoshicho/WhenScarletIceMelted
- result : https://github.com/tsuyoshicho/WhenScarletIceMelted/runs/1152526006?check_suite_focus=true#step:7:43
Expected results
Create PDF with image success.
Actual results
see result link
log attaching
- stdout log : pdf.log
- stderr log : pdf_stderr.log
- Generate CSS: pdf-1600823806151.css.txt
$ tree /f C:\Users\<userid>\AppData\Local\Temp\tmp-1952MQvyf79s5qc7
Folder PATH listing for volume Windows
Volume serial number is 000001DA 0882:F2A0
C:\USERS\<userid>\APPDATA\LOCAL\TEMP\TMP-1952MQVYF79S5QC7
│ .editorconfig
│ .gitattributes
│ .gitignore
│ .textlintrc
│ 6c50c8.png
│ ebook-1600823806054.css
│ GLOSSARY.html
│ index.html
│ LICENSE.html
│ oldplugin.txt
│ package-lock.json
│ package.json
│ pdf-1600823806151.css
│ SUMMARY.html
│ website-1600823805986.css
│
├───.github
│ │ renovate.json
│ │
│ └───workflows
│ deploy.yml
│ release.yml
│ reviewdog.yml
│
├───assets
│ └───images
│ └───uml
│ .gitkeep
│
├───doc
│ .textlintrc
│ chapter1-1.adoc
│ chapter1-1.html
│
├───gitbook
│ │ ebook.css
│ │ epub.css
│ │ mobi.css
│ │ pdf.css
│ │
│ └───gitbook-plugin-highlight
│ ebook.css
│ website.css
│
├───images
│ gm.png
│ oreshalarry2.png
│ reaper.png
│ reapermini.png
│ tako.png
│ takomini.png
│
└───styles
ebook.scss
pdf.scss
website.scss
_common.scss
_commonh.scss
_commonv.scss
_replay.scss
_replayh.scss
_replayv.scss
_speechballoonsh.scss
_speechballoonsv.scss
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (7 by maintainers)
research ebook-convert and epub rule
version
in Windows 10 Pro 20H1
epub
Open Publication Structure (OPS) 2.0.1 v1.0
ebook-convert
E-book conversion — calibre 5.1.0 documentation
table
row
structure
rel info ebook-convert(1) — calibre — Debian unstable — Debian Manpages
trial convert
This process success image and result epub contain flat html/css and move image to root.
patch in book/book_mod
result
css
background-image: url(gm.png);
html
<img src="tako.png" alt="知性化タコ 「メルクリウスの盗掘屋」" class="calibre8"/>
conclusion
Perhaps honkit (old gitbook) is overworking assets for epub
Constraint
attach
I’ve tested your https://github.com/tsuyoshicho/WhenScarletIceMelted. epub is flat dir.
It is an issue or limitation of epub, it is not pdf issue. (I’m not faimilar with epub spec)
Maybe, we need to create another issue about epub’s image path.
Thanks to confirm.
honkit pdf
flow: