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 10-25-2017, 02:34 PM   #46
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: 73,972
Karma: 128903378
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 Sella174 View Post
Thanks, Dale. I did look at that before starting the thread, but the date was too ancient for me.

Barebones minimum for mobi using KindleGen is actually just:
  1. content.opf
  2. toc.ncx
  3. toc.html
  4. cover.jpg
  5. text.html
It’s interesting to watch the output of KindleGen once one starts adding stuff.
In plain English, ePub.
JSWolf is online now   Reply With Quote
Old 10-25-2017, 02:44 PM   #47
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
It's just easier to learn to make ePub and convert from that as the source.
There’s a few differences, so it’s better to learn how to do a mobi.
Sella174 is offline   Reply With Quote
Advert
Old 10-25-2017, 02:46 PM   #48
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
In plain English, ePub.
Them’s just the files; I didn’t discuss the internals.
Sella174 is offline   Reply With Quote
Old 10-25-2017, 02:47 PM   #49
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: 73,972
Karma: 128903378
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 Sella174 View Post
There’s a few differences, so it’s better to learn how to do a mobi.
Trust me, that's the harder way to do it. There are no tools to help you make a Mobi. The code from a Mobi has to be done without CSS and it's going to be hell to put every style in the HTML code.

There are much more than a few differences. Plus there is the Calibre editor or Sigil to help you make ePub.
JSWolf is online now   Reply With Quote
Old 10-25-2017, 02:57 PM   #50
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
There are no tools to help you make a Mobi.
A text editor and KindleGen sure work fine for me.

Quote:
Originally Posted by JSWolf View Post
The code from a Mobi has to be done without CSS and it's going to be hell to put every style in the HTML code.
Huh? I don't want to decompile FROM a mobi. I already have the source files. I just compile it TO a mobi.

Quote:
Originally Posted by JSWolf View Post
There are much more than a few differences.
Exactly, so double-huh?
Sella174 is offline   Reply With Quote
Advert
Old 10-25-2017, 03:00 PM   #51
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: 73,972
Karma: 128903378
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 Sella174 View Post
A text editor and KindleGen sure work fine for me.
The long way round for something that should be easy.

Quote:
Huh? I don't want to decompile FROM a mobi. I already have the source files. I just compile it TO a mobi.
Nobody said anything about decompiling anything.

Quote:
Exactly, so double-huh?
The differences are what make ePub EASIER to create. Plus the programs available to help you create ePub make it even easier. So your way of making Mobi is actually more COMPLICATED.
JSWolf is online now   Reply With Quote
Old 10-25-2017, 03:16 PM   #52
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Quote:
Originally Posted by JSWolf View Post
The code from a Mobi has to be done without CSS and it's going to be hell to put every style in the HTML code.
So why then can I use external stylesheets (e.g. “text.css”) for each of the HTML files that are compiled by KindleGen into the mobi and are subsequently applied by the e-reader?

Quote:
Originally Posted by JSWolf View Post
There are much more than a few differences. Plus there is the Calibre editor or Sigil to help you make ePub.
Quote:
Originally Posted by JSWolf View Post
The differences are what make ePub EASIER to create. Plus the programs available to help you create ePub make it even easier. So your way of making Mobi is actually more COMPLICATED.
Sigil, with all due respect to the programmers thereof, produces ePub files and as such does not add the “spices” to the files that KindleGen favours. If it did, then the ePub wouldn’t validate.
Sella174 is offline   Reply With Quote
Old 10-25-2017, 03:23 PM   #53
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: 73,972
Karma: 128903378
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 Sella174 View Post
So why then can I use external stylesheets (e.g. “text.css”) for each of the HTML files that are compiled by KindleGen into the mobi and are subsequently applied by the e-reader?
You can do that with Sigil or Calibre Editor and you can see what the result of the CSS code is very easily. Your way you create the CSS, edit the HTML, run Kindlegen, see what you get and what you don't realize is you may very well NOT be seeing the Mobi. You may be seeing the KF8.

Quote:
Sigil, with all due respect to the programmers thereof, produces ePub files and as such does not add the “spices” to the files that KindleGen favours. If it did, then the ePub wouldn’t validate.
That's just so wrong. ePub validates and then converts to Mobi no problem. What you get is how you made the ePub. When you use Kindlegen to make your Mobi, what you are getting is a dual-format eBook that contains both Mobi & KF8. If you use a Kindle that displays KF8, you see the KF8. If you use a Kindle that doesn't display KF8, you get Mobi. So there's a good chance you are not seeing Mobi. If you are using KindleforPC to look at your eBook, then you are just seeing KF8.

How are you selling your eBook? Is it through Amazon?
JSWolf is online now   Reply With Quote
Old 10-25-2017, 03:24 PM   #54
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Sella174 View Post
A text editor and KindleGen sure work fine for me.


Huh? I don't want to decompile FROM a mobi. I already have the source files. I just compile it TO a mobi.


Exactly, so double-huh?
URGH. Wolfie is being very pedantic. HOWEVER, that being said, what he's said--although narrow--is correct.

