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 02-23-2015, 10:22 AM   #1
JD-Kaplan
Junior Member
JD-Kaplan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: none
Conversion to mobi changes in text size after italics

I've got this input (the entire file is copyright protected):

“It is Friday, Col. Are you okay?”

My issue is that all of the text before the italics is one font size (.75em) and then everything after the italics is another font size (1.25em). I tried going to AZW3 instead but get the same output. When I examine the output of the AZW3 file in the calibre book editor, I see this:

<p class="calibre2"><span class="none2">“It </span><span class="none3">is</span> Friday, Col. Are you okay?”</p>

I can fix this manually by changing the css rule for 'none2' via the editor. it's an easy enough fix but I'd really prefer if I could find some setting in the conversion process to go to the .mobi output. The challenge is that for a .mobi I don't think I can alter the .css rules. I tried overriding them (span tag & .none2 class) but that didn't change anything.

Another awesome (preferable solution) would be if there was a way to flat out remove any span tags with none2 as the class.

Any suggestions?
JD-Kaplan is offline   Reply With Quote
Old 02-23-2015, 10:23 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
I suggest looking at the book coding before conversion.
pdurrant is offline   Reply With Quote
Advert
Old 02-23-2015, 10:27 AM   #3
JD-Kaplan
Junior Member
JD-Kaplan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by pdurrant View Post
I suggest looking at the book coding before conversion.
Oops, I totally forgot to mention that the input is RTF that I'm exporting from Pages '09

When I crack that file open I see this content:

\'93It
\i \expnd0\expndtw0\kerning0
is
\i0 \expnd0\expndtw0\kerning0
Friday, Col. Are you okay?\'94\

I will look into exporting to a different format, but it sure would be cool if I could get this working in calibre with these input and output formats.
JD-Kaplan is offline   Reply With Quote
Old 02-23-2015, 10:39 AM   #4
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Ah. No idea about RTF coding. Perhaps look at how it's styled in Pages? It seems unlikely that this change would happen without some difference in the styles in Pages.

Unless it's a difference of opinion in how RTF should be generated/interpreted.

Perhaps try exporting at HTML instead?
pdurrant is offline   Reply With Quote
Old 02-23-2015, 10:41 AM   #5
JD-Kaplan
Junior Member
JD-Kaplan began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by pdurrant View Post
Ah. No idea about RTF coding. Perhaps look at how it's styled in Pages? It seems unlikely that this change would happen without some difference in the styles in Pages.

Unless it's a difference of opinion in how RTF should be generated/interpreted.

Perhaps try exporting at HTML instead?
Yeah, I've tried exporting to doc and it results in some funkiness. Next I'm trying html. The styles in the document appear to be the same. I'm not adept at pulling apart a Pages file to see what's going on under the covers.

I appreciate your answers
JD-Kaplan is offline   Reply With Quote
Advert
Old 02-23-2015, 10:43 AM   #6
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
I wouldn't suggest delving into Pages file format. But a careful inspection of the text attributes in the Pages Inspector Palette might reveal some differences.
pdurrant is offline   Reply With Quote
Old 02-26-2015, 12:40 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,962
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I've seen output from Pages. STAY AWAY FROM PAGES! The code is generates is nasty.
JSWolf is offline   Reply With Quote
Old 02-26-2015, 03:44 AM   #8
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JD-Kaplan View Post
Yeah, I've tried exporting to doc and it results in some funkiness. Next I'm trying html. The styles in the document
You might do better if you can export the PAGES document to DOCX rather than DOC and converting that to EPUB via calibre. DOCX ranks higher than HTML and RTF in Kovid Goyal's list of 'best' formats to convert (its in the User Manual FAQ). You probably need a fairly recent version of PAGES to get DOCX export, otherwise HTML is probably best. RTF is pretty low down in Kovid's list.

If you can get DOCX you might also want to try importing the DOCX into the calibre book editor, rather than converting. Supposedly it will preserve Word's Style Names in the CSS names. I'm not sure how relevant that is in a PAGES->DOCX->EPUB scenario.

BR

Last edited by BetterRed; 02-26-2015 at 03:47 AM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Book jacket font size issues - epub>mobi conversion kristalana Conversion 16 04-11-2014 11:55 AM
mobi to epub conversion - odd font size... richrock Conversion 3 03-06-2013 05:30 PM
borders around text in mobi conversion tcreek Calibre 5 12-30-2011 01:30 PM
Italics in Epub text Jamestoo Sigil 7 11-09-2011 03:16 AM
_notation_ in the text that indicates italics alansplace Calibre 2 07-20-2011 01:16 AM


All times are GMT -4. The time now is 08:00 AM.


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