Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-15-2014, 02:40 PM   #1
MacEachaidh
Browser
MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.
 
MacEachaidh's Avatar
 
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
Retaining formatting in inline links

In the ePub I'm working on, I've applied character formatting to parts of each item listed in the ToC.

The problem:

1) Because the items are linked to the head of the chapters they each represent, ADE applies URL formatting (bold, blue and underlined) to each item, which obliterates the character formatting;

but

2) If I apply code to stop the URL formatting, that also wipes out the character formatting.

The code I'm using at the top of the stylesheet is this:

Code:
a:link { color: black; text-decoration: none; }
a:visited { color: black; text-decoration: none; }
a:hover { color: black; text-decoration: none; }
a:active { color: black; text-decoration: none; }
Is there code I can use that essentially says "just leave it with the formatting it already has" ?
MacEachaidh is offline   Reply With Quote
Old 03-16-2014, 07:44 AM   #2
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,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
What program are you using to do this? Is this a calibre problem?
mrmikel is offline   Reply With Quote
Advert
Old 03-16-2014, 07:57 AM   #3
MacEachaidh
Browser
MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.MacEachaidh ought to be getting tired of karma fortunes by now.
 
MacEachaidh's Avatar
 
Posts: 745
Karma: 578294
Join Date: Apr 2010
Location: Australia
Device: Kobo Touch, Kobo Aura HD
Thanks for the reply.

No, I'm using a program called Jutoh to format it, but Jutoh isn't the one that imposes the URL-style formatting on coded links. ADE does that.
MacEachaidh is offline   Reply With Quote
Old 03-16-2014, 10:07 AM   #4
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,548
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't experience the same thing with ADE when using the CSS you supplied. It all behaves as I would expect. But then again, I'm not entirely sure what you mean by "character formatting." And what is being obliterated. You seem to imply that your CSS code is working (which means that character formatting is being affected), but then in that case, you suggest that "something" is still being obliterated. What, exactly, are you saying you are "losing" in both of your scenarios?

Note also, that it's not really a good idea to try and force links to be indistinguishable from the regular text (by forcing font-colors and removing the underline). 1) A forced font-color of black could play havoc with many readers' "Night Mode" theme. 2) There's no easy way for a person to know it IS a link. They need to know at a glance that it's something they need to click/tap.
DiapDealer is online now   Reply With Quote
Old 03-16-2014, 04:11 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
Sample Images can also speak a thousand words.
Tex2002ans is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retaining inline CSS in <img> tags cabz Conversion 1 06-21-2013 12:13 AM
Tags around inline TOC links jhempel24 Sigil 0 01-08-2011 06:21 AM
Request Retaining last page when shutting down mihai@alaphant.nl enTourage Archive 7 12-17-2010 09:40 AM
Retaining formatting in metadata (book description) FizzyWater Calibre 5 05-13-2010 10:26 PM
Editing Plucker docs and retaining links? AceHarddrive Reading and Management 0 12-27-2006 07:25 PM


All times are GMT -4. The time now is 05:53 AM.


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