Re: Proposed work for Universal Charset Detector
John Gardiner Myers <[email protected]> Sat, 29 Oct 2005 18:54:30 -0700
| Newsgroups | gmane.comp.mozilla.internationalization |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Jean-Marc Desperrier wrote: > Hum, I'm beginning to wonder if I understood what you want to do. > IMO the knowledge that you would need is only GetConfidence and > GetCharSetName from nsCharSetProber and that is public already in > nsCharSetProber.h. > > I'm thinking of an alternative. > What if nsCharSetProber just returns the best charset and it's > probability in the form of a double ? Is that enough for your needs ? I don't think it is. Among the single-byte charsets, I think I'd need the confidence of the prober for the labeled charset, to see if it is close to the confidence of the detected charset. Put another way, I'd like the caller to be able to boost the confidence of the labeled charset, to make it more likely to be the detected charset.