Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-05-2023, 07:12 AM   #91
wildfire070
Enthusiast
wildfire070 began at the beginning.
 
Posts: 49
Karma: 32
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma // Supernote
Thank you! I had another instance of exclude_metadata_pre but changing it to exclude_metadata_post worked.
wildfire070 is offline   Reply With Quote
Old 12-05-2023, 08:11 AM   #92
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by wildfire070 View Post
Thank you! I had another instance of exclude_metadata_pre but changing it to exclude_metadata_post worked.
The 2 instances of exclude_metadata_pre might have been the issue, did you try just putting the character exclusions on only one pre instance?
culytera is offline   Reply With Quote
Advert
Old 12-05-2023, 01:35 PM   #93
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: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by wildfire070 View Post
Thank you! I had another instance of exclude_metadata_pre but changing it to exclude_metadata_post worked.
https://github.com/JimmXinu/FanFicFare/wiki/INI-File

Quote:
Duplicated Sections
And here's what happens when you do add the same section more than once. (It's actually not hard to do if you're copying snippets into your personal.ini without stopping to look for a previously existing section.)

Python's INI parser is actually perfectly happy to have the same section duplicated. It will even work most of the time. The problem comes when the same keyword is in both duplicate sections; then the last section overrides the earlier ones.

Code:
[www.fanfiction.net]
# Works fine because not included in later section
check_next_chapter:true

# FAILS because replaced by replace_metadata in later section.  You can spend hours
# trying different things and they'll never work here.
replace_metadata:
 author=>Bobmin356=>Bobmin

<other sections>

[www.fanfiction.net]
# Overrides replace_metadata from earlier section.
replace_metadata:
 title=>WatLP: Chamber of Secrets=>Chamber of Secrets
ownedbycats is offline   Reply With Quote
Old 12-05-2023, 10:16 PM   #94
wildfire070
Enthusiast
wildfire070 began at the beginning.
 
Posts: 49
Karma: 32
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma // Supernote
You guys have been awesome! This is pretty new to me so I'm learning as I go.

For this part:

Code:
More selective chapterslashtotal [Archive of Our Own]
For Archive of Our Own, this will display '5/10' in its entirety, but only '5' for '5/5' or '5/?'. Replaces the default 'Chapters' on the titlepage.

[archiveofourown.org]
chapterslashtotal_label: Chapters
titlepage_entries: seriesHTML,category,genre,language,characters,ships,status,datePublished,dateUpdated,dateCreated,rating,warnings,chapterslashtotal,numWords,publisher,description
add_to_replace_metadata:
 chapterslashtotal=>^(\d+)/\1$=>\1
 chapterslashtotal=>/\?$=>
I want it to show 5/5 or 5/? instead of shortening it to just 5. How do I change that?
wildfire070 is offline   Reply With Quote
Old 12-05-2023, 11:31 PM   #95
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: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Just add chapterslashtotal to titlepage_entries without the replaces.
ownedbycats is offline   Reply With Quote
Advert
Old 12-16-2023, 11:02 AM   #96
shinykari
Member
shinykari doesn't littershinykari doesn't litter
 
Posts: 21
Karma: 128
Join Date: Jan 2020
Device: Kobo Libre2
Is there a regular expression or template I can use in the "Column Built from Other Columns" settings to add a prefix to each tag before it's ported over?

To explain further: I use a combined column to create custom collections on my Kobo that is made up of the fandom, pairing, and character columns. This worked well enough for a while, but now I have too many books and it's become a mess. I'd like to be able to prefix "Pairing:" etc before the tags get put into the custom column, but when I've tried before, it only adds it in front of the first tag, leaving the others alone. So instead of getting "Pairing: Bert/Ernie, Pairing: Big Bird/Oscar," it gives me "Pairing: Bert Ernie, Big/Bird Oscar". Then, in Kobo, there's a shelf called "Pairing: Bert/Ernie" and a shelf called "Big Bird/Oscar."

If this isn't possible to do automatically, is this something I can do in find/replace tags?
shinykari is offline   Reply With Quote
Old 12-17-2023, 12:38 AM   #97
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by shinykari View Post
Is there a regular expression or template I can use in the "Column Built from Other Columns" settings to add a prefix to each tag before it's ported over?

To explain further: I use a combined column to create custom collections on my Kobo that is made up of the fandom, pairing, and character columns. This worked well enough for a while, but now I have too many books and it's become a mess. I'd like to be able to prefix "Pairing:" etc before the tags get put into the custom column, but when I've tried before, it only adds it in front of the first tag, leaving the others alone. So instead of getting "Pairing: Bert/Ernie, Pairing: Big Bird/Oscar," it gives me "Pairing: Bert Ernie, Big/Bird Oscar". Then, in Kobo, there's a shelf called "Pairing: Bert/Ernie" and a shelf called "Big Bird/Oscar."

If this isn't possible to do automatically, is this something I can do in find/replace tags?
I don't know how to replace each entry on the column through Search and Replace, but you can add the prefix for each entry through Fanficfare.

Code:
add_to_extra_valid_entries:,prefixed_ships
include_in_prefixed_ships:ships

replace_metadata:
 prefixed_ships=>^(.*)=>Pairing: \1

add_to_custom_columns_settings:
 prefixed_ships=>#custom_column_for_your_ships
culytera is offline   Reply With Quote
Old 12-17-2023, 01:56 PM   #98
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: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
While not entirely 'metadata' management, what methods do people use to download fics that aren't on the various FFF-supported websites? Old static webpages mostly.

