Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2024, 07:03 AM   #496
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Thanks for the report. I just fixed it. I'll release the fix in a few minutes.
thiago.eec is offline   Reply With Quote
Old 08-19-2024, 07:08 AM   #497
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.6.2 - 19 Aug 2024

- Bug fix: when marking books, it would not work if the genre had more than one level
thiago.eec is offline   Reply With Quote
Old 08-19-2024, 01:26 PM   #498
sandrilea
Junior Member
sandrilea began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2024
Location: Germany
Device: Pocketbook Touch Lux 3
Great

I am delighted that you can have more than one genre level. Is it supposed to work with three levels? When I tried it, there was just the word for the subgenre with the number zero in parenthesis in genre view and the book with this genre won't show up.

When I sort by title in genre view the subgenres are sorted as titles. Example: I have the genre Fantasy at the top, then titles A-T, then the subgenre Urban Fantasy, then titles V-Z in Fantasy. It would be nice to have all the titles for Fantasy together and then the titles for the subgenre.
sandrilea is offline   Reply With Quote
Old 08-19-2024, 05:02 PM   #499
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by sandrilea View Post
I am delighted that you can have more than one genre level. Is it supposed to work with three levels?
Yes, up to three levels.

Quote:
Originally Posted by sandrilea View Post
When I tried it, there was just the word for the subgenre with the number zero in parenthesis in genre view and the book with this genre won't show up.
When you have more than 3 levels, the remaining levels are grouped with the third level. Something like this:



The complete tag is 'Ficção.Ação e aventura.Teste.Quarto nível'.
If this is not the case for you, send me your database file (json), so I can take a look and figure out what's going on.

Quote:
Originally Posted by sandrilea View Post
When I sort by title in genre view the subgenres are sorted as titles. Example: I have the genre Fantasy at the top, then titles A-T, then the subgenre Urban Fantasy, then titles V-Z in Fantasy. It would be nice to have all the titles for Fantasy together and then the titles for the subgenre.
If they have exactly the same tag, with the same hierarchy, they should definitely be together. If you could pm me your database file, it would be easier for me to find the problem.

EDIT: Check out the new version released. I think it fixes all your problems.
Attached Thumbnails
Click image for larger version

Name:	Level 3.png
Views:	142
Size:	11.9 KB
ID:	210301  

Last edited by thiago.eec; 08-20-2024 at 07:35 AM. Reason: Info about the new version
thiago.eec is offline   Reply With Quote
Old 08-20-2024, 07:29 AM   #500
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.6.3 - 20 Aug 2024

- Bug fix: use a case sensitive match for genres, since that's how calibre's tags work
- Bug fix: check the subgenre's parent before assigning a book to it, so we can differentiate repeated names
thiago.eec is offline   Reply With Quote
Old 08-20-2024, 07:41 AM   #501
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,947
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by thiago.eec View Post
Version 1.6.3 - 20 Aug 2024

- Bug fix: use a case sensitive match for genres, since that's how calibre's tags work
Where does calibre do case sensitive matching for tags, either custom or standard? It shouldn't. AFAIK one cannot have two tags in a library that differ only in case. For example, given
Code:
s = some_string.lower()
for t in tags:
    if s == t.lower():
        print('foo')
it should be impossible to print more than one line.

Another example:
Code:
set1 = db.all_tags() #made up function
set2 = set()
for t in set1:
    set2.add(t.lower())
len(set1) will always equal len(set2)
chaley is offline   Reply With Quote
Old 08-20-2024, 10:42 AM   #502
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by chaley View Post
AFAIK one cannot have two tags in a library that differ only in case.
Actually you can (standard 'tags' field, hierarchy active):



I used the word 'match', like it was a search in calibre. I was actually referring to the Tag Browser. 'Some Tag' and 'Some tag' are displayed separately in there.

EDIT: After further testing, it looks like only the intermediate levels of hierarchical tags are case sensitive. The image above illustrates such a case: 'Tema.Seres fantásticos.Dragões'.
Attached Thumbnails
Click image for larger version

Name:	Tag Browser.png
Views:	139
Size:	2.8 KB
ID:	210325  

Last edited by thiago.eec; 08-20-2024 at 11:33 AM. Reason: More info
thiago.eec is offline   Reply With Quote
Old 08-20-2024, 11:32 AM   #503
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,947
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by thiago.eec View Post
Actually you can (standard 'tags' field, hierarchy active):



I used the word 'match', like it was a search in calibre. I was actually referring to the Tag Browser. 'Some Tag' and 'Some tag' are displayed separately in there.
I see.

The example happens because the real "tag" is composed of all pieces of the hierarchical item. Individual bits, in this case "Seres Fantàsticos", are not real tags and don't exist in the database. For example, you can have "Seres Fantàsticos.AAA" and "Seres fantàsticos.BBB" because the tag differs in content. However, you can't have "Seres Fantàsticos.AAA" and "Seres fantàsticos.AAA" because in this case the tag differs only in case. Nor can you have "Seres Fantàsticos.AAA" and "Seres Fantàsticos.aaa". One of the two will win and be in the db. Bottom line: you can't compare individual items in a hierarchy to see if they are the same tag. You can only compare the entire tag.

