![]() |
#7576 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Quote:
Code:
add_to_replace_metadata: au=~Alternate Canon|Deviates From Canon|Alternate Universe \- Canon Divergence|[Ff]ix-[Ii]t=>alternate canon&&category=~Harry Potter|Cursed Child au=~[Mm]odern [Ee]ra=>modern tw=~Minor Character Death=>death tw=~Major Character Death=>mcd Code:
include_in_tags:au Code:
include_subject_tags: This clears the include_subject_tags setting, telling FFF not to set anything in Calibre's Tags field. (Unless you also have extra_subject_tags set--which is 3/4 deprecated.) |
||
![]() |
![]() |
![]() |
#7577 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: When I created my longtext metadata column a long time ago, I made it HTML longtext, which I recently found out was not good practice.
I created a second longtext column, this one plain-text. What would be the best method of changing all them over though? Even without ffnet-specific problems, re-downloading metadata on every fic would be annoying. And search & replace also copies over the HTML tags. Last edited by ownedbycats; 10-01-2022 at 10:56 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#7578 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Just change the existing column.
Backup first, of course, but I tried and that worked fine for me--assuming you haven't manually changed any. But those would be broken either way. |
![]() |
![]() |
![]() |
#7579 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Oh, I didn't realize it was possible to change the longtext column type after the fact.
![]() ![]() |
![]() |
![]() |
![]() |
#7580 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Sep 2021
Device: Apple Books, Kindle
|
Quote:
![]() Code:
[www.archiveofourown.org] custom_columns_settings: bookmarkrec=>#rec kudos=>#kudos add_to_extra_valid_entries:,au,tw include_in_genre: freeformtags,genre,status include_in_au:genre,freeformtags include_in_tw:genre,freeformtags replace_metadata: ships=>Draco Malfoy/Hermione Granger=>dramione fandoms=>Harry Potter \- J\. K\. Rowling=>Harry Potter fandoms=>Harry Potter and the Cursed Child \- Thorne & Rowling=>Cursed Child au=>.*[Mm]odern [Ee]ra.*=>modern\,au au=>.*Alternate Canon.*|Deviates From Canon|Alternate Universe \- Canon Divergence|.*[Ff]ix-[Ii]t.*=>alternate canon&&fandom=~.*Harry Potter.*|.*Cursed Child.* tw=>Minor Character Death=>death tw=>Major Character Death=>mcd include_metadata_post: au==alternate canon au==modern tw==death tw==mcd add_to_custom_columns_settings: tw=>#tw include_subject_tags:au add_to_include_subject_tags:,au include_in_category:fandoms include_in_freefromtags:freeformtags include_in_notes: bookmarksummary |
|
![]() |
![]() |
Advert | |
|
![]() |
#7581 | |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
Quote:
The "interpret this column as" option appears to tell calibre how to show you the column data (the data itself is not changed). If you choose HTML, when you look at the data, you see it as if you were looking at a web page (with all that formatting in use). If you choose "Text" it is interpreted as or shown as Text (which would be like viewing the source code of a web page, so you'd see all the tags and whatnot). I like to sometimes look at Saved Metadata at the bottom of Book Details as a way of comparing what I have in my own columns to what data is available in Saved Metadata. So having it interpreted as HTML means I can easily read it there; whereas if it is interpreted as Text, it shows up as code (which I'm geeky enough to understand, but reading HTML code as code is not nearly as nice to look at or easy to read). The problem comes if you edit Saved Metadata while you have it interpreted as HTML. If you have it visible on the Edit Metadata screen and edit it while it is interpreted as HTML, the code will get messed up and your Saved Metadata won't be useful anymore. It's because of how the HTML editor works, I guess, changing the code beneath what is visible on your screen. Whereas if you have it interpreted as and visible as text (code) in Edit Metadata, you probably could edit it safely. (Though it seems like a bad idea to edit it at all.) In that epic calibre/FanFicFare guide I'm working on, I explain this (better, I hope, with screenshots to give examples). I also instruct folks to go to calibre Preferences / Look & feel / Edit Metadata and remove all the FanFicFare special columns (Saved Metadata, Errors, FFF Updated) from their Edit Metadata page, that way they won't mistakenly edit them (or be tempted to edit them). (It's always easy enough to return them if you need to get to them, but it's safest to not have them there.) If I understand things correctly, if you don't touch Saved Metadata (on purpose or by accident), it should be safe to have it interpreted as HTML. If you ever decide you need to edit it for some reason, it's easy enough to change the column settings to "interpret this column as" to Text before you do anything. (I wound up fetching data out of an older calibre Library where I'd named my Saved Metadata something different than I did in my current one. I ended up using bulk search & replace to move Saved Metadata from one column to another for some works and then I made darn sure both the columns involved were interpreted as text before I tackled it.) I think I have this right (please correct me if I'm wrong). |
|
![]() |
![]() |
![]() |
#7582 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
It looks like you understand correctly to me.
FYI, even if you disable columns in Edit Metadata under Preferences / Look & feel / Edit Metadata, you can still edit those columns from the library book list just by double clicking when the columns are shown. So it's definitely 'hiding', not 'protecting'. I still recommend leaving the Saved Meta column interpreted as Text to be a little bit safer. Calibre changing the HTML in long texts automagically came along after the FFF Saved Metadata Column feature. I would not have used an HTML format when the feature was implemented if I had known that was coming. |
![]() |
![]() |
![]() |
#7583 | ||
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
Hooray! (And thank you letting me know.)
Quote:
Quote:
I do mention your recommendation in the guide and explain, so hopefully I won't steer anyone too far afield. I strongly urge that people leave that data alone, but I also find it useful to have folks look at Saved Metadata (in Book Details) so they can see what data FanFicFare is actually pulling down and then decide which bits they might want in their own columns. I suppose once I get my library settings the way I want, I don't necessarily need to look at Saved Metadata myself very often, it's just when I'm messing around with replace_metadata and so on that i find it helpful. I've been using "HTML" for my long text columns where I write up my own comments on works, but I think I'm going to switch to plain text or text with Markdown because the HTML editor window in Edit Metadata seems to always throw empty paragraph HTML between my paragraphs, which puts a whole lot of extra space between paragraphs and looks awful when viewed in Book Details. (Or maybe if I stick with HTML I should just write my comments in the "HTML Source" tab rather than "Normal view" since I'm used to typing things in HTML anyway and then presumably I wouldn't be surprised when calibre tries to help by throwing in extra paragraph HTML.) |
||
![]() |
![]() |
![]() |
#7584 |
Member
![]() Posts: 16
Karma: 10
Join Date: Feb 2010
Device: none
|
What setting would I use to stop FFF from populating the tag column with any values (for all sites). I only want to set tags manually and never pre-populate them. Based on the options it seems like I can only choose to set tags on new books, or if I uncheck that option it will add tags on every update as well. There doesn't seem to be any sort of global disable that I could find.
If there is no global disable, can someone help me disable tags from populating from Ao3? I'm confused by the ini settings and am not sure what to add or remove to stop this field from populating. |
![]() |
![]() |
![]() |
#7585 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Set both include_subject_tags and extra_subject_tags to be empty. Doing so under the [overrides] section will force it to apply to all sites:
Code:
[overrides] include_subject_tags: extra_subject_tags: |
![]() |
![]() |
![]() |
#7586 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,981
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Silly question:
Is it possible to put a generate_cover_settings under the [website] sections to switch to AO3_smalltext/FFNet_smalltext if the title is above xx characters? Last edited by ownedbycats; 10-09-2022 at 01:57 AM. |
![]() |
![]() |
![]() |
#7587 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Overriding [defaults] generate_cover_settings will rely on using add_to_ appropriately--using generate_cover_settings under the [site] sections and add_to_generate_cover_settings under [defaults] so the [site] versions have higher precedence. |
|
![]() |
![]() |
![]() |
#7588 |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
I'm working on a section of my guide to FanFicFare about replace_metadata (and include/exclude metadata) and I'm wondering if there is a list of available metakeys somewhere. Some of them are obvious, of course; I think the list of available title page entries plus extra_valid_entries for specific archives (like AO3) covers a lot of ground. But I know ships_CHARS is one of them not really covered there and I was wondering if there were any others I can't intuit from what is in plugin-defaults.
I could put together my own list and see if there's anything I'm missing, but wanted to check if there's already a list someplace. (I didn't find one when I searched this thread, but sometimes my searches seem to miss things.) |
![]() |
![]() |
![]() |
#7589 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
In addition to entries in extra_valid_entries from defaults.ini or personal.ini, there are two lists in the code of all the valid standard metadata entries in the code:
Lists: https://github.com/JimmXinu/FanFicFa...urable.py#L143 Scalars: https://github.com/JimmXinu/FanFicFa...urable.py#L306 (As a general rule, extra_valid_entries will be list types.) But I will save you the trouble and list them here: Code:
author authorHTML* authorId* authorUrl* category characters cover_image* dateCreated+ datePublished+ dateUpdated+ description extratags formatext* formatname* genre langcode* language* lastupdate numChapters* numWords output_css* publisher rating sectionUrl series seriesHTML* seriesUrl* ships site* siteabbrev* status storyId* storyUrl* title titleHTML* version* warnings words_added* # logpage only. + Entry contains a date, use _format settings to customize, eg: dateUpdated_format. Honestly, I would probably just leave out the * and + marked entries from the list for replace_metadata. If somebody really wants to customize one of those, they should make a copy entry and customize it instead. x_LIST (where x is any list type metadata entry) and ships_CHARS are special cases that allow replace_metadata and in/exclude_metadata_pre/post to be used even though that aren't technically metadata entries. I don't remember any other special cases. |
![]() |
![]() |
![]() |
#7590 | |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
This is really useful info, thanks!
Quote:
Though I just realized that I have a line in my personal ini right now under replace metadata to change site "archiveofourown.org" to "Archive of Our Own" thinking it looks nicer under Publisher in my calibre library. I did similar things with ksarchive and other sites, come to think of it. I take it this is a bad idea? (Hmmm, if I could leave the site data alone and just change it under Publisher, that would make sense. Would I need to make a copy of the site data in a new custom column and then send that to the Publisher column?) Edited to say: Oh, I could just change publisher instead of site and all would be well, I bet. |
|
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
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 |