Giter Site home page Giter Site logo

fb2-to-epub-converter's Introduction

fb2toepub is a converter from FB2 to EPUB. FB2 and EPUB are two popular eBook formats.
This converter is intended to be used in embedded systems and other resource-critical facilities, however of course it can be used as a standalone application.

Tested on Windows Vista 32 and Cygwin.


How to build the converter:

1) For Linux, use Makefile.

2) For Windows, use fb2toepub.sln which is a solution file for MSVS 2008.
There are build problems for Windows with scanner.l and scanner.cpp. The cause is that there is no flex for Windows working properly in C++ mode and compatible with modern C++.
Possible solutions:
 - Install cygwin and use cygwin flex. File FlexLexer.h deployed with cygwin-1.7.7-1 is compatible with MSVC++. Copy it to some directory and add this directory to Visual C++ include directory list.
 - If you don't want to install cygwin, you can use existent scanner.cpp and the header file FlexLexer.h in source directory fb2toepub/win_FlexLexer/. However keep in mind that this file is from cygwin-1.7.7-1 package and it may not be refreshed later if I decide to switch to next version of cygwin.


How to run the converter.

The simplest command line is the following:

fb2toepub -sf <style-font-directory> <input-fb2-file> <output-epub-file>

where <style-font-directory> is path to directory containing files and styles. You can find examples of fonts and styles in custom/ directory.

Note: The program neither generates output file name automatically using input file name, nor adds ".fb2" or ".epub" extensions to input and output file names.

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.