Opened 8 years ago
Last modified 3 years ago
#14404 new enhancement
Support similar/alternative words when searching for a preset
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | preset search alias i18n | Cc: | Hufkratzer |
Description
Could JOSM support some kind of "similar/alternative words" when searching for something in the presets?
For example, people here can call a highway=traffic_signals
as "Semáforo", "Sinal de trânsito", "Farol", etc.
If we press F3
and try to search for it, we will be able to locate it using only the current translation (Sinal de trânsito). If somebody searches for "semáforo" they will not find anything.
JOSM:
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-02-21 01:04:28 +0100 (Tue, 21 Feb 2017) Build-Date:2017-02-21 02:33:46 Revision:11590 Relative:URL: ^/trunk Identification: JOSM/1.5 (11590 pt_BR) Linux Debian GNU/Linux 9.0 (stretch) Memory Usage: 1367 MB / 10206 MB (824 MB allocated, but free) Java version: 1.8.0_121-8u121-b13-3-b13, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1600x900, :0.1 1280x1024 Maximum Screen Size: 1600x1024 Java package: openjdk-8-jre:amd64-8u121-b13-3 Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-13 VM arguments: [-Dawt.useSystemAAFontSettings=on] Dataset consistency test: No problems found
Attachments (0)
Change History (16)
comment:1 by , 8 years ago
comment:3 by , 5 years ago
Keywords: | preset search alias added |
---|---|
Priority: | normal → major |
comment:5 by , 5 years ago
A possibility would be to add a description entry to presets and also search these.
comment:6 by , 5 years ago
How does this work currently in some cases then?
For example, If I search for "church", it shows among the entries "Geography/Land use/Graveyard", "Offices/Religion" and "Shops/Other/Gift/Souvenir".
comment:7 by , 5 years ago
They contain the drop down box for key denomination which includes the value church_of_scotland.
comment:8 by , 5 years ago
Thanks, got it. I'll collect the suggested matches here so we don't have to look all over the tickets.
- "gallery" -> shop=art and tourism=museum - those are the suggested tags for things that are often labeled "art galleries".
follow-up: 10 comment:9 by , 5 years ago
Keywords: | i18n added |
---|
The poor-man's solution would be to write those aliases in parentheses of the preset name, such as <item name="Traffic Signal (aka. semaphore)" ...>
This allows individual languages to add aliases to names which do not have/need an alias in English. And we wouldn't have to adapt the i18n process.
comment:10 by , 5 years ago
Replying to simon04:
write those aliases in parentheses of the preset name, such as
<item name="Traffic Signal (aka. semaphore)" ...>
Nah, please not.
comment:11 by , 5 years ago
That would require a lot of strings to become untranslated, I would prefer a rich-man's solution :)
comment:12 by , 5 years ago
Those aliases are a bit orthogonal to the standard i18n process:
- in English aliases might not be needed
- in the foreign language aliases might not be needed
Thus, we cannot simply add <item name="..." aliases="foo,bar">
and mark aliases
for i18n, can we?
follow-up: 15 comment:13 by , 5 years ago
Actually I think that whole idea makes not much sense. It's much like the HTML keywords. Somebody thought it a great idea, but it never made much sense. If something is so important, that it should be in the preset, then add it as descriptive text. Anything else is so much personal experience that you probably will never find two people agreeing that these keywords are right.
And hidden texts are black magic where nobody will understand why it works.
comment:14 by , 3 years ago
Cc: | added |
---|
comment:15 by , 3 years ago
Replying to stoecker:
If something is so important, that it should be in the preset, then add it as descriptive text. Anything else is so much personal
I tried <label text="" /> and
<preset_link text="" />
and both are not added to preset search. How can I add one or two words without changing the item name? See my comment 24 on #21907 and above.
comment:16 by , 3 years ago
In iD meanwhile they have two different possibilities: search terms and aliases (=synonyms), example
Ticket #12830 has been marked as a duplicate of this ticket.