Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 09-01-2019, 01:39 AM   #1
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
ePub 3 to kindlegen

Operating System: x86_64 CentOS 7 Linux (supports i386 too)

kindlegen tarball: kindlegen_linux_2.6_i386_v2_9.tar.gz

According to all the docs I read, it's suppose to produce a single file that has both mobi and kf8 in it. That's not what I'm seeing.

Source ePub 3 (which passes validation) is 7.4 MB (much of that is fonts)

When running the kindlegen binary on it, TWO files are produced - one with a .mobi extension and one with a .mobi8 extension.

The .mobi file is 14.7 MB so maybe it does have two versions in it?

The .mobi8 file is 106.6 kB meaning it clearly doesn't have much of anything in it, guessing none of the fonts. It would fit on the old 400k floppies my classic mac used

Can anyone describe what these output files are since they differ from all documentation I've seen on what is suppose to be produced (single output file)

I don't yet have a kindle to see how the conversion went, should be arriving shortly.

Seems the preview app doesn't work on Linux so I can't preview until I get a kindle (I don't have Windows or MacOS/OS X)
AliceWonder is offline   Reply With Quote
Old 09-01-2019, 08:17 AM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AliceWonder View Post
When running the kindlegen binary on it, TWO files are produced - one with a .mobi extension and one with a .mobi8 extension.
The .mobi and .mobi8 are temporary files. Usually, you only see them when KindleGen processes rather large files. Youl'll have to wait until KindleGen is done and displays:

Code:
Info(prcgen):I15000:  Approximate Standard Mobi Deliverable file size : 000xxxKB
Info(prcgen):I15001:  Approximate KF8 Deliverable file size :   000xxxKB
Doitsu is offline   Reply With Quote
Advert
Old 09-01-2019, 10:34 PM   #3
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
All it is generating is the .mobi and .mobi8 files.

It is giving a bunch of warnings about abbr tag:

Code:
Warning(inputpreprocessor):W29007: Rejected unknown tag: <abbr>
      in file: /tmp/mobi-VUdMwo/OEBPS/About.xhtml     line: 0000125
I may need a shell script to change those to span tags before converting if that's a problem (abbr tag is very useful for a11y screen readers, at least in standard html, so they belong in the ePub)

But if those are just temporary files, then the program is exiting before completing w/o giving an error message as to why. But it does exit with status 0 which should indicate a successful exit.

I'll have to see if I can borrow a Mac and see if it behaves differently there.
AliceWonder is offline   Reply With Quote
Old 09-01-2019, 11:28 PM   #4
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
Okay in verbose this is how program ends -

Code:
Info(prcgen):I15000:  Approximate Standard Mobi Deliverable file size :   4184073KB
Info(prcgen):I15001:  Approximate KF8 Deliverable file size :   0003591KB
Info(prcgen):I1036: Mobi file built successfully
I'm assuming that it just is simply not trying to combine them into a single file, either because there is a binary it wants not present or because there is a bug in the Linux version.

It's not uncommon for commercial companies with closed source software to not really care about their linux builds.
AliceWonder is offline   Reply With Quote
Old 09-02-2019, 01:31 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AliceWonder View Post
I'm assuming that it just is simply not trying to combine them into a single file, either because there is a binary it wants not present or because there is a bug in the Linux version.
AFAIK, Kindlegen is a standalone binary without unusual dependencies. The Linux version works just fine on my Arch Linux version. If it doesn't work on your Linux machine, it's most likely a distro/security issue. (Maybe your OS prevents Kindlegen from merging the temp files or your file manager simply doesn't refresh the folder display after Kindlegen is done.)

Try compiling a blank epub created with Sigil. If you still end up with temporary files, it's definitely an OS issue.
Doitsu is offline   Reply With Quote
Advert
Old 09-02-2019, 02:32 AM   #6
AliceWonder
Connoisseur
AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.AliceWonder ought to be getting tired of karma fortunes by now.
 
Posts: 97
Karma: 200000
Join Date: Aug 2019
Device: none
I have a sneaky suspicion that the .mobi8 file is a garbage file it forgets to delete and the .mobi is what I want.
AliceWonder is offline   Reply With Quote
Old 09-02-2019, 05:56 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by AliceWonder View Post
I have a sneaky suspicion that the .mobi8 file is a garbage file it forgets to delete and the .mobi is what I want.
Yes, the file you want does end in .mobi.
JSWolf is offline   Reply With Quote
Old 09-02-2019, 12:59 PM   #8
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,827
Karma: 7943430
Join Date: Mar 2015
Device: Kindle, iOS
If KindleUnpack works on Linux, you can use it to unpack the .mobi file and see if there's a KF8 and standard Mobi inside.

In addition to the python scripts there is a KindleUnpack Calibre plug-in
odamizu is offline   Reply With Quote
Reply

Tags
kindlegen


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
kindlegen fails to convert epub codrutp Kindle Formats 8 10-26-2018 05:06 PM
epub to mobi: Kindlegen vs Calibre rstoothoff Introduce Yourself 5 08-13-2012 07:27 AM
kindlegen epub to mobi error codrutoctavian Kindle Formats 2 02-14-2012 11:40 AM


All times are GMT -4. The time now is 09:31 PM.


MobileRead.com is a privately owned, operated and funded community.