[question] Quick adding a list of words as a LEARNED words for custom vkb...

asked 2016-09-07 19:14:25 +0200

Schturman gravatar image

updated 2016-09-07 19:21:47 +0200

Hi to all...
Maybe someone with needed skills can help with this...
As we know the predictive words placed in some *.so file that we can't just edit and add custom words. Also we know that learned words are stored in xt9.dlm file but we also can't just edit it and add custom words.
For now we can add custom words by writing them a few times for example in note app and phone will store them as learned words in xt9.dlm file.
But what if we have a big list with words? In my case list have 10000 words and insert them manually as learned words will take too much time... I started to do this 3 days ago and even not close to the half of list...
I thought maybe it possible somehow with terminal command, something like:

cat file.txt|while read line; do <command>; done

I'm googling 2 days, but without needed result... I also asking Pekka Vuorela about this and here is his answer:

Learning words needs to go through the prediction library. Only interface at the moment is the qml one. If you want to hack for yourself, guess you can check Xt9InputHandler.qml and do some simple app that does acceptWord() parts.

Probably by terminal command it also not possible...

And here is question, can someone with needed skills do this hack/app for inserting a big list of custom words as "LEARNED" words ? Or at least can explain step by step how to do this...
Thanks

edit retag flag offensive close delete

Comments

Wow... 10 000 custom words is a huge list. Is there something wrong with your default list? I assume your language is Deutsch?

eson ( 2016-09-07 20:06:33 +0200 )edit
1

Yes, my list have 10000 custom most useful words. And no, nothing is wrong with my default list, becase I don't have default list. My language is Hebrew and it's not supported by Jolla yet... :)
This is a reason that I want quickly add many words and use xt9.dlm file in my package. After installation user immediately have a big list of predictive (most useful) Hebrew words. I have it in some my vkb's but with very small list of custom words that I added manually...

Schturman ( 2016-09-07 20:39:56 +0200 )edit

I would like to have a recipe for an opposite action: remove words from dictionary

piero ( 2016-09-07 20:56:31 +0200 )edit
2

@piero, why you need remove when you can just hide predictive words with patch...

Schturman ( 2016-09-07 21:35:09 +0200 )edit

@schturman Thanks, "Hebrew" answered all my questions. :)

eson ( 2016-09-08 06:10:28 +0200 )edit