Hi all,

2010/5/3 sapphirebrand <[email protected]>

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

Yes, I agree with your aproach.  We done it (Ç->K, NY->Y, L·L->W, QU->Q).
So, now the target is "to hide" the trick to the user.


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

Well, Catalan rules forbid playing digraphs with two consecutive tiles
(AFAIK in Spanish it's is forbidden also). So, I put in lexicon only the
true digraph mode.


> 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.
>
>
Is there such mapping layer on Quackle? AFAIK it doen't exist.

Another issue is user's input.

Typically, a single character / key used to play a tile of board. Thus, the
chips should have an "input" assigned char (This may be the same internal
identifier).
Another aproach is to parse the "human keyboard input" GORIL·LA --> GORIWA



> Best,
> Sapphire Brand
>


Joan Montané

Reply via email to