He's taking you literally in his own, personal-to-him-only specific definition of "MOBI." He is deliberately construing you to mean that you are building a KF7-style ONLY mobi. (Wolfie rather notoriously persists on insisting that only KF7 "mobis" are MOBI, and that the newer, dual-style MOBI is "KF8" not MOBI. Thus, his comments to you.)

If that were true--which it would be, if you used MOBIPocket, CSS wouldn't work. The KF7 mobis didn't use CSS--at all. Not one smidgen. Everything had to be on the HTML tags, not in CSS.

Those of us who build MOBIs--the 2017 kind, not the 2009 kind--use media-queries to address this issue in KF7 MOBI format, and of course, use the CSS to address the KF8 MOBI format--both of which are included in the MOBI output file from KG/KPreviewer.

Does that clarify for you?

@Wolfie: Give it a rest, man. Nobody else on the damned PLANET uses your definition of "mobi" as =KF7. Not even me, and you know that I am very precise in that stuff. You know damned well you are saying this to confuse her just to try to win the argument. Stop

Hitch
Hitch is online now   Reply With Quote
Old 10-25-2017, 03:25 PM   #55
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Sella174 View Post
So why then can I use external stylesheets (e.g. “text.css”) for each of the HTML files that are compiled by KindleGen into the mobi and are subsequently applied by the e-reader?
See my previous. You don't, actually.


Quote:
Sigil, with all due respect to the programmers thereof, produces ePub files and as such does not add the “spices” to the files that KindleGen favours. If it did, then the ePub wouldn’t validate.
I won't lie--I have no idea what is it you are talking about, vis-a-vis "spices?"

Hitch
Hitch is online now   Reply With Quote
Old 10-25-2017, 03:33 PM   #56
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: 73,972
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The problem is that Amazon is using .mobi as the file extension for Kindlegen output. That means when someone says Mobi, you don't always know if they mean kindlegen output or Mobi format. And then there is also .azw which does not tell us what format that is.

Amazon loves causing confusion.
JSWolf is online now   Reply With Quote
Old 10-25-2017, 03:36 PM   #57
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JSWolf View Post
The problem is that Amazon is using .mobi as the file extension for Kindlegen output. That means when someone says Mobi, you don't always know if they mean kindlegen output or Mobi format. And then there is also .azw which does not tell us what format that is.

Amazon loves causing confusion.
Wolfie:

My sweet curmudgeon, with all due respect, nobody has used MOBI=KF7 in what, 5 years? You're the last one to mean that. Yes, sure, it's imprecise language, and I hate that, too, but the Calibre folks says MOBI and AZW3, which is KF7 and KF8; but the rest of us all say MOBI to mean, dual-MOBI unless otherwise QUALIFIED as KF7 or 8. Ya know?

Hitch
Hitch is online now   Reply With Quote
Old 10-25-2017, 03:45 PM   #58
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,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sella174 View Post
Sigil, with all due respect to the programmers thereof, produces ePub files and as such does not add the “spices” to the files that KindleGen favours. If it did, then the ePub wouldn’t validate.
Can you give some specific examples of these mysterious “spices”? AFAIK, the only item that isn't strictly required for valid epub2 books is the cover metadata entry. For example:

Code:
<meta content="cover.jpg" name="cover" />
However, this item won't invalidate an epub2 book.

Unless you create Kindle dictionaries or KF8 fixed layout books, you shouldn't have to add any elements that would invalidate epub2 books.

Last edited by Doitsu; 10-25-2017 at 03:51 PM.
Doitsu is offline   Reply With Quote
Old 10-25-2017, 03:49 PM   #59
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: 73,972
Karma: 128903378
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 Hitch View Post
Hitch
In your professional opinion, giving what the OP is doing and what the OP wants to achieve, what is the easiest way to achieve this?
JSWolf is online now   Reply With Quote
Old 10-25-2017, 03:53 PM   #60
Sella174
Enthusiast
Sella174 began at the beginning.
 
Sella174's Avatar
 
Posts: 46
Karma: 10
Join Date: Feb 2015
Device: Paperbacks
Hitch, I did notice with Kindle Previewer that some “devices” applied some of the styles, whilst others did not. Since KindleGen produces both KF8 and mobi “format” wrapped inside a single container called mobi, it seem that the program figures out which from what and in this case that you and JSWolf state, merges the external stylesheet with the HTML. Whereas ePub is basically zipped HTML and CSS files, I get the distinct impression that (mobi/KF8) is a compiled end-product - similar to a C source file and the resultant EXE after compilation.
Sella174 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
18MB EPUB converts to 40MB Mobi! What can I do to reduce Mobi file size? perdman Conversion 11 12-09-2017 04:18 AM
PDF to MOBI and EPUB to MOBI bob-e-reader Kindle Formats 2 06-08-2015 05:47 AM
mobi > epub > mobi = changed line spacing? SampleAndy Conversion 3 03-01-2013 06:18 PM
Conversion from mobi (to mobi, or epub) breaks internal links bounder Conversion 1 10-09-2012 11:56 AM
Is the epub-mobi/mobi-epub convertion "lossless"? tanteoma Calibre 14 06-07-2012 10:57 AM


All times are GMT -4. The time now is 06:24 AM.


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