sspanak / tt9

A T9 keyboard for Android devices with a hardware keypad.
Apache License 2.0
200 stars 33 forks source link

Feature Request: Import wordlist #472

Open DarthFlip opened 3 months ago

DarthFlip commented 3 months ago

Now that in version 29 you can export your custom words, can you add a way to import the csv file?

sspanak commented 3 months ago

This has been requested before at least twice (#153, #208) in the past and my position remains the same. It's highly unlikely for this feature to be added.

Here is why:

  1. This will easily allow importing any list of words, which may cause unexpected problems. For example, adding words with apostrophes, may cause completely wrong suggestions or out-of-order suggestions. This will be very hard to diagnose and in the end there will be nothing to fix on my side. I really don't want to spend time banging my head against the wall for nothing.
  2. Even if I filter all funny characters and allow only valid words, consisting only of letters, it may be tempting to add a big list of words. This will cause performance issues. Again, I value my time and I don't want spend it on problems I can not fix.
  3. This is an open-source project. If you have a big list of words, or think something is missing, just anything, share your words or ideas on Github and help making it better. This way everyone will benefit, not only you.
maverick74 commented 3 months ago

maybe, even if it's still a csv file, using a personalized extension (e.g.: user.tt9 instead of user.csv) could somehow avoid importing a list that was not generated/accepted by tt9

(just an idea, not sure if it's any good...)

sspanak commented 3 months ago

Well, the extension makes no difference, the users will still be able to put what they want in the file.

Besides, I would like to promote the open-source idea where everyone could help making the project better, instead of everyone making and using their own mods.

maverick74 commented 3 months ago

Well, the extension makes no difference, the users will still be able to put what they want in the file.

Yeah, that was the whole idea of changing the extension. It would still be a CSV file that anyone could edit, but having an unknown extension maybe it would scare newbies from it, and leave mostly just those who "should know what they're doing and how to deal with it"

Besides, I would like to promote the open-source idea where everyone could help making the project better, instead of everyone making and using their own mods.

my idea is not much in this spirit, i know... :p

All in all, being able to have a backup/list of the words added is already great. One just have to open it and add the words - which in my case are not that much - to tt9, in case one have to reinstall.

maverick74 commented 3 weeks ago

can i just erase that last line in my last comment?!........

I was about to switch from the "full" version to the "lite" version (for space reasons) until... i exported my personal dictionary and found that i have 123 added "words"........ (not as few as i thought they were...)

just thinking that i'll have to add that many manually is making me think twice about it...

maverick74 commented 3 weeks ago

Sharing workaround: I've opened the exported .csv directly on the phone, placed the cursor inside each word and added it!!!

Was the fastest/easiest way to do it... ;)

sspanak commented 3 weeks ago

You can install the "lite" version over the "full" version and vice versa, and preserve all words and settings, you don't have to uninstall anything before that. They are identical except for the missing language files. Did your phone refuse the operation?

Also, I am curious, why don't you want to share the words so that I can include them in the general dictionary? Have you added passwords or something?

maverick74 commented 3 weeks ago

You can install the "lite" version over the "full" version and vice versa, and preserve all words and settings, you don't have to uninstall anything before that. They are identical except for the missing language files. Did your phone refuse the operation?

I did that and it actually went ok!!! But, since the previous version had all the dictionaries included, i was left wondering if the lite would erase the "unused dictionaries" or if they would be kept on the phone, since they were already installed (i even cleared the dictionaries not used)... however, at the "end of the day" i choose to play safe and remove it completely to reinstall the lite version... (i suppose that now i only have portuguese and english in my phone... ???how can i be sure???)

Also, I am curious, why don't you want to share the words so that I can include them in the general dictionary? Have you added passwords or something?

Nooooo!!! No passwords are saved on my phone anywhere! That's a big mistake!!! No!!! ahahah I'm not that stupid ahahah

i have no problem in sharing the "words" i save, the problem is that technically they are not words and do not belong in a dictionary!

i'll share a few examples:

Real Word ---------------vs------------- what i use / added to the dictionary:

thanks----------------------------------------------------tks what the f***------------------------------------------wtf comigo---------------------------------------------------cmg fim de semana----------------------------------------fds qualquer------------------------------------------------qq depois---------------------------------------------------dps hoje-------------------------------------------------------hj

I use lots of words/abbreviations like this (and a bunch of some "ugly words" that are quite common)...

but none of them belong to a dictionary (hence why i don't ask them to be added), but i use them A LOT ahahahah

sspanak commented 3 weeks ago

But, since the previous version had all the dictionaries included, i was left wondering if the lite would erase the "unused dictionaries" or if they would be kept on the phone, since they were already installed (i even cleared the dictionaries not used)... however, at the "end of the day" i choose to play safe and remove it completely to reinstall the lite version... (i suppose that now i only have portuguese and english in my phone... ???how can i be sure???)

There was only one case when I had to wipe out everything, in v27.0. I don't think I'll have to do this ever again, so rest assured all you have is preserved as is on every upgrade. And if there is need to delete words again, there will be an announcement in the release notes.

Btw, I am planning to put the languages on a separate screen and display some more information about them. Thanks to what you said, I realized there must be some indication if the dictionary is deactivated, but the words are loaded, so you don't have to guess.

Nooooo!!! No passwords are saved on my phone anywhere! That's a big mistake!!! No!!! ahahah I'm not that stupid ahahah

Good thinking! :smile:

i have no problem in sharing the "words" i save, the problem is that technically they are not words and do not belong in a dictionary!

Got it. On the other hand, everyone uses "wtf", so I think it is OK to add it.

maverick74 commented 3 weeks ago

But, since the previous version had all the dictionaries included, i was left wondering if the lite would erase the "unused dictionaries" or if they would be kept on the phone, since they were already installed (i even cleared the dictionaries not used)... however, at the "end of the day" i choose to play safe and remove it completely to reinstall the lite version... (i suppose that now i only have portuguese and english in my phone... ???how can i be sure???)

There was only one case when I had to wipe out everything, in v27.0. I don't think I'll have to do this ever again, so rest assured all you have is preserved as is on every upgrade. And if there is need to delete words again, there will be an announcement in the release notes.

Btw, I am planning to put the languages on a separate screen and display some more information about them. Thanks to what you said, I realized there must be some indication if the dictionary is deactivated, but the words are loaded, so you don't have to guess.

Nooooo!!! No passwords are saved on my phone anywhere! That's a big mistake!!! No!!! ahahah I'm not that stupid ahahah

Good thinking! 😄

i have no problem in sharing the "words" i save, the problem is that technically they are not words and do not belong in a dictionary!

Got it. On the other hand, everyone uses "wtf", so I think it is OK to add it.

Yes... there are a few ones in English everyone uses... wtf, omg, lol, and so on (English is the king of abbreviations ahahah)!

Oh and if it's not asking too much, please add "KDE" as well ( that Linux brand from KDE.org )

around here I have the feeling this is more kind of a generation-specific thing! Kind of "Ever had a Nokia? Then you know about the abbreviations"! But then again... I may be wrong and it may also be just my view of it...

sspanak commented 3 weeks ago

This issue is about importing words. For missing/incorrect Portuguese words, could you please update #548? I would like to keep things organized, so I can easily find all the info on topic in one single place.

I don't mind adding technical terms, commonly used acronyms and whatnot. In fact, I think it is a great idea. It is just I don't use all the 29 languages every day, so I have no idea what is missing.

around here I have the feeling this is more kind of a generation-specific thing! Kind of "Ever had a Nokia? Then you know about the abbreviations"! But then again... I may be wrong and it may also be just my view of it...

Of course, I've had a Nokia. I still keep my old 3310 and when I don't know what is the best way of doing something, I turn it on to get an example how things are done. Traditional T9 is largely inspired by the 3310. This is why it works so good most of the time. :stuck_out_tongue:

The thing is my primary language is Bulgarian. We have a different alphabet, we don't use acronyms as much, instead we prefer long words (not as much as Germans, though!), so in this perspective I am missing a lot.

As for importing words, I may reconsider my position. But if I do it, will be possible to import only words consisting of letters. Meaning, no words like "I'm", "what's", etc... And probably limit the list to 1000 or something.

maverick74 commented 3 weeks ago

I don't mind adding technical terms, commonly used acronyms and whatnot. In fact, I think it is a great idea. It is just I don't use all the 29 languages every day, so I have no idea what is missing.

( thinking outloud: "acronyms"... how I searched the back of my memories for it before I use "abbreviations"... well moving on... ) yeah, naturally you can't know all the acronyms of all languages!!! It would be awesome anyone could ahahah

around here I have the feeling this is more kind of a generation-specific thing! Kind of "Ever had a Nokia? Then you know about the abbreviations"! But then again... I may be wrong and it may also be just my view of it...

Of course, I've had a Nokia.

That was not a question! It was an example!!! Ahahah. You could not have built tt9 if you hadn't had contact with Nokia! It would be almost impossible to emulate it so well if you didn't own one ahahah!

My point was that - around here - most people who use acronyms where also Nokia users and that - from my experience - younger generations don't use acronyms so intensively as the Nokia generation! (this is my idea, from my experience! I could be wrong)

As for importing words, I may reconsider my position. But if I do it, will be possible to import only words consisting of letters. Meaning, no words like "I'm", "what's", etc... And probably limit the list to 1000 or something.

Yeah! I'm perfectly ok with that! That would work!