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 12-30-2013, 07: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
docx to epub - obsolete classes for italic and bold

If we have following sentence in docx:

Quote:
This is a small test for obsolete classes.
Calibre will always generate < i > and < b > tags plus additional classes with "italic" and "bold" properties.

Line will look like this:

Quote:
<p class="calibre1">This is a <i class="calibre2">small</i> <b class="calibre3">test</b> for obsolete classes</p>
and obsolete classes:

.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?
krbo is offline   Reply With Quote
Old 01-01-2014, 04:30 PM   #2
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: 21,725
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
BetterRed is offline   Reply With Quote
Advert
Old 01-09-2014, 05:44 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
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).
krbo is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:54 AM.


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