It is very possible that none of this matters for what you are doing.
chaley is offline   Reply With Quote
Old 08-20-2024, 11:49 AM   #504
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by thiago.eec View Post
EDIT: After further testing, it looks like only the intermediate levels of hierarchical tags are case sensitive. The image above illustrates such a case: 'Tema.Seres fantásticos.Dragões'.
Yes. That's about the same of what I found out.

Quote:
Originally Posted by chaley View Post
It is very possible that none of this matters for what you are doing.
The plugin parses the tag, breaking it down into pieces. Then, it uses those pieces to create a QTreeWidget, following the original hierarchy. Right now it mimics the tag browser behaviour, treating 'Seres fantásticos' and 'Seres Fantásticos' as different tags. Maybe I should treat them as one.

The most important fix was checking the parents to avoid messing up when the user have the same string used repeatedly in different places.
thiago.eec is offline   Reply With Quote
Old 08-20-2024, 05:24 PM   #505
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,315
Karma: 63232809
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chaley View Post
I see.

The example happens because the real "tag" is composed of all pieces of the hierarchical item. Individual bits, in this case "Seres Fantàsticos", are not real tags and don't exist in the database. For example, you can have "Seres Fantàsticos.AAA" and "Seres fantàsticos.BBB" because the tag differs in content. However, you can't have "Seres Fantàsticos.AAA" and "Seres fantàsticos.AAA" because in this case the tag differs only in case. Nor can you have "Seres Fantàsticos.AAA" and "Seres Fantàsticos.aaa". One of the two will win and be in the db. Bottom line: you can't compare individual items in a hierarchy to see if they are the same tag. You can only compare the entire tag.

It is very possible that none of this matters for what you are doing.
I've had this happen before -- I think I reported a slight bug involving list_union that could result in tag browser misbehaviour.
ownedbycats is online now   Reply With Quote
Old 08-21-2024, 12:26 PM   #506
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by sandrilea View Post
When I sort by title in genre view the subgenres are sorted as titles. Example: I have the genre Fantasy at the top, then titles A-T, then the subgenre Urban Fantasy, then titles V-Z in Fantasy. It would be nice to have all the titles for Fantasy together and then the titles for the subgenre.
Version 1.6.5 - 21 Aug 2024

- Bug fix: inside a genre, group subgenres

Last edited by thiago.eec; 08-21-2024 at 12:31 PM.
thiago.eec is offline   Reply With Quote
Old 08-21-2024, 04:32 PM   #507
sandrilea
Junior Member
sandrilea began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2024
Location: Germany
Device: Pocketbook Touch Lux 3
Quote:
Originally Posted by thiago.eec View Post
Version 1.6.5 - 21 Aug 2024

- Bug fix: inside a genre, group subgenres
You are amazing! That's wonderful!
sandrilea is offline   Reply With Quote
Old 08-25-2024, 01:17 PM   #508
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,350
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
I've got a question. My column "genero" (for genre classification) is created like this: "{tags:re( / ,.)}", as my tags are split by " / ". When I show the statistics, however, I get something like this: Mistery.Cozy 36. How can I show it in a hierarchical way?
---
Edit: I think it's how it's intended to work (my bad), keeping it just in case somebody has the same doubt. Subgenre view appears only when editing the goal.

Last edited by Terisa de morgan; 08-25-2024 at 01:23 PM.
Terisa de morgan is online now   Reply With Quote
Old 08-25-2024, 03:24 PM   #509
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 9,315
Karma: 63232809
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Terisa de morgan View Post
I've got a question. My column "genero" (for genre classification) is created like this: "{tags:re( / ,.)}", as my tags are split by " / ". When I show the statistics, however, I get something like this: Mistery.Cozy 36. How can I show it in a hierarchical way?
Hierarchy works in Edit, but not Statistics. I suspect there's technical limitations for this.
Attached Thumbnails
Click image for larger version

Name:	2024-08-25 16_21_47-Edit reading goal.png
Views:	24
Size:	22.4 KB
ID:	210412   Click image for larger version

Name:	2024-08-25 16_22_04-Reading goal statistics.png
Views:	26
Size:	20.1 KB
ID:	210413  
ownedbycats is online now   Reply With Quote
Old 08-25-2024, 05:03 PM   #510
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,015
Karma: 1189271
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Yes. The hierarchy view is just for the Edit Reading Goal dialog. In the Statistics dialog we have size limitations, also the problem with the graphics starting/finishing with an offset, that would make them look weird to me.

P.S.: @ownedbycats, one question about your statistics window: can't you resize it to lose the scrollbar? It is supposed to be freely resizable and to remember the geometry, but maybe there is glitch that I don't know about.
thiago.eec is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1405 08-31-2024 05:29 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
Reading Goal KyBunnies Audiobook Discussions 12 10-25-2017 05:29 PM


All times are GMT -4. The time now is 10:37 AM.


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