maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Howto: Limit swype to the languages you use (https://talk.maemo.org/showthread.php?t=80582)

Vaskinn 2011-12-04 13:18

Re: Howto: Limit swype to the languages you use
 
Same exact version as me., so that's not the cause of us seeing different behaviour.

I've checked and there is no line break, or space, after the list, both in the original and my modified version.

I used "vi" to edit. Did you use this or some other editor that may have "helped" by adding a line break for you?

Could you have added words to the dictionary of one of the languages that is now disabled? What happens if you restore the original and then remove just one language? If it works try removing one language at a time until you find which one makes things fail.

I see from your earlier post that your second language is US-english. I've been using norwegian and UK english. Maybe US has some kind of dependency to UK, what happens if you keep both?

Vaskinn 2011-12-04 13:38

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by mikhas (Post 1133051)
Please use the public bugtracke if you think there's a bug in the language configuration of Swype: https://harmattan-bugs.nokia.com/

According to swype.com, selecting languages is a feature in swype 3.26, currently in beta. So I guess it's a missing feature, and if the version we get is updated one this is out of beta then this hack won't be nessessary. Not a bug per se.

flof 2011-12-04 16:48

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by Vaskinn (Post 1133058)
I've checked and there is no line break, or space, after the list, both in the original and my modified version.

I used "vi" to edit. Did you use this or some other editor that may have "helped" by adding a line break for you?

Could you have added words to the dictionary of one of the languages that is now disabled? What happens if you restore the original and then remove just one language? If it works try removing one language at a time until you find which one makes things fail.

I see from your earlier post that your second language is US-english. I've been using norwegian and UK english. Maybe US has some kind of dependency to UK, what happens if you keep both?

I tried all combinations of line break and space (and lack thereof) - I used nano, because I can't find vi in the repositories (which surprised me).

There's only words added in German and English US - as that one works once it's not last in the list it must be something else. Dependency: Unlikely - when I had German, US English and UK English, US all of a sudden worked but UK showed the error because it was last in list.

I guess I'll have to live with the long press and list selection to change language for now, will try again with PR1.2 (and maybe throw in a factory reset while I'm at it).

Thanks for all your help :-)

ajalkane 2011-12-04 17:00

Re: Howto: Limit swype to the languages you use
 
Thanks, this is exactly what I've been missing as I constantly have to switch between two languages.

Vaskinn 2011-12-05 15:59

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by flof (Post 1133122)
I tried all combinations of line break and space (and lack thereof) - I used nano, because I can't find vi in the repositories (which surprised me).

Good news. I have now reproduced the problem: By copying the original language file into place, and then editing with nano I get the error. If you edit with vi you should be good.

vi has to be part of either developer mode, or the Utilities package you can install after activating developer mode. (Otherwise it's a mystery where I got it from, bacause I haven't installed anything else that could account for it)

ossipena 2011-12-05 17:20

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by Vaskinn (Post 1133548)
Good news. I have now reproduced the problem: By copying the original language file into place, and then editing with nano I get the error. If you edit with vi you should be good.

vi has to be part of either developer mode, or the Utilities package you can install after activating developer mode. (Otherwise it's a mystery where I got it from, bacause I haven't installed anything else that could account for it)

I can confirm, nano is quilty, or atleast after editing with vi, no database errors occur anymore....

caco3 2011-12-05 18:04

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by ossipena (Post 1133585)
I can confirm, nano is quilty, or atleast after editing with vi, no database errors occur anymore....

That sounds very strange!
Why should nano break something?
I use it all the time on my PC, N900 and also N9 to edit config files and never had any issue.

OT:
Is there a way to remove entries from the dictionary I occidentally added?

flof 2011-12-05 19:15

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by Vaskinn (Post 1133548)
Good news. I have now reproduced the problem: By copying the original language file into place, and then editing with nano I get the error. If you edit with vi you should be good.

vi has to be part of either developer mode, or the Utilities package you can install after activating developer mode. (Otherwise it's a mystery where I got it from, bacause I haven't installed anything else that could account for it)

Vaskinn, you're right on both - I have a working 2 languages setup now - and even better, I have my beloved vi (actually I had it all along, but hadn't seen it listed in the utilities package). Thanks so much :-)

Vaskinn 2011-12-05 19:51

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by caco3 (Post 1133600)
Why should nano break something?
I use it all the time on my PC, N900 and also N9 to edit config files and never had any issue.

I can think of a few ways.

Maybe nano saves in a different format ("plain" text files are nowhere near as plain as you'd think) and swype is being picky because we're not really supposed to edit that file. (I'd have to examine the files in a hex editor to see)

Or perhaps instead of saving over the contents of the existing file nano does a "delete-create" when saving, losing a file system attribute or something similar in the process.

(my money is on encoding, linefeeds or byte order mark)

Edit:
And the winner is linefeed. Added by nano without asking.

caco3 2011-12-05 22:43

Re: Howto: Limit swype to the languages you use
 
Quote:

Originally Posted by Vaskinn (Post 1133644)
And the winner is linefeed. Added by nano without asking.

Do you mean the line feed at the end of the line?
Most linux programs actually give out a warning if the config file misses an empty line at its end. i.e. fstab (http://www.linuxquestions.org/questi...-fstab-241806/)
Because of that I am very used to end a config file with an ending line.
Now, we could argue if it is right from nano to add one without asking, but it seems to be usual (http://lists.gnu.org/archive/html/he.../msg00009.html).
I wouldnt see it really as a bug in nano but more as a Swype being too picky!

/OT


All times are GMT. The time now is 07:37.

vBulletin® Version 3.8.8