Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-30-2012, 07:45 AM   #61
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
Is it easy for you to build a Calibre plugin version? I want to try it but don't really want to get into installing Python etc. I will be able to try it on several books that manifest the problem in different ways, as well as my test file. Thanks.
Tugger is offline   Reply With Quote
Old 09-30-2012, 08:36 AM   #62
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,468
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Easy is pretty relative.

It would probably be "easy," but creating any interface plugin for calibre tends to become quite involved. At this point, I'm thinking it's probably not worth the effort for this small bit of functionality alone. Until such time as this functionality becomes incorporated into the "split" feature of MobiUnpack's core code, I'm afraid the stand-alone script will have to suffice. Sorry.

Anybody else is free to take up the cause, though!
DiapDealer is offline   Reply With Quote
Old 09-30-2012, 09:19 AM   #63
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
Ok, please can I clarify what I need to do.

1. Start by making my revised .mobi file. Use the existing MobiUnpack and edit the extracted source, fixing the font problem and adding the code for the start postion. Drop the opf onto KP and I have my revised .mobi file.

2. Having installed Python (from where?), run the script, point it at my revised .mobi file, creating a fixed version.

3. Test the fixed version on the device.

4. If it is OK, upload the revised unfixed file to KDP.

And a question. If the fixed file is put on a device where it didn't need to be fixed, e.g. the Touch, does it work OK or did it become broken by being fixed?

Finally, if one uploaded the fixed file to KDP what would happen?
Tugger is offline   Reply With Quote
Old 09-30-2012, 09:24 AM   #64
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,412
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Tugger View Post
And a question. If the fixed file is put on a device where it didn't need to be fixed, e.g. the Touch, does it work OK or did it become broken by being fixed?

Finally, if one uploaded the fixed file to KDP what would happen?
No idea.
No idea.

When you find out, let us know!
pdurrant is offline   Reply With Quote
Old 09-30-2012, 10:14 AM   #65
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
Please can you confirm that my steps 1-4 are correct.

Do I want to install Python 2.7 or 3.3?
Tugger is offline   Reply With Quote
Old 09-30-2012, 10:34 AM   #66
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Tugger View Post
Please can you confirm that my steps 1-4 are correct.
That depends on your source files. I'd create an epub with Sigl first, though, and skip the unpack part unless you need to create a highly optimized Mobi7 file for older Kindles and other Mobi compatible eBook readers.

Quote:
Originally Posted by Tugger View Post
Do I want to install Python 2.7 or 3.3?
ActivePython 2.7
Doitsu is offline   Reply With Quote
Old 09-30-2012, 02:31 PM   #67
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
I did the following after installing python and working out how to run the latest unpack script.

Please can you confirm that this is the correct procedure one should now follow?

1. Start with my .mobi from the InDesign plugin.
2. Unpack it using the normal Calibre version of the plugin.
3. Edit to fix the font problem.
4. Edit to put in the line in the opf and an anchor before the title of Chapter 1.
5. Drop opf on Previewer.
6. Check file in previewer - all OK, starts at Chapter 1.
7. Copy to device. It starts incorrectly at the TOC.

All as expected. Now to test the start position on device:

8. Take the .mobi we were just testing and split it using the new unpack.
9. Take the .azw3 and load into Calibre.
10. Test it in Previewer. All correct.
11. Test it in the device. It works correctly.

In step 8 I did get one error message about metadata which I assume is irrelevant:
Quote:
Processing K8 format Ebook ...
Warning: Unknown metadata with id 534 found
Unpack raw markup language
Unpacking images, resources, fonts, etc
Write K8 ncx
Building proper xhtml for each file
Write opf
Completed
So if this was a real book I would then take the mobi made in step 7 and upload it to KDP?

I've attached the test .azw3 file so perhaps someone can try it on different Kindle devices, i.e. Touch and Fire. I've had to change the extension from .azw3 to .doc - just rename it back.
Attached Files
File Type: doc mobi8-content_2012-09-30_19-16-29.doc (19.6 KB, 190 views)
Tugger is offline   Reply With Quote
Old 09-30-2012, 02:49 PM   #68
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,412
Karma: 305065800
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Tugger View Post
8. Take the .mobi we were just testing and split it using the new unpack.
9. Take the .azw3 and load into Calibre.
Using unpack is, perhaps, overkill for what you're testing. You could just use my 'fixing' script from this post, now you have python installed.

But whichever script you use, you can now do the testing you wanted to do.

