![]() |
#31 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Joel, is it perhaps possible to add css rules (embedded) automatically to an epub (not kepub), when you send a book to the device?
Without changing the original? |
![]() |
![]() |
![]() |
#32 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
|
![]() |
![]() |
![]() |
#34 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
What a great option! Thanks.
My first try had no success, but it's late now. I will try it tomorrow again. Do I got it right, that the option embeds the "kobo_extra.css" in each text file? |
![]() |
![]() |
![]() |
#35 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Not quite. It copies the rules in kobo_extra.css and adds them to every stylesheet file in the book. You won't find a new file in the ePub, but you will (should) find that every CSS file has been modified.
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
OK. Than it could not work with my epub. It has no stylesheet at all.
|
![]() |
![]() |
![]() |
#37 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
That would be a bug with the KoboTouch driver, please report it at https://bugs.launchpad.net/calibre so it can get fixed.
As a workaround, if you use my driver to hyphenate the book (disable the extended features) that will add a CSS file and reference it properly in all the content files, which will give davidfor's code a CSS file to append to. If you disable the extended features in my driver, you get a standard ePub and not a KePub sent to your device. |
![]() |
![]() |
![]() |
#38 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Ok, I will report that as a bug.
No I don't use your driver to hypenate the book. I disabled the extended feature. Apropos hiphenation: At the moment, I'm looking for a way how to disable hiphenation with out a css style embedded in the original file. |
![]() |
![]() |
![]() |
#39 | |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
Code:
* { -moz-hyphens: none !important; -webkit-hyphens: none !important; hyphens: none !important; } |
|
![]() |
![]() |
![]() |
#40 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Embedding extra CSS rules does not "bother" me, when it's no change in the original file.
|
![]() |
![]() |
![]() |
#41 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
By "original file", do you mean the copy stored in your calibre library? No device driver ever changes that, the changes are always made every time the book is sent to your device. That includes my driver, all changes are made to the book in transit to the device and the calibre library copy is never touched.
|
![]() |
![]() |
![]() |
#42 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
For a test I embedded a style0001.css with the css code of post 39 into the original epub to check if it really disables the hyphenation.
No, it doesn't. I hope I didn't make a stupid error. |
![]() |
![]() |
![]() |
#43 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Quote:
I just wanted explain my issue precisely with the word "original". Last edited by ibu; 08-07-2013 at 10:00 PM. |
|
![]() |
![]() |
![]() |
#44 |
Generally Awesome Person
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
When you added the CSS, did you also add a reference to it in every single content file? You have to do both before we can start to determine whether it worked or not.
|
![]() |
![]() |
![]() |
#45 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Yes, I added the reference in every single content file.
That works fast with Sigil: "Link Stylesheets" |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Header and Footer in EPUB | Raja1205 | ePub | 7 | 08-29-2012 02:36 AM |
Header Footer- New Updates | lmccurry78 | Conversion | 6 | 02-01-2011 03:33 PM |
Add Header/Footer | hrwriter | Calibre | 3 | 12-08-2010 05:11 AM |
Removing header and footer | radicalnomad | Calibre | 2 | 08-26-2010 10:34 AM |
Header/Footer removal | Solicitous | Calibre | 2 | 03-30-2010 05:53 AM |