/[public]/psiconv/trunk/formats/psion/World_Data_File.psi
ViewVC logotype

Diff of /psiconv/trunk/formats/psion/World_Data_File.psi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 112 Revision 113
17mžŸU¦˜  17mžŸU]§ 
2dČ"Times New RomanN1"Times New Roman š 2dČ"Times New RomanN1"Times New Roman š
3< &Heading 2Lš"Times New Roman š 3< &Heading 2Lš"Times New Roman š
4< &Heading 3L ’’’h3r h3r ŠŠ  def8dż‚.ĘA±%[World Data File]World Data FileThis file is used by the Time program to save data about new or modified countries and cities. It is usually located in C:\System\Data and called WLD_DATA.DBW.Note that simply changing this file does not change the data within the Time program; a soft reset should do the trick, though.The World Data File starts with a «Header Section» which contains:Offset Size Data Description0000 «ID» 46 00 00 10 UID1: World Data File0004 «ID» 00 00 00 00 UID2: Unused0008 «ID» 00 00 00 00 UID3: Unused000C L F1 E7 5A 04 UID4: Checksum of UID1, UID2 and UID 30010The remaining file is structured as follows:Size Data DescriptionL 01 00 00 00 Marker to start the city sectionLListE «World Data City Section»L 00 00 00 00 Marker to start the country sectionLListE «World Data Country Section»[World Data City Section]World Data City SectionThis is an LListE.City section elements are structured as follows:Size Description«String» New city name«String» New country name«String» Original city name (empty string if this is a new city)«String» Original country name (empty string if this is a new city)8B City data«String» Area codeThe city data is very compact, probably to save space:Start End Description0000 bit 0 0001 bit 0 Horizontal map position (left=000, right=17b)0001 bit 1 0001 bit 2 Unused?0001 bit 3 0002 bit 7 Latitude in minutes (South is negative)0003 bit 0 0003 bit 7 Vertical map position (top=00, bottom=cf)0004 bit 0 0005 bit 6 Longitude in minutes (East is negative)0005 bit 7 0007 bit 1 GMT offset in minutes0007 bit 2 0007 bit 3 Summertime zone (0=none,1=europe, 2=northern, 3=southern)0007 bit 4 0007 bit 7 Unused?Longitude, Latitude and GMT offsets are encoded as normal integers, except that the highest bit is used as sign bit (0=positive, 1=negative). The preceding bits encode the absolute value of the integer value.[World Data Country Section]World Data Country SectionThis is an LListE.Note that if you change the name of a country, all its cities are also put into the «World Data City Section».Country section elements are structured as follows:Size Description«String» New capital city name«String» New country name«String» Original country name (empty string if this is a new country)«String» National code«String» National prefix«String» International prefixšš"Times New Roman " Courier New  " Courier New  " Courier New’’’!  " Courier New$#8 €C$$<-1BE7o4 H @"Arialš"Times New Roman  " Courier New " Courier New  " Courier New " Courier New š"Times New Romanš"Times New Roman  " Courier New " Courier New’’’!  " Courier New$#’’’!  " Courier New$#’’’!  " Courier New$#^Š " Courier New š"Times New Romanš"Times New Roman 4< &Heading 3L ’’’h3r h3r ŠŠ  def8dż‚.ĘA…#[World Data File]World Data FileThis file is used by the Time program to save data about new or modified countries and cities. It is usually located in C:\System\Data and called WLD_DATA.DBW.Note that simply changing this file does not change the data within the Time program; a soft reset should do the trick, though.The World Data File starts with a «Header Section» which contains:Offset Size Data Description0000 «ID» 46 00 00 10 UID1: World Data File0004 «ID» 00 00 00 00 UID2: Unused0008 «ID» 00 00 00 00 UID3: Unused000C L F1 E7 5A 04 UID4: Checksum of UID1, UID2 and UID 30010The remaining file is structured as follows:Size Data DescriptionL 01 00 00 00 Marker to start the city sectionLListE «World Data City Section»L 00 00 00 00 Marker to start the country sectionLListE «World Data Country Section»[World Data City Section]World Data City SectionThis is an LListE.City section elements are structured as follows:Size Description«String» New city name«String» New country name«String» Original city name (empty string if this is a new city)«String» Original country name (empty string if this is a new city)8B City data«String» Area codeThe city data is very compact, probably to save space:Start End Description0000 bit 0 0001 bit 0 Horizontal map position (left=000, right=17b)0001 bit 1 0001 bit 2 Unused?0001 bit 3 0002 bit 7 Latitude in minutes (South is negative)0003 bit 0 0003 bit 7 Vertical map position (top=00, bottom=cf)0004 bit 0 0005 bit 6 Longitude in minutes (East is negative)0005 bit 7 0007 bit 1 GMT offset in minutes0007 bit 2 0007 bit 3 Summertime zone (0=none,1=europe, 2=northern, 3=southern)0007 bit 4 0007 bit 7 Unused?Longitude, Latitude and GMT offsets are encoded as «signed integers»,[World Data Country Section]World Data Country SectionThis is an LListE.Note that if you change the name of a country, all its cities are also put into the «World Data City Section».Country section elements are structured as follows:Size Description«String» New capital city name«String» New country name«String» Original country name (empty string if this is a new country)«String» National code«String» National prefix«String» International prefixšš"Times New Roman " Courier New  " Courier New  " Courier New’’’!  " Courier New$#8 €C$$<-1BE7o4 H @"Arialš"Times New Roman  " Courier New " Courier New  " Courier New " Courier New š"Times New Romanš"Times New Roman  " Courier New " Courier New’’’!  " Courier New$#’’’!  " Courier New$#’’’!  " Courier New$#^E " Courier New š"Times New Romanš"Times New Roman
5  " Courier New 5  " Courier New" Courier New
6  " Courier New 6  " Courier New" Courier New
7  " Courier New"Word.app C"eģZ ‰™ 7  " Courier New " Courier New"Word.app C"eģĻ
8‰P

Legend:
Removed from v.112  
changed lines
  Added in v.113

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26