[libvoikko] Voikko, cyrillic and case handling

Sjur Moshagen sjurnm at mac.com
Wed Jan 25 09:43:00 EET 2012


Den 25. jan. 2012 kl. 08.59 skrev Sjur Moshagen:

> 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?

Forget it - figured it out.

Sjur




More information about the Libvoikko mailing list