logo separator

[mkgmap-dev] Remove accentiuation

From 7770 7770 at foskan.eu on Tue Feb 28 20:08:15 GMT 2023

Hi.
Returning to this long-ago question.
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






More information about the mkgmap-dev mailing list