And yes, upload the file from step 7, not one that's been messed around with by my script or mobiunpack.
pdurrant is offline   Reply With Quote
Old 09-30-2012, 03:28 PM   #69
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Tugger View Post
1. Start with my .mobi from the InDesign plugin
It might be easier if you generated .ePubs with InDesign. KindleGen can compile them and if you rename them to .zip, you can navigate them with Windows Explorer and replace files. (Don't unzip them, though.)
Exporting ePubs might also solve your unspecified font problem, and, depending on the InDesign version that you have, you might even be able to define the Go to Beginning anchor and the corresponding guide item directly in InDesign.
Doitsu is offline   Reply With Quote
Old 09-30-2012, 04:15 PM   #70
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by Doitsu View Post
It might be easier if you generated .ePubs with InDesign. KindleGen can compile them and if you rename them to .zip, you can navigate them with Windows Explorer and replace files. (Don't unzip them, though.)
Exporting ePubs might also solve your unspecified font problem, and, depending on the InDesign version that you have, you might even be able to define the Go to Beginning anchor and the corresponding guide item directly in InDesign.
The font problem is described here:
https://www.mobileread.com/forums/sho...d.php?t=191385
I don't know if the ePub would have the same problem. InDesign obviously has to have font sizes in pixels. Does the export to ePub keep that or convert to ems? The Amazon export creeates a CSS file with pixels.

I have assumed perhaps wrongly that Amazon's Kindle export would be better, otherwise why did they bother to develop it. It does seem very clever with TOCs and their styles, allowing a quite different TOC design for the export. It is still in beta.

Can one really set an anchor for the start that works with ePub export? Is that true? How - or where - is this documented? (I'm using the latest version).

Apart from the font bug and the start problem (both now solved) it all works very well. I have books with lots of chapters, footnotes, hyperlinks within the book, images. And it only takes seconds to import an RTF and then enhance it.
Tugger is offline   Reply With Quote
Old 09-30-2012, 04:35 PM   #71
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,468
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Doitsu View Post
It might be easier if you generated .ePubs with InDesign. KindleGen can compile them and if you rename them to .zip, you can navigate them with Windows Explorer and replace files. (Don't unzip them, though.)
Exporting ePubs might also solve your unspecified font problem, and, depending on the InDesign version that you have, you might even be able to define the Go to Beginning anchor and the corresponding guide item directly in InDesign.
In this instance, I know why Tugger is doing it the way he/she is. And it's a valid reason. Creating an ePub with InDesign is going to result in an ePub that doesn't have the special media-queries already in place that allow you to tweak certain aspects of the mobi format and the KF8 format independently. He would have to know how to manually add the correct media queries to the epub to fine-tune how kindlegen builds the two halves of the hybrid file before feeding it to kindlegen.

By using the InDesign Amazon plugin, those media-queries are created for him, and are already in the source portion of the generated mobi. All that remains to be done is to unzip that source and tweak—rather than trying to create those media-query sections—before re-feeding it to Kindlegen.

An ePub produced by InDesign would probably need even more tweaking before it was in any kind of shape to be considered "good" mobi source-code. This way, at least, the xhtml and css is being created with the mobi format in mind all along. It may not be perfect, but it's a lot farther ahead of the curve than straight-up, InDesign xhtml/css would be without the Amazon plugin.
DiapDealer is offline   Reply With Quote
Old 09-30-2012, 04:51 PM   #72
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
I didn't know that the InDesign Kindle plugin adds media queries to the .html code. In this case it really doesn't make sense to create an ePub first.
Doitsu is offline   Reply With Quote
Old 09-30-2012, 06:35 PM   #73
Tugger
Connoisseur
Tugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongueTugger can tie a knot in a cherry stem with his or her tongue
 
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by NiLuJe View Post
@pdurrant: Here we go!
Quote:
File Type: zip Mobi_Unpack_v054b.zip (47.2 KB, 7 views)
File Type: txt mobi_unpack_startoffset_kg25-v3.patch.txt (6.4 KB, 3 views)
To split the .mobi to create the test file to load on the K3 I'm currently using the file you uploaded in message 53, v054b.

You also uploaded a patch.txt file which I have not downloaded. I assume I don't need it??

(PS to @diapDealer: He.)

Last edited by Tugger; 09-30-2012 at 06:37 PM.
Tugger is offline   Reply With Quote
Old 09-30-2012, 06:42 PM   #74
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,468
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Tugger View Post
(PS to @diapDealer: He.)
That's the impression I got, but I didn't want to appear presumptuous.
DiapDealer is offline   Reply With Quote
Old 09-30-2012, 08:46 PM   #75
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@Tugger: Nope, you don't need the patch, that was for the dev/curious, to see the changes at a glance without having to run a diff manually .
NiLuJe is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to define the "Start" or "Beginning" page in Calibre paul_01 Conversion 5 08-12-2016 06:58 AM
Kindle : go to beginning and default start location issues. aschofield Devices 10 07-01-2012 02:10 PM
Calibre wont start (first time start up) Mike Railton Devices 15 05-25-2012 02:14 AM
From the beginning ........ Aspic8 Writers' Corner 15 10-10-2011 11:05 AM
How do I go to the beginning of a book heritage Amazon Kindle 8 12-24-2010 03:13 PM


All times are GMT -4. The time now is 03:11 AM.


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