![]() |
#4201 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Actually, there isn't anything in FFF to show empty metadata entries in the title page. I'll look into how difficult that would be to add.
The biggest question would be how to control it. One setting for 'show all titlepage_entries'? Some sites (looking at you, AO3) have a lot of extra entries. Or a list setting of 'show these titlepage_entries even when empty', (which would largely be a copy of titlepage_entries)? Or a modifier to put on items in the existing titlepage_entries like .NOREPL or .LIST used elsewhere? There is already a mechanism for showing custom columns in the title page. If you look at FFF config personal.ini tab, the bottom couple options are whether to pass Calibre columns into FFF on update, and a bottom that will open a box to show you what they all are. Then you can add those metadata entry names to the title page in personal.ini. For example, I have a Calibre custom column #extranotes and in personal.ini I have: add_to_titlepage_entries:,calibre_cust_extranotes Note that all of those calibre column values will always been from before the update and will all be empty on initial download. |
![]() |
![]() |
![]() |
#4202 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Quote:
It is mainly for these that I would like to have the label even if nothing to populate it with. I had thought the easiest way was a check box in the standard column and custom column tabs in config, just like the new only. Of course, I have no idea how easy/difficult that would be to program |
|
![]() |
![]() |
Advert | |
|
![]() |
#4203 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-06-18 - Add .SHOW_EMPTY feature for titlepage_entries. Example: Code:
## Items to include in the title page ## Empty metadata entries will *not* appear, unless .SHOW_EMPTY is ## appended. Eg: titlepage_entries: ..., characters.SHOW_EMPTY, ## ships,... will always display Characters, but only show ## Relationships if there are any. You can include extra text or HTML ## that will be included as-is in the title page. Eg: ## titlepage_entries: ...,<br />,summary,<br />,... ## All current formats already include title and author. titlepage_entries: seriesHTML.SHOW_EMPTY,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,numChapters,numWords,publisher,description |
![]() |
![]() |
![]() |
#4204 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Works great! Thanks so much
![]() |
![]() |
![]() |
![]() |
#4205 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Is there anything in FFF's code about converting em-dashes? It seems to be a bit inconsistent on whether they remain em-dashes or get converted into double-dashes.
|
![]() |
![]() |
Advert | |
|
![]() |
#4206 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I suspect if you look at the original source, those differences are likely from the author. |
|
![]() |
![]() |
![]() |
#4207 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks.
Question: I have this: Code:
include_subject_tags: category add_to_replace_metadata: extratags=>^(.*)$=>Fanfiction.\1 Since I have downloading of other tags disabled, I thought that this would take the category, turn it to a tag, and then turn it into Fanfiction.Category. Did I go about this the wrong way? Last edited by ownedbycats; 06-19-2020 at 02:08 PM. |
![]() |
![]() |
![]() |
#4208 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Quality Check > Check ePub Structure > Check not Calibre conversion did the job. ![]() |
|
![]() |
![]() |
![]() |
#4209 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
include_subject_tags: category add_to_replace_metadata: category=>^(.*)$=>Fanfiction.\1 |
|
![]() |
![]() |
![]() |
#4210 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Hmm, I used that and still got "Category" instead of "Fanfiction.Category" for the tag. Weird because that regex worked for the replace_metadata.
|
![]() |
![]() |
![]() |
#4211 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
![]() |
#4212 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I figured out the problem. I had another add_to_replace_metadata further down the ini file and it only applied the second one.
|
![]() |
![]() |
![]() |
#4213 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ok, so I was able to further test that regex, and it also changed the category custom column to Fanfiction.Category.
![]() I was hoping to keep the Category custom column as just "Category" but have the tag as "Fanfiction.Category." Here's what my ini file looks like, in case there's something else messing it up. Code:
[defaults] ## [defaults] section applies to all formats and sites but may be ## overridden at several levels. Example: custom_columns_settings: "N"=>#read include_subject_tags: category replace_metadata: site=>www.fanfiction.net=>FanFiction.net site=>archiveofourown.org=>Archive of Our Own author=>\(orphan_account\)=> author=>^orphan_account$=>Unknown category=>\(Video Game\)=> category=> /Mass Effect/=>Mass Effect Trilogy category=>/Mass Effect - All Media Types/=>Mass Effect Trilogy category=>Sims=>The Sims add_to_replace_metadata: category=>^(.*)$=>Fanfiction.\1 oneshot=>Completed=>Oneshot&&numChapters=>^1$ # 'add_to_' concats on to existing param, thus the leading comma add_to_extra_valid_entries:,oneshot # oneshot is a copy of status because status itself isn't a list. include_in_oneshot:status add_to_custom_columns_settings: oneshot=>#fanficstatus generate_cover_settings: ${site}=>^FanFiction.net$=>FFNet ${site}=>^Archive of Our Own$=> AO3 Last edited by ownedbycats; 06-19-2020 at 09:57 PM. |
![]() |
![]() |
![]() |
#4214 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
If you want category in one place and Fanfiction.category in another, you need to make a copy in a new metadata entry and operate on that. Unless you're doing something subtle with deliberately making changes in individual [site] sections, including both add_to_ and regular versions of a setting in the same section is likely to just cause confusion. There's a wiki page about ini settings. extra_valid_entries is probably the only setting here that truly needs add_to_, due to many sites already having extra_valid_entries in defaults.ini. Whether the others do or not depends on your settings in other sections. Tidied a little and tagscategory added: Code:
[defaults] ## [defaults] section applies to all formats and sites but may be ## overridden at several levels. Example: custom_columns_settings: "N"=>#read oneshot=>#fanficstatus replace_metadata: site=>www.fanfiction.net=>FanFiction.net site=>archiveofourown.org=>Archive of Our Own author=>\(orphan_account\)=> author=>^orphan_account$=>Unknown category=>\(Video Game\)=> category=> /Mass Effect/=>Mass Effect Trilogy category=>/Mass Effect - All Media Types/=>Mass Effect Trilogy category=>Sims=>The Sims oneshot=>Completed=>Oneshot&&numChapters=>^1$ tagscategory=>^(.*)$=>Fanfiction.\1 # 'add_to_' concats on to existing param, thus the leading comma add_to_extra_valid_entries:,oneshot, tagscategory # oneshot is a copy of status because status itself isn't a list. include_in_oneshot:status # tagscategory is a copy category for Fanfiction.category in tags include_in_tagscategory:category include_subject_tags: tagscategory generate_cover_settings: ${site}=>^FanFiction.net$=>FFNet ${site}=>^Archive of Our Own$=> AO3 |
|
![]() |
![]() |
![]() |
#4215 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks!
Sorry if I'm a little dense sometimes. ![]() |
![]() |
![]() |
![]() |
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 |