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 04-12-2019, 11:29 PM   #3331
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
I have been using the Saved Metadata column for my experimenting, but couldn't figure out where bookmarkprivate (or bookmarkrecs for that matter) are. I don't see either of them, even though I have always_login set to true.

Assuming that part gets worked out, I think I need a little more help in figuring out how to use custom_column_settings to achieve what I want to do with a boolean field, because I think I'm missing something from your explanation. Where do the yes/1/true values fit in to custom_column_settings? Would I just do something like this [assuming #my_bookmarks is my yes/no column for whether a story is bookmarked]:

Code:
custom_columns_settings:
 bookmarkprivate=>#my_bookmarks
...though actually what I really want is for the #my_bookmarks custom column to be set to true if bookmarkprivate is true *or* false, and to be set to false if bookmarkprivate is undefined.
jesscat is offline   Reply With Quote
Old 04-13-2019, 09:55 AM   #3332
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,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-04-13
- Fix for saved custom column metadata and boolean values.

Quote:
Originally Posted by jesscat View Post
I have been using the Saved Metadata column for my experimenting, but couldn't figure out where bookmarkprivate (or bookmarkrecs for that matter) are. I don't see either of them, even though I have always_login set to true.
They only appear in saved metadata if true for a story, so technically they never have a false value.

Quote:
Originally Posted by jesscat View Post
Assuming that part gets worked out, I think I need a little more help in figuring out how to use custom_column_settings to achieve what I want to do with a boolean field, because I think I'm missing something from your explanation. Where do the yes/1/true values fit in to custom_column_settings? Would I just do something like this [assuming #my_bookmarks is my yes/no column for whether a story is bookmarked]:

Code:
custom_columns_settings:
 bookmarkprivate=>#my_bookmarks
That should work, unless you have tri-state booleans on.

Quote:
Originally Posted by jesscat View Post
...though actually what I really want is for the #my_bookmarks custom column to be set to true if bookmarkprivate is true *or* false, and to be set to false if bookmarkprivate is undefined.
All you really get from bookmarkprivate is True or undefined. I'll consider if it could be changed to be true/false/undefined(no bookmark).
JimmXinu is offline   Reply With Quote
Advert
Old 04-13-2019, 03:29 PM   #3333
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Okay I misunderstood. What I want to do won’t work - since none of my bookmarks are private (or recs), bookmarkprivate will always be undefined for me on all stories, whether or not I have them bookmarked. Does AO3 provide a field indicating simply whether a story is bookmarked by the logged in user? Is there another way I’m missing to separate out my bookmarked stories from non-bookmarked ones (so I could create a custom column that would mark the bookmarked ones)?

Thanks!
jesscat is offline   Reply With Quote
Old 04-13-2019, 05:15 PM   #3334
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,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-04-13
- Fix for saved custom column metadata and boolean values.
- Add bookmarked site specific metadata for adapter_archiveofourownorg.

Quote:
Originally Posted by jesscat View Post
Okay I misunderstood. What I want to do won’t work - since none of my bookmarks are private (or recs), bookmarkprivate will always be undefined for me on all stories, whether or not I have them bookmarked. Does AO3 provide a field indicating simply whether a story is bookmarked by the logged in user? Is there another way I’m missing to separate out my bookmarked stories from non-bookmarked ones (so I could create a custom column that would mark the bookmarked ones)?
I'm not sure why the AO3 adapter was collecting 4 other pieces of bookmark metadata without a simple bookmarked entry. It may have been harder to tell at the time, or simply the user who wanted those didn't ask for it.

But bookmarked should now do what you want (after installing the test version, of course).
JimmXinu is offline   Reply With Quote
Old 04-13-2019, 05:54 PM   #3335
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
But bookmarked should now do what you want (after installing the test version, of course).
This works perfectly! Thank you!!!
jesscat is offline   Reply With Quote
Advert
Old 04-13-2019, 07:14 PM   #3336
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
So I have another question... I understand that the meta information + additional AO3 meta information gets dumped into the tags: fandom, ship, characters, ao3categories, freeformtags, etc.

Is there any way to specify an order for these meta items so they aren't all mixed together alphabetically in the tag list? So, say, fandom is listed first, then characters, then tags, then ao3categories? I don't care so much about the order within each item (like that the characters are kept in their original order), just overall - that, e.g., characters are listed before freeform tags. Since the columns aren't wide and there are only a few items visible, and AO3 often has a proliferation of ridiculous freeform tags, I'd like to always be able to scan the beginning of the tag list to see the important stuff, the way I can on the site.

I know I could create custom columns for each of these different metadata categories, but I don't know that I care enough to do that - keeping the list in order would be sufficient if it was possible. I'm thinking maybe it can't be done, that once they are all included in subject_tags the different categories can't be separated out within the tag list anymore, but I thought I'd ask!
jesscat is offline   Reply With Quote
Old 04-13-2019, 07:57 PM   #3337
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,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by jesscat View Post
... Is there any way to specify an order for these meta items so they aren't all mixed together alphabetically in the tag list? So, say, fandom is listed first, then characters, then tags, then ao3categories? ...
FFF has options for not alphabetizing its list type metadata entries. Eg, if you set keep_in_order_characters:true, it will not order characters.

But as I recall, Calibre always alphabetizes tags, so keep_in_order_* would only help with custom columns--and even then only non-tag type custom columns.

