07-26-2013, 05:20 AM | #1 |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Loading a custom CSS on kepub opening
Hi,
I've spent some (interesting...) time strace-ing nickel and found that, on every kepub opening, it searches for this file: Code:
/mnt/onboard/.kobo/kepub/kepub-book.css Code:
* { -webkit-hyphens: auto; } This could also used to force other properties like widows/orphans, margin, ecc. ecc. Last edited by met67; 07-26-2013 at 07:10 AM. Reason: missing 'e'... |
07-26-2013, 06:58 AM | #2 |
Grand Sorcerer
Posts: 12,261
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Interesting! Now let me ask what will appear a very stupid question
How do I get strace onto a Kobo for some more tracing? |
Advert | |
|
07-26-2013, 08:10 AM | #4 | |
Fanatic
Posts: 599
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
|
|
07-26-2013, 08:43 AM | #5 | |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Quote:
Running strace on Kobo |
|
Advert | |
|
07-26-2013, 12:49 PM | #6 | |
Ignorant of many things
Posts: 63
Karma: 9304
Join Date: Feb 2011
Device: Kobo Libra 2
|
Quote:
How can one force other properties using that css file? |
|
07-26-2013, 01:58 PM | #7 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
Is there something like this css for epubs too?
|
07-27-2013, 04:05 AM | #8 | |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Quote:
All the styles you include in this file are 'cascaded' (i.e. merged according to the CSS specification) with those of the ePub so that you can modify the overall result. Note that CSS allows for styles to be marked with the "!important" keyword, to get higher priority in the style order. |
|
07-27-2013, 07:06 AM | #9 |
Grand Sorcerer
Posts: 12,261
Karma: 74007256
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
07-27-2013, 07:59 AM | #10 |
Wizard
Posts: 4,465
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
|
07-27-2013, 08:50 AM | #11 | |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Code:
html {-epub-writing-mode: vertical-rl} Code:
html { color:white; background-color:black; } Last edited by tshering; 07-27-2013 at 08:52 AM. |
|
07-27-2013, 10:50 AM | #12 |
♫
Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
|
07-27-2013, 12:44 PM | #13 |
Fanatic
Posts: 599
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
kepub-book.css seems to be epub3 complient. It accepts many css3 properties (if implemented). Including @rules like
Code:
@-epubx-viewport {width:610px !important;height:810px !important;} Kepubs with an empty line after each paragraph can be fixed by adding this to the stylesheet. Code:
p {padding-bottom:0 !important;} |
07-27-2013, 09:11 PM | #14 |
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
07-30-2013, 05:07 AM | #15 |
Pain in the arse
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
|
Do you know if the program GUI (nickel) look for a custom css as kepubs do?
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-950 A little web too to generate custom CSS | gsgleason | Sony Reader | 0 | 12-18-2011 06:51 PM |
Custom CSS | Japes | Conversion | 5 | 07-09-2011 08:15 PM |
PRS-300 Stuck in Opening Book, Loading, restart cycle | tiggertiffin87 | Sony Reader | 0 | 10-18-2010 08:33 PM |
Custom CSS for output | deckoff | Calibre | 1 | 08-28-2010 11:55 PM |
Custom covers for Kobo's book loading screen? | Gianorama | Kobo Reader | 7 | 07-28-2010 11:44 AM |