01-29-2012, 04:32 PM | #1 |
Addict
Posts: 217
Karma: 28060
Join Date: Jul 2011
Location: FRG
Device: PRS-T1
|
Calibre added CSS
I prefer ReallyNo.2 with the second size setting and left justified as opposed to whatever the T1 uses as "original". So I added this to the common options:
Code:
@font-face { font-family: serif; font-weight: normal; font-style: normal; src: url(res:///ebook/fonts/ReallyNo2LTW1G-Regular.otf); } @font-face { font-family: serif; font-weight: normal; font-style: italic; src: url(res:///ebook/fonts/ReallyNo2LTW1G-Italic.otf); } @font-face { font-family: serif; font-weight: bold; font-style: normal; src: url(res:///ebook/fonts/ReallyNo2LTW1G-Bold.otf); } @font-face { font-family: serif; font-weight: bold; font-style: italic; src: url(res:///ebook/fonts/ReallyNo2LTW1G-BoldItalic.otf); } body { margin-left: 0em; margin-right: 0em; font-size: medium; font-family: serif; text-align: left; } It almost worked perfectly! The fonts and formating were all retained(except body) and no more false or nonexisting italics. But now the chapter titles are irritatingly highlighted! I wonder what I did wrong? |
01-29-2012, 05:26 PM | #2 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
Advert | |
|
01-29-2012, 06:31 PM | #3 | |
Addict
Posts: 217
Karma: 28060
Join Date: Jul 2011
Location: FRG
Device: PRS-T1
|
Quote:
I wonder if there is a way(using the common options of Calibre) to make the chapter-hyperlinks "one way". I don't need to tap a chapter title in the middle of a book to get back to the TOC and some ebooks have really fancy chapter titles that just look better unhighlighted. |
|
01-29-2012, 06:53 PM | #4 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Selective/partial removal of html anchor tags sounds a tall order for an automated process. There's always Calibre's Tweak epub option or Sigil if you want to remove them manually. A bit tedious, though.
Last edited by jackie_w; 01-29-2012 at 06:55 PM. |
01-29-2012, 09:03 PM | #5 |
Connoisseur
Posts: 62
Karma: 36180
Join Date: Dec 2011
Location: US East Coast
Device: Kobo Aura HD, Kindle 4, Sony PRS-T1 (formerly PRS-500 & 505), iPad Air
|
You can easily un-highlight with css, without removing the actual a tags. Try this:
a:link { text-decoration:none; background-color:transparent; } a:visited { text-decoration:none; background-color:transparent; } a:hover { text-decoration:none; background-color:transparent; } a:active { text-decoration:none; background-color:transparent; } ps. Also, adding "!important" to the above might help overriding whatever other css settings. http://www.w3.org/TR/CSS2/cascade.html#important-rules Last edited by soseono; 01-29-2012 at 09:08 PM. |
Advert | |
|
08-10-2014, 04:48 PM | #6 | |
Enthusiast
Posts: 28
Karma: 40680
Join Date: Aug 2012
Device: Sony PRS-T1
|
Quote:
many thanks for your reply. I know your reply is more than 30 months old, but I would like to ask you: did your recommendation work on your device? Sorry, but I’m afraid I cannot get it working on my Sony PRS-T1. Many thanks again. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
any way to prevent calibre from making a copy of the book when added to its library? | GoldThreader | Calibre | 28 | 04-04-2012 05:41 AM |
calibre y css | titanlov | Calibre | 1 | 12-26-2011 11:00 PM |
Book in Calibre Series is not being added to collection in Sony PRS 300 | Sean0 | Devices | 6 | 08-14-2011 12:57 PM |
Cover pic added in Calibre don't show up on device | martienne | Devices | 5 | 07-09-2011 12:10 PM |