The only solution that comes to mind is to use replace_metadata to put a sort of label at the front of each item that will force the ordering you want:

Code:
replace_metadata:
 category=>^(.*)$=>0 \1
 characters=>^(.*)$=>1 \1
JimmXinu is offline   Reply With Quote
Old 04-13-2019, 09:08 PM   #3338
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by JimmXinu View Post
But as I recall, Calibre always alphabetizes tags, so keep_in_order_* would only help with custom columns--and even then only non-tag type custom columns.
That behavior has changed in later Calibre versions (dunno when exactly). It still shows tags alphabetized in the library and book details view. However, it does use original tag order for templates, edit metadata, etc.

I've found the new behavior pretty useful for determining main characters or ships.
ilovejedd is offline   Reply With Quote
Old 04-13-2019, 09:22 PM   #3339
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
I've found the new behavior pretty useful for determining main characters or ships.
If you don't mind my asking, how do you use it for this purpose (to determine main characters/ships)? That might be sufficient for me.
jesscat is offline   Reply With Quote
Old 04-13-2019, 09:52 PM   #3340
ilovejedd
hopeless n00b
ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.ilovejedd ought to be getting tired of karma fortunes by now.
 
ilovejedd's Avatar
 
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
Quote:
Originally Posted by jesscat View Post
If you don't mind my asking, how do you use it for this purpose (to determine main characters/ships)? That might be sufficient for me.
I have separate custom columns for ships, characters and other tags so in the first place, they're not just all jumbled together in the standard tags field.

First, I select books I need for metadata clean up. Then I go to bulk metadata edit and use a saved search that copies the first tag (or first few tags) to a custom column containing "normalized" values.

The method isn't 100% accurate (particularly with drabble collections) but it seems to work well enough for the most part.

Mind, even with the automation utilities available, AO3 tag wrangling still takes a lot of effort. I even use Excel+Job Spy for normalizing tags because with all the rules I have, my personal.ini would become unmanageable.
Attached Thumbnails
Click image for larger version

Name:	copy first tag.png
Views:	269
Size:	79.2 KB
ID:	170697   Click image for larger version

Name:	copy first 2 tags.png
Views:	236
Size:	80.7 KB
ID:	170698  
ilovejedd is offline   Reply With Quote
Old 04-13-2019, 10:12 PM   #3341
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
But bookmarked should now do what you want (after installing the test version, of course).
I think there's an issue. When I update metadata from saved metadata column, the "Bookmarked" field disappears completely from the saved metadata file. This happens to me for any story in my library, no matter the value of the bookmarked field, and regardless of whether the changes I'm making affect that field.
jesscat is offline   Reply With Quote
Old 04-13-2019, 10:28 PM   #3342
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,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2018-04-13
- Fix for saved custom column metadata and boolean values.
- Add bookmarked site specific metadata for adapter_archiveofourownorg.
- Fix for PI saved metadata not reading False & empty strings.

Quote:
Originally Posted by jesscat View Post
I think there's an issue. When I update metadata from saved metadata column, the "Bookmarked" field disappears completely from the saved metadata file. This happens to me for any story in my library, no matter the value of the bookmarked field, and regardless of whether the changes I'm making affect that field.
You are apparently the first person to try to use those settings that way, so you get the find the bugs. Congratulations!

Honestly tho, there are very few boolean metadata values in FFF. Most are strings, lists of strings, numbers or dates.
JimmXinu is offline   Reply With Quote
Old 04-13-2019, 10:48 PM   #3343
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Oh no problem! I don't mind debugging!

(Also, just to let you know, your dates for the latest test versions in the second post all have 2018 as the year....)

I have always liked using tristate boolean columns in Calibre. Getting them to work with FFF is stumping me a little, probably because of my own ignorance. For example: what I really want is for my "bookmarked" column to have a checkmark if the story is bookmarked but to be blank otherwise, *not* to have a red X. My basic custom column setting:

Code:
custom_columns_settings:
 bookmarked=>#my_bookmarks
doesn't accomplish this - "bookmarked" is set to "False" for non-bookmarked stories and so this ends up with a red X in the column for those stories.

Since my #my_bookmarks custom column is a tri-state column, I thought I could get what I wanted by adding this:

Code:
replace_metadata:
 bookmarked=>false=>empty
or

Code:
 bookmarked=>no=>empty
I also tried using "blank" instead of "empty," and even putting nothing there at all:

Code:
replace metadata:
 bookmarked=>false=>
None of these work. Any ideas why not?

It's really not that critical, I'd just like to understand better!
jesscat is offline   Reply With Quote
Old 04-13-2019, 11:00 PM   #3344
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,987
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I think you just need capital 'F' False.

Code:
replace_metadata:
 bookmarked=>False=>
By the time it hits replace_metadata the bool has been changed to a string and Python like False and True.
JimmXinu is offline   Reply With Quote
Old 04-13-2019, 11:05 PM   #3345
jesscat
Groupie
jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.jesscat has a complete set of Star Wars action figures.
 
Posts: 164
Karma: 354
Join Date: Mar 2009
Location: US
Device: iPad mini
Quote:
I think you just need capital 'F' False.
Nope, that doesn't work either - I had actually tried that!
jesscat is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 12:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 06:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 01:39 PM.


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