Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-21-2019, 09:12 AM   #1
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: 79,657
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Bug in the code editor showing bold/italic

If I have code that look like this...

Code:
<p><b>This is bold text.</b></p>
<p><b><i>This is bold italic text.</i></b></p>
<p><i>This is italic text.</i></P>
The text shows bold and/or italic correctly. But if I have text that looks like this...

Code:
.bold {
  font-weight: bold;
}
.bolditalic {
  font-weight: bold;
  font-style: italic;
}
.italic {
  font-style: italic;
}

<p class="bold">This is bold text.</p>
<p class="bolditalic">This is bold italic text.</p>
<p class="italic">This is italic text.</P>
The text is just plain text. Can this be fixed so if the bold and/or italic is part of a class that the text shows the bold and/or italic?

Thanks.
JSWolf is offline   Reply With Quote
Old 10-21-2019, 11:17 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,013
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Jon Jon Jon

Of all the folk here, I expected ALL the gory details
Where was the stylesheet code placed?
How was it linked to the sample code.
The What Happened IS perfectly
theducks is online now   Reply With Quote
Advert
Old 10-21-2019, 01:35 PM   #3
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,208
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by JSWolf View Post
If I have code that look like this...

Code:
<p><b>This is bold text.</b></p>
<p><b><i>This is bold italic text.</i></b></p>
<p><i>This is italic text.</i></P>
The text shows bold and/or italic correctly. But if I have text that looks like this...

Code:
.bold {
  font-weight: bold;
}
.bolditalic {
  font-weight: bold;
  font-style: italic;
}
.italic {
  font-style: italic;
}

<p class="bold">This is bold text.</p>
<p class="bolditalic">This is bold italic text.</p>
<p class="italic">This is italic text.</P>
The text is just plain text. Can this be fixed so if the bold and/or italic is part of a class that the text shows the bold and/or italic?

Thanks.
Works just fine for me.
Windows 10 x64 1903, calibre 4.2 64bits.

Are you sure you css style sheet is linked to you html document?
thiago.eec is offline   Reply With Quote
Old 10-21-2019, 01:51 PM   #4
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,062
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
I believe that JSWolf is referring to the code view, not the file preview. I see what he sees, but I do not consider it to be a problem and doubt it can be easily changed.
Attached Thumbnails
Click image for larger version

Name:	Untitled-1.gif
Views:	176
Size:	19.7 KB
ID:	174435  
jhowell is offline   Reply With Quote
Old 10-21-2019, 02:03 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,013
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by jhowell View Post
I believe that JSWolf is referring to the code view, not the file preview. I see what he sees, but I do not consider it to be a problem and doubt it can be easily changed.
I did not even realize the old way did that (I would not have expected a fixed font, code editor to even do more than colorize code)
theducks is online now   Reply With Quote
Advert
Old 10-21-2019, 04:00 PM   #6
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: 79,657
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jhowell View Post
I believe that JSWolf is referring to the code view, not the file preview. I see what he sees, but I do not consider it to be a problem and doubt it can be easily changed.
Yes, that is exactly what I am referring to. It is not something new to version 3. But I finally got around to reporting it. I was editing an eBook easier today and noticed it. So i decided to report it.
JSWolf is offline   Reply With Quote
Old 10-21-2019, 11:51 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,308
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The syntax highlighting in the editor is never going to take CSS into account that would absolutely kill performance. You will get bold/italic fonts if you use HTMLtags whose default appearance is bold/italic.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Italic/bold not showing Phssthpok Editor 3 02-05-2019 10:48 AM
Best way to do italic and bold bookman156 ePub 166 04-09-2016 03:43 PM
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic MHC Apple Devices 4 03-03-2014 01:50 PM
Aura HD Simple Fix for the Stupid Italic/Bold Bug doubleshuffle Kobo Reader 15 07-01-2013 05:11 PM
Metadata Editor - showing code not text Paxman53 Sigil 7 07-04-2012 06:39 AM


All times are GMT -4. The time now is 02:45 PM.


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