09-30-2012, 08:45 AM | #61 |
Connoisseur
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.
|
09-30-2012, 09:36 AM | #62 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
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! |
Advert | |
|
09-30-2012, 10:19 AM | #63 |
Connoisseur
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? |
09-30-2012, 10:24 AM | #64 | |
The Grand Mouse 高貴的老鼠
Posts: 72,497
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
No idea. When you find out, let us know! |
|
09-30-2012, 11:14 AM | #65 |
Connoisseur
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? |
Advert | |
|
09-30-2012, 11:34 AM | #66 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
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.
ActivePython 2.7 |
09-30-2012, 03:31 PM | #67 | |
Connoisseur
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:
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. |
|
09-30-2012, 03:49 PM | #68 | |
The Grand Mouse 高貴的老鼠
Posts: 72,497
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
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. |
|
09-30-2012, 04:28 PM | #69 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
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. |
09-30-2012, 05:15 PM | #70 | |
Connoisseur
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
|
Quote:
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. |
|
09-30-2012, 05:35 PM | #71 | |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
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. |
|
09-30-2012, 05:51 PM | #72 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
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.
|
09-30-2012, 07:35 PM | #73 | |
Connoisseur
Posts: 91
Karma: 22222
Join Date: Jul 2012
Device: Kindle
|
Quote:
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 07:37 PM. |
|
09-30-2012, 07:42 PM | #74 |
Grand Sorcerer
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
09-30-2012, 09:46 PM | #75 |
BLAM!
Posts: 13,497
Karma: 26047188
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 .
|
|
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 07:58 AM |
Kindle : go to beginning and default start location issues. | aschofield | Devices | 10 | 07-01-2012 03:10 PM |
Calibre wont start (first time start up) | Mike Railton | Devices | 15 | 05-25-2012 03:14 AM |
From the beginning ........ | Aspic8 | Writers' Corner | 15 | 10-10-2011 12:05 PM |
How do I go to the beginning of a book | heritage | Amazon Kindle | 8 | 12-24-2010 04:13 PM |