![]() |
#976 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
![]() |
#977 | |
Member
![]() Posts: 10
Karma: 10
Join Date: Mar 2015
Device: Kindle Paperwhite 2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#978 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
![]() |
#979 |
Zealot
![]() Posts: 105
Karma: 10
Join Date: Nov 2012
Location: Germany
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#980 |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Dec 2014
Device: Kindle Paperwhite
|
I am experiencing a bug with FFF version 2.2.17, using calibre 2.48, shown below. Note that the example and explanation is a bit long-winded, sorry. I couldn't figure out how to effectively reduce the example.
[Edit:]: I re-downloaded the whole fic using most recent calibre (2.50.1), and problem still persists.[/Edit] Here is a section from the fic The Scaly Raptor, from spacebattles. Note that I'm not using a quote box, due to formatting. The scream woke the four recovering raptors downstairs, though only Blue could move as the other three were too injured to do so and laid in their "nests", frightened for their Alpha. Nonetheless, the raptor beta rushed up the stairs until she reached the room claimed by her Alpha and looked in to see a large, male raptor staring at something. Growling, Blue strode in as she guessed what had happened. "<Get away from Alpha, now...>" Much to her surprise, the raptor turned and stared at her before it spoke in Owen's voice. "B-Blue? Did you just talk?" Confused, Blue walked more into the room and tilted her head. "<Why do you sound like Alpha and make not-prey sounds?>" The raptor then tapped himself on the chest. "Blue, it's me! I... I have no idea what happened, but I got turned into a raptor..." Here is the same section, but from the epub copy I got using FFF. The scream woke the four recovering raptors downstairs, though only Blue could move as the other three were too injured to do so and laid in their "nests", frightened for their Alpha. Nonetheless, the raptor beta rushed up the stairs until she reached the room claimed by her Alpha and looked in to see a large, male raptor staring at something. Growling, Blue strode in as she guessed what had happened. "<Get away from Alpha, now...>" The italics persists throughout the rest of the chapter, before ceasing at the beginning of the next chapter. The number of '<' signs at the end of each line increases every time a '<' appears in the chapter. The '<' count also resets at the end of each chapter. <Much to her surprise, the raptor turned and stared at her before it spoke in Owen's voice. "B-Blue? Did you just talk?" <Confused, Blue walked more into the room and tilted her head. "<Why do you sound like Alpha and make not-prey sounds?>" <<The raptor then tapped himself on the chest. "Blue, it's me! I... I have no idea what happened, but I got turned into a raptor..." How might this problem be fixed? Last edited by readerboy7; 02-01-2016 at 11:06 PM. Reason: additional minor |
![]() |
![]() |
Advert | |
|
![]() |
#981 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Unfortunately, I didn't write that feature and I frankly don't understand how it works. I'll send an email to the original developer of that feature, but I don't think I've heard anything from them in the last year. In the meantime, you can remove/comment out replace_br_with_p: true or add replace_br_with_p:false to [forums.spacebattles.com]. You could also download the story from ffnet instead. It's not as far along, but it is being updated regularly. |
|
![]() |
![]() |
![]() |
#982 | |
Enthusiast
![]() Posts: 45
Karma: 10
Join Date: Dec 2014
Device: Kindle Paperwhite
|
Quote:
Sorry for the noob question, but how do I look at the source code, specifically for that feature and the sections of the code it interacts with? I couldn't find it in the github page. Edit: found what I think might be the specific page (def replace_br_with_p(body) on htmlheuristics.py), and I can see why you have difficulty with it. Ouch. Last edited by readerboy7; 02-02-2016 at 03:04 AM. |
|
![]() |
![]() |
![]() |
#983 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Sep 2013
Device: Samsung Galaxy Note 10.1 2014 ed. with Moon Reader+ and Google Books.
|
Odd that I haven't seen this error before. I'll look at the heuristics now.
P.S.: I'd have loved to have had a slightly shorter story to test this on :P That said, I get < and > into my heuristics code, and somewhere along the processing they get turned into < and >, now I just have to figure out where, because it's not something I intended. Addition: The culprit seems to be Beautiful Soup. From the looks of it BS is not so beautiful after all, as it decodes the html entities, including < and > Last edited by Feynor; 02-02-2016 at 04:16 AM. |
![]() |
![]() |
![]() |
#984 |
Enthusiast
![]() Posts: 38
Karma: 10
Join Date: Sep 2013
Device: Samsung Galaxy Note 10.1 2014 ed. with Moon Reader+ and Google Books.
|
I just sent a fix to Jim.
|
![]() |
![]() |
![]() |
#985 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New test version posted (direct link).
Thanks Feynor! 2016-02-02 Add code for lazyload images in base_xenforoforum. Correct outdated ini comment re *_filename. Fix for replace_br_with_p(htmlheuristics) when author includes <>, thanks Feynor! Update translations. |
![]() |
![]() |
![]() |
#986 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2016
Device: Kobo Aura H2O
|
![]()
Hey, every time I try to download or update a story hosted on fimfiction.net I get an "IncompleteRead" error, is there a fix for this? Maybe it's a case of the sites server derping up though...
Anyway, thanks very much for your continued work on this awesome program/plugin. |
![]() |
![]() |
![]() |
#987 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
It would also be helpful to see a debug log. Restart calibre in debug (under the calibre Preferences drop down), try the download, then quit calibre and it will give you the debug text you can post. |
|
![]() |
![]() |
![]() |
#988 |
Connoisseur
![]() Posts: 55
Karma: 10
Join Date: Jul 2015
Location: Curitiba - Brazil
Device: Kindle Paperwhite 3,
|
![]()
I was reading the topic and saw somebody using the plugin not only to assign a specific cover to each fandom, but also create a cover based by ship.
So, I am curious. It is possible to mix this? Like, use this cover on all Doctor Who fics, but if the ship is 10/Rose use this one? And how it would react if the fanfiction has more then one ship? |
![]() |
![]() |
![]() |
#989 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,991
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Re: Curiosity about the integration with the generate cover plugin
generate_cover_settings lets you choose both a template of what metadata to use and the regex to compare to. And the first entry that has a regex that matches it's template is the one that will be used. So put more specific above less specific.
Code:
## If you have the Generate Cover plugin installed, you can use the ## generate_cover_settings parameter to intelligently decide which GC ## setting to run. There are three parts 1) a template of which ## metadata part(s) to look at, 2) a regular expression to match the ## template, and 3) the name of the GC setting to use, which must ## match exactly. Use this parameter in [defaults], or by site eg, ## [ficwad.com] ## Make sure to keep at least one space at the start of each line and ## to escape % to %%, if used. ## template => regexp to match => GC Setting to use. ## To use this, make sure you go to the Generate Cover tab in FanFicFare ## config and check 'Allow generate_cover_settings from personal.ini ## to override' ## You can check for an existing cover image in the metadata ## cover_image. cover_image can be: ## specific -- The site has an image that is specifically this story's cover ## first -- The first image in the story or story desc is used as cover ## default -- A default_cover_image was used ## old -- There was already a cover image in the epub. ## This is useful because GC plugin can use the existing image. # This is a bit simplified, but gets the point across. generate_cover_settings: ${category},${ships} => Doctor Who,.*Rose/10 => DrWhoRose10Cover ${category} => Doctor Who => DrWhoCover |
![]() |
![]() |
![]() |
#990 |
Connoisseur
![]() Posts: 55
Karma: 10
Join Date: Jul 2015
Location: Curitiba - Brazil
Device: Kindle Paperwhite 3,
|
Thanks, this was a very helpful explanation. It will really help not to do this case by case.
![]() |
![]() |
![]() |
![]() |
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 |