View Single Post
Old 05-11-2019, 07:49 AM   #39
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 Kintano View Post
Huh, ok I take back what I just said about the synopsis. It's now perfect (no line breaks) on eBooks with "simple" sysnopsis like this one https://www.kobo.com/fr/fr/ebook/har...er-d-azkaban-1

But it's a complete mess when it comes with more "elaborated" ones (some bold text, many paragraphs etc) like this one :
https://www.kobo.com/fr/fr/ebook/un-...rt-que-la-peur

So I tried to know why the plugin gave me extra line breaks yesterday and not today and it has something to do with the Caliber version I use. Because I went from 3.41.3 to 3.42.0 this morning.


So I started fresh with a new Caliber 3.41.3 installation, deleting calibre folders, cache, libraries. Just Caliber 3.41.3 and the Kobo Books plugin. I didn't mess with any other option (just disabling the other metadata sources obviously). Then I added my previous ebook (https://www.kobo.com/fr/fr/ebook/un-...rt-que-la-peur) and here is the result : https://cdn.discordapp.com/attachmen...373/3.41.3.png

As you can see, the "Normal view" gives me something very close to the kobo.com synopsis. But once I put it in my Kobo, it somehow breaks (red parts on my pic).


Then I did the same process again but this time with Caliber 3.42.0 + Kobo Books.
New result : https://cdn.discordapp.com/attachmen...122/3.42.0.png
This time, yay no line breaks but the "Normal view" and Kobo one is far different from the kobo.com website (and I just realize that my screens are all in french, I hope it doesn't bother you too much!).


I hope it helps a bit to see more clear.
This is due to a change in calibre in some code the plugin uses to clean the HTML. It is used in a few places, so I am surprised it hasn't broken them as well. I have attached a beta that doesn't use this. It works better for your example above. Not sure if it will cause other problems.
Attached Files
File Type: zip KoboBooks-beta.zip (8.6 KB, 629 views)
davidfor is offline   Reply With Quote