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 11-01-2012, 06:51 AM   #976
Firedancer885
Occassional Beta Tester
Firedancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheese
 
Posts: 214
Karma: 1162
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab
Quote:
Originally Posted by JimmXinu View Post
@Firedancer885 - I believe this version addresses the issue you found.

Mind you, it addresses it by cleaning up the HTML when it's downloaded in the first place. So existing epubs that already contain the same type of poor HTML may still have the same problem. But it should fix it moving forward.
Thanks.
Firedancer885 is offline   Reply With Quote
Old 11-01-2012, 06:57 AM   #977
Firedancer885
Occassional Beta Tester
Firedancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheese
 
Posts: 214
Karma: 1162
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab
Jimm,

where can I find info about making FFDL only download specific chapters and not the whole story?
Firedancer885 is offline   Reply With Quote
Old 11-01-2012, 07:00 AM   #978
Firedancer885
Occassional Beta Tester
Firedancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheese
 
Posts: 214
Karma: 1162
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab
Opps forgot to ask. Is there a way to make this kind of download permanent, so I don't have to remember to edit the download every time there is an update?
Firedancer885 is offline   Reply With Quote
Old 11-01-2012, 12:06 PM   #979
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Quote:
Originally Posted by Firedancer885 View Post
where can I find info about making FFDL only download specific chapters and not the whole story?
If you hover your mouse over the text box you enter URLs in for FFDL, the tooltip will tell you that you can limit chapters by adding [1,5] (for 1-5, for example) to the end of a URL:

http://www.fictionalley.org/authors/bexis/HPATFE.html[1,5]

(Currently, that only works for new or overwrite, not update.)

Quote:
Originally Posted by Firedancer885 View Post
Opps forgot to ask. Is there a way to make this kind of download permanent, so I don't have to remember to edit the download every time there is an update?
For all stories, yes. See the Basic tab of FFDL config for 'Default If Story Already Exists'.

For that particular story only, no. But that's why I fixed it.

Jim
JimmXinu is online now   Reply With Quote
Old 11-01-2012, 01:20 PM   #980
Firedancer885
Occassional Beta Tester
Firedancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheeseFiredancer885 can extract oil from cheese
 
Posts: 214
Karma: 1162
Join Date: Nov 2010
Location: Hungary
Device: Samsung Galaxy Tab
How do I make it everything above a particular chapter number? I need all the chapters starting with ch 51.
Firedancer885 is offline   Reply With Quote
Old 11-01-2012, 01:22 PM   #981
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
If you want a book containing only chapters 51 and up, use:

http://whatever.the.url.is/story[51,]

However, be aware that you will not be able to use the update feature if you have a partial book that doesn't start with chapter 1. Epub update uses the chapter count to determine when and what to update.
JimmXinu is online now   Reply With Quote
Old 11-01-2012, 01:44 PM   #982
skb
Enthusiast
skb began at the beginning.
 
skb's Avatar
 
Posts: 36
Karma: 10
Join Date: Mar 2010
Device: iPhone 3GS, Galaxy SII, Asus Transformer, Nexus 7, Kobo Mini
Hi Jim,
I have an efiction site that I would like to be considered for inclusion in your plugin. I need to update the version of efic and reskin etc (plus moving to a new host) and then it should be ready. It's pretty vanilla (installation-wise - no custom bits) but is there anything I can do in the upgrade that would make your life easier?

Sue
skb is offline   Reply With Quote
Old 11-01-2012, 01:55 PM   #983
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
Hi Sue,

