Hi Gerd, "the prefixes are only removed when you zoom out and the full name would be too long to be displayed."
That's it! It's working and I just noticed when I zoomed out. And it makes perfect sense that it works this way. Regarding the LocatorConfig.xml file, the current default configuration meets my need since I use "BRA". However, I suggest including the variation in Portuguese: <variant> Brasil </ variant> Many thanks for the support! Best regards, Alexandre 2017-06-12 1:04 GMT-03:00 Gerd Petermann <[email protected]>: > Hi Alexandre, > > the prefixes are only removed when you zoom out and the full name would be > too long > to be displayed. Sometimes MapSource decides to render the shortened name > instead, > sometimes it is not rendered. I think this depends on the "level of > details" setting. > > The file LocatorConfig.xml is shipped with the mkgmap.jar and contains > other country specific > information, e.g. > <country name="Brasil" abr="BRA" streetBeforeHousenumber="true"> > <variant>BR</variant> > <variant>BRA</variant> > <variant>Brazil</variant> > </country> > > Follow the link which I pasted to browse the file content or extract it > from the jar > mkgmap.jar\LocatorConfig.xml > I think you can use a modified version of the file when you place it into > a directory \resources > in the working directory of mkgmap. > > Gerd > > ________________________________________ > Von: mkgmap-dev <[email protected]> im Auftrag von > Alexandre Loss <[email protected]> > Gesendet: Sonntag, 11. Juni 2017 23:25:39 > An: Development list for mkgmap > Betreff: Re: [mkgmap-dev] Doubt when using "road-name-config" > > Thank you Carlos and Gerd by your answers. > > In fact, I don't use the default style, but each way is tagged with > "mkgmap:country=BRA", as you can see in a partial sample extracted from a > mkgmap execution with echotags: > > Way 6761 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, > highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, > mkgmap:label:1=RUA DAS ROSAS, mkgmap:region=MG, mkgmap:street=RUA DAS > ROSAS, name=RUA DAS ROSAS] > Way 13983 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, > highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, > mkgmap:label:1=RUA RUBI, mkgmap:region=MG, mkgmap:street=RUA RUBI, name=RUA > RUBI] > > > This is may roadNameConfig.txt file in this test: > > ########################################################################## > # Section 1 > # prefix1:<lang> list of 1st words > # prefix2:<lang> further words to combine with each prefix1 word, > separated with a blank > # suffix:<lang> gives list of suffix words > > # portugese > prefix1:pt = "Rua", "Avenida", "Travessa" > prefix2:pt = "da ", "do ", "de ", "das ", "dos " > > ########################################################################## > # Section 2 > # Map 3 letter ISO country codes to list of used languages for road names. > > lang:BRA = pt > lang:PRT = pt > > And in MapSource I'm still viewing the ways with full name prefixed bye > "Rua" and "Rua das ": > > [Imagem inline 1] > > > What can I'm doing wrong? > > And Gerd, in your last email you quoted the "LocatorConfig.xml" file. What > file is this and where can I find it? > > Thanks. > > Alexandre > > > 2017-06-11 12:00 GMT-03:00 Gerd Petermann <[email protected] > <mailto:[email protected]>>: > Hi, > > Carlos is right for the default style. If you use a very different style, > make sure that mkgmap:country contains the > 3 letter iso code for the country. See also the file LocatorConfig.xml. > I'll try to make that clearer in the coments > in roadNameConfig.txt. > > https://github.com/openstreetmap/mkgmap/tree/master/resources > > Gerd > ________________________________________ > Von: mkgmap-dev <[email protected]<mailto:mkgmap- > [email protected]>> im Auftrag von Carlos Dávila < > [email protected]<mailto:[email protected]>> > Gesendet: Sonntag, 11. Juni 2017 15:32 > An: Development list for mkgmap > Betreff: Re: [mkgmap-dev] Doubt when using "road-name-config" > > El 11/06/17 a las 14:42, Alexandre Loss escribió: > > Hi Gerd, > > > > I'm trying to use the new "road-name-config" parameter and I have a > doubt: > > > > In section 2 of the file roadNameConfig.txt there are some language > > configuration, for example "lang:FRA = fr". However, when do I tell > > mkgmap which language I'm using? In what parameter is this > > configured? Is it "country-abbr"? > > > > Thanks, > > > > Best regards > > > > Alexandre Loss > > > Section 2 is used by mkgmap to know what language(s) is spoken in each > country. You don't have to tell mkgmap what language, but what country. > And it takes that info from bounds file if --bounds parameter is given. > _______________________________________________ > mkgmap-dev mailing list > [email protected]<mailto:[email protected]> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > _______________________________________________ > mkgmap-dev mailing list > [email protected]<mailto:[email protected]> > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > > _______________________________________________ > mkgmap-dev mailing list > [email protected] > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >
_______________________________________________ mkgmap-dev mailing list [email protected] http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
