aerostitch / testnavit

0 stars 0 forks source link

Ñ and ç missing from keyboard #103

Open aerostitch opened 13 years ago

aerostitch commented 13 years ago

Issue migrated from trac ticket # 886

component: core | priority: major | keywords: keyboard, i18n

2011-06-27 13:03:14: amontero@tinet.org created the issue


Missing keys: Ñ/ñ - A must for Spanish Ç/ç - Catalan / Portuguese / French / ...

Navit for Android 0.5.0 4281 (from Market)

Great app!! Thanks.

aerostitch commented 13 years ago

2011-07-10 07:40:50: tryagain commented


I'm thinking to implement a feature (for POI search at first) to remove all diacritical signs from both query text and item attributes when comparing them. So nobody will be obliged to enter search string with correct diacriticals to do a search.

I feel that to be quite useful for non-native speakers. Even native speakers don't always distinguish similary looking diacriticals: http://en.wikipedia.org/wiki/Romanian_alphabet#Comma-below_.28.C8.99_and_.C8.9B.29_versus_cedilla_.28.C5.9F_and_.C5.A3.29

Another step is to do romanization on search string and item attributes, so you'll not have to distinguish between, e.g. similary looking Cyrillic and Latin letters.

Of course, that features will not have any effect on the letters displayed in search results or on the map.

aerostitch commented 13 years ago

2011-08-23 02:13:18: @mvglasow commented


Something like this is already available for town/street search. Entering "Munchen" or "Muenchen" will find "München" and similar.

The code (along with translation table) is in linguistics.c; IIRC the search function calls it indirectly (going through the respective map driver). Maybe you can reuse that code.

It has one advantage over what you propose: it can support multiple (currently up to 2) equivalents for the same accented character, including digraphs (in some languages, e.g. German, the official rule is to use digraphs as substitutes for certain characters which are not available, e.g. ae=ä, oe=ö, ss=ß; others (Latvian) use similar schemes inofficially).

The table in linguistics.c is still incomplete as of 4692, see ticket #917 for an enhancement which should work for most of Europe (Latin alphabets only).

Romanization of Cyrillic should be possible as well that way, though you'd probably be dealing with a couple of options for each letter (a similar-looking Latin one as well as phonetically equivalent ones, which may be more than one).

aerostitch commented 13 years ago

2011-08-23 02:13:18: @mvglasow

aerostitch commented 13 years ago

2011-08-24 10:57:35: korrosa changed status from new to closed

aerostitch commented 13 years ago

2011-08-24 10:57:35: korrosa changed resolution from * to fixed*

aerostitch commented 13 years ago

2011-08-24 10:57:35: korrosa commented


This should be fixed by the patch in #917: http://navit.svn.sourceforge.net/navit/?rev=4706&view=rev.

If the problem persists, please re-open this ticket.

aerostitch commented 13 years ago

2011-08-25 12:31:38: @mvglasow changed status from closed to reopened

aerostitch commented 13 years ago

2011-08-25 12:31:38: @mvglasow changed resolution from fixed to **

aerostitch commented 13 years ago

2011-08-25 12:31:38: @mvglasow commented


Reopening as the POI search does not use the routines in linguistics.c yet. The code for translating is there but we still need to modify the POI search to use it.

Proof: A modified 4710 (with the upcoming second patch for #917) finds Klaipėda when searching for "klaipe" in city search, in street search "klaipe" finds Klaipėdos gatvė in Vilnius, but when searching for POIs (tested in Vilnius) by name, "aib" returns five results (four times Aibė, one time Aibe – apparently misspelled), "aibe" returns only one (the misspelled one).

aerostitch commented 13 years ago

2011-08-25 12:31:38: @mvglasow

aerostitch commented 13 years ago

2011-08-25 12:31:38: usul

aerostitch commented 11 years ago

2013-07-06 14:10:38: usul

aerostitch commented 11 years ago

2013-07-06 14:10:38: usul commented


Ok, we need to check this issue on the POI search dialog, too. IMHO there were other Android related tickets, which pointed out, that the POI search widget is handled different, too (there the Android soft keyboard).

Important for international users, so scheduled for 0.5.1 hotfix

aerostitch commented 11 years ago

2013-07-08 14:05:20: tryagain commented


POI search since 5296 supports diacritic removal with the same algo as is used in the address search.

As for the ticket title, we are probably still missing these keys from our keyboard. But one shouldn't care too much now: just enter the whole search string without diacritics at all and you get your search result. This works both for Latin and Cyrillic based alphabets.

If some diacritics processing still behaves bad, we could fix it.

Should we care to add missing keys to the internal keyboard?

aerostitch commented 11 years ago

2013-07-09 05:19:04: amontero@tinet.org commented


Agree on search being the main benefit of this ticket. However, special chars can be used also when saving POIs, although I admin that this is a low prio annoyance. +1 to add diacritics. As long as it is clear for the user that entering "c" will match "ç" it is a good compromise. However, if this is not made clear, it is a UX issue, anyway.

aerostitch commented 10 years ago

2013-10-14 08:08:33: usul changed severity from * to trivial*