Code Monkey home page Code Monkey logo

fimfic2pdf's People

Contributors

creideiki avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fimfic2pdf's Issues

Output table of contents for "novel"

Since "novel" doesn't use the standard LaTeX chapter commands, its table of contents has to be generated manually. The docs say how to do this, but with manual page numbers.

A table of contents is great for an in-progress story where you just want to read the latest chapter on a computer, but is probably not interesting for a printed work. Maybe for an anthology, showing where each separate story starts?

Handle author's notes

Author's notes are modelled as <blockquote class="afterward"> blocks. Do something nice with them.

Collect multiple stories into anthologies

Making anthologies shouldn't be much harder than single-story books, but will require some rethinking of both file and document structure to support a new logical level above that of a story.

Reduce command line switches

The current command line switches are not so much designed for the user as what I needed for debugging during early development. There are currently way too many switches to be usable. Really only three stages should be needed:

  1. Downloading EPUB and unpacking (downloads are expensive and need only happen once)
  2. Parsing HTML and transforming to LaTeX (current development is mostly additions to the transformer, so I use this a lot, but an end user probably won't care)
  3. Rendering LaTeX to PDF (the intended major loop is to edit the template and rerender, so this should be the simplest)

Step 1 could probably be made automatic - download if not already downloaded, and if you really want to redo that step, you probably don't want to save anything else so just delete the directory.

Allow rendering chapter numbers, titles, or both

The current rendering of chapter title pages is:

Chapter X

Title

Lorem ipsum dolor sit amet ...

But some stories include the chapter number in the title, and some use "chapter x" as the title. This looks especially bad in cases like https://www.fimfiction.net/story/500572/from-yakyakistan-with-love where chapter 1 is an introduction and (epub) chapter 2 is named (book) "chapter 1".

Include a couple of different snippets of LaTeX code in the template to easily change between different styles.

For extra credit, parametrise the template so one can use switches in the driver CLI to choose between them.

Make <hr> prettier

The output of a <hr> is currently just some extra space and a thin horizontal line. The line is not even centered vertically in the space.

The web site's default rendering is a double line with three asterisks overlaid in the centre. It also allows some fancy floral embellishments. Get the PDF rendering to look like some of those.

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.