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 03-13-2016, 03:12 PM   #1156
rishidiams
Member
rishidiams began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2016
Device: Kindle paperwhite
Changing Tags

Quote:
Originally Posted by JimmXinu View Post
You should have a leading comma(,) in add_to_extra_valid_entries, otherwise mycharacters will be falsely concatenated with whatever is before it. That, I believe, is why it isn't showing up in your custom column.
Code:
[defaults]
add_to_extra_valid_entries:,mycharacters,mytags,mystatus
You are splitting ships, when I suspect you mean to be splitting mycharacters:
Code:
[defaults]
...
replace_metadata:
 mycharacters=>(.*)[/&](.*)=>\1 \, \2
...
"Tenth Doctor" isn't becoming "The Doctor.Tenth" for you because you are looking for exactly "Tenth Doctor", which isn't going to match " Tenth Doctor " (note spaces added when you did the mycharacters split) or the Doctor part of "Tenth Doctor/Rose Tyler". Instead I suggest limiting it to mycharacters and ships only, and allowing for "The " in front of it so you don't end up with "The The Doctor.Tenth":
Code:
replace_metadata:
 ...
 mycharacters,ships=>(The )?Tenth Doctor=>The Doctor.Tenth
As for freeformtags "Alternate Universe.Human" vs "Alternate Universe", that's tricky. If you wanted to remove "Alternate Universe.Human" in favor of keeping "Alternate Universe" it would be easy. I can't find a AO3 story by searching for such a tag. Can you provide an example?

All changes together:
Spoiler:

Code:
[defaults]
add_to_extra_valid_entries:,mycharacters,mytags,mystatus
include_in_mycharacters:characters,ships

custom_columns_settings:
 mycharacters=>#characters
replace_metadata:
 mycharacters=>(.*)[/&](.*)=>\1 \, \2
 mycharacters,ships=>(The )?Tenth Doctor=>The Doctor.Tenth

Thank you for your prompt response!

The lines that I posted from my personal.ini are exactly as they appear in Calibre. I took nothing out except the lines in between. Is it even possible for mycharacters be concatenated with add_to_extra_valid_entries?

Regardless, I tried adding the comma, selected both Characters and nothing in the pull down box on the Custom Columns tab, but I still got the same result as before.

Ships, specifically is the name I'm using to access the Relationship tag on AO3. I'm trying to, first, make it a Character entry; second, split it in two, "Tenth Doctor" and "Rose Tyler"; and, third, change "Tenth Doctor" to "The Doctor.Tenth". I made the changes you suggested, but had no different result.


As for a story with redundant tags, here is an example:
http://archiveofourown.org/works/4057936
which uses both the "Alternate Universe" tag and the "Alternate Universe - All Human" tag.
rishidiams is offline   Reply With Quote
Old 03-13-2016, 05:45 PM   #1157
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by rishidiams View Post
The lines that I posted from my personal.ini are exactly as they appear in Calibre. I took nothing out except the lines in between. Is it even possible for mycharacters be concatenated with add_to_extra_valid_entries?
The add_to_X mechanism works by concatenating what you give it to the X setting. So if extra_valid_entries:categories and you put add_to_extra_valid_entries:mycharacters, the final result is categoriesmycharacters. But if you use add_to_extra_valid_entries:,mycharacters, then it will be categories,mycharacters which is what you want.

It's a bit non-intuitive, I admit, but otherwise there would be problems using add_to_ with multi-line values like replace_metadata.

Quote:
Originally Posted by rishidiams View Post
Regardless, I tried adding the comma, selected both Characters and nothing in the pull down box on the Custom Columns tab, but I still got the same result as before.
Custom and site-specific metadata entries are never shown in the drop downs. Those only show standard metadata. You have to use custom_columns_settings, which I thought you where already doing from:
Code:
custom_columns_settings:
 mycharacters=>#characters
