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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 02-14-2025, 07:30 AM   #76
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by chaley View Post
Code to remove invalid columns from the tag browser icon rules is now in calibre source.
Automatic? Might be annoying when renaming column lookup.
ownedbycats is online now   Reply With Quote
Old 02-14-2025, 07:37 AM   #77
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I think I've had the same issue when dealing with icons and such. Idealy I'd like dialog to change to another column instead of deleting. Don't know how much work.
ownedbycats is online now   Reply With Quote
Old 02-14-2025, 07:43 AM   #78
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: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Automatic? Might be annoying when renaming column lookup.
Quote:
Originally Posted by ownedbycats View Post
Automatic? Might be annoying when renaming column lookup.
What else would you have it do? If when you open the tb icon rules editor, it finds a column in the rules that *can't* be there, should it leave it to break something else later? Leave it there but hide it (it can't be edited) in hopes you will eventually create a valid column with that lookup name? Try to work around having item values in the rules that don't exist? Having the editor protect invalid data isn't something I think is reasonable.

As we have discussed several times before, changing lookup names doesn't propogate through calibre. Because of the problems that arise when reusing lookup names I have considered keeping a list of former names and rejecting any that match.

Quote:
Originally Posted by ownedbycats View Post
I think I've had the same issue when dealing with icons and such. Idealy I'd like dialog to change to another column instead of deleting. Don't know how much work.
Much more than I am willing to do. I won't stand in the way if someone else wants to attempt it.
chaley is offline   Reply With Quote
Old 02-14-2025, 12:35 PM   #79
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: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
I found a ton of small problems caused by non-existent lookup names. While fixing these I backed out the "remove" code. It now tries to deal with the problem. The user can now either a) change the lookup names and the invalid column values, or b) leave the bad data and hope for the best.

Another fixed problem: changing the "Show only categories and values available in the current library" threw away all edits. It is no longer possible to change that check box once edits have been done.

There are probably edge cases in how the UI handles correcting the bad data. In particular, undo doesn't work in the case where an invalid lookup name was changed to a valid one.

The changes are in calibre source.
chaley is offline   Reply With Quote
Old 02-14-2025, 02:29 PM   #80
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is there a way to display a or something for invalid lookups?
ownedbycats is online now   Reply With Quote
Old 02-14-2025, 02:41 PM   #81
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: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Is there a way to display a or something for invalid lookups?
Display where? Invalid where and how?
chaley is offline   Reply With Quote
Old 02-14-2025, 04:33 PM   #82
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I can't think of the word. Like a message but not. In the L&F > Tag Browser > Icons to mark the invalid lookups.

I had a minor stroke at the end of last year and have a touch of aphasia.

Last edited by ownedbycats; 02-14-2025 at 04:38 PM.
ownedbycats is online now   Reply With Quote
Old 02-14-2025, 04:42 PM   #83
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: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I can't think of the word, but a message or something. In the L&F > Tag Browser > Icons. To mark the invalid lookups.
In L&F / Tag browser / Icon rules, missing icon files are already marked with like this:
Click image for larger version

Name:	Clipboard02.jpg
Views:	74
Size:	12.6 KB
ID:	213670

As you can see, the tool tip also says the icon file doesn't exist.

If the icon file does exist then the icon from that file is shown.

I thought you might be asking for a default icon in the tag browser for icon files that don't exist.
chaley is offline   Reply With Quote
Old 02-14-2025, 07:33 PM   #84
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Ah. Yes, good.
ownedbycats is online now   Reply With Quote
Old 03-08-2025, 01:07 PM   #85
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: When multiple categories share one icon (E.g. in #fanficcat, display a game controller for all games without an individual icon), what's the best way to do this?

For column icons, I was using a regex (foo|bar|xyz), but I find that's hard to maintain.
ownedbycats is online now   Reply With Quote
Old 03-08-2025, 06:15 PM   #86
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: 12,269
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question: When multiple categories share one icon (E.g. in #fanficcat, display a game controller for all games without an individual icon), what's the best way to do this?

For column icons, I was using a regex (foo|bar|xyz), but I find that's hard to maintain.
I can think of three ways to do this:
  • Assign the icon to each category (and children if needed), not worrying about the duplication of icons on the hard disk. This is the most direct method. It suffers from not being able to change the icon for all usages in one operation. Its advantage is you can quickly fix seeing the wrong icon for a category directly in the tag browser.
  • Write a template that checks the item_value and picks the icon. This is probably very similar to what you are doing with column icons. You could use a switch-if checking single values instead of a regexp.
  • Write a template that picks an icon for a category. Override the template by directly assigning other icons to categories. It isn't obvious that this would be better than either of the above.
Personally, I would use the first method, assuming I'm not frequently changing the actual stored icon that goes with a category and categories don't come and go frequently.

Last edited by chaley; 03-09-2025 at 09:37 AM. Reason: Clarity
chaley is offline   Reply With Quote
Old 03-09-2025, 07:32 AM   #87
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: 10,330
Karma: 73404781
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thank you.
ownedbycats is online now   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
Can I disable Icons in Tag Browser? mikhail_fil Library Management 1 08-10-2023 06:34 PM
Lighter icons in tag browser? polymerwitch Calibre 3 11-29-2021 06:21 PM
Category Ranges in Tag Browser BetterRed Library Management 7 10-18-2020 04:44 AM
Any way to unhide just one user category in the tag browser? ownedbycats Library Management 2 10-14-2020 09:10 PM
Show Category in Tag Browser MerlinMama Calibre 4 02-01-2016 11:11 AM


All times are GMT -4. The time now is 08:55 PM.


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