Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2015, 04:36 PM   #811
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,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Here's another New Test Version (direct link).

2015-12-12

- Add keep_html_attrs feature - deprecates keep_style_attr and keep_title_attr.
- Add replace_tags_with_spans feature.

These should help with edeniz's 'big' problems. Note that I changed my mind about keep_align_attr and instead added a generalized keep_html_attrs param.

From defaults.ini:
Code:
## Some attributes cause problems for EBook readers.  By default,
## FanFicFare will remove all attributes except the ones specified
## from all tags.  (The only exception is that <img> tags will also
## keep src, alt and longdesc attributes.)
## Example: To add 'style', 'title' and 'align' to the list to keep,
## in your personal.ini [defaults] put:
## add_to_keep_html_attrs:,style,title,align
keep_html_attrs:href,name,class,id

## Tags listed here will be replaced with <span class="tagname">.
## For example: <u>underlined text</u> becomes
## <span class="u">underlined text</span>
## Note that the output_css should contain the class .u, .big, etc for
## the spans to be useful.
## This feature is for replacing old tags deprecated/removed in newer
## HTML and EPUB standards.
replace_tags_with_spans:u,big,small
For replace_tags_with_spans to work, you need to have the appropriate CSS classes like:
Code:
## This is what I've added to defaults.ini:
output_css:
 ...
 .u        {text-decoration: underline;}
 .big { font-size: larger; }
 .small { font-size: smaller; }
I'm open to suggestions on the appropriate CSS for <big> and <small>. I haven't tested with different book readers yet.
JimmXinu is offline   Reply With Quote
Old 12-12-2015, 08:54 PM   #812
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by JimmXinu View Post
I wish I had something funny to say about it, but I just don't. 0.9x7.
Well, just wait until they get to version 0.9999999999999999999999999999999999999999999

Who knows why they have one of the stupidest naming schemes ever.

But they've done worse, if you check the earlier releases it has been at version "0.11.1ish"
eschwartz is offline   Reply With Quote
Old 12-14-2015, 09:23 AM   #813
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: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Title Page

Is there a way to only update the Title Page? Or conversely, NOT update the Title Page?

It's not a big deal, just looking into if something like that already exists. Let me know if you need examples why ~ I started to include examples, but it was looking like a novel...
MerlinMama is offline   Reply With Quote
Old 12-14-2015, 10:59 AM   #814
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,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by MerlinMama View Post
Is there a way to only update the Title Page? Or conversely, NOT update the Title Page?

It's not a big deal, just looking into if something like that already exists. Let me know if you need examples why ~ I started to include examples, but it was looking like a novel...
Kinda-sorta? It depends on what you mean by 'only'. The rest of the epub? And/or the calibre metadata?

The title page is updated any time the epub is updated, either with 'Update EPUB if New Chapters' or 'Update EPUB Always'. However, if there aren't any new chapters, 'Update EPUB Always' will update the title page. If you uncheck 'Update Calibre Metadata?' then it's effectively updating title page only.

If here are new chapters and you don't want them, you could fake it by setting title_chapter_range_pattern:${title} and then doing 'Update EPUB Always' using the URL with an explicit chapter range. Like: http://site.com/story/1234[-14]

You can update Calibre Metadata without touching the title page using the 'Update Calibre Metadata from Web Site' and 'Update Calibre Metadata from Saved Metadata Column' options. But that won't update the epub chapters.

If you set include_titlepage:false and update an epub the title page will be removed. The only way I can think of keeping title page but not updating it while updating chapters is to manually rename OEBPS/title_page.xhtml inside the epub before doing an update with include_titlepage:false.

That's the best I can tell you without knowing what you're trying to accomplish in more detail.
JimmXinu is offline   Reply With Quote
Old 12-14-2015, 11:39 AM   #815
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: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by JimmXinu View Post
Kinda-sorta? It depends on what you mean by 'only'. The rest of the epub? And/or the calibre metadata?
When I mean only title page, I mean not the rest of the epub.

Quote:
The title page is updated any time the epub is updated, either with 'Update EPUB if New Chapters' or 'Update EPUB Always'. However, if there aren't any new chapters, 'Update EPUB Always' will update the title page. If you uncheck 'Update Calibre Metadata?' then it's effectively updating title page only.
Sounds good!

