Skip to content

katalog/mobi_maker

Repository files navigation

mobi_maker

Korean txt file convert to mobi format.

This is tested on Linux & kindle 10th generation.

Before You Start

This is more or less WIP. Use at your own risk.

This package was written for a specific task, thus there are certain limitations, such as:

img tags are ignored and not embedded.

Number of chapters is only 1.

TOC depth does not go beyond 1. Meaning for now you can only have chapters and sub-chapters. But sub-chaper can not have it's own sub-chapters.

HTML formatting is supported, but rendering is dependant on your eBook reader. (For Kindle see Supported HTML Tags in Book Content) Cover images doesn't supported.

IMPORTANT: Images resized using image/jpeg package will not display (in Kindle) because JFIF APP0 marker segment is not generated by image/jpeg package.

In case of text file with EUC-KR(cp949), it may have some weird characters after convert.

Requirements

OS = linux / windows

GO >= 1.14

Build

This package references many other go packages.

You need to get Go packages before to build.

go get "github.com/766b/mobi"
go get "github.com/saintfish/chardet"
go get "golang.org/x/text"

go build

Usage

Convert one specific file

./mobi_maker <input.txt> 

Convert all text file in folder

./mobi_maker -a

Example

./mobi_maker 운수_좋은_날_utf.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages