--- In [email protected], Joan Montané <j...@...> wrote: > It's really ugly to play with these tiles changed, so we request > support for digraphs tiles. There are at least three languages using > them: Catalan, Spanish and Welsh. >
Multi-byte character support is inefficient in dawg or gaddag data structures, so I recommend using only single characters. After all, Scrabble alphabets all have fewer than 32 symbols, so even 5 bits is enough. Scrabble rules generally allow words containing digraphs to be spelled using either the digraph or using consecutive letters. So add both spellings to the dawg. Maven uses 8 bits for the letter field in the dawg. This is a lowercase letter, which occupies ASCII range from 97 to 122. Digraphs get the symbols from 123 and up. For display, you can insert a mapping layer from dawg character to display character. It is much easier to insert digraph support there than in the dawg. Best, Sapphire Brand
