aichingm / rfc2epub Goto Github PK
View Code? Open in Web Editor NEWrfc2epub - create an epub ebook from an IETF RFC
License: Other
rfc2epub - create an epub ebook from an IETF RFC
License: Other
I tried it once but what I received was an epub without "reflown" paragraphs. Even worse. My Pocketbook Touch HD didn't even break lines.
Is this teh intended output? Should the epub match as closely as possible the original monospaced layout of RFCs?
Hi, running your docker example script I'm receiving the following error message. Can you please give me a hint on what could be the issue?
Warning: DOMDocument::loadHTML(): Empty string supplied as input in /rfc2epub on line 250
Fatal error: Uncaught Error: Call to a member function getElementsByTagName() on null in /rfc2epub:270
Stack trace:
#0 {main}
thrown in /rfc2epub on line 270
Many thanks,
A.
Hi,
I did
sudo apt install php7.2 php7.2-xml php7.2-curl php7.2-zip
but I still get
php rfc2epub rfc6750 rfc6750.epub
PHP Warning: DOMDocument::loadHTML(): Empty string supplied as input in /home/guda/rfc/rfc2epub/rfc2epub on line 212
PHP Notice: Trying to get property 'childNodes' of non-object in /home/guda/rfc/rfc2epub/rfc2epub on line 220
PHP Notice: Trying to get property 'length' of non-object in /home/guda/rfc/rfc2epub/rfc2epub on line 220
PHP Fatal error: Uncaught Error: Call to a member function appendChild() on null in /home/guda/rfc/rfc2epub/rfc2epub:250
Stack trace:
#0 {main}
thrown in /home/guda/rfc/rfc2epub/rfc2epub on line 250
Is this because of the php version?
Hey team!
I just created a branch with various improvements -- fixing option parsing to use getopt, adding controllable font sizes, and maybe most useful, adding a --preset
argument that picks good defaults for particular devices. (I've only implemented paperwhite
for now, since that's the only device I have to hand and Kindle Previewer doesn't work with custom or monospaced fonts, alas, but this should be easy to extend!)
However, I don't have access to push branches. What's your preferred way to get PR's?
Yonatan
Hello,
Thanks for this neat script! I'd like to use it for RFC 7950 but it crashes:
❯ php rfc2epub 7950 7950.epub
Warning: Attempt to read property "childNodes" on null in /home/little-dude/rfc2epub/rfc2epub on line 277
Warning: Attempt to read property "length" on null in /home/little-dude/rfc2epub/rfc2epub on line 277
Fatal error: Uncaught Error: Call to a member function getElementsByTagName() on null in /home/little-dude/rfc2epub/rfc2epub:285
Stack trace:
#0 {main}
thrown in /home/little-dude/rfc2epub/rfc2epub on line 285
❯ php --version
PHP 8.0.7 (cli) (built: Jun 1 2021 18:43:05) ( ZTS )
Copyright (c) The PHP Group
Zend Engine v4.0.7, Copyright (c) Zend Technologies
with Zend OPcache v8.0.7, Copyright (c), by Zend Technologies
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.