Guest gothi Posted October 21, 2004 Report Posted October 21, 2004 Please move if there is a more suitable secton ^_^ I was asked the other day by marring to provide information on the mst9.udb format so he could make a language specific mst9 editor, here it is: header area length data -------------------- 0x00 2 0x1000 (length of file) 0x02 2 checksum-16 from 0x06 to end of last word then add filesize (0x1000) 0x04 2 priority checksum (add all priority values together, divide by 8 and finally subtract double the number of words 0x06 2 0x000F (constant) 0x08 2 number of words in dictionary (hex) word area length data -------------------- 0x00 2 Priority 0x02 2 length of word -1 (n = actual number of characters in word) 0x04 n Word in Unicode If you open up the file in a hex editor and follow the format it soon begins to make sence :D A word on the priority section: The priority is a value divisible by 8 (usually starting at 24) however when there are too many words in the dictionary this value can decrease by a different factor and can even be 1 :-/ in mst9 Ed I pretty much don't allow this and made the lowest user selectable value 24 and wrote a routine to reduce it when saving if needed as the priority checksum cannot be more than FF (hex) Priority checksum information was contributed by Steve Kay
Guest marring Posted October 26, 2004 Report Posted October 26, 2004 Thank you very much, gothi! I hope that I can write a program to build a word list automaticaly, instead of typing one by one word! ^_^ Have a nice day!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now