Why is there a code-page in the .typ-file? And - is there a code-page a gmapsupp.img?

Hi Everyone 1. Switching to unicode I ask myself If I should also change the typ-file to code-page=65001 - is this only for the case that you want to label a line/poi/polygon using unicode characters - or should any .typ-file that is "bundled" by a unicode map, also be unicode? Does anyone know a garmin unicode map that has a .typ-file? 2. I couldn't notice any change on compiling a gmapsupp.img regarding a code-page set. Is there actually a code-page for a gmapsupp.img? Especially regarding address index. Or is the code-page only for the map.img files themselves? Felix -- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Oh well - I just noticed the Garmin winter activity map is also in unicode and the .typ-file is also code-page 65001. Well so actually mkgmap should correct the code-page in the .typfile if creating a gmapsupp.img if code-page is given... (well I use gmt.exe to change the code-page now.) I don't know if changing the .typ-file code-page to 65001 will help on the earlier issue of maps showing unlocked on edge 1000 / gpsmaps 64 with newest firmware. Well soon I think there must be a new Oregon 6x0 firmware update too, and I suppose that changes to the new security mechanisms too - then it will affect much more users... On 30.06.2014 20:41, Felix Hartmann wrote:
Hi Everyone 1. Switching to unicode I ask myself If I should also change the typ-file to code-page=65001 - is this only for the case that you want to label a line/poi/polygon using unicode characters - or should any .typ-file that is "bundled" by a unicode map, also be unicode?
Does anyone know a garmin unicode map that has a .typ-file?
2. I couldn't notice any change on compiling a gmapsupp.img regarding a code-page set. Is there actually a code-page for a gmapsupp.img? Especially regarding address index. Or is the code-page only for the map.img files themselves?
Felix
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Hi Felix
1. Switching to unicode I ask myself If I should also change the typ-file to code-page=65001
I don't think you need to unless you want you labels to be in more than one character set eg Greek and Cyrilic.
2. I couldn't notice any change on compiling a gmapsupp.img regarding a code-page set. Is there actually a code-page for a gmapsupp.img? Especially regarding address index. Or is the code-page only for the map.img files themselves?
There is not a separate code-page for the gmapsupp - it is just a container for other files. There is a code page for the individual .img files and also for the global address index (MDR) and the sort order file (SRT). ..Steve

On 30.06.2014 23:00, Steve Ratcliffe wrote:
Hi Felix
1. Switching to unicode I ask myself If I should also change the typ-file to code-page=65001
I don't think you need to unless you want you labels to be in more than one character set eg Greek and Cyrilic. Well I'm not sure. The Garmin Winter activity map (only unicode map I know that's free) only has latin1 characters in the .typ-file (languages French, English, German) - yet they use Unicode for it. But I don't know if this is any sort of requirement.
2. I couldn't notice any change on compiling a gmapsupp.img regarding a code-page set. Is there actually a code-page for a gmapsupp.img? Especially regarding address index. Or is the code-page only for the map.img files themselves?
There is not a separate code-page for the gmapsupp - it is just a container for other files. There is a code page for the individual .img files and also for the global address index (MDR) and the sort order file (SRT). okay thanks a lot for the clarification... So for the case that you have a mapset/gmapsupp that contains both unicode and another code .img files - I'm pretty sure this is fine as long as the MDR and SRT are in unicode...
..Steve
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Hi everyone,
De: "Steve Ratcliffe" <steve@parabola.me.uk> À: extremecarver@gmail.com, "Development list for mkgmap" <mkgmap-dev@lists.mkgmap.org.uk> Envoyé: Lundi 30 Juin 2014 23:00:07 Objet: Re: [mkgmap-dev] Why is there a code-page in the .typ-file? And - is there a code-page a gmapsupp.img?
Hi Felix
1. Switching to unicode I ask myself If I should also change the typ-file to code-page=65001
I don't think you need to unless you want you labels to be in more than one character set eg Greek and Cyrilic.
I can't compile a text TYP file saved in UTF-8 format. I found no information in the mkgmap help regarding the file format. From this message, I understand that mkgmap should be able to compile a unicode text TYP file but mkgmap crashes. I've been using this file in CP1252 successfully before. I converted it in a text editor (UTF-8 with BOM), set the code page to "CodePage=65001". This is the error I get : java -Xmx1G -jar ..\bin\mkgmap-r3498\mkgmap.jar typfile.txt Time started: Fri Mar 20 16:00:59 CET 2015 java.nio.charset.UnsupportedCharsetException: cp65001 at java.nio.charset.Charset.forName(Unknown Source) at uk.me.parabola.mkgmap.main.TypCompiler$CharsetProbe.setCodePage(TypCompiler.java:210) at uk.me.parabola.mkgmap.main.TypCompiler$CharsetProbe.tryCharset(TypCompiler.java:250) at uk.me.parabola.mkgmap.main.TypCompiler$CharsetProbe.probeCharset(TypCompiler.java:217) at uk.me.parabola.mkgmap.main.TypCompiler$CharsetProbe.access$000(TypCompiler.java:200) at uk.me.parabola.mkgmap.main.TypCompiler.makeMap(TypCompiler.java:67) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:253) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:249) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exiting - if you want to carry on regardless, use the --keep-going option Number of ExitExceptions: 1 Time finished: Fri Mar 20 16:00:59 CET 2015 Total time taken: 203ms Am I missing something or is this an mkgmap bug ? -- Paco

Hi Felix Code Pages & TYP files Unicode only affects text associated with an element - in fact Garmin has 'recently' extended the languages to &2e (Irish) . I'm not sure if Steve has allowed for this in the TYP compiler. r Nick -- View this message in context: http://gis.19327.n5.nabble.com/Why-is-there-a-code-page-in-the-typ-file-And-... Sent from the Mkgmap Development mailing list archive at Nabble.com.
participants (4)
-
Felix Hartmann
-
nwillink
-
paco.tyson@free.fr
-
Steve Ratcliffe