[mkgmap-dev] Using regex , subst, substring or other to translate value to propercase
From Joris Bo jorisbo at hotmail.com on Tue Jun 23 09:45:55 BST 2020
Hi Ticker, Thanks for the answer. Your solution sounds great. This way it would also help people who like to do a non-casesensitive equation by first lowering the case of both values for example. Kind regards, Joris -----Oorspronkelijk bericht----- Van: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> Namens Ticker Berkin Verzonden: dinsdag 23 juni 2020 09:53 Aan: Development list for mkgmap <mkgmap-dev at lists.mkgmap.org.uk> Onderwerp: Re: [mkgmap-dev] Using regex , subst, substring or other to translate value to propercase 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 _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
- Previous message: [mkgmap-dev] Using regex , subst, substring or other to translate value to propercase
- Next message: [mkgmap-dev] Using regex , subst, substring or other to translate value to propercase
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list