Commit c6427287 authored by Bruno Coudoin's avatar Bruno Coudoin

- cleanup, removed deprecated wordslevel* now the xml version

	  default-*.xml are used.
	- cleanup, removed deprecated files boards/gletters/gletters.*
	  we now use the IM API.
parent 2c8aec38
2006-08-22 Bruno coudoin <bruno.coudoin@free.fr>
- cleanup, removed deprecated wordslevel* now the xml version
default-*.xml are used.
- cleanup, removed deprecated files boards/gletters/gletters.*
we now use the IM API.
* boards/wordsgame/default-en.xml:
* boards/wordsgame/default-fr.xml:
* boards/wordsgame/default-tr.xml:
* boards/wordsgame/wordslevel1.da:
* boards/wordsgame/wordslevel1.de:
* boards/wordsgame/wordslevel1.el:
* boards/wordsgame/wordslevel1.en:
* boards/wordsgame/wordslevel1.es:
* boards/wordsgame/wordslevel1.eu:
* boards/wordsgame/wordslevel1.fi:
* boards/wordsgame/wordslevel1.fr:
* boards/wordsgame/wordslevel1.hu:
* boards/wordsgame/wordslevel1.it:
* boards/wordsgame/wordslevel1.lt:
* boards/wordsgame/wordslevel1.nb:
* boards/wordsgame/wordslevel1.nn:
* boards/wordsgame/wordslevel1.pt:
* boards/wordsgame/wordslevel1.pt_BR:
* boards/wordsgame/wordslevel1.ro:
* boards/wordsgame/wordslevel1.ru:
* boards/wordsgame/wordslevel1.sk:
* boards/wordsgame/wordslevel1.sl:
* boards/wordsgame/wordslevel1.sv:
* boards/wordsgame/wordslevel2.da:
* boards/wordsgame/wordslevel2.de:
* boards/wordsgame/wordslevel2.el:
* boards/wordsgame/wordslevel2.en:
* boards/wordsgame/wordslevel2.es:
* boards/wordsgame/wordslevel2.eu:
* boards/wordsgame/wordslevel2.fi:
* boards/wordsgame/wordslevel2.fr:
* boards/wordsgame/wordslevel2.it:
* boards/wordsgame/wordslevel2.lt:
* boards/wordsgame/wordslevel2.nb:
* boards/wordsgame/wordslevel2.nn:
* boards/wordsgame/wordslevel2.pt:
* boards/wordsgame/wordslevel2.pt_BR:
* boards/wordsgame/wordslevel2.ro:
* boards/wordsgame/wordslevel2.ru:
* boards/wordsgame/wordslevel2.sk:
* boards/wordsgame/wordslevel2.sl:
* boards/wordsgame/wordslevel2.sv:
* boards/wordsgame/wordslevel3.fr:
* boards/wordsgame/wordslevel3.lt:
* boards/wordsgame/wordslevelmax.da:
* boards/wordsgame/wordslevelmax.de:
* boards/wordsgame/wordslevelmax.el:
* boards/wordsgame/wordslevelmax.en:
* boards/wordsgame/wordslevelmax.es:
* boards/wordsgame/wordslevelmax.eu:
* boards/wordsgame/wordslevelmax.fi:
* boards/wordsgame/wordslevelmax.fr:
* boards/wordsgame/wordslevelmax.hu:
* boards/wordsgame/wordslevelmax.it:
* boards/wordsgame/wordslevelmax.lt:
* boards/wordsgame/wordslevelmax.nb:
* boards/wordsgame/wordslevelmax.nl:
* boards/wordsgame/wordslevelmax.nn:
* boards/wordsgame/wordslevelmax.pt:
* boards/wordsgame/wordslevelmax.pt_BR:
* boards/wordsgame/wordslevelmax.ro:
* boards/wordsgame/wordslevelmax.ru:
* boards/wordsgame/wordslevelmax.sk:
* boards/wordsgame/wordslevelmax.sl:
* boards/wordsgame/wordslevelmax.sv:
* src/boards/wordsgame.c: (start_board):
2006-08-22 Bruno coudoin <bruno.coudoin@free.fr>
- completed the wordlist API which look like this now:
......
......@@ -25,13 +25,10 @@ So here is the format description:
letter confuse the kid
apple appl_ / e / h / a
A set of file in boards/wordsgame/wordslevelx.yy
Where x is the level or max and yy your target locale.
A set of file in boards/wordsgame/default-yy.xml
Where yy is your target locale.
Note that these words must be choosen to be simple in your language, don't
necessary translate the English. Also, it is important to make sure that
these words can be written with your keyboard in one key (no alt-gr stuff or
compose key). If it is not possible, there is a special directory to look at in
boards/gletters/README. It let you configure this activity for any keyboard.
necessary translate the English.
A complete voice translation in boards/sounds/yy
It is best to choose somebody that speaks and articulate well your language.
......
Important: These files must be UTF-8 formated.
To do this, you can use gedit, oowrite or any text editor that supports UTF-8.
The locale files are a combination letters and configuration files.
The most important part of these files are levels. Each level consists of those characters you want dropped at that level. Do not use quotes and spaces are not allowed. The levels should be progressive in difficulty; level 1 might only contain upper case ASCII, level 2 might add numerals, level 3 might add lower case, and so on. There is currently a hard limit of 9 levels; this is simply because the scoring graphic does not extent beyond 9. If someone generates scoring icons beyond 9, I'll be happy to increase the level limit. Look at gletters.cz and gletters.ja for examples.
You as the translator should provide sufficient levels to be challenging in your native alphabet or alphabets. gletters is currently limited to at most 9 levels of play. Each level drops characters more frequently and faster than the previous level.
Scoring and progression to the next level is based on the number of characters at the current level.
If you skip a level, gletters will use default POSIX/ASCII upper case letters for that level.
Keymaps allow you to map characters that need to be composed via either alternate input methods, AltGr key or some such method to keyboard keys. For examples of this, look at gletters.ja and gletters.cz.
If your native alphabet uses only latin letters with perhaps some accents (as in the majority of Western European languages) you may not need a keymap. If your native alphabet uses additional or different characters you need to map those characters to keys normally found on your keyboard. Since gletters does not recognize alternate input methods, you must explicitly map alternate alphabets to latin letters.
A keymap essentially allows a single key to "pop" multiple characters. You do not need to map upper and lower case letters normally found in your locate; gletters checks for case automatically according to the rules of the locale.
Because alternate keyboards can be considerably slower, especially for beginning users, there are two special keywords that can be used to control how fast characters fall and how fast they are dropped.
The fallrate is the rate at which letters fall. The smaller the numbers, the faster the letters fall. The first number is the base; the second number is the variability by level. You should start with the sum of the numbers around 140 and experiment to find an appropriate fall speed for your users. If you do not specify it, the default value is used.
The droprate is the rate at which letters are dropped. The smaller the numbers, the more letters drop. The first number is the base; the second number is the variability by level. You should start with the sum of the numbers around 9000 and experiment to find an appropriate drop rate for your users. If you do not specify it, the default value is used.
Gletters was written to try and keep going even if there are errors in the config files. If things don't work as you expect, gletters does try to print warnings about things it doesn't understand in the config files; look at the output generated by gcompris before filing a bug report. If you file a bug report, please include your gletters.xx file, and any output generated by gcompris.
Known bugs
If you have characters in your level set that are not in your locale, they may not be rendered full-size. This appears to be a pango bug, not a gcompris bug.
Report bugs in UTF-8 implementation to gcompris-devel@lists.sourceforge.net and cc yan@seiner.com
UTF-8 mods to gletters.c (C) Yan Seiner 2004
Released under the same GPL license as gcompris
# commands can appear in any order
# comments begin with '#'
# blank lines are ignored
# all items in this file are optional and have program defaults
# levels define the characters to be dropped for that level of play
# note that the gletters keyboard is case-insensitive so the A key
# will "pop" both A and a, no shifting or mapping is necessary
level 1 ABCDEFGHIJKLMNOPQRSTUVWXYZ
level 2 ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
level 3 ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvxyz
level 4 あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん
level 5 アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン
level 6 ABCDEFGHIJKLMNOPQRSTUVWXYZあいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん
level 7 ABCDEFGHIJKLMNOPQRSTUVWXYZアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン
level 8 あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをんアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン
level 9 あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをんアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvxyz
# key maps map keys on the keyboard to characters that are dropped
# so for example for this japanese keyboard, we map the lower case
# keys letters (a-z0-9) and some punctuation to hiragana and katakana
# gcompris at this point does not recognize alternate input methods
# so kana input has to be done via mapping the romaji keyboard
key 1ぬ
key 2ふ
key 3あ
key 4う
key 5え
key 6お
key 7や
key 8ゆ
key 9よ
key 0わ
key -ほ
key ^へ
key qた
key wて
key eい
key rす
key tか
key yん
key uな
key iに
key oら
key pせ
key aち
key sと
key dし
key fは
key gき
key hく
key jま
key kの
key lり
key ;れ
key :け
key 」む
key zつ
key xさ
key cそ
key vひ
key bこ
key nみ
key mも
key ,ぬ
key .る
key /ぬ
key \ろ
key 1ヌ
key 2フ
key 3ア
key 4ウ
key 5エ
key 6オ
key 7ヤ
key 8ユ
key 9ヨ
key 0ワ
key -ホ
key ^ヘ
key qタ
key wテ
key eイ
key rス
key tカ
key yン
key uナ
key iニ
key oラ
key pセ
key aチ
key sト
key dシ
key fハ
key gキ
key hク
key jマ
key kノ
key lリ
key ;レ
key :ケ
key 」ム
key zツ
key xサ
key cソ
key vヒ
key bニ
key nミ
key mモ
key ,ヌ
key .ロ
key /ヌ
key \ロ
# the fallrate is the rate at which letters fall
# the smaller the numbers, the faster they fall
# the first number is the base
# the second number is the variability by level
# the sum of the numbers should be around 140
# use a slower fall rate for beginning typists
# use a faster rate to keep the challenge for more
# skilled typists
fallrate 40 100
# the droprate is the rate at which letters are dropped
# the smaller the numbers, the more letters drop
# the first number is the base
# the second number is the variability by level
# the sum of the numbers should be around 9000
droprate 1000 8000
level 1 ABC
level 2 ABCDEFGHI
level 3 ABCDEFGHIJKLMNOPQRS
level 4 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ
level 5 0123456789
level 6 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ0123456789
level 7 abcdefghijklmnopqrstuvwxyzæøå
level 8 abcdefghijklmnopqrstuvwxyzæøå0123456789
level 9 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅabcdefghijklmnopqrstuvxyzæøå0123456789
level 1 ABC
level 2 ABCDEFGHI
level 3 ABCDEFGHIJKLMNOPQRS
level 4 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ
level 5 0123456789
level 6 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ0123456789
level 7 abcdefghijklmnopqrstuvwxyzæøå
level 8 abcdefghijklmnopqrstuvwxyzæøå0123456789
level 9 ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅabcdefghijklmnopqrstuvxyzæøå0123456789
# commands can appear in any order
# comments begin with '#'
# blank lines are ignored
# all items in this file are optional and have program defaults
# levels define the characters to be dropped for that level of play
# note that the gletters keyboard is case-insensitive so the A key
# will "pop" both A and a, no shifting or mapping is necessary
level 1 АПРО
level 2 ВАПРОЛД
level 3 ЫВАПРОЛДЖ
level 4 ФЫВАПРОЛДЖЭ
level 5 ФЫВАПРОЛДЖЭГЕНТМИ
level 6 ФЫВАПРОЛДЖЭГЕНТМИКШУЩСЬЧБ
level 7 ФЫВАПРОЛДЖЭГЕНТМИКШУЩСЬЧБЗЦХЙ
level 8 ФЫВАПРОЛДЖЭГЕНТМИКШУЩСЬЧБЗЦХЙЯЧСЮБЬ
level 9 АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЭЮЯЪЬабвгдеёжзийклмнопрстуфхцчшщэюяъь0123456789
# key maps map keys on the keyboard to characters that are dropped
# so for example for this japanese keyboard, we map the lower case
# keys letters (a-z0-9) and some punctuation to hiragana and katakana
# gcompris at this point does not recognize alternate input methods
# so kana input has to be done via mapping the romaji keyboard
key qй
key wц
key eу
key rк
key tе
key yн
key uг
key iш
key oщ
key pз
key [х
key ]ъ
key aф
key sы
key dв
key fа
key gп
key hр
key jо
key kл
key lд
key ;ж
key
key zя
key xч
key cс
key vм
key bи
key nт
key mь
key ,б
key .ю
# the fallrate is the rate at which letters fall
# the smaller the numbers, the faster they fall
# the first number is the base
# the second number is the variability by level
# the sum of the numbers should be around 140
# use a slower fall rate for beginning typists
# use a faster rate to keep the challenge for more
# skilled typists
fallrate 40 100
# the droprate is the rate at which letters are dropped
# the smaller the numbers, the more letters drop
# the first number is the base
# the second number is the variability by level
# the sum of the numbers should be around 9000
droprate 1000 8000
level 1 ABCDEFGHIJKLMNOPQRSTUVXYZÅÄÖ
level 2 ABCDEFGHIJKLMNOPQRSTUVXYZÅÄÖ0123456789
level 3 abcdefghijklmnopqrstuvxyzåäö
level 4 abcdefghijklmnopqrstuvxyzåäö0123456789
level 5 abcdefghijklmnopqrstuvxyzåäöABCDEFGHIJKLMNOPQRSTUVXYZÅÄÖ
level 6 abcdefghijklmnopqrstuvxyzåäöABCDEFGHIJKLMNOPQRSTUVXYZÅÄÖ0123456789
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<GCompris>
<Wordlist name="default-en" description="Default English (Canada)" locale="en">
<level value="1">
<Wordlist name="default-en" description="Default English (Canada)" locale="en">
<level value="1">
friend
with
bob
......@@ -37,8 +37,8 @@ green
blue
mine
dry
</level>
<level value="2">
</level>
<level value="2">
enough
learn
teach
......@@ -72,9 +72,8 @@ heavy
white
game
level
</level>
<level value="3">
</level>
<level value="3">
enough
learn
teach
......@@ -143,6 +142,6 @@ green
blue
mine
dry
</level>
</Wordlist>
</level>
</Wordlist>
</GCompris>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<GCompris>
<Wordlist name="default-fr" description="Default French" locale="fr">
<level value="1">
<Wordlist name="default-fr" description="Default French" locale="fr">
<level value="1">
moto
auto
marmelade
......@@ -18,8 +18,8 @@ mot
porte
mur
sur
</level>
<level value="2">
</level>
<level value="2">
navire
arrive
sort
......@@ -36,8 +36,8 @@ tortue
sorti
sourire
auto
</level>
<level value="3">
</level>
<level value="3">
samedi
vendredi
jeudi
......@@ -59,8 +59,8 @@ raté
mal
six
patte
</level>
<level value="4">
</level>
<level value="4">
pic
roc
sac
......@@ -84,6 +84,6 @@ calé
copie
canot
colorie
</level>
</Wordlist>
</level>
</Wordlist>
</GCompris>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<GCompris>
<Wordlist name="default-tr" description="Default Turkish" locale="tr">
<level value="1">
arkadaş
ile
ali
ve
ve ya
sonraki
çiftlik
araba
misiklet
kuş
yol
onun
onun
kupa
hızlı
uçmak
görmek
basit
kolay
sevmek
eğlenceli
gitmek
başlamak
zıplamak
sahip olmak
köpek
kedi
inek
kitap
mektup
kırmızı
yeşil
mavi
benimki
kuru
</level>
<level value="2">
yeterli
öğrenmek
öğretmek
kum
görmek
güneş
kale
istanbul
dağ
binmek
bozuk
fare
fil
katı
gidiyor
hoş
yükseklik
bilgi
detek
göl
bilgisayar
müzik
ses
renk
mükemmel
güç
rüya
okul
hoş geldiniz
ağır
beyaz
oyun
seviye
</level>
<level value="3">
yeterli
öğrenmek
öğretmek
kum
görmek
güneş
kale
istanbul
dağ
binmek
bozuk
fare
fil
katı
gitmek
hoş
yükseklik
bilgi
destek
göl
bilgisayar
müzik
ses
renk
mükemmel
güç
rüya
okul
hoş geldiniz
ağır
beyaz
oyum
seviye
arkadaş
ile
ali
ve
ve ya
sonraki
çiftlik
araba
bisiklet
kuş
yol
onun
onun
kupa
hızlı
uçmak
görmek
basit
kolay
sevmek
eğlenmek
gitmek
başlamak
atlamak
sahip olmak
köpek
kedi
inek
kitap
mektup
kırmızı
yeşil
mavi
benimki
kuru
</level>
</Wordlist>
</GCompris>
ven
med
bob
and
eller
næste
gård
bil
fugl
vej
den
lav
kop
fast
fly
se
enkel
let
sjov
start
hop
have
hund
kat
ko
bog
brev
rød
grøn
blå
mine
tør
hus
vis
mit
und
oder
an
auf
bei
nahe
fern
weit
eng
hoch
tief
rot
grün
blau
gelb
warm
kalt
hund
katze
maus
fisch
vogel
pferd
auto
mann
frau
kind
weg
bein
arm
fuß
ohr
auge
see
meer
φίλος
με
νίκος
και
ή
χωρίς
μετά
φάρμα
αμάξι
πάπια
πουλί
δρόμος
του
της
πιάτο
γρήγορα
πετώ
βλέπω
απλό
εύκολο
αγάπη
ζωή
πάω
αρχή
πίνω
τρώω
έχω
σκύλος
γάτα
μύγα
λαγός
βιβλίο
γράμμα
κόκκινο
πράσινο
μπλε
friend
with
bob
and
or
next
farm
car
bike
bird
road
his
her
cup
fast
fly
see
simple
easy
love
fun
go
start
jump
have
dog
cat
cow
book