|
|
#61 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
Karma: 22222
Join Date: Jul 2012
Device: Kindle
|
|
|
|
|
|
|
#62 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,836
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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!
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
Enthusiast
|
|
|
|
#63 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
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? |
|
|
|
|
|
#64 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,326
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
No idea. When you find out, let us know!
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
|
#65 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
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? |
|
|
|
|
|
#66 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,082
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
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 |
|
|
|
|
|
#67 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
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. |
|
|
|
|
|
|
#68 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,326
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
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.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
|
#69 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,082
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
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. |
|
|
|
|
|
#70 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
Karma: 22222
Join Date: Jul 2012
Device: Kindle
|
Quote:
http://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. |
|
|
|
|
|
|
#71 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,836
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
|
#72 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,082
Karma: 2677223
Join Date: Dec 2010
Device: Kindle 3
|
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.
|
|
|
|
|
|
#73 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 89
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 06:37 PM. |
|
|
|
|
|
|
#74 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,836
Karma: 23400772
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
That's the impression I got, but I didn't want to appear presumptuous.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#75 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
|
@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
.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to define the "Start" or "Beginning" page in Calibre | paul_01 | Conversion | 3 | 09-09-2012 10:04 PM |
| 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 |