![]() |
#8011 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#8012 |
Enthusiast
![]() ![]() Posts: 25
Karma: 140
Join Date: Jul 2022
Device: none
|
It works! Thank you!
Now onto making the metadata editing a bit more efficient in my bib ![]() |
![]() |
![]() |
![]() |
#8013 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
Quote:
Code:
program: getWordCount = field('#ao3_words'); wordCount = re(getWordCount, '[,]', ''); first_non_empty( cmp(wordCount, 5001, '0 - 5000', '', ''), cmp(wordCount, 10001, '5001 - 10000', '', ''), cmp(wordCount, 20001, '10001 - 20000', '', ''), cmp(wordCount, 40001, '20001 - 40000', '', ''), cmp(wordCount, 80001, '40001 - 80000', '', ''), '80000+' ); |
|
![]() |
![]() |
![]() |
#8014 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Where 'metadata' is a placeholder for an actual entry, is there any functional difference between:
Code:
include_metadata_pre: metadata=~^(foo|bar)$ Code:
include_metadata_pre: metadata=~^foo$ metadata=~^bar$ |
![]() |
![]() |
![]() |
#8015 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
In include/exclude lines, I don't think so.
I'd try ==foo instead of =~^foo$ -- assuming foo is a simple string and not a pattern. |
![]() |
![]() |
![]() |
#8016 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
|
I have an atypical question: So, I wrote myself a site adapter for a personal blog-thingy (so sorry, can't share this one), and it works just fine with CLI version, once I dropped it in proper folder. However, i would like to use it with Calibre. It doesn't seem to work from CLI folder (maybe because I installed CLI version separately with pip. I'm a noob, I do 70% things wrong). What is the default path for FFF adapters for Calibre plugin? Is there even one? Is there any way to use a custom adapter with Calibre plugin? I only found a .zip file in what I believe to be calibre install folder, but there are no adapters inside it. Not gonna lie, it's quite possible I simply messed something up, since I'm on linux currently, but I have extremely minimal knowledge how to use it, and in general I'm way over my head with what I'm trying to do.
![]() |
![]() |
![]() |
![]() |
#8017 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Assuming Windows, check
C:\Users\[YourUser]\AppData\Roaming\Calibre\plugins\FanFicFare.zip\fa nficfare\adapters I don't know if you need to modify other files |
![]() |
![]() |
![]() |
#8018 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
[archiveofourown.org] chapterslashtotal_label:Chapters add_to_titlepage_entries:,chapterslashtotal Less a priority, but is it possible to display it for only "5/10" and not "5/?" or "5/5"? EDIT: Copy category? Need to figure out the regex. Last edited by ownedbycats; 02-07-2023 at 07:59 PM. |
![]() |
![]() |
![]() |
#8019 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I managed to work this out. x/x and x/? fics get just the first number; x/y fics get both.
![]() Code:
[defaults] # 'add_to_' concats on to existing param, thus the leading comma add_to_extra_valid_entries:,oneshot,tagscategory,covertype,ao3chaps [archiveofourown.org] ## Chapter formatting include_in_ao3chaps:chapterslashtotal ao3chaps_label:Chapters titlepage_entries: seriesHTML,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,ao3chaps,numWords,publisher,description add_to_replace_metadata: ao3chaps=>^(\d+)/\1$=>\g<1> ao3chaps=>^(\d+)/\?$=>\g<1> |
![]() |
![]() |
![]() |
#8020 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
You can find the dir with the plugin zips from Calibre Preferences > Misc > Open calibre config dir. Dir named 'plugins'. Quote:
![]() Suppressing or removing "/\?" should be easy enough, just remember to escape the '?'. The key to 5/5, 6/6, etc is regexp back references. No idea what you mean by copying category. What's that have to do with chapters? |
||
![]() |
![]() |
![]() |
#8021 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
"Copy category" is my general term for copying metadata entry to a custom one.
![]() |
![]() |
![]() |
![]() |
#8022 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
|
|
![]() |
![]() |
![]() |
#8023 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks.
![]() |
![]() |
![]() |
![]() |
#8024 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,993
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I added a slightly modified version (editing chapterslashtotal directly rather than copying it to a custom entry) to this page.
![]() |
![]() |
![]() |
![]() |
#8025 | |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Jan 2021
Device: Kindle Paperwhite 4
|
Quote:
EDIT: Here's a screenshot of my FanFicFare.zip file content, so that it's easier to understand what I mean, because I don't believe I explain myself well. I uploaded the screenshot to GoogleDrive, because it was easiest. EDIT2: NVM, PROBLEM SOLVED. Apparently it does pull adapters from same folder as CLI. Adn apparently it works just fine right now, without me changing anything. Why it didn't work yesterday? No idea! I've changed nothing. Maybe turning the PC on/off did the trick, how should I know. Still, thanks for help. ![]() Last edited by Ascello; 02-08-2023 at 01:40 PM. Reason: Problem self-solved by mysterious ways of computers |
|
![]() |
![]() |
![]() |
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 |