Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2024, 02:25 PM   #31
hatuluang
Connoisseur
hatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheese
 
hatuluang's Avatar
 
Posts: 58
Karma: 1046
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by jackie_w View Post
Those gaps between paragraphs are still very large. Are you happy with it like that?

If not, and you use calibre to transfer your books, this could easily be fixed with a calibre Metadata plugboard. I've attached a screenshot of what my Book Details synopsis looks like when using both patch Custom synopsis details all-in-one (no text-indent used in mine) and a Metadata plugboard for calibre comments.

If you want to pursue the plugboard option let me know.
Sure, the gaps between paragraphs still bother me, I use Calibre to organize and sideload my books, and if you could share a metadata plugboard, that would be very helpful.
hatuluang is offline   Reply With Quote
Old 04-08-2024, 03:41 PM   #32
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by hatuluang View Post
Sure, the gaps between paragraphs still bother me, I use Calibre to organize and sideload my books, and if you could share a metadata plugboard, that would be very helpful.
These instructions assume you don't have any existing metadata plugboards for Kobo:
  1. Open calibre Preferences and select [Metadata plugboards] (3rd row)
  2. Go to 'Add new plugboard' and work your way left-to-right choosing options from the drop-down menus as per attached screenshot (blue highlights).
    1. The screenshot assumes you're using the KOBOTOUCH calibre driver, but if you're actually using the KoboTouchExtended plugin choose KOBOTOUCHEXTENDED for the column labelled 'Device (choose second)'
    2. For clarity the column labelled 'Source template' contains the following text which you can copy-paste:
      Code:
      program: re(field('comments'), '\n', '')
  3. Once you've finished save by pressing:
    [Save plugboard] (red highlight) followed by [Apply] (green highlight)
  4. I can't remember whether it's necessary to Restart calibre before a new plugboard takes effect, so it's safer if you do.

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.
Attached Thumbnails
Click image for larger version

Name:	kobo_mplug_comments.png
Views:	46
Size:	133.6 KB
ID:	207431  
jackie_w is offline   Reply With Quote
Advert
Old 04-08-2024, 06:00 PM   #33
hatuluang
Connoisseur
hatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheesehatuluang can extract oil from cheese
 
hatuluang's Avatar
 
Posts: 58
Karma: 1046
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Quote:
Originally Posted by jackie_w View Post

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.
Thank you for sharing the metadata plugboard and how-to.
I managed to add it on KOBOTOUCHEXTENDED.
It is impressive!
Attached Thumbnails
Click image for larger version

Name:	metadata plugboard for KTE.jpg
Views:	56
Size:	129.7 KB
ID:	207432   Click image for larger version

Name:	Display sinopsys 41px.png
Views:	73
Size:	247.7 KB
ID:	207433  
hatuluang is offline   Reply With Quote
Old 04-08-2024, 06:08 PM   #34
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Quote:
Originally Posted by hatuluang View Post
Thank you for sharing the metadata plugboard and how-to.
I managed to add it on KOBOTOUCHEXTENDED.
It is impressive!
You're welcome! Yes, that looks much better
jackie_w is offline   Reply With Quote
Old 05-01-2024, 12:35 AM   #35
tretneo
Junior Member
tretneo began at the beginning.
 
Posts: 3
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"}
Here's a Comments HTML example from calibre
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>
With the above in place I have large spacing before the first paragraph in the Synopsis and between each subsequent paragraph. What am I missing?
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-04-30 at 9.34.27 PM.png
Views:	17
Size:	283.7 KB
ID:	207959   Click image for larger version

Name:	IMG_0012.jpg
Views:	35
Size:	807.4 KB
ID:	207960  
tretneo is offline   Reply With Quote
Advert
Old 05-07-2024, 12:39 PM   #36
tretneo
Junior Member
tretneo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
Bump ^^^ any ideas or suggestions, @jackie_w?

Quote:
Originally Posted by jackie_w View Post
You're welcome! Yes, that looks much better
tretneo is offline   Reply With Quote
Old 05-08-2024, 04:29 PM   #37
m_pluto
Member
m_pluto began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2021
Device: Kobo Sage
Quote:
Originally Posted by tretneo View Post
With the above in place I have large spacing before the first paragraph in the Synopsis and between each subsequent paragraph. What am I missing?
So for the workaround for the first space, the best I've been able to come up with that works consistently involves doing a mass search/replace in calibre for editing book data.

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>
"
4. Set replace to be just plain <div> or leave blank to remove <div> all together, but if you do that, be sure to do a second search/replace with the closing tag </div>


Alternatively:
1. Set search mode to Regular expression
2. select search field to comments
3. type in the following
Code:
<div>\n
4. repeat step 4 from above.

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-05-08 at 13.24.14.png
Views:	18
Size:	256.2 KB
ID:	208139   Click image for larger version

Name:	Screenshot 2024-05-08 at 13.26.23.png
Views:	16
Size:	213.3 KB
ID:	208140  

Last edited by m_pluto; 05-08-2024 at 04:31 PM.
m_pluto is offline   Reply With Quote
Old 05-10-2024, 02:59 PM   #38
tretneo
Junior Member
tretneo began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2024
Device: Kobo Libra 2
Quote:
Originally Posted by m_pluto View Post
So for the workaround for the first space, the best I've been able to come up with that works consistently involves doing a mass search/replace in calibre for editing book data.

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>
"
4. Set replace to be just plain <div> or leave blank to remove <div> all together, but if you do that, be sure to do a second search/replace with the closing tag </div>


Alternatively:
1. Set search mode to Regular expression
2. select search field to comments
3. type in the following
Code:
<div>\n
4. repeat step 4 from above.

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.
This did the trick. Thank you! Is there any way to automate this via Plugboards or some other mechanism to avoid needing to do this manually all the time?
tretneo is offline   Reply With Quote
Reply


Forum Jump

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


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


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