1 Date: Thu, 28 Sep 2006 20:40:13 -0500
2 From: Ron Gage <ron@rongage.org>
3 User-Agent: Thunderbird 1.5.0.7 (X11/20060909)
4 To: barry-devel-bounces@lists.sourceforge.net
5 Subject: Partial decoding autotext database
7 Just picking on the low hanging fruit...
9 This is an autotext entry that translates 'eyt' with yet using AutoCase,
12 00000000: 06 00 32 00 40 03 44 02 6d 00 c2 1a e1 72 01 04 ..2.@.D.m....r..
13 00000010: 00 01 65 79 74 00 04 00 02 79 65 74 00 04 00 04 ..eyt....yet....
14 00000020: 00 00 00 00 04 00 05 00 00 00 00 04 00 06 00 00 ................
17 Same database with AutoCase changed to Specified Case:
19 00000000: 06 00 32 00 40 03 44 02 6c 00 64 02 66 18 01 04 ..2.@.D.l.d.f...
20 00000010: 00 01 65 79 74 00 04 00 02 79 65 74 00 04 00 04 ..eyt....yet....
21 00000020: 00 00 00 00 04 00 05 01 00 00 00 04 00 06 00 00 ................
24 From here, we can see field type 1 is the "from" entry, field 2 is the
25 "to" entry, don't know about field 4 yet or field 6, but field 5
26 represents the AutoCase option (1 == on).
28 Field type 4 is the language field - 0xffffffff == All Locales, 0x0 ==
29 English. Field type 6 appears to be a locale modifier in byte-reversed
30 order. This shows the language record set to "English(US)".
32 00000000: 06 00 32 00 40 03 44 02 6c 00 66 02 66 18 01 04 ..2.@.D.l.f.f...
33 00000010: 00 01 65 79 74 00 04 00 02 79 65 74 00 04 00 04 ..eyt....yet....
34 00000020: 00 00 00 00 04 00 05 01 00 00 00 04 00 06 53 55 ..............SU
37 The last 2 characters are part of the locale definition - giving a
38 locale string of US-en.
40 Note that when the language (field 4) is set to "All Locales", field 6
43 00000000: 06 00 36 00 40 03 44 02 03 00 6f 1a e1 72 01 06 ..6.@.D...o..r..
44 00000010: 00 01 68 74 74 70 73 00 06 00 02 68 74 74 70 73 ..https....https
45 00000020: 00 04 00 04 ff ff ff ff 04 00 05 01 00 00 00 04 ................
46 00000030: 00 06 00 00 00 00 ......
49 That's it for tonight - got other things to do for the night.