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 01-03-2017, 06:46 PM   #946
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Terisa de morgan View Post
@davidfor, I've checked the beta and the callback function works smoothly. Here I send you the translation in Spanish. I've found only a mistake "Updating" and "Updating ".
The code for that one is actually:
Code:
_("Updating ") + book_mi.title
so the space is needed. But, I'll change it to appending the space.
davidfor is offline   Reply With Quote
Old 01-03-2017, 09:33 PM   #947
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Another beta - No update if unchanged option plus Spanish

Here is another beta with three changes:
  • Fix: For word count, text from all files was appended together without a space in between.
  • Update: Only write changes if they are different to the current values.
  • New: Spanish translation thanks to Terisa de morgan.

The first has been there for a long time and meant if there were multiple files inside an epub, the word count would be one word per file. Not much, but a bug no matter what.

The other change is to only update the statistics in the metadata if the statistic has actually changed. The main point of this is that the modified timestamp of the book will not get changed if none of the statistic have actually changed. There is an option in the configuration to force the update if that is what you want. And my apologies to Terisa as there are two new strings to translate.

As always, tell me if there are any problems. I am aiming for release on the weekend if anyone is doing a translation.
Attached Files
File Type: zip Count Pages-beta.zip (253.0 KB, 205 views)
davidfor is offline   Reply With Quote
Old 01-03-2017, 10:55 PM   #948
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,795
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
I updated the word count for my whole collection with the beta most of the word counts now are a 1-2% less than previous but as I mostly use it for comparative purposes I needed to update them all. Using a standard is always better so went ahead and updated for all took 12min for around 900 epubs.
Dopedangel is offline   Reply With Quote
Old 01-04-2017, 02:34 AM   #949
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,843
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Count Preferred Output Format

Quote:
Originally Posted by davidfor View Post
Suggestions for improvements are also welcome, but I'll probably not do anything with them until after releasing these changes.
An option to process the Preferred Output Format if it exists, before reverting to the first found format according the order of the Preferred Input Format list.

Why? Mainly because it can take as many minutes to count a chunky DOCX, MOBI or PDF as it takes seconds to count the EPUB I just created by converting the same DOCX, MOBI or PDF.

Deleting the DOCX, MOBI and or PDF before doing the count is not a viable option, nor is promoting EPUB up the Preferred Input Format pecking order. The latter results is me wasting time doing unintentional EPUB to EPUB conversions and then wondering why the changes I just made to the Input format aren't reflected in the output EPUB.

BR
BetterRed is online now   Reply With Quote
Old 01-04-2017, 03:27 AM   #950
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,657
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Well, here is the updated translation. Out to Christmas shopping
Attached Files
File Type: zip fich_es.zip (7.9 KB, 194 views)
Terisa de morgan is offline   Reply With Quote
Old 01-04-2017, 03:40 AM   #951
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,843
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Terisa de morgan View Post
Out to Christmas shopping
2017 resolution == Shop Early, Shop Often?

BR
BetterRed is online now   Reply With Quote
Old 01-04-2017, 04:22 AM   #952
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,657
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by BetterRed View Post
2017 resolution == Shop Early, Shop Often?

BR
The second one is not necessary to add it as a resolution . The first, well, I begin to ask for the Holy Wise Man letter (Spanish tradition in Jan, 6th) in October but... they finished it yesterday
Terisa de morgan is offline   Reply With Quote
Old 01-04-2017, 05:22 AM   #953
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BetterRed View Post
An option to process the Preferred Output Format if it exists, before reverting to the first found format according the order of the Preferred Input Format list.

Why? Mainly because it can take as many minutes to count a chunky DOCX, MOBI or PDF as it takes seconds to count the EPUB I just created by converting the same DOCX, MOBI or PDF.

Deleting the DOCX, MOBI and or PDF before doing the count is not a viable option, nor is promoting EPUB up the Preferred Input Format pecking order. The latter results is me wasting time doing unintentional EPUB to EPUB conversions and then wondering why the changes I just made to the Input format aren't reflected in the output EPUB.
Are you doing a page count? If you use the ADE algorithm, it will always use the epub if there is one available. And if there isn't an epub, it will do the other statistics, but it won't do the page count.

But, what you suggest is good idea. Adding the output format as the first format in the list is easy. Adding an option is slightly harder. Mainly because I have to write the label for the option How about

Code:
Use your Preferred Output Format if available
And the tooltip:

