[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Adding spellchecker stats to existing d-i stats



I'd be interested in adding infos obtained with the spellchecker to
the statistics pages, so that everytime a new error is spotted translators
know about it.
ATM seppy's script comes up with the following:

...
Global statistics: 1593t2f0u (99%)     (total strings: 1595=100%)
(From all it.po files)

Master: 1462t2fu
Spellcheck:  unknown words in master file..
...

Currently, the spellchecker page (see [1]) reports various columns;
the relevant information needed to produce useful stats is contained in
the following columns:

"Unknown words" - available only for languages with an aspell-lang
dictionary
"Suspect variables" 
"Specific checks" 
"Codepoints" - not sure this is needed but might be useful anyway

I just modified the scripts as to produce numerical information for the
above columns (can't commit since svn is not working).
Now, the above infos should be fetched and the line saying
"Spellcheck:  unknown words in master file.."

should be changed into something like (for example)
"Spellcheck:  3u5v12s149c"

languages with no aspell dictionary should be probably handled 
differently: maybe using "-1u". 
let me know what you think about this.
I guess the WebSec-txt script should be  working (almost) out of the box.

ciao,
Davide

[1] http://d-i.alioth.debian.org/spellcheck/level1/index.html

Attachment: signature.asc
Description: Digital signature


Reply to: