Re: [Tuxpaint-devel] Font scoring method
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Albert C. <aca...@gm...> - 2022-12-18 07:35:25
|
> By the way, I have not still understand well why the evaluation string > are separated to some categories like 'cases', 'line-like' and so on. It makes sense for ASCII. Probably you should leave that untranslated. I don't know how much you care about ASCII. > Because of this, as pere pointed out, just adding Japanese characters to > just one category may not push it on top, therfore, I suppose that I > have to add them to multiple categories, if I want to see them on top. > > In addition, I still feel a little unconfortable that there is no > suitable existing category for Hiragana and Katakana, although I know it > does not matter where to put them. Would this chunk of currently unused code help you? // translation spares -- design not finalized #if 0 user_font_styles[num_font_styles]->score += charset_works(font, gettext("<1>spare-1a")); user_font_styles[num_font_styles]->score += charset_works(font, gettext("<1>spare-1b")); user_font_styles[num_font_styles]->score += charset_works(font, gettext("<9>spare-9a")) * 9; user_font_styles[num_font_styles]->score += charset_works(font, gettext("<9>spare-9b")) * 9; #endif It should not impact English, but that could use documentation! The text has repeated digits, either "1" or "9", causing the font to be considered bad, and thus the score does not increase. So you could translate like this: "<9>spare-9a" becomes a pair of hiragana. "<9>spare-9b" becomes a pair of katakana. "<1>spare-1a" becomes a pair of kanji. "<1>spare-1b" becomes the Yen and Yuan currency symbols. If you really want to force all fonts to support Japanese, you can translate the "qx" and "QX" strings. Append a pair of katakana, a pair of hiragana, and a pair of kanji. It shouldn't matter if you add the pairs to "qx" or "QX". Those are only distinct because English users don't want to completely disqualify fonts that lack the case distinction. If you force all fonts to support Japanese, then you lose all kinds of silly decorative fonts. For example, there might be a font that contains pictures of animals in place of the ASCII letters, so "A" is a monkey and "B" is an elephant and so on. |