[libvoikko] Voikko, cyrillic and case handling

Sjur Moshagen sjurnm at mac.com
Wed Jan 25 08:59:12 EET 2012

Den 24. jan. 2012 kl. 22.23 skrev Harri Pitkänen:

> Extending current mappings and sending patches is fine. Case mappings are
> defined in the first two functions in src/character/SimpleChar.cpp. There
> is a TODO comment at the end of both functions, you can add your ranges
> just before that comment.

Good. In a clause like the following:

	if (input >= 0x0179 && input <= 0x017D && input % 2 == 1) {
		// Ź-Ž
		return input + 1;

what does "input % 2 == 1" designate, and what should the appropriate value for cyrillic characters be?

> Additionally you should make sure that get_char_type in
> src/character/charset.cpp returns CHAR_LETTER for cyrillic letters, I
> don't think it does that yet.

I'll check that.


More information about the Libvoikko mailing list