Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-03-2015, 08:03 AM   #1
krbo
Enthusiast
krbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of light
 
krbo's Avatar
 
Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
Reserved words in Calibre??

hi,

just found something strange so I had to ask are there reserved words in Calibre, something we can't use/should avoid in XHTML and CSS ???

for now I have positive answer on "chapter" - if a CSS class is named "chapter" Calibre makes a new chapter during conversion in each occurence of using class="chapter" in XHTML code.

my search didn't reveal me any reserved word

btw Kindlegen inside Kindle Previewer converts correctly - without chapter splitting



conversion is epub to azw3
Win7 x64
Calibre 2.29 64bit

here is XHTML snippet:

Quote:
<p class="chapter">This is a first paragraph</p>
<p class="chapter">This is a second paragraph</p>
<p class="chapter">This is a third paragraph</p>
<p class="chapter">This is a fourth paragraph</p>
CSS:

Quote:
.chapter {
text-indent: 0.5em
}
and part of conversion job log :
Quote:
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: This is a first paragraph
Detected chapter: This is a second paragraph
Detected chapter: This is a third paragraph
Detected chapter: This is a fourth paragraph
Flattening CSS and remapping font sizes...
Source base font size is 16.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating AZW3 Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Splitting on page-break at id=calibre_pb_1
Splitting on page-break at id=calibre_pb_2
Split into 4 parts
Creating KF8 output
krbo is offline   Reply With Quote
Old 06-03-2015, 08:05 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There are no reserved words. If you dont want chapters detected at class="chapter" simply adjust the Detect chapters expression in the Structure Detection section of the conversion dialog.
kovidgoyal is online now   Reply With Quote
Advert
Old 06-03-2015, 08:57 AM   #3
krbo
Enthusiast
krbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of light
 
krbo's Avatar
 
Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
Thanks Kovid!


Quote:
Originally Posted by kovidgoyal View Post
There are no reserved words.
nice, it's easier without them

Quote:
If you dont want chapters detected at class="chapter" simply adjust the Detect chapters expression in the Structure Detection section of the conversion dialog.
succeeded at the end but have one more question about expression behavior:

if I change expression in Preferences->Conversion->Common Option->Structure detection it is not reflected in Convert Book dialog and it's Structure Detection - expression there is untouched from changes I made in Preferences (Calibre restarted).
Is that expected behaviour?
krbo is offline   Reply With Quote
Old 06-03-2015, 09:00 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,201
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/conv...for-conversion
kovidgoyal is online now   Reply With Quote
Old 06-03-2015, 09:04 AM   #5
krbo
Enthusiast
krbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of lightkrbo is a glorious beacon of light
 
krbo's Avatar
 
Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
thanks, that closes this discussion!
krbo is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Reserved characters need to be percent-encoded? Sarah S Conversion 4 01-19-2013 11:35 AM
Letters of some words are cut off on the right hand side of Calibre screen innogen Calibre 1 12-02-2012 10:10 PM
Is your kindle email reserved permanently to you? Barty Amazon Kindle 1 02-21-2012 01:13 AM
ePub fine in Calibre viewer, but on iPod extra spacing between words Amalthea Calibre 6 03-30-2011 11:58 AM
.ePUB extension should be reserved for non-DRM eBooks DaleDe ePub 62 05-06-2009 12:37 AM


All times are GMT -4. The time now is 02:58 AM.


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