![]() |
#1 |
Addict
![]() Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
|
html notes convert to ePub for the nook
Hi, all, I have some Chinese classic texts in htm format that I am converting to ePub for reading on my nook. The text has a lot of inline notes by different scholars that I wish to keep readable on the nook. The following shows an example of the original htm source code:
<SPAN style="font-size:12pt; color:#000000">The Kindle</SPAN><SPAN style="font-size:9.9pt; color:#FF0000">an e-reader</SPAN><SPAN style="font-size:9.9pt; color:#00008A">sold by Amazon</SPAN><SPAN style="font-size:12pt; color:#000000">is an option.</SPAN> In this example, the text "The Kindle" and "is an option" is the original classic text, the "an e-reader" and the "sold by Amazon" are two inline notes provided by two ancient scholars illustrated in smaller font size and different font colors. After Calibre converts this to ePub, the texts are all showing as same font size and color now that I can no longer tell the notes from original text. Now I know this (having only one font size and color in a block of text) is a limit of the ePub format, but would like to ask if someone has a more creative way in Calibre when converting these to ePub that in someway preserves the notion of the inline text so it can still be read in the nook? Many thanks. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Aldiko
|
I have the same trouble. I lose font colors after converting my htm file to epub which becomes black text only. Is there a way to retain the different font colors of the converted text? Please advise
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
I'm not a html expert but if you set the proper Class in the CSS and define what you want. Then it will convert fine. In your example everything was <span> nothing was specifically defined. If the inline notes where classed differently than the main paragraphs, everything would have converted fine. If the html has properly formatted CSS it should convert fine. |
|
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2011
Device: Nook Color
|
Was this issue ever solved? I'm dealing with a related issue right now, and here's what I believe is going on:
- The Nook Color, from my testing, only seems to respect inline CSS styles for font color. It does not respect color: declarations in rules in an attached stylesheet referenced by class, even when !important is added. It also does not respect <font color=""> attributes. - It sounds like Calibre converts inline styles to stylesheets. This is generally smart, as it is definitely good to avoid inline styles and stick instead with stylesheets. However, due to this Nook Color issue, it also means you'll need to add inline styles outside of Calibre (so it does not remove them) if you want color to work on the Nook. Does anyone have any publisher guidelines from B&N for the Nook or Nook Color, or Reader Mobile in general? This issue does not seem to exist in ADE for the PC. |
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Mar 2009
Device: Kindle, iPhone, iPad
|
I think you are trying to convert the chm version "Shi Ji with three commenters", am I right? If you have nook color why not try directly opening it in a good chm viewer app? I tried using Calibre to convert it to mobi. Although the conversion was successful, it was too slow to open it in Kindle (minutes of waiting). So I downloaded a mobi version without commentations from shucang, and it reads just fine.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert epub to HTML | MShroff | ePub | 6 | 06-19-2011 05:52 PM |
How to convert a HTML package to epub? | redryder | ePub | 3 | 10-01-2010 06:27 PM |
html 2 epub will not convert | Amalthia | Calibre | 2 | 06-04-2010 12:39 PM |
Convert html to epub | colly | Calibre | 9 | 03-10-2010 10:30 AM |
Any way to convert zipped html to epub that will work on Iphone? | Katelyn | Calibre | 28 | 04-05-2009 04:44 PM |