Quote:
Originally Posted by rishidiams View Post
Ships, specifically is the name I'm using to access the Relationship tag on AO3. I'm trying to, first, make it a Character entry; second, split it in two, "Tenth Doctor" and "Rose Tyler"; and, third, change "Tenth Doctor" to "The Doctor.Tenth". I made the changes you suggested, but had no different result.
Not sure what to tell you, there. For me those settings are doing what I understood you to want. Note that your problem may be integrating with the other settings you have. You can only have one setting for each keyword in each section, so you have to combine them correctly.

Here's the exact personal.ini I used and the title page that results:
Spoiler:
Code:
# 2nd Test Library

[archiveofourown.org]
include_subject_tags: characters, status, fandoms, freeformtags, ships

add_to_titlepage_entries:,fandoms, freeformtags, ships,mycharacters,characters

[defaults]
add_to_extra_valid_entries:,mycharacters,mytags,mystatus
include_in_mycharacters:characters,ships

custom_columns_settings:
 mycharacters=>#extranotes
replace_metadata:
 mycharacters=>(.*)[/&](.*)=>\1 \, \2
 mycharacters,ships=>(The )?Tenth Doctor=>The Doctor.Tenth
To Kiss it All Better by Brilliantly_Strange

Series: Prompt Fics [3]
Category: Doctor Who
Genre: Cold Weather, F/M, Fluff, Hot Chocolate, Kissing, Snowball Fight
Language: English
Relationships: The Doctor.Tenth/Rose Tyler
Status: Completed
Published: 2016-03-11
Updated: 2016-03-11
Packaged: 2016-03-13 13:14:53
Rating: Teen And Up Audiences
Warnings: Creator Chose Not To Use Archive Warnings
Chapters: 1
Words: 585
Publisher: archiveofourown.org
Summary:
When Rose drinks her hot chocolate, she gets burned. The Doctor makes a proposition she can't refuse.....


Fandoms: Doctor Who
Freeform Tags: Cold Weather, Fluff, Hot Chocolate, Kissing, Snowball Fight
Relationships: The Doctor.Tenth/Rose Tyler
Mycharacters: Rose Tyler, The Doctor.Tenth


Quote:
Originally Posted by rishidiams View Post
As for a story with redundant tags, here is an example:
http://archiveofourown.org/works/4057936
which uses both the "Alternate Universe" tag and the "Alternate Universe - All Human" tag.
Here's an example that works for me to exclude just "Alternate Universe" if you also have "Alternate Universe(anything)":

Spoiler:
Code:
[archiveofourown.org]

# add another copy of freeformtags that doesn't have 
# replacements/in/exclude applied.  Otherwise it gets 
# thrown out in the infinite-recursion filter.
add_to_extra_valid_entries:,rawfreeformtags
include_in_rawfreeformtags: freeformtags.NOREPL

add_to_exclude_metadata_post:
# discard exact freeformtags "Alternate Universe" if there's a 
# (raw) freeformtags that is is "Alternate Universe(anythingelse)"
 freeformtags==Alternate Universe&&rawfreeformtags=~Alternate Universe.+
JimmXinu is offline   Reply With Quote
Old 03-13-2016, 10:53 PM   #1158
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted

New test version posted (direct link)

2016-03-13
- Fix for a bug on a TtH story (empty category tag).
- Add site specific reads, reviews for hpfandom.net.
- Update translations.
JimmXinu is offline   Reply With Quote
Old 03-14-2016, 12:42 AM   #1159
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Hey Jimm! I've noticed that you've been very active lately. Thanks as always for all the effort you put into the project and for your tireless nature .

Somewhat related: I've been working on a small tool that is able to easily manage/sort/search the followed stories/story alerts on various fanfiction sites (so far only fanfiction.net is supported), which might be useful for the people making heavy usage of the e-mail-related features. Once it is more fleshed out I might post it here, if you don't mind.
cryzed is offline   Reply With Quote
Old 03-14-2016, 11:50 AM   #1160
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by cryzed View Post
Hey Jimm! I've noticed that you've been very active lately. Thanks as always for all the effort you put into the project and for your tireless nature .


