Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2013, 01:09 AM   #121
jswinden
Nameless Being
 
Quote:
Originally Posted by slantybard View Post
So I tried doing this with Calibre, but it does not work. I tried using negative margins in the p tag using various px and pt from 10 to 40 with no change. There must be something magical about KindleGen. I haven't learned how to use kindlegen yet but it was disappointing to see that the ebook mothership, Calibre, couldn't handle the job.

I am going to look at the provided samples here and compare css codings with the attempts I made.
I don't use calibre to do conversions because it does its own thing. I prefer to have total control. Calibre tries to dumb things down from the users perspective so they don't have to know what they are doing to convert a book. That is fine, but it means tricks like this one tend to not work with calibre.
  Reply With Quote
Old 10-23-2013, 02:44 PM   #122
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by jswinden View Post
I don't use calibre to do conversions because it does its own thing. I prefer to have total control. Calibre tries to dumb things down from the users perspective so they don't have to know what they are doing to convert a book. That is fine, but it means tricks like this one tend to not work with calibre.
You got me curious, If you don't use Calibre how do you make a Kindle book that is KF8?
Blossom is offline   Reply With Quote
Advert
Old 10-23-2013, 03:23 PM   #123
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Kindlegen and Kinde Previewer create a mobi that has both old mobi and new KF8 in it.
Katsunami is offline   Reply With Quote
Old 10-23-2013, 03:36 PM   #124
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by Katsunami View Post
Kindlegen and Kinde Previewer create a mobi that has both old mobi and new KF8 in it.
How do you do that with Kindle Previewer?
Blossom is offline   Reply With Quote
Old 10-23-2013, 03:38 PM   #125
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Just by opening an epub with it
Katsunami is offline   Reply With Quote
Advert
Old 10-23-2013, 03:46 PM   #126
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by Katsunami View Post
Just by opening an epub with it
Did not know you could that!
Blossom is offline   Reply With Quote
Old 10-23-2013, 05:06 PM   #127
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
If you'd like to convert a huge number of books, it would be best to use kindlegen itself. Kindle Previewer uses this in the background.

When I get at my desktop computer, I'll post a zip-file with a mini-script that creates AZW3 files using KindleGen and KindleUnpack, saving the original EPUB and intermittent mobi KF8:Joint file as well.

Warning in advance: there's no error-checking. If the script finishes, you should have the same number of EPUBs, MOBI's and AZW3s. If you don't, you'll have to check the logs and/or compare the output directories to see which book didn't convert. Even though the script saves the original EPUBs, I highly recommend running it on a copy of your files.

Last edited by Katsunami; 10-23-2013 at 07:40 PM.
Katsunami is offline   Reply With Quote
Old 10-23-2013, 07:40 PM   #128
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Conversion using Kindlegen: usage instructions (Windows only)
- Download the attached zip-file.
- Open it in your favorite archiving program, and put the folder "KindleScript" somewhere. C:\ would be a good place.
- If you don't have Python installed, download version 2.7.5

http://www.python.org/download/

Pick the X86-64 version if you have a 64-bit Windows.
- Install Python.
- Now open Kindlegen.bat (Found in the KindleScript folder) in your favorite text editor.
- Edit this line:

Code:
"C:\Programs\Python 2.7.5\python.exe" "c:\KindleScript\lib\kindleunpack.py" -s "%%f" ".\Unpacked\%%~nf"
- Replace C:\Programs\Python 2.7.5\ with the location where you have installed Python. (Example: C:\Program Files\Python\)
- Replace C:\KindleScript\ with the location where you have put the KindleScript folder.
- Save the file.

The above is a one-time setup.

Now collect some EPUBs in a folder on your desktop. Copy them there, or save them there from Calibre. Convert as follows:

- Press and hold SHIFT.
- Rightclick the folder with the EPUBs, and click "Open Command Window Here".
- Type the following:

Code:
c:\kindlescript\kindlegen.bat
(Replace c:\kindlescript\ with the actual location where you put the KindleScript folder.)

- Wait.
- Pray.

If you doubleclick the folder that contains the EPUBs, you should see the script processing the files. In the end, you should have the following:

1. OriginalEPUB (the original EPUBs you started with)
2. OriginalMobi (the KF8:Joint combo-files that KindleGen generates)
3. AZW3 (the AZW3 files extracted from the KF8:Joint combo-format)
4. Unpacked (the stuff where everything is extracted to get the AZW3.)

