![]() |
#31 | |
Teluk Biru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
|
Quote:
|
|
![]() |
![]() |
![]() |
#32 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
Once that's done, any new book you transfer via calibre's Send-to-device should have all its excess linefeeds removed during the send. If you also want to correct the synopsis for all the books which are already on the Kobo then open the calibre config screen for whichever driver you're using, KOBOTOUCH or KOBOTOUCHEXTENDED (to match whatever you chose in step 2.1 above), and make sure that on the 3rd Tab ('Metadata, on device & advanced') the top checkbox (labelled 'Update metadata on the device') is CHECKED. Once all the above is complete, the next time you USB-connect the Kobo to calibre, all the books calibre knows about will automatically have their excess linefeeds removed from the synopsis on the Book Details page. If anything isn't clear just ask. Good luck. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Teluk Biru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
|
Quote:
I managed to add it on KOBOTOUCHEXTENDED. It is impressive! |
|
![]() |
![]() |
![]() |
#34 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
#35 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
I'm trying to follow the steps outlined in this thread to fix the Synopsis font size and spacing issues I'm having on my Libra 2. I've applied the Custom synopsis details all-in-one patch (code below) and added the suggested plugboard and the font size is improved but the spacing is still terrible.
nickel.yaml Code:
Custom synopsis details all-in-one: - Enabled: yes - Description: | Customise synopsis body style in Book details, including font-size, line-height Add style(s) for p tags - FindZlib: "body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;" # qss/BookDetails.qss - ReplaceZlibGroup: Replacements: # modify <body> style, customise line-height here # Add style(s) for <p> tags - Find: "body {\n font-family: Georgia;\n margin: 0px;\n padding: 0px;\n}" Replace: "body {font-family:Georgia; margin:0; padding:0; line-height:1.25em;}\np {margin:0.5em 0 0 0; text-indent:0.0em;}" # customise font-size by model - {Find: "font-size: 34px;", Replace: "font-size:42px;"} # LibraH2O/Libra2 (Storm) # remove all per-model line-heights to create space for above code # line-height customisation is now done in the 1st Find/Replace ### DO NOT CHANGE OR REMOVE THESE LINES ### - {Find: "body[qApp_deviceIsTrilogy=true] {\n line-height: 1.45em;\n}\n", Replace: "\n"} - {Find: "body[qApp_deviceIsPhoenix=true] {\n line-height: 1.4em;\n}\n", Replace: "\n"} - {Find: "body[qApp_deviceIsDragon=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"} - {Find: "body[qApp_deviceIsStorm=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"} - {Find: "body[qApp_deviceIsDaylight=true] {\n line-height: 1.35em;\n}\n", Replace: "\n"} # create even more space. # If you set your Kobo to one of the following 4 Japanese/Chinese locales, # then comment out the line corresponding to this locale - {Find: "body[localeName=\"ja\"] {\n font-family: Sans-SerifJP, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"} - {Find: "body[localeName=\"zh\"] {\n font-family: Sans-SerifZH-Simplified, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"} - {Find: "body[localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"} - {Find: "body[localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"} Code:
<div> <p>“An impressive work of mythic magnitude that may turn out to be Stephen King’s greatest literary achievement” (The Atlanta Journal-Constitution), The Gunslinger is the first volume in the epic Dark Tower Series.</p> <p>A #1 national bestseller, The Gunslinger introduces readers to one of Stephen King’s most powerful creations, Roland of Gilead: The Last Gunslinger. He is a haunting figure, a loner on a spellbinding journey into good and evil. In his desolate world, which mirrors our own in frightening ways, Roland tracks The Man in Black, encounters an enticing woman named Alice, and begins a friendship with the boy from New York named Jake.</p> <p>Inspired in part by the Robert Browning narrative poem, “Childe Roland to the Dark Tower Came,” The Gunslinger is “a compelling whirlpool of a story that draws one irretrievable to its center” (Milwaukee Sentinel). It is “brilliant and fresh…and will leave you panting for more” (Booklist). </p></div> |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#37 | |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
|
Quote:
1. set search mode to character match 2. Select the search field to comments. 3. copy/paste the following below – for ease, include quotation marks when copying and after pasting delete them [basically what you're typing in is <div> and a paragraph space, which can be copied/pasted from the end of any paragraph] Code:
"<div> " Alternatively: 1. Set search mode to Regular expression 2. select search field to comments 3. type in the following Code:
<div>\n I've included some screenshots that show what it should look like with a "test" line showing that the paragraph space is gone. Whichever method you use in the future, I suggest using the "save" button to save it for future searches. Edit to add: The whole reason this is a thing is that while Calibre stores the description in html, the plist database on the kobo seems to use BOTH html AND rich text (at least to some small extent) in the description metadata, so. So, if you're having issues with random extra spaces in your description on your kobo, do a mass search/replace for a paragraph break (the regex option above is easiest), then update the metadata for all books with book descriptions on your kobo using Kobo Utility plugin. Don't ask me why it's this way, I just know that it the way it is. Last edited by m_pluto; 06-02-2024 at 07:30 AM. |
|
![]() |
![]() |
![]() |
#38 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#39 | |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
|
Quote:
Also just wanna mention that if you ever open an individual book to edit the metadata you'll need to redo the steps above. It's silly, but if you wanna batch process all of your books at one time you can enter "comments:true" in the search bar and then select all that show up (it will search for any books that have text entered into their metadata, and exclude ones that are blank). I've just gotten into the habit of doing it every time I plug my kobo into my computer before I update any books/send new books to my device. It takes about 10-15 seconds to do it for me now, and it just saves me from trying to remember if I've gone back and edited any individual book's metadata. As for books on your device already, use the Kobo Utility plugin and select "update metadata" and make sure the comments box is checked as well as any other bits of things you wanna update. Last edited by m_pluto; 05-17-2024 at 04:46 PM. |
|
![]() |
![]() |
![]() |
#40 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#41 | |
Enthusiast
![]() Posts: 36
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage, Libra Colour
|
Quote:
Is there anyway the patch quoted here can be made to use with a libra color? If I try to use it I get the following error when trying to run the patch Code:
Error: could not apply patch "Custom synopsis details all-in-one": line 38: inst 4: ReplaceZlib: find string not found in stream (body{font-family:Georgia;margin:0px;padding:0px;}) Error: could not apply patches: error applying patch file 'src/nickel.yaml': could not apply patch "Custom synopsis details all-in-one": line 38: inst 4: ReplaceZlib: find string not found in stream (body{font-family:Georgia;margin:0px;padding:0px;}) |
|
![]() |
![]() |
![]() |
#42 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
For all the 2024 Kobo devices, running fw 4.39.xxxxx or 4.40.xxxxx or 4.41.xxxxx, then a simple edit should suffice, namely: - wherever post #27 currently has the string Georgia change it to DefaultSerif (case-sensitive) A bit of background info ... Kobo removed both of the old system GUI fonts, Georgia and Avenir, in fw 4.39, instead using fonts 'Rakuten Serif' and 'Rakuten Sans', respectively. But rather than naming them explicitly with the Rakuten font names the fw refers to them more generically as DefaultSerif and DefaultSans I suppose it may make changing system fonts behind-the-scenes easier for Kobo in the long run. Other 'official' patches were similarly affected. I posted updates here but many may have missed it. |
|
![]() |
![]() |
![]() |
#43 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
If you use Calibre-Web for syncing, you can remove the extra newlines that Calibre has before you send the description/comments to Kobo, rather than using a plugboard every time you update them in Calibre desktop:
https://github.com/AsherMaximum/cali...c70fe584d51c5f Last edited by AsherMaximum; 04-25-2025 at 01:23 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I paste description (comments) without the html formatting? | webipsum | Calibre | 5 | 07-15-2014 07:38 PM |
Touch Kobo Touch book description | trekker25 | Kobo Reader | 6 | 04-02-2012 03:09 PM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
Retaining formatting in metadata (book description) | FizzyWater | Calibre | 5 | 05-13-2010 10:26 PM |