logo separator

[mkgmap-dev] Remove accentiuation

From Gerd Petermann GPetermann_muenchen at hotmail.com on Thu Mar 2 09:16:30 GMT 2023

Hi Karl,

sorry, I have no idea what you try to do. My understanding so far was that the apostrophe is added by transliteration which happens after style processing.
Please give us an OSM object that contains the name with the problematic characters.

I don't think that you can remove a single apostrophe with the subst statement, the current implementation doesn't seem to allow this special character.

Gerd

________________________________________
Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von 7770 <7770 at foskan.eu>
Gesendet: Sonntag, 26. Februar 2023 18:02
An: mkgmap-dev at lists.mkgmap.org.uk
Betreff: Re: [mkgmap-dev] Remove accentiuation

Hi.
For some reason it seems i am not able to perform this type of change in the
finalize section.

I get:
Error in style: Error: (points:427): Unrecognised command '='

The lines in points finalize style looks like:

name=* {name '${name}'}
# next line to remove ' from names.
name=* {set name='${name|subst:"'=>"}'}
include 'inc/address';

Is this how it is supposed to look?

Regards
Karl


On söndag 1 januari 2023 19:34:19 CET you wrote:
> You can try in stylefile this addidional  line : {set name='${name
>
> |subst:'=>}'} . This action shoult remove the apostrophe.
>
> thomas
>
> Am 01.01.2023 um 18:37 schrieb 7770:
> > Hi and with wishes of a Happy new year.
> >
> > When preparing maps i use the setting
> > --latin1   (same as --code-page=1252)
> >
> > This is good most of the time, since most language specific characters are
> > replaced with plain latin characters. Cyrillic is transliterated to latin.
> >
> > In Ukraininan there is a softening letter (ь), when this is present in a
> > name, it is transliteradet to ' (apostrophe).
> >
> > For example the city Львів becomes L'viv. This in turn makes searches more
> > difficult since one not familar with the language may not know where the
> > accentuation is placed. As a forigner i would not know if it is Lviv or
> > L'viv.
> >
> > Is there some better code page to use to start with (still performing
> > transliteration) or some way to ask mkgmap to remove the apostrophe from
> > the text?
> >
> >
> > Regards
> > Karl
> >
> >
> >
> > _______________________________________________
> > mkgmap-dev mailing list
> > mkgmap-dev at lists.mkgmap.org.uk
> > https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev




_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list