If you started with 10 EPUBs, you should end up with 10 files in OriginalEPUB, 10 files in OriginalMobi, 10 files in AZW3, and 10 folders in Unpacked. If stuff is missing, a file did not convert correctly.

As I wrote before: this mini-script is for my personal use. Run it at your own risk, and use one COPIES OF YOUR FILES. If you run it on the folder where you store all your bought EPUBs, and something goes wrong, you could end up with an empty folder. There is NO protection for errors in here.
Attached Files
File Type: zip KindleScript.zip (2.47 MB, 265 views)
Katsunami is offline   Reply With Quote
Old 10-24-2013, 12:17 AM   #129
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by Katsunami View Post
As I wrote before: this mini-script is for my personal use. Run it at your own risk, and use one COPIES OF YOUR FILES. If you run it on the folder where you store all your bought EPUBs, and something goes wrong, you could end up with an empty folder. There is NO protection for errors in here.
K for you! I can't wait till I am better to play with this! I already have python installed so it should work okay.
Blossom is offline   Reply With Quote
Old 10-24-2013, 10:31 AM   #130
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
Thanks.

If it's Python 2.7.5, it should. The script depends on KindleUnpack.py, and I have not tested that on any other Python than 2.7.5.

Don't forget to change that line to point to the correct install locations of Python and the script.

After I'm done with my Linux conversion, I may make one for Linux too. It's no more than some loops to run along the files, really.
Katsunami is offline   Reply With Quote
Old 10-24-2013, 11:49 AM   #131
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,529
Karma: 13088847
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
What kind of file is azw3. It doesn't seem to be a zip file like epub
Barty is offline   Reply With Quote
Old 10-24-2013, 12:04 PM   #132
jswinden
Nameless Being
 
Quote:
Originally Posted by Barty View Post
What kind of file is azw3. It doesn't seem to be a zip file like epub
It is a compiled file for Kindle books. You have to unpack it to see the contents.
  Reply With Quote
Old 10-24-2013, 10:08 PM   #133
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: 75,840
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
If anyone wants, I can post the CSS to an ePub that I converted to an AZW3 via Kindlegen (then split via KindleUnpack) that has -30px margins for the Kindle Touch.

-30px for the Touch
-40px for the PW1/2
JSWolf is offline   Reply With Quote
Old 10-24-2013, 11:34 PM   #134
dordale
Wizard
dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.dordale ought to be getting tired of karma fortunes by now.
 
dordale's Avatar
 
Posts: 1,731
Karma: 3472866
Join Date: Apr 2008
Device: Sony PRS-650 & 350; Kindle Voyage; Kobo Aura HD, Aura One, and Forma
Quote:
Originally Posted by JSWolf View Post
If anyone wants, I can post the CSS to an ePub that I converted to an AZW3 via Kindlegen (then split via KindleUnpack) that has -30px margins for the Kindle Touch.
I would like to see this--Thanks! I'm trying to learn this stuff--not sure if I'll ever figure it out, but I'm trying.
dordale is offline   Reply With Quote
Old 10-25-2013, 01:26 AM   #135
Blossom
Treasure Seeker
Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.Blossom ought to be getting tired of karma fortunes by now.
 
Blossom's Avatar
 
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
Quote:
Originally Posted by Katsunami View Post
Thanks.

If it's Python 2.7.5, it should. The script depends on KindleUnpack.py, and I have not tested that on any other Python than 2.7.5.

Don't forget to change that line to point to the correct install locations of Python and the script.

After I'm done with my Linux conversion, I may make one for Linux too. It's no more than some loops to run along the files, really.

I plan to work on this on the weekend. I am getting a replacement for the HDX on Monday. Mine is acting up. So I will have time to convert more books.
Blossom is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding font produces strange spacing northstar7 Sigil 6 09-17-2013 01:52 PM
Fonts embedding 1drey Writer2ePub 3 06-17-2011 11:15 PM
Embedding fonts JaneFancher Calibre 14 04-10-2010 09:28 PM
Embedding fonts AprilHare ePub 6 01-02-2010 11:42 AM
Embedding fonts jash Calibre 2 09-09-2008 05:05 PM


All times are GMT -4. The time now is 11:52 PM.


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