01-06-2009, 09:15 PM | #16 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Ah! It's only the 2 (or maybe 3 or 4...?) low bits which are used for the overlap data. Mobigen sets higher bits to mean... er... something else -- and don't I wish I knew what.
Last edited by llasram; 01-06-2009 at 09:18 PM. Reason: Realized need at most 2 bits for UTF-8 overlap. |
01-06-2009, 09:41 PM | #17 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
The last scan is from OpenInkPot (FBReader based), it does not honor the CSS for a chapter start, and the text starts with all caps. In OpenInkPot the TOC works either via following links from the in-lined TOC or by bringing up the TOC menu item and selecting the chapter from a list. This is the same behavior you see with Desktop FBReader. |
|
01-06-2009, 09:46 PM | #18 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Yes, but the character count is in the raw data and I do not know if there is support for this. I cannot decode it and then count the positions.
|
01-06-2009, 09:52 PM | #19 | |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Quote:
I thought UTF-8 was standardized and could only be done one way... |
|
01-06-2009, 09:56 PM | #20 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can still do this (albeit rather inefficiently) by converting to whatever universal encoding you use, then iterating character by character and re-encoding each character into utf-8 to see how many bytes it takes.
|
01-06-2009, 10:01 PM | #21 |
Grand Sorcerer
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
How do I create a correct UTF-8 encoded book? Is -unicode to mobigen enough?
|
01-06-2009, 10:14 PM | #22 | ||
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
Eee -- that bad? There actually isn't any CSS in the mobibook -- just Mobipocket-extended HTML 3.2. If FBReader isn't providing formatting for this then it isn't providing formatting for any HTML content. Nothing at all I can really do there. |
||
01-06-2009, 10:15 PM | #23 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
That's what I've been doing, yah. Although you are correct that it seems to be quite, quite rare. I don't have all that many Mobipocket books, but of the ones I do have only one is built that way (one of the most recent Tor freebies).
|
01-06-2009, 11:18 PM | #24 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
My Mobi2IMP solution (which was a brute force naive approach) was to scan forward in the uncompressed text (html) from the stated filepos position and look for the first '<' to plop the anchor (for that filepos)! 99% of the times it worked, but it was not elegant nor foolproof! |
|
01-06-2009, 11:24 PM | #25 | ||
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
Quote:
I was not complaining, the only criteria for FBReader is not to cause strange formatting and this is fine. |
||
01-06-2009, 11:39 PM | #26 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
The TOC does not work on the iLiad. It is possible to call up the TOC, but stylus tapping in the "links" does nothing. In a standard TOC this would take you to the chapter.
|
01-06-2009, 11:47 PM | #27 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
@llasram Can you post your original .html source file used to create this .mobi ebook in post #1? This way we can verify which is the culprit... |
|
01-07-2009, 12:07 AM | #28 | ||
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
|
||
01-07-2009, 03:49 AM | #29 |
The Grand Mouse 高貴的老鼠
Posts: 71,501
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
The Cybook displays Mobipocket covers at full screen (so 600x800 is good for the covers on a CyBook), but not in-line images. I don't know what the optimum size is for in-line images on a CyBook, and I suspect it could change with new firmware.
|
01-07-2009, 04:29 AM | #30 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I hope new firmwares (or OpenInkpot) will allow to change the margin size and even open an in-line image in full screen. In the meantime, the cybook resizes an image if it's too large, so it's not that bad to have 600x800 in-line images. The usable text block is around 500x650, I'd say...
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LRF output | kovidgoyal | Calibre | 873 | 04-06-2010 02:32 PM |
Trying to get consistent look to all output | daveps | Calibre | 0 | 03-08-2010 02:18 PM |
Best Output for Kindle 2 | brewjono | Calibre | 4 | 01-28-2010 08:55 PM |
PRC output | Nate the great | Calibre | 6 | 10-17-2009 12:58 AM |
One last oeb2mobi test... | llasram | Kindle Formats | 13 | 01-15-2009 11:20 AM |