What would help the most would be to clearly identify the chapter text and each piece of metadata in the HTML, and to put all the story metadata on the story index page. (We frequently have to parse the author's page, too, to get all the metadata.)

Lengthy examples:
Spoiler:
IE, on each chapter page, instead of just:

Code:
<div>
(chapter text)
</div>
...make it something like:

Code:
<div class="chaptertext">
(chapter text)
</div>
On the chapter index page, instead of

Code:
<div>
<span class="label">Categories:</span> Harry Potter, Star Wars<br />
<span class="label">Genre:</span> Humor, Romance<br />
<span class="label">Word Count:</span> 12,234<br />
</div>
...make it something like:

Code:
<div>
<span class="label">Categories:</span> <span class="category">Harry Potter</span>, <span class="category">Star Wars</span><br />
<span class="label">Genre:</span> <span class="genre">Humor</span>, <span class="genre">Romance</span><br />
<span class="label">Word Count:</span> <span class="wordcount">12,234</span><br />
</div>


When categories/genres/warnings/whatever are already links to a particular category, they're easy to pick out. But it's frequently a pain to pick out the individual bits of metadata with just the human readable labels.

Jim
JimmXinu is online now   Reply With Quote
Old 11-02-2012, 04:45 AM   #984
skb
Enthusiast
skb began at the beginning.
 
skb's Avatar
 
Posts: 36
Karma: 10
Join Date: Mar 2010
Device: iPhone 3GS, Galaxy SII, Asus Transformer, Nexus 7, Kobo Mini
Actually, Jim, that looks like it'd make better page code too! Excellent, I'm glad I asked before I start the new skin etc (I'm going to try for a responsive design as well).

Cool! I'll give you a shout when I've got it happening.

Thanks!
skb is offline   Reply With Quote
Old 11-04-2012, 12:11 AM   #985
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 150
Karma: 3100
Join Date: Sep 2011
Device: Acer Iconia 500w Tablet, PRS-T1
I've been working on adding metadata replacements to the stories I gather and it's been working great. However, after the last batch of stories had 17 fandoms and 34 characters, I wondered if I would be able to sort the characters into a hierarchical list using the replace metadata feature.

I know that I can now change the character based on which category (or fandom) it is in. Is it possible to use a more general statement?

For example:
characters=>(any character)=>category.(any character)

I do have the line:
characters=>\.=>

which deletes any periods in the character name. However, I'm not sure how to make it add the category (or fandom) at the beginning of the character.
Jade Aislin is offline   Reply With Quote
Old 11-04-2012, 12:27 AM   #986
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
I don't use hierarchical lists, so I don't know what that's about.

However, if you simply want "category." prepended to all the characters, use:
characters=>(.+)=>category.\1

The replacements are applied in order, so to use both, put the '.' remover first:

replace_metadata:
characters=>\.=>
characters=>(.+)=>category.\1
JimmXinu is online now   Reply With Quote
Old 11-04-2012, 01:31 AM   #987
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 150
Karma: 3100
Join Date: Sep 2011
Device: Acer Iconia 500w Tablet, PRS-T1
Quote:
Originally Posted by JimmXinu View Post
I don't use hierarchical lists, so I don't know what that's about.
Basically, I want the character column I have to list the fandom and then have a sublist of characters.

Example:
Spoiler:
Character
.....Transformers
..........Sam Witwicky
..........Bumblebee
.....Buffy
..........Xander Harris


Quote:
Originally Posted by JimmXinu View Post
However, if you simply want "category." prepended to all the characters, use:
characters=>(.+)=>category.\1
Not exactly. I do want to prepend something to all the characters. However I want to prepend the fandom the character comes from. I tried substituting {#fandom} and #fandom, but neither did what I was looking for. I'm not sure I'm explaining it very well.

I was hoping to find a way to change every character to fandom(the fandom the character comes from).character without having to input all the characters (including the ones I didn't have to change before, like Bumblebee).

Similar to how I can change a character based on fandom.
Code:
 characters=>Sam W=>Sam Witwicky&&category=>Transformers
will change the characters "Sam W" if it is in the category "Transformers". I want to be able to look for a character, check if it is in a fandom, and then prepend that fandom to the name.

Thinking about it, I'm not sure it can be done without replacing every character metadata individually.
Jade Aislin is offline   Reply With Quote
Old 11-04-2012, 01:38 AM   #988
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
You should be able to without a line for every character, but you will need one for every fandom you want separate:

Code:
replace_metadata:
 characters=>(.+)=>Character.Transformers.\1&&category=>Transformers
 characters=>(.+)=>Character.Buffy.\1&&category=>Buffy
JimmXinu is online now   Reply With Quote
Old 11-04-2012, 01:30 AM   #989
Jade Aislin
Groupie
Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.Jade Aislin could sell banana peel slippers to a Deveel.
 
Posts: 150
Karma: 3100
Join Date: Sep 2011
Device: Acer Iconia 500w Tablet, PRS-T1
Quote:
Originally Posted by JimmXinu View Post
You should be able to without a line for every character, but you will need one for every fandom you want separate:

Code:
replace_metadata:
 characters=>(.+)=>Character.Transformers.\1&&category=>Transformers
 characters=>(.+)=>Character.Buffy.\1&&category=>Buffy
Unfortunately, that didn't work when there were two characters and two fandoms with one character from each fandom.

Instead of getting "Transformers.Bumblebee, Buffy.Xander Harris", I get "Buffy.Bumblebee, Buffy.Xander Harris".

Is it possible to set a list of character names to choose what prepend to attach?

For example:
Code:
characters=>(.+)=>Buffy.\1&&characters=>(Buffy or Xander or Spike)&&category=>Buffy
Jade Aislin is offline   Reply With Quote
Old 11-04-2012, 01:37 AM   #990
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.
 
Posts: 1,587
Karma: 411867
Join Date: Dec 2011
Location: Midwest USA
Device: Nook STR w/Glowlight, Kindle 3g, Droid
characters=>(Buffy|Xander|Spike)=>Buffy.\1&&catego ry=>Buffy

If you're going to get that complicated, at some point you're going to have to learn regular expressions:
http://www.regular-expressions.info/

When 'flavor' matters, it's Python.
JimmXinu is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Count Pages kiwidude Plugins 640 07-14-2014 04:06 AM
[GUI Plugin] Resize Cover kiwidude Plugins 34 07-13-2014 07:15 PM
[GUI Plugin] Find Duplicates kiwidude Plugins 472 07-11-2014 09:34 AM
[GUI Plugin] Open With kiwidude Plugins 223 07-09-2014 02:42 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 09:41 PM.


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