04-08-2024, 02:25 PM | #31 | |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
|
|
04-08-2024, 03:41 PM | #32 | |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
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 | |
|
04-08-2024, 06:00 PM | #33 | |
Zealot
Posts: 124
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
|
Quote:
I managed to add it on KOBOTOUCHEXTENDED. It is impressive! |
|
04-08-2024, 06:08 PM | #34 |
Grand Sorcerer
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
05-01-2024, 12:35 AM | #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 | |
|
05-07-2024, 12:39 PM | #36 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
|
05-08-2024, 04:29 PM | #37 | |
Member
Posts: 21
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. |
|
05-10-2024, 02:59 PM | #38 | |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
Quote:
|
|
05-17-2024, 04:44 PM | #39 | |
Member
Posts: 21
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. |
|
05-21-2024, 11:57 PM | #40 | |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
|
Quote:
|
|
|
Similar Threads | ||||
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 |