![]() |
#1 | ||
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
|
docx to epub - obsolete classes for italic and bold
If we have following sentence in docx:
Quote:
Line will look like this: Quote:
.calibre2 { font-style: italic; line-height: 1.2 } .calibre3 { font-weight: bold; line-height: 1.2 } Not sure is this a bug or a feature? |
||
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,736
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW - I agree it would be better if the redundant classes didn't exist, but it's simple enough to get rid of them with an editor.
And if getting rid of them were to create a problem, then it should be simple enough to restore previous version - eg reconvert the docx. There may be 'special' cases where they're necessary. BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
|
I've put this as a bug report on Calibre's bug tracker.
Kovid invalidate it stating that "all formatting must be done in CSS". It's OK but then it leaves <i> and <b> tags as redundant. (must admit tthat they look much nicer then dreaded <span>, only reason I've found to keep them) So yes, Find&Replace will be continued as I prefer cleaner HTML more then extra class just for italic (sometimes I remove more then 500 of them from text). |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub -> txt with italic/bold characters | Fallingwater | Conversion | 8 | 07-10-2013 09:01 PM |
The bold and italic buttons on the bar | Artha | Sigil | 15 | 12-04-2011 04:52 PM |
italic and bold ok in sigil but not on Kobo reader | Mookiemon | Sigil | 14 | 07-23-2011 09:50 PM |
italic, bold etc to normal | cybmole | Sigil | 11 | 03-04-2011 10:37 AM |
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? | EatingPie | Sony Reader Dev Corner | 9 | 04-07-2007 01:06 AM |