Quote:
Originally Posted by rpgmaker
Does every language has a custom implementation of this word counting method? If not I think this should be a deal breaker for the update that is being entertained.
|
The change to the word count is to use a different algorithm already implemented in calibre. This algorithm, and I assume most of the code, come from elsewhere. This accepts the language as a parameter. I have not looked closely enough at this to know if there is an implementation for every language, but I doubt it. What is likely is that the major languages have implementations and the rest fall back to a common method.
The method currently used for the word count is the same for all languages. It is a fairly simple method but is not to inaccurate. At least for English. I don't know about the other languages which is why I asked. If it wasn't for the other languages, I wouldn't bother about this as for nearly all uses, the count we have is close enough. But, I think the other languages should be treated properly.
The other thing that has been discussed is the other statistics. These are English specific stats. The first mention was because someone had the German calculation for one of them. Having that used automatically was easy and sensible. But the rest of the stats are more of a problem. And there are other stats that make more sense for other languages. Adding a way to calculate them is a lot more complex.
My comments about the other stats are really just me thinking out loud. At this point, I have no plan to implement them. There are other things I would prefer to do. Maybe in the future, I might get bored and return to it. Or maybe someone will see my comments and decide to do it. If someone does, I'll be very happy to help with suggestions, testing and other help.
My plan for Count Pages is to release the changes as is (different word count algorithm, German version of one of the other stats) plus one other change. The other change is something someone else has done and is about making the plugin work better when called from other plugins.