![]() |
#211 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Does calibre always add an <mbp:pagebreak/> tag after an horizontal line tag? Both oeb2mobi and ebook-convert seem to add the <mbp:pagebreak/> tag after every <hr> or <hr /> tag in the source file, even when the CSS says:
hr { page-break-after: avoid; } Is there a way to control this behavior? |
![]() |
![]() |
![]() |
#212 |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
sorry if this has been covered elsewhere, but i'm still trying to get to grips with book generation.
book file written manually in xhtml editor (SciTE). result tested to almost perfection in Mozilla, one bug in ie....But ... on conversion through Calibre to Mobi output .... a) I've generated my own TOC (with links) on page 1 - is it possible to disable the auto-generated TOC [ I guess not from what I've read ]. b) horizontal lines separating sections have been grouped at the foot of the book on conversion! c) copyright symbol converts to S (or similar). edit : comparing output using Mobi Creator ... horizontal lines ignored totally. ignores <pre></pre> tags that calibre accepts. any thoughts on solutions/where I am in error ? Last edited by GeoffC; 07-07-2009 at 10:47 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#213 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
a) It will be possible to suppress the auto generated TOC in the next beta
b) llasram will have to help you with that c) How are you specifying the symbol in the source HTML? |
![]() |
![]() |
![]() |
#214 | |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
sorry for the delay in replying - c) the copyright symbol is one that originated from Coffeecup editor ... (I transferred to Scite because the coffeecup ouput was complicated and it kept 'putting' its own version over mine ....) |
|
![]() |
![]() |
![]() |
#215 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
can you locate the symbol in the source html file generated by coffeecup and paste it here (or just post an extract from the file containing the section that has the symbol as a attachment)
|
![]() |
![]() |
Advert | |
|
![]() |
#216 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Try using © instead of the original copyright symbol, in the HTML file. That will generate the proper symbol in Mobipocket.
|
![]() |
![]() |
![]() |
#217 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Hmm, neither 0.5.14's oeb2mobi nor 0.6.0b10's ebook-convert seem to properly scale images from source HTML files, with either the deprecated "width" attribute or using CSS, as in:
<img style='width: 200px' ...> mobigen will respect the "width" attribute, but not the CSS; it seems to just stick the "width" attribute and value in the Mobipocket markup directly. But calibre seems to actually take the width of the image, translate it into "em" units, and put that value in for the "width" attribute in the corresponding <img> tag in the Mobipocket markup. |
![]() |
![]() |
![]() |
#218 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ebook-convert won't scale the images. But it should translate the width or css width to a Mobipocket width attribute. I know it does this for EPUB, perhaps llasram can tell us why it doesn't do this for MOBI?
|
![]() |
![]() |
![]() |
#219 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Er, yeah, I didn't mean scale as in physically resize, I just meant translate the width settting. I definitely don't want it to rescale the actual image before storing it in the file; that's the main problem with mobigen, that it forces you to rescale big images.
|
![]() |
![]() |
![]() |
#220 |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
interesting - I used © in the original write in coffeecup and the auto system changed it to the symbol © ; but I'll put that back into the code and see if calibre handles it...
|
![]() |
![]() |
![]() |
#221 |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
mmm : © is recognised by mobicreator as copyright symbol.
Calibre treats as text.... |
![]() |
![]() |
![]() |
#222 |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
It looks as though calibre thinks my toc is a 'front page', if I add a front page during the build process my toc is ignored.
if it would help Kovid, I attach the file I am using .... (changed to a .txt in order to upload). |
![]() |
![]() |
![]() |
#223 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The correct form for the entity is © (note the trailing semi-colon)
|
![]() |
![]() |
![]() |
#224 | |
Chocolate Grasshopper ...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
|
Quote:
ah ! ie and firefox be damned .... !!! thanks Kovid edit : Yep - Calibre recognises it .... Thanks ..... looks like I'll have to re-code for the other issues ... Last edited by GeoffC; 07-08-2009 at 11:10 AM. |
|
![]() |
![]() |
![]() |
#225 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
The XHTML/HTML standards specify the trailing semi-colon for all character entities even if certain browsers handle it being missing.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
main menu, section menu, css for calibre mobipocket output | naisren | Calibre | 2 | 08-23-2010 11:42 PM |
Trying to get consistent look to all output | daveps | Calibre | 0 | 03-08-2010 02:18 PM |
Anyone Have mobipocket desktop? Mobipocket server is down. | Ireadfreely | Kindle Formats | 3 | 10-27-2008 10:29 AM |
convert from 'new' mobipocket to 'old' mobipocket? | Indigo Ink | Kindle Formats | 11 | 06-22-2008 01:43 AM |
Mobipocket Reader 4.8 and Mobipocket eNews Creator | Mobipocket | Reading and Management | 1 | 01-29-2004 08:03 AM |