Unified converter of FB2 files into epub2, kepub, mobi and azw3 formats.
Aims to be faster than python implementation and much easier to maintain. Simpler configuration, zero dependencies, better diagnostics and no installation required.
.fb2.zip
files.Download from the releases page and unpack it in a convenient location.
kindlegen
for Apple Silicon - not sure if one even exists, so manage your expectations.RWTNh1aN8DrXq26YRmWO3bPBx4m8jBATGXt4Z96DF4OVSzdCBmoAU+Vq
Configuration is fully documented here. In order to customize program behavior use "export" command to the directory of your choice and then supply path to your configuration file during program run.
Program has detailed logging configured by default (by default conversion.log in current working directory) - in case of problems, take a look there first.
>>> ./fb2c
NAME:
fb2converter - fb2 conversion engine
USAGE:
fb2c [global options] command [command options] [arguments...]
VERSION:
"program version" ("go runtime version") : "git sha string"
COMMANDS:
convert Converts FB2 file(s) to specified format
synccovers Extracts thumbnails from documents (Kindle only!)
dumpconfig Dumps active configuration (JSON)
export Exports built-in resources for customization
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--config FILE, -c FILE load configuration from FILE (YAML, TOML or JSON). if FILE is "-" JSON will be expected from STDIN (accepts multiple inputs)
--debug, -d prepare archive with details of a current run (may overwrite some log settings) (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)
Additional help for any command could be obtained by running ./fb2c help COMMAND-NAME
.
In order to convert all fb2 files in c:\books\to-read
directory and get results in d:\out
directory without keeping original subdirectory structure
sending files to Kindle via e-mail in process execute
fb2c.exe convert --nodirs --stk --to epub c:\books\to-read d:\out
If you want resulting mobi files to be located alongside with original files, do something like
fb2c.exe convert --to mobi c:\books\to-read c:\books\to-read
Windows builds come with full MyHomeLib support. Just make sure that your MyHomeLib\converters
directory does not contain old
fb2mobi
and/or fb2epub
subdirectories and unpack Windows distribution file for your archtecture there. It is a drop-in replacement and should be functional out of the box in most cases.
fb2mobi.exe
looks for fb2mobi.toml
in its directory (similarly fb2epub.exe
looks for fb2epub.toml
), so any additional customization is easy.%ProgramFiles%
or %ProgramFiles(x86)%
directory - it is bad idea. Since for regular user accounts In Windows those places are write-protected you will have difficulties copying converters there and converters will have problems creating conversion logs which are enabled by default.fb2mobi
to fb2epub
.--debug
flag produces zip archive with artifacts for debugging either in directory of the converter or if it is inaccessible in temporary directory. Environment variable FB2C_DEBUG set to "Yes" could be used with fb2epub.exe
and fb2mobi.exe
for similar effect. Resulting archive could be shared to facilitate troubleshooting.