Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-03-2020, 04:26 PM   #1
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,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Why are tristate booleans a Calibre-wide setting?

I find it a bit strange that Calibre has a lot of options for custom columns, except for whether a column is bistate or tristate. You can't have both of them in different columns in the same library. I suspect it's due to technical limitations rather than a design choice (considering the workaround of "show checkmarks" to make a psuedobool), but why is this?
ownedbycats is offline   Reply With Quote
Old 11-03-2020, 05:28 PM   #2
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,586
Karma: 14328510
Join Date: Nov 2019
Device: none
I'm not sure what you mean by bistate or tristate. I'm only using the Yes/No type which are all tristate and I have 3 columns using them.
hobnail is offline   Reply With Quote
Advert
Old 11-03-2020, 05:40 PM   #3
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,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
My thought was either your mental model a) is that yes/no is exactly that (bistate), or b) that "I don't know" is an acceptable answer (tristate). Under this point of view it makes no sense to offer both at the same time. It was not intended as a shortcut for avoiding thinking about the problem.

If I had it to do again I would not offer bistate, instead using default values to map "I don't know" to "No".
chaley is offline   Reply With Quote
Old 11-03-2020, 06:12 PM   #4
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,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by hobnail View Post
I'm not sure what you mean by bistate or tristate. I'm only using the Yes/No type which are all tristate and I have 3 columns using them.
Click image for larger version

Name:	2020-11-03 19_11_22-calibre - Preferences - Behavior.png
Views:	125
Size:	41.9 KB
ID:	183202

I just found it interesting that this isn't a column-specific setting.
ownedbycats is offline   Reply With Quote
Old 11-03-2020, 06:21 PM   #5
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,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I think the reason I switched to bistate is because I ran into an issue with a plugin (Reading List, I think?) where it attempting to set #bool:false or #bool:no instead cleared the value.

Last edited by ownedbycats; 11-03-2020 at 06:34 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 11-03-2020, 07:03 PM   #6
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,586
Karma: 14328510
Join Date: Nov 2019
Device: none
I never noticed that setting. I'm guessing it's app-wide simplifies things otherwise making it per column would mean having two different types of yes/no choices in the column builder.

My memory from my programming days is that in databases the empty or Null choice was considered a design misfeature because it tended to introduce hard to find programming errors, or maybe it was that queries were more difficult to get right. Although in databases the null value could be used in any type, not just true/false yes/no, but regardless was a bad "code smell".
hobnail is offline   Reply With Quote
Old 11-03-2020, 07:15 PM   #7
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,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I know an earlier version of Calibre had a glitch with column icons/emblems showing up improperly with bistate bools because it was still flagged as 'undefined' in the database.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 crutledge Kindle Books 0 06-21-2014 09:31 AM
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 crutledge ePub Books 0 06-21-2014 09:29 AM
Other Fiction Warner, Susan: The Wide, Wide World. v1. 21 Jun 2014 crutledge BBeB/LRF Books 0 06-21-2014 09:27 AM
Memento users? question about booleans khrome Android Devices 2 07-22-2012 06:50 PM
Setting Calibre on my PC mmread Ectaco jetBook 1 12-01-2010 11:29 AM


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


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