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 07-28-2020, 12:50 PM   #676
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
doesn't handle subtitles well

Using Sigil's metadata editor I added a second title metadata element and added to it the attribute subtitle. When I ran the Generate Cover plugin it used the subtitle. Back in Sigil's metadata editor I used the arrows to move the subtitle below the main title and that fixed it.

Code:
    <dc:title>Fishpingle</dc:title>
    <dc:title id="tle">A romance of the countryside</dc:title>
    <meta refines="#tle" property="title-type">subtitle</meta>
hobnail is offline   Reply With Quote
Old 07-28-2020, 02:03 PM   #677
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
To the best of my knowledge, the GC plugin only uses Calibre's metadata.

I don't know what impact Sigil has on Calibre's metadata. I wouldn't have expected it to have any.
JimmXinu is offline   Reply With Quote
Advert
Old 07-28-2020, 02:41 PM   #678
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Jimm has it
Generate cover uses Calibre, not the book
I add {Series} to my generated covers, and {#subtitle} <<my custom column
That uses the Custom Text block in Generate Cover
theducks is online now   Reply With Quote
Old 07-28-2020, 03:21 PM   #679
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by JimmXinu View Post
To the best of my knowledge, the GC plugin only uses Calibre's metadata.

I don't know what impact Sigil has on Calibre's metadata. I wouldn't have expected it to have any.
So are you saying that calibre is using the first title metadata it finds? The subtitle was first in the content.opf file.
hobnail is offline   Reply With Quote
Old 07-28-2020, 03:27 PM   #680
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Yes, Calibre is using the first title it finds in the metadata. When I posted about the order problem with this plugin I hadn't noticed that Calibre's Title column was using the subtitle.
hobnail is offline   Reply With Quote
Advert
Old 10-16-2020, 01:03 AM   #681
Tetchystar
Mouse Army
Tetchystar began at the beginning.
 
Tetchystar's Avatar
 
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Kobo Forma
I really like this plugin, but was wondering. Is there a way to have a random image chosen when you generate a cover? For example, if I choose generate cover for multiple books at once, can it randomly select an image?
Tetchystar is offline   Reply With Quote
Old 10-16-2020, 12:27 PM   #682
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Generate Cover plugin does not do random images.

Calibre built-in cover generate can do random styles, but I don't think you can choose images for it?
JimmXinu is offline   Reply With Quote
Old 10-16-2020, 02:01 PM   #683
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 919
Karma: 417282
Join Date: Jun 2015
Device: kobo aura h2o, kobo forma
Quote:
Originally Posted by JimmXinu View Post
Generate Cover plugin does not do random images.

Calibre built-in cover generate can do random styles, but I don't think you can choose images for it?
The built in metadata editor will let you select PDF and it will generate thumbnails for the first 10 or so pages and let you pick one. For epubs, it looks for the book's designated cover, I think. But it would be neat if it had an option to pull the first 10 images in the book.

I can see generating covers from a random image in an epub, that might be interesting.
When I do it by hand for epubs, I typically use the book editor, and browse the images, usually picking the second or third one (or first one after the current cover), copy it, set it as cover in the metadata editor, and then use generate covers using the current cover as image.

This is a bit tedious, but luckily only has to be done once per book. If I import a big batch, I end up poking at them over a couple of weeks until they all have useful covers.

Last edited by compurandom; 10-16-2020 at 02:05 PM.
compurandom is offline   Reply With Quote
Old 10-26-2020, 03:22 PM   #684
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Attached

2020-10-26
- Translation enabling code changes
- Translations for French & Spanish

@dunhill popped up in my PMs with a (mostly) translatable enabled version of GC, along with a couple (partial) translations:

Frances by un_pogaz
Spanish by Dunhill

Unfortunately, Dunhill's version didn't get all the translatable strings. I had to add or fix ~1/3 of the total, so the fr & es versions dunhill gave me are incomplete.

A few important notes:
  1. Unlike my own plugins, this is *not* in Transifex. The 'default.pot' file and translation .po files is in GitHub only. Ideally, translation contributors will submit their .po files by GitHub Pull Request, same as code contributions.
  2. The Field Order settings are not translated. They are the same as the saved values, so translating them will break existing settings for translation users without a lot more work. It's certain possible, but I don't have the energy right now.

You can use the CALIBRE_OVERRIDE_LANG environment var to test different languages. I use the fake language 'zz' for testing translation code. (Google it if you need help with CALIBRE_OVERRIDE_LANG. )

Last edited by JimmXinu; 10-28-2020 at 11:06 AM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 10-26-2020, 10:13 PM   #685
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 723
Karma: 228142
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by JimmXinu View Post
New Test Version Attached

2020-10-26
- Translation enabling code changes
- Translations for French & Spanish

@dunhill popped up in my PMs with a (mostly) translatable enabled version of GC, along with a couple (partial) translations:

Frances by un_pogaz
Spanish by Dunhill

Unfortunately, Dunhill's version didn't get all the translatable strings. I had to add or fix ~1/3 of the total, so the fr & es versions dunhill gave me are incomplete.

A few important notes:
  1. Unlike my own plugins, this is *not* in Transifex. The 'default.pot' file and translation .po files is in GitHub only. Ideally, translation contributors will submit their .po files by GitHub Pull Request, same as code contributions.
  2. The Field Order settings are not translated. They are the same as the saved values, so translating them will break existing settings for translation users without a lot more work. It's certain possible, but I don't have the energy right now.

You can use the CALIBRE_OVERRIDE_LANG environment var to test different languages. I use the fake language 'zz' for testing translation code. (Google it if you need help with CALIBRE_OVERRIDE_LANG. )

First of all I want to thank un_pogaz for the French translation of the plugin.
And another thing that I wanted to clarify is that with the intention of not hurting the plugin code, I was translating the text that I was seeing simultaneously on the plugin screens.
Thank you in advance for your comments.
dunhill is offline   Reply With Quote
Old 10-27-2020, 05:38 AM   #686
un_pogaz
Chalut o/
un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.un_pogaz understands the importance of being earnest.
 
un_pogaz's Avatar
 
Posts: 410
Karma: 145324
Join Date: Dec 2017
Device: Kobo
Ah... Yes... there is "somes" missings strings, I will complete this.

For the "Field Order" problem, during the first translation I encountered a similar problem for the iterator:
Code:
for name, display_name in DIC_name_font:
Originally 'Title', 'Author', 'Series' and 'Custom' as hard coded in a table, so I created the DIC_name_font, to translate all of them and keeping the keywords (it's not a dictionary because it tended to send the words in alphabetical order, and I need the both values at the same time)

If the texts for "Field Order" are fixed and determinate (which seems to be the case), a similar solution could be applied.

EDIT: I just took a look: It's going to be a bit more complicated >_>

Last edited by un_pogaz; 10-27-2020 at 06:18 AM.
un_pogaz is offline   Reply With Quote
Old 10-27-2020, 08:12 PM   #687
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Attached

2020-10-27
- Update Spanish translation - thanks dunhill!

2020-10-26
- Translation enabling code changes
- Translations for French & Spanish

Last edited by JimmXinu; 10-28-2020 at 11:07 AM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 10-28-2020, 11:06 AM   #688
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Attached

2020-10-28
- Add a missed string for translation - thanks un-pogaz!
- Update French translation - thanks un-pogaz!

2020-10-27
- Update Spanish translation - thanks dunhill!

2020-10-26
- Translation enabling code changes
- Translations for French & Spanish

Last edited by JimmXinu; 11-04-2020 at 12:53 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Old 10-31-2020, 05:31 AM   #689
worstje
Member
worstje began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
Exclamation Bug still exists...

Hi,

Back in June 2019, on post 639 in this thread, I submitted a bugfix for a centering issue when having a certain combination of settings activated. Unfortunately it was not incorporated yet.

Can it (or some other suitable fix) be included so I can stop manually patching draw.py whenever a new version comes out?

Thanks for updating this plugin for Calibre v5 however; it means I can finally make the upgrade plunge.
worstje is offline   Reply With Quote
Old 10-31-2020, 11:55 AM   #690
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,329
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Attached

2020-10-31
- Fix for border causing img to move horz.
- Remove draw_old.py, not needed in Cal v2+ - min valid calibre is v2.85.1

2020-10-28
- Add a missed string for translation - thanks un-pogaz!
- Update French translation - thanks un-pogaz!

2020-10-27
- Update Spanish translation - thanks dunhill!

2020-10-26
- Translation enabling code changes
- Translations for French & Spanish

worstje: Sorry, I don't remember anything about that.

Your change corrects the left-right shift, but in turn introduces a similar up-down shift.

Instead, the issue is that the code didn't use the available size for width. See github commit

Last edited by JimmXinu; 11-07-2020 at 01:56 PM. Reason: Remove obsolete test version
JimmXinu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Goodreads Sync kiwidude Plugins 1722 04-25-2024 03:09 PM
[GUI Plugin] Clipboard Search kiwidude Plugins 29 04-02-2024 10:05 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] User Category kiwidude Plugins 123 03-16-2024 11:59 PM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM


All times are GMT -4. The time now is 04:16 PM.


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