Ive been using EpubPress, but I'm not entirely happy with it.

Last edited by ownedbycats; 12-17-2023 at 02:42 PM.
ownedbycats is offline   Reply With Quote
Old 12-17-2023, 02:05 PM   #99
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
So far words_added hasn't worked for me. I'm stuck on Calibre 6.26, because my MacOS can't be updated, but my plug-in is up to dare. I have my log_page customization under [epub]. Should I have that part under AO3?

Here is the relevent part of my personal.ini:
Spoiler:

[epub]
]include_logpage: smart
logpage_at_end: true


logpage_start:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Update Log</title>
<link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
</head>
<html>
<body class="fff_logpage">
<h3>Update Log</h3>

# metadata
logpage_update_start:<p class="log_entry">
# ${id}, ${label}, ${value}
# Must contain <span id="${id}">${value}</span> for
# log updates to work correctly.
logpage_entry:<br/><b>${label}:</b> <span id="${id}">${value}</span>

# metadata
logpage_update_end:</p>
logpage_entries:dateUpdated, words_added, numWords, datePublished,
words_added_label:Words Added

# metadata - only used when creating a new logpage from scratch
# Must contain </body> for log updates to work correctly.
logpage_end:
<a href="${storyUrl}">${title}</a>
</body>
</html>


chicleeblair is offline   Reply With Quote
Old 12-17-2023, 02:35 PM   #100
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: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I have titlepage_start under [epub] and titlepage_entries under [archiveofourown.org]. If logpages is similar, I'd try moving logpage_entries.

Last edited by ownedbycats; 12-17-2023 at 02:41 PM.
ownedbycats is offline   Reply With Quote
Old 12-18-2023, 09:53 AM   #101
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
## Some adapters collect additional meta information beyond the
## standard ones. They need to be defined in extra_valid_entries to
## tell the rest of the FanFicFare system about them. They can be
## used in include_subject_tags, titlepage_entries,
## extra_titlepage_entries, logpage_entries, extra_logpage_entries,
## and include_in_* config items.
Maybe you need add_to_extra_valid_entries in [archiveofourown.org]?

In my setup I just have add_to_extra_valid_entries in [defaults].
culytera is offline   Reply With Quote
Old 12-23-2023, 04:38 PM   #102
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Tried
Spoiler:

[epub]
include_logpage: smart
logpage_at_end: true


logpage_start:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Update Log</title>
<link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
</head>
<html>
<body class="fff_logpage">
<h3> <a href="${storyUrl}">${title} </a> Update Log</h3>

# metadata
logpage_update_start:<p class="log_entry">
# ${id}, ${label}, ${value}
# Must contain <span id="${id}">${value}</span> for
# log updates to work correctly.
logpage_entry:<br/><b>${label}:</b> <span id="${id}">${value}</span>

# metadata
logpage_update_end:</p>
logpage_entries:dateUpdated, numWords, datePublished,


# metadata - only used when creating a new logpage from scratch
# Must contain </body> for log updates to work correctly.
logpage_end:

</body>
</html>

[archiveofourown.org]

add_to_extra_valid_entries:words_added
logpage_entries:dateUpdated, words_added, numWords, datePublished,
words_added_label:Words Added

No dice. My epub reader gives this error:

error on linr 85 at column 8: extra content at the end of document.
chicleeblair is offline   Reply With Quote
Old 12-23-2023, 08:27 PM   #103
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
You forgot the , before words_added in add_to_extra_valid_entries:words_added.

Since the error message mentions a line, you can check that line when you edit the epub in Calibre.

Edit: Just put your logpage settings on my personal.ini and it worked. No errors whatsoever on MapleRead. The missing comma didn't even matter.

Last edited by culytera; 12-23-2023 at 09:24 PM.
culytera is offline   Reply With Quote
Old 01-21-2024, 01:01 PM   #104
wildfire070
Enthusiast
wildfire070 began at the beginning.
 
Posts: 49
Karma: 32
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma // Supernote
Quote:
Originally Posted by ownedbycats View Post
Just add chapterslashtotal to titlepage_entries without the replaces.
This works perfectly on fics downloaded from AO3 but not ff.net. Do you know if it's an issue with ff.net? I also changed the date format, which shows correctly for fics from AO3, but on ff.net it doesn't show the right format either.
wildfire070 is offline   Reply With Quote
Old 01-21-2024, 02:18 PM   #105
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: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by wildfire070 View Post
This works perfectly on fics downloaded from AO3 but not ff.net. Do you know if it's an issue with ff.net? I also changed the date format, which shows correctly for fics from AO3, but on ff.net it doesn't show the right format either.
ffnet doesn't use chapterslashtotal. You'll want to put the titlepage_entries under the AO3 section specifically.

Last edited by ownedbycats; 01-21-2024 at 06:37 PM.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library management issues after editing metadata dra Library Management 26 04-11-2020 05:10 PM
Best strategy for metadata management for Kobo using Calibre? ceridwen Kobo Developer's Corner 16 05-13-2019 02:51 AM
Will automatic metadata management also transfer updated cover images to device? TheSacredSoul Library Management 2 01-11-2013 06:05 AM
Metadata Management on Android not working? TheStretchedElf Devices 0 08-08-2012 09:10 AM
Automatic Metadata Management gxxshock Calibre 2 12-28-2008 12:48 PM


All times are GMT -4. The time now is 04:59 AM.


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