Skip to content

Automatically exported from code.google.com/p/fb2-to-epub-converter

License

Notifications You must be signed in to change notification settings

ava1ar/fb2-to-epub-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Automatically exported from code.google.com/p/fb2-to-epub-converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages