Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2013, 10:32 AM   #1
20Gt
Member
20Gt began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Dec 2013
Device: Android
editing a book, more than one colored font?

Hi im creating a walkthur for a game.

ive changed some of the sentences (using calibre editor)to blue or red colors using the built in html codes. I cant seem to get my (moon+ reader) to recognize the different colors. should i be using css or is this normal and different colored fonts cant actually be used.

Thanks Steve
20Gt is offline   Reply With Quote
Old 12-28-2013, 11:01 AM   #2
Katsunami
Grand Sorcerer
Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.Katsunami ought to be getting tired of karma fortunes by now.
 
Katsunami's Avatar
 
Posts: 5,964
Karma: 32193615
Join Date: Mar 2008
Device: KPW1, KA1
You can use this in the CSS file:

Code:
.color1 {
  color: #FF0000;
}

.color2 {
  color: #00FF00;
}

.color3 {
  color: #0000FF;
}
Then designate the parts you want to have a different color:

<p> ... </p> will be default.
<p class="color1"> ... </p> will be red.
<p class="color2"> ... </p> will be green.
<p class="color3"> ... </p> will be blue.

If this works in Calibre's preview, then you have done everything correctly; if it doesn't work in Moon Reader, it may be ignoring font colors.

Last edited by Katsunami; 12-28-2013 at 12:37 PM.
Katsunami is offline   Reply With Quote
Advert
Old 12-28-2013, 12:10 PM   #3
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: 22,264
Karma: 22136456
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A
Quote:
Originally Posted by 20Gt View Post
Hi im creating a walkthur for a game.

ive changed some of the sentences (using calibre editor)to blue or red colors using the built in html codes. I cant seem to get my (moon+ reader) to recognize the different colors. should i be using css or is this normal and different colored fonts cant actually be used.

Thanks Steve
for the basic 16 colors, you can use their name if you don't want to look up their RGB codes
Stylesheet:
Code:
color: blue;
background: white;
border-color: red;
NOTE: color names are lowercase (all predefined names and tags must be LC. only user selectors may be mixed case and then, they must match exactly in use)
all valid
theducks is offline   Reply With Quote
Old 12-28-2013, 12:51 PM   #4
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
Browser like devices, including calibre's viewer, are much more tolerant of errors than actual devices or readers. The rules are also not the same epub vs. web pages.
mrmikel is offline   Reply With Quote
Reply

Tags
fonts, moon +

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moon+ Reader (settings to show colored font) 20Gt Android Devices 0 12-27-2013 08:57 PM
Mini advanced font settings ignored in one book - embedded font? lordofazeroth Kobo Reader 4 09-20-2013 03:15 PM
Touch Change font by editing ePub CSS ExOblivione Barnes & Noble NOOK 8 12-25-2012 01:48 AM
Editing a book dvd8n Library Management 6 03-14-2011 06:07 PM
HELP: any way to use a strike-out font when editing posts? nrapallo Feedback 7 03-03-2011 04:23 PM


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


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