custom wordlist for hangman activity?

Johnny Jazeix jazeix at gmail.com
Tue Nov 1 19:46:16 GMT 2022


Hi,

great to hear!

Le dim. 30 oct. 2022 à 19:17, Jurgis Pralgauskis <
jurgis.pralgauskis at gmail.com> a écrit :

>
> Hi,
>
> thanks rccextended worked (at least on Ubuntu),
> just for compiling back I needed to use usuall /usr/bin/rcc,
> otherwise rcc was missing much data...
>
> Anyway the simplest setting for app could be:
> *min/max letters in word*
>
>
As we sort by category, we must ensure there is at least a good number of
words with the min/max letters or handling differently the words.


>
> ps.: Also, maybe, uncompressed would allow editing directly without
> recompiling?
> /usr/bin/rcc  --binary *--no-compress* lang.qrc -o lang.rcc
>
>
Unfortunately, the size of the rcc grows from 48MB to 63MB when
uncompressed. Where it could be not an issue on Linux, Windows or MacOS,
the size of the apk in Android is limited and we already reduced it a lot.
Having a small size is better for all the users and there are not a lot of
people who tries to edit an rcc directly :).

Cheers,

Johnny


>
> 2022-10-28, pn 20:59, Johnny Jazeix <jazeix at gmail.com> rašė:
>
>> Hi,
>> on my side, last time I needed to edit an rcc, I used
>> https://github.com/zedxxx/rccextended which worked fine.
>> Nekiro seems based on it but documentation seems lacking.
>>
>> If you provide me the words.json, I can compile it for you (either a new
>> apk/exe/.sh or only the rcc to copy).
>>
>> Regarding android, I'm not sure how easy it is to change the actual rcc
>> file (if we can browse inside the installed folder and have enough rights
>> to update it).
>>
>> Cheers,
>>
>> Johnny
>>
>> Le ven. 28 oct. 2022 à 17:35, Jurgis Pralgauskis <
>> jurgis.pralgauskis at gmail.com> a écrit :
>>
>>> Thanks,
>>>
>>> maybe rcc compilation needs less dependencies than QT app?
>>>
>>> if it is relatively simple, I would try.
>>>
>>> Also saw some tools to edit rcc:
>>> https://github.com/nekiro/Nekiro-Rcc-Editor
>>>
>>> maybe you know what is easiest on windows or Ubuntu?
>>>
>>> 2022-10-28, pn 15:12, Johnny Jazeix <jazeix at gmail.com> rašė:
>>>
>>>> Hi,
>>>>
>>>> unfortunately, there is no easy way to update them without recompiling
>>>> the application.
>>>> The json files are stored in the lang.rcc file installed and it either
>>>> needs to be recompiled or extracted/updated/recompressed with the fix.
>>>> We have to think if we can have a configuration option to set them and
>>>> how to handle it or a way to override the file which works in all OSes that
>>>> we can integrate in the next version.
>>>>
>>>> Cheers,
>>>>
>>>> Johnny
>>>>
>>>> Le ven. 28 oct. 2022 à 13:18, Jurgis Pralgauskis <
>>>> jurgis.pralgauskis at gmail.com> a écrit :
>>>>
>>>>> ps.: my intention is to select subset
>>>>> of most simple/common/short words for my language
>>>>> as we are just beginning to read.
>>>>>
>>>>> On Fri, Oct 28, 2022 at 12:47 PM Jurgis Pralgauskis <
>>>>> jurgis.pralgauskis at gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Where can I customize wordlist for hangman (and maybe other reading)
>>>>>> activity?
>>>>>> I found some info on wiki
>>>>>> https://gcompris.net/wiki/Word_Lists#general
>>>>>> and https://gcompris.net/wiki/Word_Lists_Qt
>>>>>>
>>>>>> As I see from words and this line
>>>>>> <https://github.com/KDE/gcompris/blob/9e79ebb418eb4179d1a92155fa310fc526e1b894/src/activities/hangman/hangman.js#L46>
>>>>>> , hangman uses data from
>>>>>>
>>>>>> https://github.com/gcompris/GCompris-qt/tree/master/src/activities/lang/resource
>>>>>> lessons/chapters are described in `words.json`  (or
>>>>>> `words_sample.json`).
>>>>>> but I couldn't find/locate those json files on disk
>>>>>>
>>>>>> How/where can I customize/override it (without
>>>>>> recompilation/reinstall of app):
>>>>>> - on Ubuntu
>>>>>> - on Android (if also possible)?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> ps.: in gcompris-qt.conf I see
>>>>>> userDataPath <http://getResourceDataPaths>=/home/jurgis/.local/share/GCompris
>>>>>>
>>>>>> but not sure if it would help me
>>>>>>
>>>>>> --
>>>>>> Jurgis Pralgauskis
>>>>>> tel: 8-616 77613;
>>>>>> Don't worry, be happy and make things better ;)
>>>>>> https://galvosukykla.wordpress.com/
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Jurgis Pralgauskis
>>>>> tel: 8-616 77613;
>>>>> Don't worry, be happy and make things better ;)
>>>>> https://galvosukykla.wordpress.com/
>>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/gcompris-devel/attachments/20221101/ace675a3/attachment-0001.htm>


More information about the GCompris-devel mailing list