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 06-18-2020, 11:07 AM   #4201
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,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.
JimmXinu is offline   Reply With Quote
Old 06-18-2020, 12:52 PM   #4202
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by JimmXinu View Post
There is already a mechanism for showing custom columns in the title page.

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
MerlinMama is offline   Reply With Quote
Advert
Old 06-18-2020, 01:18 PM   #4203
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,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
JimmXinu is offline   Reply With Quote
Old 06-18-2020, 02:53 PM   #4204
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Works great! Thanks so much
MerlinMama is offline   Reply With Quote
Old 06-18-2020, 09:31 PM   #4205
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is offline   Reply With Quote
Advert
Old 06-18-2020, 09:41 PM   #4206
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
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.
No. FFF does have a few features that change the story text, but I don't recall any to do with dashes.

I suspect if you look at the original source, those differences are likely from the author.
JimmXinu is offline   Reply With Quote
Old 06-19-2020, 01:12 PM   #4207
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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
(replace_metadata is easier, but also affects custom category columns and the title pages).

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.
ownedbycats is offline   Reply With Quote
Old 06-19-2020, 02:42 PM   #4208
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,027
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
Nothing in FFF comes to mind. You could use plugin Quality Check's Search ePubs feature to search for FanFicFare in OPF manifest to mark the ones that are from FFF. Might need to section off in a VL or separate library to make that convenient.
Further update on this:

Quality Check > Check ePub Structure > Check not Calibre conversion did the job.
ownedbycats is offline   Reply With Quote
Old 06-19-2020, 02:52 PM   #4209
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Thanks.

Question: I have this:
...
(replace_metadata is easier, but also affects custom category columns and the title pages).

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?
You have extratags instead of category in the add_to_replace_metadata and appear to be missing the necessary leading space.
Code:
include_subject_tags: category
add_to_replace_metadata:
 category=>^(.*)$=>Fanfiction.\1
JimmXinu is offline   Reply With Quote
Old 06-19-2020, 03:01 PM   #4210
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is offline   Reply With Quote
Old 06-19-2020, 03:12 PM   #4211
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Hmm, I used that and still got "Category" instead of "Fanfiction.Category" for the tag. Weird because that regex worked for the replace_metadata.
I copy / pasted in the code above and it worked for me.
JimmXinu is offline   Reply With Quote
Old 06-19-2020, 03:14 PM   #4212
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is offline   Reply With Quote
Old 06-19-2020, 09:55 PM   #4213
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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. Still not sure what I'm doing wrong.

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.
ownedbycats is offline   Reply With Quote
Old 06-19-2020, 10:20 PM   #4214
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Ok, so I was able to further test that regex, and it also changed the category custom column to Fanfiction.Category. Still not sure what I'm doing wrong.
Well, yes. That's what you told it to do--you changed category.

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
JimmXinu is offline   Reply With Quote
Old 06-19-2020, 11:58 PM   #4215
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats 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 02:43 AM.


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