Skip to content

Add EPUB output option.#31

Open
rcoacci wants to merge 2 commits intomit-pdos:xv6-riscvfrom
rcoacci:make-epub
Open

Add EPUB output option.#31
rcoacci wants to merge 2 commits intomit-pdos:xv6-riscvfrom
rcoacci:make-epub

Conversation

@rcoacci
Copy link

@rcoacci rcoacci commented Aug 18, 2022

Simple epub ebook format generation using tex4ebook, alongside PDF.
The config file is necessary for correct image sizing.
Fixes #13

Simple epub ebook format generation using tex4ebook, alongside PDF.
The config file is necessary for correct image sizing.
@sobkas
Copy link

sobkas commented Sep 11, 2023

It doesn't work:

[STATUS]  tex4ebook: Conversion started
[STATUS]  tex4ebook: Input file: book.tex
[WARNING] tocid: char-def module not found
[WARNING] tocid: cannot fix section id's
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
sh: 1: rungs: not found
[ERROR]   mkutils: File fig/os-.png doesn't exist
cp: cannot stat 'fig/os-.png': No such file or directory
[ERROR]   mkutils: File fig/mkernel-.png doesn't exist
cp: cannot stat 'fig/mkernel-.png': No such file or directory
[ERROR]   mkutils: File fig/as-.png doesn't exist
cp: cannot stat 'fig/as-.png': No such file or directory
[ERROR]   mkutils: File fig/riscv_address-.png doesn't exist
cp: cannot stat 'fig/riscv_address-.png': No such file or directory
[ERROR]   mkutils: File fig/riscv_pagetable-.png doesn't exist
cp: cannot stat 'fig/riscv_pagetable-.png': No such file or directory
[ERROR]   mkutils: File fig/xv6_layout-.png doesn't exist
cp: cannot stat 'fig/xv6_layout-.png': No such file or directory
[ERROR]   mkutils: File fig/processlayout-.png doesn't exist
cp: cannot stat 'fig/processlayout-.png': No such file or directory
[ERROR]   mkutils: File fig/smp-.png doesn't exist
cp: cannot stat 'fig/smp-.png': No such file or directory
[ERROR]   mkutils: File fig/race-.png doesn't exist
cp: cannot stat 'fig/race-.png': No such file or directory
[ERROR]   mkutils: File fig/switch-.png doesn't exist
cp: cannot stat 'fig/switch-.png': No such file or directory
[ERROR]   mkutils: File fig/fslayer-.png doesn't exist
cp: cannot stat 'fig/fslayer-.png': No such file or directory
[ERROR]   mkutils: File fig/fslayout-.png doesn't exist
cp: cannot stat 'fig/fslayout-.png': No such file or directory
[ERROR]   mkutils: File fig/inode-.png doesn't exist
cp: cannot stat 'fig/inode-.png': No such file or directory
HTML Tidy for Linux version 5.8.0
[STATUS]  tex4ebook: Conversion finished
make: *** [Makefile:43: book.epub] Error 1

@rcoacci
Copy link
Author

rcoacci commented Sep 12, 2023

Oh, it seems that in the meantime the figures changed from png to svg/pdf, and probably changed their names too. I'll take a look and try to fix it.

@rcoacci
Copy link
Author

rcoacci commented Sep 12, 2023

Well actually, it worked for me when I tried the original branch, are you sure you have the ebb program @sobkas ? That's what generates the missing png files.

@rcoacci
Copy link
Author

rcoacci commented Sep 12, 2023

I've updated my branches, but for correct generation one needs either #32 or #35. Unfortunately it seems the maintainers are ignoring (or not aware of) the contributions from the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ePub format requested

2 participants