Giter Site home page Giter Site logo

rfc2epub's People

Contributors

aichingm avatar taniokaeiji avatar yonatanzunger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rfc2epub's Issues

reflow or not?

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?

thrown in /rfc2epub on line 270 using docker example

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.

Does it work with php 7.2?

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?

Fix to option parsing, font size, etc

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

Not working with PHP 8.0.7

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.