Code:
Check this option if you want the statistics to be calculated using the format that you have selected as the Preferred Output Format for calibre conversions. If this is not available, or the option is not checked, the first format found in the Preferred Input Format will be used.
That's horrible but the best I can do at the moment. Any suggestions are welcome. Very welcome.
davidfor is offline   Reply With Quote
Old 01-04-2017, 06:45 AM   #954
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,843
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
Are you doing a page count? If you use the ADE algorithm, it will always use the epub if there is one available. And if there isn't an epub, it will do the other statistics, but it won't do the page count.

But, what you suggest is good idea. Adding the output format as the first format in the list is easy. Adding an option is slightly harder. Mainly because I have to write the label for the option How about

Code:
Use your Preferred Output Format if available
And the tooltip:

Code:
Check this option if you want the statistics to be calculated using the format that you have selected as the Preferred Output Format for calibre conversions. If this is not available, or the option is not checked, the first format found in the Preferred Input Format will be used.
That's horrible but the best I can do at the moment. Any suggestions are welcome. Very welcome.
@david - here's my settings, and the option as I envisage it

Click image for larger version

Name:	1.jpg
Views:	298
Size:	79.8 KB
ID:	153952

IMO Pronouns shouldn't be used in labels, in tooltips okay, but in labels nay. I also prefer to put any conditional clause first, it makes the intent emphatic, putting it at the end tends to shroud it in mystery - i.e. Churchillian good, Hitchockian not. But I'll only look it at once, so it matters hardly a jot

And thanks for the +ve response.

BR

Last edited by BetterRed; 01-04-2017 at 06:58 AM.
BetterRed is online now   Reply With Quote
Old 01-04-2017, 07:53 AM   #955
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,254
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Some users may not be familiar with the term 'Preferred Output Format'. Might it be an idea to make the label dynamic and substitute the current value of calibre prefs[output_format] into the label?

So for me the label would read 'Use EPUB if available?' whereas for a Kindle user the label would read 'Use AZW3 if available?'

The tooltip could be more specific (and also dynamic) and start something like 'Your current calibre Preferred Output Format is set to xxx. Check this option if you want the statistics to be calculated using this format if available. If not checked or xxx is not available ... etc'
jackie_w is offline   Reply With Quote
Old 01-04-2017, 08:04 AM   #956
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,096
Karma: 148565303
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post
JSWolf is offline   Reply With Quote
Old 01-04-2017, 01:34 PM   #957
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,149
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Use Current Preferred output format: (<show the value as a hint only>)

Standard Calibre usage locks in the then current settings
eg Convert


BTW my Library used ADE page counts historically (Astak PEz).

I now use my K4NT
CP won't count using ADE when only a AZW3 exists
I really don't want to recalc all those (besides, changes the Last Modified flag)

A count method sb just an algorithm to use (assumes the filoe can be processed) If I want to count a Kindle Book using ADE rules, why not?
theducks is offline   Reply With Quote
Old 01-04-2017, 02:39 PM   #958
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,096
Karma: 148565303
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
In the latest beta, if you do not use the ICU method for counting ADE pages, you will get a really incorrect number of words.
JSWolf is offline   Reply With Quote
Old 01-04-2017, 03:01 PM   #959
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,843
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If columns are not specified for the Word Count or Readability statistics, the new option should probably be disabled (greyed-out).

I suggest this for the tooltip, and/or 1st post description.

Quote:
Check this option to use the format specified in the Preferred Output Format setting to calculate statistics. If that format is absent, or this option is not checked (default), statistics will be calculated using whichever of the available formats appears highest in the Preferred Input Format list. The Preferred Output and Input settings are specified in Preferences->Behaviour.
I disagree with spoon feeding users, especially on things they're only likely to use once, better to encourage them to read tooltips and/or doco. If you treat people as dummies they will behave accordingly.

Aside, I don't see a tooltip for the Preferred Input Formats list in Preferences->Behaviour.

BR
BetterRed is online now   Reply With Quote
Old 01-04-2017, 06:49 PM   #960
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
In the latest beta, if you do not use the ICU method for counting ADE pages, you will get a really incorrect number of words.
That doesn't make sense. There is no ICU method for counting ADE pages and the only overlapping code between the word count and the ADE page count is opening the epub for counting.

But, assuming you meant there was a big difference between the non-ICU word count with the beta and the word count with the released version, I need examples. And a definition of "really incorrect". When I compared the two, the difference is the number of files in the book. That is expected with the fix I put into the code for the word count.

If the difference is bigger than that, then I need actual examples I can look at including the counts you are seeing with the two versions.
davidfor is offline   Reply With Quote
Reply

Tags
count, count pages, page count, pages, plugin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1252 08-02-2025 09:53 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-16-2024 11:47 PM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 12:02 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 05:54 PM.


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