Modify

Opened 7 years ago

Last modified 2 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 Klumbumbus, 7 years ago

Ticket #12830 has been marked as a duplicate of this ticket.

comment:2 by Klumbumbus, 6 years ago

Ticket #16375 has been marked as a duplicate of this ticket.

comment:3 by Don-vip, 4 years ago

Keywords: preset search alias added
Priority: normalmajor

comment:4 by Klumbumbus, 4 years ago

Ticket #18423 has been marked as a duplicate of this ticket.

comment:5 by stoecker, 4 years ago

A possibility would be to add a description entry to presets and also search these.

comment:6 by richlv, 4 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 Klumbumbus, 4 years ago

They contain the drop down box for key denomination which includes the value church_of_scotland.

comment:8 by richlv, 4 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".

comment:9 by simon04, 4 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.

in reply to:  9 comment:10 by Klumbumbus, 4 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 Don-vip, 4 years ago

That would require a lot of strings to become untranslated, I would prefer a rich-man's solution :)

comment:12 by simon04, 4 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?

comment:13 by stoecker, 4 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 Hufkratzer, 2 years ago

Cc: Hufkratzer added

in reply to:  13 comment:15 by skyper, 2 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 Hufkratzer, 2 years ago

In iD meanwhile they have two different possibilities: search terms and aliases (=synonyms), example

Last edited 2 years ago by Hufkratzer (previous) (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to naoliv.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.