Quote:
If you set include_titlepage:false and update an epub the title page will be removed. The only way I can think of keeping title page but not updating it while updating chapters is to manually rename OEBPS/title_page.xhtml inside the epub before doing an update with include_titlepage:false.

That's the best I can tell you without knowing what you're trying to accomplish in more detail.
Oh, that sounds complicated, but I'll have to actually test it to see how that works.

I'll try to be concise with my examples, and not make them too long.

Title Page only:

I have old(er) fics that I added before I found FFF (and previous FFDL), so they don't have a Title Page as such. I have edited the content to my liking, so would not want to overwrite everything and still add the Title Page. Your example, which I wouldn't have thought to try, sounds like it would work for this. As long as nothing else in the fic changes, I'm good.

Not Title Page:

This one is more because I don't understand how to adjust the fandom and pairings in my personal.ini so they only show 1 on the title page. I've read the posts, explanations and suggestions, but for some reason I can't grasp how to take 4 lines of different characters funnel it down to the basic pairing, or change the fandom name (or 2 fandom names when crossover) down to my preference. I had just hoped that for those fics (AO3 generally - which I don't have a ton of), it would be easier for me to just skip the title page once I have it as I like it. Later I might come at the problem with fresh eyes and actually understand how to change my personal.ini to do that.
MerlinMama is offline   Reply With Quote
Old 12-14-2015, 12:01 PM   #816
edeniz
Zealot
edeniz began at the beginning.
 
Posts: 132
Karma: 10
Join Date: Oct 2015
Device: Sony Reader, Tolino Shine, Samsung Galaxy S3
Quote:
Originally Posted by JimmXinu View Post
Here's another New Test Version (direct link).

2015-12-12

- Add keep_html_attrs feature - deprecates keep_style_attr and keep_title_attr.
- Add replace_tags_with_spans feature.

These should help with edeniz's 'big' problems. Note that I changed my mind about keep_align_attr and instead added a generalized keep_html_attrs param.
You're a treasure. Seems to work for now.
edeniz is offline   Reply With Quote
Old 12-14-2015, 12:35 PM   #817
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,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
Quote:
Originally Posted by MerlinMama View Post
Title Page only:

I have old(er) fics that I added before I found FFF (and previous FFDL), so they don't have a Title Page as such. I have edited the content to my liking, so would not want to overwrite everything and still add the Title Page. Your example, which I wouldn't have thought to try, sounds like it would work for this. As long as nothing else in the fic changes, I'm good.
Be very careful about that. FFF expects epubs to be updated to be epubs that it created. If you happen to have gotten internal file names and structure the same, you might be able to update non-FFF epubs. But if it doesn't match well enough, your edited files will be discarded and chapters will be downloaded as if new.

Definitely make backup copies and test it before trying this.

Quote:
Originally Posted by MerlinMama View Post
Not Title Page:

This one is more because I don't understand how to adjust the fandom and pairings in my personal.ini so they only show 1 on the title page. I've read the posts, explanations and suggestions, but for some reason I can't grasp how to take 4 lines of different characters funnel it down to the basic pairing, or change the fandom name (or 2 fandom names when crossover) down to my preference. I had just hoped that for those fics (AO3 generally - which I don't have a ton of), it would be easier for me to just skip the title page once I have it as I like it. Later I might come at the problem with fresh eyes and actually understand how to change my personal.ini to do that.
It's also possible to inject custom Calibre columns into the FFF title page. You might consider that instead.

If you have a custom column(s) that you put your preferred info in, there's a setting on the personal.ini tab ('Pass Calibre Columns into FanFicFare on Update/Overwrite') you can check. Then click the 'Show Calibre Column Names' button to see the injected column names to copy-paste into personal.ini as part of titlepage_entries or add_to_titlepage_entries to include them in the title page.
JimmXinu is offline   Reply With Quote
Old 12-14-2015, 01:04 PM   #818
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: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by JimmXinu View Post
Be very careful about that. FFF expects epubs to be updated to be epubs that it created. If you happen to have gotten internal file names and structure the same, you might be able to update non-FFF epubs. But if it doesn't match well enough, your edited files will be discarded and chapters will be downloaded as if new.

Definitely make backup copies and test it before trying this.
Hmm, I'll keep an eye on that. I do have a habit of having a backup copy when I'm not sure of something, so that won't be a problem for me...


