logo separator

[mkgmap-dev] [PATCH] Alpha code for Highway Symbols

From Marko Mäkelä marko.makela at iki.fi on Mon Apr 6 13:20:22 BST 2009

On Mon, Apr 06, 2009 at 12:44:54PM +0100, Mark Burton wrote:
> 
> Hi Clinton,
> 
> > 1. An addition to the lines style file, which inserts the special code
> > before the highway reference (hex 0x04 for motorways, 0x05 for major
> > highways, 0x06 for minor highways).
> > 
> >     I had to use a hex editor to insert these symbols.
> 
> cgpsmapper allows you to enter those codes using a syntax ~[0x??] but
> that doesn't seem to work with mkgmap. If it did, the binary editor
> would not be needed.

What about \x04 (hex) or \4 (octal) or \u4 (hex, Unicode)?  I have
experienced that Java *.properties files allow the \u prefix for inputting
Unicode code points.  I don't know which method mkgmap uses for parsing
the files.  I'd vote for the \u syntax, as the files already are in
Unicode (encoded to bytes in UTF-8).

	Marko



More information about the mkgmap-dev mailing list