Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-07-2015, 11:04 AM   #1351
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Dear friends,
How can I make in an kepub the linehight set to 1.2 in the css for a Kobo Glo HD ?
I think by adding/modify the .css but I don't know exactly how.
I found the option to modify the .css in the preferences, but how to do it ?

I think the code must be:
Code:
body {line-height: 1.2 !important; widows: 1; orphans: 1;}
But how to put it in ?? I found some information,but when I translate the information into my native language (Dutch) it makes no sense.
(Maybe someone could help with a screenshot ? )
Any help would be very much appreciated !
I could do this by letting calibre do a conversion, but I rather would not do that if it can be done by simply adding a line to the kepub.

Last edited by Nick_1964; 08-07-2015 at 11:06 AM.
Nick_1964 is offline   Reply With Quote
Old 08-07-2015, 11:45 AM   #1352
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
The CSS you have should work. If you follow the directions at https://github.com/jgoguen/calibre-k...-arbitrary-css you can see how to have the extended driver automatically add the CSS file to your reader. I have no idea how well that translates to Dutch though.
jgoguen is offline   Reply With Quote
Advert
Old 08-07-2015, 11:59 AM   #1353
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by jgoguen View Post
The CSS you have should work. If you follow the directions at https://github.com/jgoguen/calibre-k...-arbitrary-css you can see how to have the extended driver automatically add the CSS file to your reader. I have no idea how well that translates to Dutch though.
Well roughly this works:

Open Calibre, open voorkeuren,neem de laatste kolom geavanceerd en druk op diversen.
Druk daarna op configuratiemap van calibre openen.
Zoek daar de directory plugins.
Sla de gemaakte .css op in de directory plugins en noem deze kobo_extra_GLOHD.css

Ga dan naar calibre.
Open voorkeuren,kies plugins.
Kies apparaat verbindings plugins.
Kies de KoboTouchExtended plugin en druk op aanpassen.
Kies Modificeer CSS en zet hier een vinkje.

Thank you !
Nick_1964 is offline   Reply With Quote
Old 08-08-2015, 06:02 AM   #1354
Chris_77
Member
Chris_77 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2015
Device: kobo Aura H2O
Hello,

I use Kobo Touch Extended Driver to transfer my book on my Kobo Aura H2O but it replace some characters ( like ' ) by an underscore.

Do you know how force the driver to not replace that type of characters ?

Thank you.
Chris_77 is offline   Reply With Quote
Old 08-08-2015, 07:28 AM   #1355
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
While the translation works ( https://www.mobileread.com/forums/sho...postcount=1353 ) nothing is send to the reader's css to modify it.
The css it at the right place, right named, but not send to the device

/edit sorry for some reason a backup was in place with 2.3.3 on it,that doesn't recognise the Glo HD, after updating, it works.

Last edited by Nick_1964; 08-08-2015 at 07:33 AM.
Nick_1964 is offline   Reply With Quote
Advert
Old 08-08-2015, 08:49 AM   #1356
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Chris_77 View Post
Hello,

I use Kobo Touch Extended Driver to transfer my book on my Kobo Aura H2O but it replace some characters ( like ' ) by an underscore.

Do you know how force the driver to not replace that type of characters ?
That's something that calibre does. It is trying to make sure that the filenames used won't cause any problems.
davidfor is offline   Reply With Quote
Old 08-08-2015, 10:15 AM   #1357
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Quote:
Originally Posted by Chris_77 View Post
Hello,

I use Kobo Touch Extended Driver to transfer my book on my Kobo Aura H2O but it replace some characters ( like ' ) by an underscore.

Do you know how force the driver to not replace that type of characters ?

Thank you.
Do you mean in file names or in book content?

Book content shouldn't happen and I don't have any code that would.

File names must happen, because some characters are semi-illegal on NTFS and FAT file systems.
jgoguen is offline   Reply With Quote
Old 08-08-2015, 03:24 PM   #1358
Chris_77
Member
Chris_77 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2015
Device: kobo Aura H2O
First of all thanks for reply.

In fact i ask only for the apostrophe, because the replacement happened only with the extended driver, if the base driver if used the file name keep the apostrophe.

Thanks.
Chris_77 is offline   Reply With Quote
Old 08-08-2015, 03:53 PM   #1359
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Again - do you mean replacements are happening in the file name sent to the device out in the content of the book?

What version of calibre are you using? What version of the extended driver is installed? What operating system and OS version are you using?
jgoguen is offline   Reply With Quote
Old 08-08-2015, 04:00 PM   #1360
Chris_77
Member
Chris_77 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2015
Device: kobo Aura H2O
Sorry, i mean in file manes send to the device.

I used v2.34 of calibre, v2.5.1 of extended driver and i using mac os x 10.10.4.

Thanks.
Chris_77 is offline   Reply With Quote
Old 08-08-2015, 04:13 PM   #1361
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
So in OS X, the replaced characters won't cause you problems - OS X, like most UNIXes, doesn't assign special meaning to characters in file names. If you are using Windows instead, you would find files with certain characters incredibly difficult to create in the first place, and even harder to work with if you do manage to create them. The reason is that Windows declares certain characters as forbidden in file names and, instead of writing NTFS to forbid them, assumes that you never create them in the first place.

For myself, it was simpler to just write the driver to replace all the characters all the time. As for why it's not in the base driver or in calibre, that's probably because it hasn't come up outside this crowd or no one's reported it to Kovid. Is there a reason you need the characters to not be replaced?
jgoguen is offline   Reply With Quote
Old 08-08-2015, 04:21 PM   #1362
Chris_77
Member
Chris_77 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2015
Device: kobo Aura H2O
Thanks for the reply.

In fact the only reason is purely cosmetic: when I go into the file manager I prefer to see the file names with apostrophes than underscores.

Thank you ^^
Chris_77 is offline   Reply With Quote
Old 08-08-2015, 06:13 PM   #1363
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Sorry, not fixing it for that One of the nice things about calibre is that it handles details like that for you. Kobo puts books on the reader with UUIDs for names and calibre handles it wonderfully.

I'll take a pull request though. It's open source, anyone can contribute.
jgoguen is offline   Reply With Quote
Old 08-08-2015, 06:22 PM   #1364
Chris_77
Member
Chris_77 began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Aug 2015
Device: kobo Aura H2O
Ok, thanks for all ^^
Chris_77 is offline   Reply With Quote
Old 08-09-2015, 12:53 AM   #1365
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by jgoguen View Post
For myself, it was simpler to just write the driver to replace all the characters all the time. As for why it's not in the base driver or in calibre, that's probably because it hasn't come up outside this crowd or no one's reported it to Kovid. Is there a reason you need the characters to not be replaced?
I forgot that you had some name sanitization in the extended driver. And looking at it, I'll be "borrowing" it for the main driver. There's bug with cover images with single quotes not getting deleted when the book is. I have no idea why hadn't done this before.
davidfor is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 01:35 AM.


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