Quote:
It's also possible to inject custom Calibre columns into the FFF title page. You might consider that instead.

If you have a custom column(s) that you put your preferred info in, there's a setting on the personal.ini tab ('Pass Calibre Columns into FanFicFare on Update/Overwrite') you can check. Then click the 'Show Calibre Column Names' button to see the injected column names to copy-paste into personal.ini as part of titlepage_entries or add_to_titlepage_entries to include them in the title page.
This I knew, I have the Count Pages plugin and I added that onto the Title Page (of course, the page count is behind by one chapter, but I can live with that...) I don't have, and don't particularly want to add, custom columns for fandoms or character pairings, so I can't use that. There is one fic, where there are 50+ entries in the Relationships section, 50+ entries in the Characters section, and 15 entries in the Fandom section. Creating custom columns and changing personal.ini JUST for that isn't worth it, but skipping the title page would be good. Not necessary, but helpful (link:http://archiveofourown.org/works/910221)

I'll definitely see if that other suggestion works. Rename Title_page, then after the update, just delete the new Title Page created. It will actually be quicker than anything else I could try...I'll just test it out next time I have to update a fic, then I'll know for the future.

Thanks so much!
MerlinMama is offline   Reply With Quote
Old 12-14-2015, 09:54 PM   #819
dwraith0877
Member
dwraith0877 is on a distinguished road
 
Posts: 16
Karma: 66
Join Date: Dec 2015
Device: Kobo Glo HD
storiesonline.net is at it again

I am unable to download from storiesonline once again... getting the error:
'NoneType' object has no attribute 'text'
Here is one of the url's I tried...:
http://storiesonline.net/s/12085
dwraith0877 is offline   Reply With Quote
Old 12-15-2015, 04:48 AM   #820
kapaka
Member
kapaka began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Dec 2008
Device: BQ
Same problem here.
Storiesonline is not allowing me to update in-progress stories nor download from URL.
kapaka is offline   Reply With Quote
Old 12-15-2015, 07:07 AM   #821
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by dwraith0877 View Post
I am unable to download from storiesonline once again... getting the error:
'NoneType' object has no attribute 'text'
Here is one of the url's I tried...:
http://storiesonline.net/s/12085
There is a tiny change in the author page. A class has been changed from "num" to "ynum". In the adapter, line 197 needs to be changed to:

Code:
score = lc2.findNext('th', {'class' : 'ynum'}).text
davidfor is offline   Reply With Quote
Old 12-15-2015, 01:01 PM   #822
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,284
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New test version (direct link).

2015-12-15

- Fix for yet another storiesonline.net site change. Thanks davidfor for figuring it out for me.

Since there haven't been reports of problems with the BS4 transition, I'll probably make a new official release later this week.
JimmXinu is offline   Reply With Quote
Old 12-16-2015, 06:56 AM   #823
DocBrown13
Junior Member
DocBrown13 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2013
Device: Kindle PW, iPad
Using the latest test version I am experiencing problems downloading multi-chapter stories from https://www.literotica.com.

It seems to only download the first chapter and does not pick up on the rest, here is one of the url's I have tried https://www.literotica.com/s/an-experiment-3.
DocBrown13 is offline   Reply With Quote
Old 12-16-2015, 08:44 AM   #824
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 don't suppose that it would be possible to add a way to add the links from either "favorites" or "follow" on the Fanfiction.net site?

The ones that are shown in the "Alert" section.
Tanjamuse is offline   Reply With Quote
Old 12-16-2015, 08:50 AM   #825
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,908
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by DocBrown13 View Post
Using the latest test version I am experiencing problems downloading multi-chapter stories from https://www.literotica.com.

It seems to only download the first chapter and does not pick up on the rest, here is one of the url's I have tried https://www.literotica.com/s/an-experiment-3.
It looks like bs4 has the classes of a tag as a list instead of a string. An index needs to be added where these are being used. I can find three places that need to be changed:

Code:
Line 161:  if urlTr['class'][0] == "sl":
Line 178:  while seriesTr['class'][0] != 'ser-ttl':
Line 188:  while chapterTr is not None and chapterTr['class'][0] == 'sl':
davidfor is offline   Reply With Quote
Reply

Tags
fanfiction

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 402 03-16-2024 11:44 PM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 492 10-25-2022 08:13 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 06:21 PM.


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