logo separator

[mkgmap-dev] Using regex , subst, substring or other to translate value to propercase

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Tue Jun 23 08:53:27 BST 2020

Hi Joris

I can't think of any way to do this, but it should be easy to implement
more substitution filters like |upper, |lower, |initcap, |...

Ticker

On Mon, 2020-06-22 at 06:25 +0000, Joris Bo wrote:
> Hi
>  
> Does somebody ever managed to change a tag-value to
> propercase/titlecase?
> For example Change:  amsterdam  into Amsterdam ?
>  
> Searching the string with subst function and regex mostly works fine.
> Replace that search with a hardcoded or known stringvalue works fine
> Split the value with substring in two parts 1(a) and 2(msterdam)
> works fine.
> But I cannot come up with a way to change the small ‘a’ into a large
> ‘A’ (besides adding 26 rules to my style 😊)
>  
> Anybody any more ideas?
>  
>  
> Kind regards,
> Joris
>  
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list