Coder Social home page Coder Social logo

wordpress-epub's People

Contributors

chazzam 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  avatar  avatar  avatar

wordpress-epub's Issues

Support merging chapter parts

If a site has a post split across multiple posts, support combining them into one chapter in the epub, so this would only affect make-epub.py

I guess it would ignore the title of all subsequent parts after the first, and just shove the content together with a cat type operation

Add subparser(s) for scripting and one-offs

Adding these would probably let this be run automatically by parsing an RSS feed, then just need to make the epubs available somehow.

Download

Add an argparse subparser to download-chapters to enable downloading a chapter from a URL, a file-name to save, and a Title maybe.
download --url <url> --file <file> --title <chapter title>

This would not update the config file in anyway, but would simply make the specified file exist

ePub

Maybe another subparser in make-epub to manually create an epub without an updated config file
epub --base-config <config> --section <file glob> --section <file glob> --section <file glob> --section-list <list of files>
The base-config could supply the info like book title, author, synopsis, etc

Update Config

Could also potentially add support for updating the config file, instead of manually creating an epub?

update --config <config> --volume <volume number> --full-parts|--append-parts <parts string> --volume-title <title>

calculating the parts string might not be easy... Might take current parts string and just ",new part"

better cleanup functionality

instead of trying readability, mayhap follow feediron's example and have 'cleanup' xpath selections of content to be removed from the web scraped content.

Can specify a list of tags in the config to remove this way

wordpress api

add support for using the wordpress json api to download chapters when explicitly requested in a config file

Support creating multiple epubs from one config

Create a multi-volume epub from just one config file.

This would mean adding support to ebooklib for specifying a "series" using the type of title stuff. So adding a title would need to get much more complicated. Would also mean some kind of change to the config file. Right now an epub is created from the [toc] section. Would need to be able to have multiple TOC sections and a higher section to group them I guess.

Convert footnotes to epub footnote format

pull out wordpress style footnotes, and convert them to proper epub style footnotes. probably a low priority because the html style ones seem to work for me in FBReader

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.