You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@lincomatic@ludwigb
I pushed some improvements / fixes to PR #666 (e.g. without language it skipped all other tags), adding also support for way names and writer tests.
@lincomatic
Extensively testing the languages behavior, I don't find the description in Getting-Started-Map-Writer completely accurate. Concerning the statement:
If only one language is specified, the specified language will be written if its tag is found, otherwise default tagless language will be written.
I see that with either one or many preferred language(s), the default tagless language is always written, followed by the specified language(s).
"NOTE: Are we certain that we chose the most suitable separators?"
I ran it through the entire planet, and there are no problems with the \b and \r separators occuring in strings. However, FYI, there were a few items that didn't contain the default "name" tag, only "name:xx"
In the case of Paris, France, there are even certain ways which only have "name:left" and "name:right," but this case was already causing problems before we added the multilingual support
Is there any policy what OSM does if there is no default name?
I would suggest we just leave it empty, the cases are probably few and far
between. Other option: use first available language from our language
selection string.
"NOTE: Are we certain that we chose the most suitable separators?"
I ran it through the entire planet, and there are no problems with the \b
and \r separators occuring in strings. However, FYI, there were a few items
that didn't contain the default "name" tag, only "name:xx"
In the case of Paris, France, there are even certain ways which only have
"name:left" and "name:right," but this case was already causing problems
before we added the multilingual support
—
Reply to this email directly or view it on GitHub #624 (comment)
.
yes, reader just needs to have some sort of logical way to handle it. There are very few occurrences of it in the whole planet, but it is disconcerting to see it in a major city such as Paris, where the current implementation will result in an unnamed street, since the language filter in the writer will skip over name:left/right. In the case of having no default "name" and only "name:lang" the easiest way is to just pick the first stored name if no matching language is found.
yes, reader just needs to have some sort of logical way to handle it.
There are very few occurrences of it in the whole planet, but it is
disconcerting to see it in a major city such as Paris, where the current
implementation will result in an unnamed street, since the language filter
in the writer will skip over name:left/right. In the case of having no
default "name" and only "name:lang" the easiest way is to just pick the
first stored name if no matching language is found.
—
Reply to this email directly or view it on GitHub #624 (comment)
.
Yes such issues should be corrected first in OSM side.
About picking another available name:X to fill the empty name, couldn't we have cases then where a country's element will be named with a foreign language (even with non latin characters)?
I cannot really see any solution that will not have any strange side
effects. What might work for one element will then have, as Emux says, an
unwanted effect for many others.
My suggestion would really be to then just leave it empty, as it is in OSM
itself.
Yes such issues should to be corrected first in OSM side.
About picking another available name:X to fill the empty name, then
couldn't we have cases where an element in a country will be named with
another country's language (even with non latin characters)?
—
Reply to this email directly or view it on GitHub #624 (comment)
.
Looking at the values, it seems it is mostly used for boundaries (where it
makes sense), not roads. There are 1258 highways with the tag name:right,
some will also have the name tag.
Activity
Merge pull request #666 from lincomatic/dev
Multilingual maps: PR #666 improvements / fixes, add ways, writer test,
devemux86 commentedon Sep 5, 2015
@lincomatic @ludwigb
I pushed some improvements / fixes to PR #666 (e.g. without language it skipped all other tags), adding also support for way names and writer tests.
devemux86 commentedon Sep 5, 2015
Right now the reader does not work with multiple languages as we have fixed:
We need to do some clever handling there, I don't like much filling the API with static calls.
devemux86 commentedon Sep 5, 2015
BTW is the language preference '-' (equal to null) necessary?
If we don't want language preference, we simply don't set one.
Merge pull request #667 from lincomatic/dev
devemux86 commentedon Sep 5, 2015
With 62a4e4d I renamed language option to 'preferred-languages'.
Advance map file format version to 4, denoting the multilingual nature,
devemux86 commentedon Sep 5, 2015
As @ludwigb correctly suggested, I advanced map file format version to 4, denoting the multilingual nature.
Advance map file format version to 4 in reader, #624
Multilingual maps: more improvements, #624
devemux86 commentedon Sep 5, 2015
I pushed another set of improvements.
@lincomatic
Extensively testing the languages behavior, I don't find the description in Getting-Started-Map-Writer completely accurate. Concerning the statement:
I see that with either one or many preferred language(s), the default tagless language is always written, followed by the specified language(s).
devemux86 commentedon Sep 5, 2015
Remaining tasks:
name:enis the same as the defaultname, to store thenameonly.49 remaining items
Multilingual maps: make MapDataStore.extract public static, #624
Multilingual maps: fix two languages display, #624
lincomatic commentedon Sep 29, 2015
"NOTE: Are we certain that we chose the most suitable separators?"
I ran it through the entire planet, and there are no problems with the \b and \r separators occuring in strings. However, FYI, there were a few items that didn't contain the default "name" tag, only "name:xx"
In the case of Paris, France, there are even certain ways which only have "name:left" and "name:right," but this case was already causing problems before we added the multilingual support
ludwigb commentedon Sep 30, 2015
Is there any policy what OSM does if there is no default name?
I would suggest we just leave it empty, the cases are probably few and far
between. Other option: use first available language from our language
selection string.
Ludwig
On 30 September 2015 at 07:54, lincomatic [email protected] wrote:
devemux86 commentedon Sep 30, 2015
Leaving it empty, would be my first thought too.
In case of processing, I think it would be in reader.
lincomatic commentedon Sep 30, 2015
yes, reader just needs to have some sort of logical way to handle it. There are very few occurrences of it in the whole planet, but it is disconcerting to see it in a major city such as Paris, where the current implementation will result in an unnamed street, since the language filter in the writer will skip over name:left/right. In the case of having no default "name" and only "name:lang" the easiest way is to just pick the first stored name if no matching language is found.
ludwigb commentedon Oct 1, 2015
There is no way mapsforge can deal with the level of inconsistencies in
tagging. Plus one user's solution will not satisfy another one.
It is really an OSM problem, IMHO.
On 1 October 2015 at 07:54, lincomatic [email protected] wrote:
devemux86 commentedon Oct 1, 2015
Yes such issues should be corrected first in OSM side.
About picking another available
name:Xto fill the emptyname, couldn't we have cases then where a country's element will be named with a foreign language (even with non latin characters)?applantation commentedon Oct 1, 2015
I cannot really see any solution that will not have any strange side
effects. What might work for one element will then have, as Emux says, an
unwanted effect for many others.
My suggestion would really be to then just leave it empty, as it is in OSM
itself.
On 1 October 2015 at 14:23, Emux [email protected] wrote:
devemux86 commentedon Oct 1, 2015
May I ask - if anyone knows - why in France we have roads named like that (left / right) and how many are they (is it wrong naming or local feature) ?
ludwigb commentedon Oct 1, 2015
http://taginfo.openstreetmap.org/keys/name:left
http://taginfo.openstreetmap.org/keys/name:right
Looking at the values, it seems it is mostly used for boundaries (where it
makes sense), not roads. There are 1258 highways with the tag name:right,
some will also have the name tag.
On 1 October 2015 at 14:35, Emux [email protected] wrote:
devemux86 commentedon Oct 24, 2015
I'm closing this as we have implemented all the needed functionality in both writer and reader and the multilingual maps are available for some time.
Map writer: configuration improvements #624
[-]Multilingual maps[/-][+]Multilingual maps v4[/+]