![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Mar 2021
Device: none
|
![]()
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 |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,888
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,000
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> |
![]() |
![]() |
![]() |
#5 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
And like the others have said: Don't rely on color alone. Make sure to use alternate methods of emphasis as well. Quote:
Better to use CSS, like this: HTML: Code:
<strong class="crimson">North British House, Smeaton Road, Kirkcaldy</strong> Code:
strong.crimson { color: crimson; } 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; } Code:
strong.crimson { color: crimson; font-style: italic; } Last edited by Tex2002ans; 03-25-2021 at 01:59 PM. |
||
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |