double factorAt(const FormattedString& fs, unsigned index) const { if (fs.entityAt(index)) return 1; else return 0.5; }
double factorAt(const FormattedString& fs, unsigned index) { if (fs.entityAt(index)) return 1; return charInfo(fs.charAt(index), fs.flagsAt(index)).factor; }