View Single Post
Old 10-02-2010, 08:43 AM   #1
spa
Junior Member
spa began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: Ipad
Calibre loses all forms of Emphasis

I have successfully used Calibre to convert many epubs but have recently found that when converting html to epub it will often lose italics, bolding or underlining which apply to individual words in a sentence.

Code:
<P>
<SPAN style="font-size:13pt; color:#000000"
>Application </SPAN
></P>
<P style="text-align:justify; margin-bottom:-2px; line-height:23px">
<IMG width=32 height=35 style="display:block; float:left" src="images/Test Pages_img_0.jpg">
<SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000"
>here is an old story of a Zen master who continues to pour hot tea into the student’s cup; even as it overflows and spills onto the table, he continues to pour. The student is shocked. “Master!” he shouts. “Please, the cup is full already!” The master then looks the student sternly in the eye and calmly replies, “Then, it appears you DO understand. I too cannot add to </SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-style:italic; font-stretch:normal; color:#000000"
>your </SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000"
>cup if it is already full.” </SPAN
></P>
<P style="text-align:justify; margin-bottom:0px; text-indent:24px; line-height:23px">
<SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000"
>In your quest for success, it will make great sense to clear the way for new thoughts, ideas and ways to do things—to literally </SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:bold; font-stretch:normal; color:#000000"
>empty</SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000"
> your mind. I recommend you revisit and reconsider </SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000; text-decoration:underline;"
>everything</SPAN
><SPAN style="font-family:'serif', 'Garamond'; font-size:12pt; font-weight:normal; font-stretch:normal; color:#000000"
> (words, thoughts, beliefs, books, songs, relationships, etc.). Take nothing for granted. Approach and observe everything with a beginner’s mind. Eliminate every assumption.  </SPAN
></P>
There are three pieces of emphasis here which all show up fine when viewing the html in a browser the word "your" is italicised, "empty" is bold and "everything" is underlined.

I bring the html into Calibre, convert to epub and the epub now has none of the emphasis. Viewing the resultant code in Sigil shows that the spans for these words have gone completely.

Surely this is not intended? I notice that if I exchange <span style="font-style:italic"> for an <i> tag the italics come through fine.

I am running Calibre 0.7.19.

Any help solving this problem would be much appreciated.
spa is offline   Reply With Quote