Quote:
Originally Posted by cryzed View Post
Somewhat related: I've been working on a small tool that is able to easily manage/sort/search the followed stories/story alerts on various fanfiction sites (so far only fanfiction.net is supported), which might be useful for the people making heavy usage of the e-mail-related features. Once it is more fleshed out I might post it here, if you don't mind.
Sure, we can discuss that here. I'm curious how you deal with the ffnet captcha.
JimmXinu is offline   Reply With Quote
Old 03-14-2016, 02:15 PM   #1161
firefoxxy
Zealot
firefoxxy began at the beginning.
 
Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
Just tested the new test version, it works fine for me.
Thank you Jim!
firefoxxy is offline   Reply With Quote
Old 03-14-2016, 06:23 PM   #1162
fnabenny's
Junior Member
fnabenny's began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2016
Device: none
hi jim!

i wanted to ask if you could make fff where it could download quizzes from quoetv. i noited some quizzes have story in them. just wanted to ask and thank you!!
fnabenny's is offline   Reply With Quote
Old 03-14-2016, 07:58 PM   #1163
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by fnabenny's View Post
i wanted to ask if you could make fff where it could download quizzes from quoetv. i noited some quizzes have story in them. just wanted to ask and thank you!!
Glad you like it. But it's not likely I'll add code for quotev.com quizzes--I didn't write the code to support that site. However, if somebody else does, I'll accept it.
JimmXinu is offline   Reply With Quote
Old 03-14-2016, 08:16 PM   #1164
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
@fnabenny's I mean... why? I get why you want support for it, but why would the authors ever think it's a good idea to put their stories into the quiz section/use the quiz feature to publish their stories ? Unfortunately you can't possibly expect the developers to support every such insanity -- your complaints might be better directed at the actual authors.
cryzed is offline   Reply With Quote
Old 03-15-2016, 02:54 AM   #1165
Tanjamuse
Wizard
Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!Tanjamuse , Klaatu Barada Niktu!
 
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
I'm having trouble with some of the new stories on dark-solace.org (Elysian Fields).

Here's one of the links: http://dark-solace.org/elysian/views...4654&chapter=1

The error I get is this:

Code:
Status
Title
Author
Comment
URL
Bad
Unknown
Unknown
'class'
http://dark-solace.org/elysian/viewstory.php?sid=4737
Tanjamuse is offline   Reply With Quote
Old 03-15-2016, 06:16 AM   #1166
fnabenny's
Junior Member
fnabenny's began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2016
Device: none
well thank you anyway!!!

well i just wanted to know thank you!!! i can download it but i will have to take the super slow long way. and cryzed i wanted to slap every single person who said hey why not make my story in a quiz!
fnabenny's is offline   Reply With Quote
Old 03-15-2016, 07:45 AM   #1167
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
You and me both, sorry about this. Just for future reference: if you could link a few of those quiz stories that would be great.
cryzed is offline   Reply With Quote
Old 03-15-2016, 11:52 AM   #1168
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,985
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Tanjamuse View Post
I'm having trouble with some of the new stories on dark-solace.org (Elysian Fields).

Here's one of the links: http://dark-solace.org/elysian/views...4654&chapter=1
...
New test version posted (direct link)

2016-03-14
- Fix for base_efiction_adapter stories with spans w/o class attr.
JimmXinu is offline   Reply With Quote
Old 03-15-2016, 09:22 PM   #1169
fnabenny's
Junior Member
fnabenny's began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2016
Device: none
well

here's an an example. https://www.quotev.com/quiz/6913606/...natural-Part-1
fnabenny's is offline   Reply With Quote
Old 03-15-2016, 10:04 PM   #1170
cryzed
Evangelist
cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.cryzed ought to be getting tired of karma fortunes by now.
 
cryzed's Avatar
 
Posts: 408
Karma: 1050547
Join Date: Mar 2011
Device: Kindle Oasis 2
Ah, I see now -- it's interactive fiction. I think that an e-reader probably isn't the best choice for these kind of stories... it might be possible, but only with very customized EPUB generation. For one FanFicFare would have to support creating internal references to chapters depending on the chapter contents etc. This seems very unlikely to be implemented unfortunately.
cryzed 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 05:59 PM.


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