![]() |
#7456 | |||||
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2022
Device: none
|
Quote:
Like, this works fine: Code:
custom_columns_settings: ao3categories=>#ao3_category Code:
custom_columns_settings: status=>#completecol Quote:
Quote:
Question, does all this stuff get saved along with the other normal story metadata? Quote:
How would this stop ordering entries in the list? And how does AO3 tagging being a mess affect it? I wasn't talking about using the "canonical" tag names for the links (that would be quite a mess), just pulling them right out of the page. Or even just using the solution you gave me for underlining to wrap the link around it. Quote:
|
|||||
![]() |
![]() |
![]() |
#7457 | |||||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
So you need to replace Competed and In-Progress to t/f or y/n etc if you want to use a yes/no column. I'd recommend making another extra entry, copy status, etc again before changing it. Quote:
Quote:
The make_linkhtml_entries feature is a bit of a kludge. It relies on the newentry and newentryUrl lists having corresponding values. Therefore, newentry has to be kept in original order or else the newentryUrl entries won't line up correctly. Mostly because it makes me leery of anything and everything to do with it. ![]() AO3 has 4 different sets of tags which FFF users expect to be separate and stories routinely have dozens or even hundreds of tags. And most users want at least chars & ships sorted. Quote:
https://www.mobileread.com/forums/sh...01#post3842401 https://www.mobileread.com/forums/sh...postcount=3407 https://www.mobileread.com/forums/sh...postcount=3425 The final conclusion was: Quote:
|
|||||
![]() |
![]() |
Advert | |
|
![]() |
#7458 | |||
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2022
Device: none
|
Quote:
Quote:
Quote:
I can't help but wonder if I could implement this myself. Call whatever part writes the titlepage normally (and consults the ini files and all) but feed it metadata from the saved column, and then replace the titlepage already in the epub. I wouldn't try getting manually filled columns to work, only the ones that can be done automatically. If you don't mind saying, what parts of the code would be relevant/useful for this (writeTitlePage and CALIBREONLYSAVECOL look like good leads), and what are the most likely roadblocks? |
|||
![]() |
![]() |
![]() |
#7459 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
If you are of a mind to write code, it might be worthwhile to consider either making a general purpose plugin for creating and injecting a metadata jacket (aka title page) from the existing Calibre data, or improving the existing metadata jacket feature in Calibre. |
|
![]() |
![]() |
![]() |
#7460 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2022
Device: none
|
I got around to trying the conditional regex stuff with the help of regex101.com, but it's giving me weird results.
Spoiler:
This is giving me outputs like this on the titlepage: Code:
Published: 2021-05-23Published: | Updated: 2021-05-23Completed: | Chapters: 1/1Chapters: | Words: 2,781Words: Well, maybe it would be easy if I knew my way around the codebase/where things happened, or had looked at python code more recently than 5 years ago ![]() Quote:
In any case though, I doubt my attempt will be especially neat or clean. |
|
![]() |
![]() |
Advert | |
|
![]() |
#7461 |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
Due to circumstances involving a dead laptop, I'd not used Calibre & FanFicFare in a few years. A few months back, I got back into using it but was doing so on a Chromebook (& couldn't get my personal.ini file to save after editing it) (yes I did check file permissions in various places). (It was an interesting exercise doing things without being able to edit personal.ini, just going with default settings.)
But now I'm able to fully use the latest Calibre & FanFicFare (on a Mac Mini) and have set to work setting up a whole new archive. I've forgotten many things! So as I go, I've been documenting what I do in great detail so I can refer to it myself (because my memory is poor) and possibly share it with others. As it stands, my guide to FanFicFare and Calibre is at 150+ pages in Google docs. It's getting out of hand and there's so much stuff I haven't covered yet. To be fair, I'm wordy and I'm including screenshots of basically everything. I have a question that's probably incredibly simple to answer and basic stuff, I'm feeling a bit bad about possibly getting this wrong. And I'm too tired (after hours of working on the guide this morning) to search too much for answers. I wrote a detailed section of the guide to cover setting up custom columns in personal.ini, only to realize recently that in my instructions I always have folks use (and have screenshots of me using) "add_to_custom_column_settings" when I should probably be using "custom_column_settings" instead. So far my guide is heavily aimed at folks using AO3 (since that's the site I use the most) and most of my instructions so far for custom columns are specifically for AO3 custom columns. So maybe using "add_to_custom_column_settings" makes sense for the archive specific custom column settings? It does seem to work, but I haven't done extensive testing. And I want to give folks advice on the best way to do things. (Is there any reason it would be better to use "custom_column_settings" than "add_to_custom_column_settings" for AO3 specific columns?) I'm assuming it makes more sense to use "custom_column_settings" in [defaults] (and perhaps the only way one should handle things in defaults). Fortunately I've only covered one column for defaults so far so I can easily redo that to say "custom_column_settings" instead of "add_to_custom_column_settings." Thanks in advance. |
![]() |
![]() |
![]() |
#7462 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
I hope you'll be willing to share your docs some day. I readily admit I'm not a good documentarian.
When to use add_to_X and when not to: As a general rule, use add_to_X when you want to add settings to more general sections and don't when you want to replace them. So when settings up custom columns for AO3 specific metadata, add_to_ makes perfect sense. I've attempted to document it's details here: https://github.com/JimmXinu/FanFicFa...add_to_keyword |
![]() |
![]() |
![]() |
#7463 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
![]() |
#7464 |
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2022
Device: none
|
It happens with every URL I've tried, but the one I used for the output I posted here was: https://archiveofourown.org/works/31387700
|
![]() |
![]() |
![]() |
#7465 | |||
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
Quote:
I'm already sharing the document with a small audience of folks, some already familiar with FanFicFare & Calibre, some not at all. Happy to share it with more as I go, though I want to get it cleaned up a bit more first. And figure out the best place to publish it. Anyone know of any other guides out there? Or useful blog posts? I know there have been some blog posts over the years that covered some things, but when I went looking recently I didn't find too much beyond Amalthia's posts on Dreamwidth/Livejournal from way back when (which were helpful then and are still helpful). I thought more people had shared personal.ini details in posts in the past but I couldn't find as much as I did when I last looked. It's possible they were online and have since vanished. Quote:
Quote:
On an unrelated topic: at this point it looks to me like there are potentially three different ways to get word counts (for most folks running Calibre with FanFicFare). Some archives (like AO3) offer counts you can download. And the Page Count plug-in can do word counts (and FanFicFare works with it). And now it sounds like Calibre can do word counts as well (perhaps it was always the case and I didn't notice until recently). "Calculate word count?" with options "Yes, unless found on site" and "No" and "Yes, always" is in the Basic tab of FanFicFare config in addition to having similar options in the Count Pages tab. (I think I have "Yes, unless found on site" set both in the Basic Tab and the Count Pages tab. Will that be a problem? Should I say "No" in the Basic tab if I want to use Count Pages to do word counts when word count isn't found on an archive site? I'm guessing it doesn't matter all that much, but it does make me curious which method would get priority or if the software might be off counting words twice or something.) Thanks so much. |
|||
![]() |
![]() |
![]() |
#7466 |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
I don't mean that word counts would be doubled, just that Calibre & Count Pages might be fighting about it. (Nah, not really. But would Calibre count words and then Count Pages count words as well overwriting what Calibre input?) (I am likely overthinking this.)
|
![]() |
![]() |
![]() |
#7467 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
When I later learned that CP calls internal Calibre code to do the word count, I borrowed that from CP to incorporate into FFF so it could be done as part of the FFF background task instead of launching a second background job, CP this time, to generate the same data. There's no point to doing both--I'd only use CP for word count if also use it for page counts or other statistics. |
|
![]() |
![]() |
![]() |
#7468 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
## Add labels to the copies add_to_replace_metadata: datePublishedCopy=>^(.*)$=>Published:\s\1 dateUpdatedCopy=>^(.*)$=>Completed:\s\1 numChaptersCopy,chapterslashtotalCopy=>^(.*)$=>Chapters:\s\1 numWordsCopy=>^(.*)$=>Words:\s\1 |
|
![]() |
![]() |
![]() |
#7469 | |
Geek of All Trades
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
|
Quote:
Thanks! |
|
![]() |
![]() |
![]() |
#7470 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Aug 2022
Device: none
|
Quote:
Code:
Published: 2021-11-23 | Completed: 2021-12-12 | Chapters: 4 Code: Spoiler:
I would have included an example of a URL having this problem (although really it's all of them from this site, both oneshots and series), but I believe I read somewhere that links to sites like literotica aren't allowed on the mobileread forum? |
|
![]() |
![]() |
![]() |
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 |