Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-25-2021, 10:00 AM   #1
AlexH2021
Junior Member
AlexH2021 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2021
Device: none
Question Text Colour

Would I be right in saying that not all E-reader software can handle text colour?

I am creating a epub and want to highlight certain text in red, as it gives a standard meaning to the reader.

In Sigil I use this code;

Example - <span style="color:Crimson;"><b><i><u>North British House, Smeaton Road, Kirkcaldy</u></i></b></span>

This gives me red text when i preview it in Sigil

But on my Samsung tablet using AIreader - it's black and using ereader Prestigio- it's black

Regards

Alex
AlexH2021 is offline   Reply With Quote
Old 03-25-2021, 10:11 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: 30,889
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Many reader apps default to the readers style unless you can set Use Publishers" style. Even then, that may be limited.

Consider (which your code did) using underline or Bold (to Emphasize) as that also works in B&W.

The other question: Did you embed a Bold Italic version of the type face (and make the appropriate CSS @fontface entry You may need al 4 font versions)?
The viewers in Sigil and Calibre tolerate a lot of stuff that devices toss as bad.
theducks is offline   Reply With Quote
Advert
Old 03-25-2021, 11:10 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Unless you can somehow prevent people who use eink devices from reading your book, using colored text to impart meaning is probably not a good idea.
DiapDealer is offline   Reply With Quote
Old 03-25-2021, 11:12 AM   #4
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,005
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
One thing to do to highlight that will work well is to use the default sans-serif font for the highlighted text.

Code:
.highlight {
  font-family: sans-serif;
}
Code:
<p>Hello. <span class="highlight">Here is some highlighted text.</span> Goodbye.</p>
JSWolf is online now   Reply With Quote
Old 03-25-2021, 01:57 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by AlexH2021 View Post
Would I be right in saying that not all E-reader software can handle text colour?
Correct.

And like the others have said:

Don't rely on color alone. Make sure to use alternate methods of emphasis as well.

Quote:
Originally Posted by AlexH2021 View Post
In Sigil I use this code;

Example - <span style="color:Crimson;"><b><i><u>North British House, Smeaton Road, Kirkcaldy</u></i></b></span>
Instead of hardcoding the color+bold+italics+underline every time...

Better to use CSS, like this:

HTML:

Code:
<strong class="crimson">North British House, Smeaton Road, Kirkcaldy</strong>
CSS:

Code:
strong.crimson {
	color: crimson;
}
This has multiple advantages:

1. The <strong> will still bold text on e-ink (and readers that override CSS).

2. This allows you to easily adjust the look of all the text in a single location—the CSS file.

Like JSWolf said, you might want to use a different font as well:

Code:
strong.crimson {
	color: crimson;
	font-family: sans-serif;
}
or you could still do your bold+italics:

Code:
strong.crimson {
	color: crimson;
	font-style: italic;
}

Last edited by Tex2002ans; 03-25-2021 at 01:59 PM.
Tex2002ans is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word-to-epub text colour CDPWolf Devices 3 02-24-2016 09:49 PM
Change colour of text? please55 Editor 4 10-06-2015 10:35 PM
Removing colour of anchor text? WildC Sigil 3 10-14-2014 10:46 AM
Setting colour of text in QT QLabel Agama Development 2 10-12-2013 03:28 AM
Balloon pop-up text colour Bob-El Calibre 4 09-03-2010 04:57 PM


All times are GMT -4. The time now is 05:01 PM.


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