-
Notifications
You must be signed in to change notification settings - Fork 1
/
ADIF_log.py
executable file
·1508 lines (1491 loc) · 59.4 KB
/
ADIF_log.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
# Copyright (c) 2015, K6BSD
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import re
from xml.sax import make_parser
from xml.sax.handler import ContentHandler
from xml.sax.saxutils import (escape, quoteattr)
_enumerations = {
'Ant Path': {
'G': 'grayline',
'O': 'other',
'S': 'short path',
'L': 'long path'
},
'ARRL Section': {
'AL': 'Alabama',
'AK': 'Alaska',
'AB': 'Alberta',
'AR': 'Arkansas',
'AZ': 'Arizona',
'BC': 'British Columbia',
'CO': 'Colorado',
'CT': 'Connecticut',
'DE': 'Delaware',
'EB': 'East Bay',
'EMA': 'Eastern Massachusetts',
'ENY': 'Eastern New York',
'EPA': 'Eastern Pennsylvania',
'EWA': 'Eastern Washington',
'GA': 'Georgia',
'ID': 'Idaho',
'IL': 'Illinois',
'IN': 'Indiana',
'IA': 'Iowa',
'KS': 'Kansas',
'KY': 'Kentucky',
'LAX': 'Los Angeles',
'LA': 'Louisiana',
'ME': 'Maine',
'MB': 'Manitoba',
'MAR': 'Maritime',
'MDC': 'Maryland-DC',
'MI': 'Michigan',
'MN': 'Minnesota',
'MS': 'Mississippi',
'MO': 'Missouri',
'MT': 'Montana',
'NE': 'Nebraska',
'NV': 'Nevada',
'NH': 'New Hampshire',
'NM': 'New Mexico',
'NLI': 'New York City-Long Island',
'NL': 'Newfoundland/Labrador',
'NC': 'North Carolina',
'ND': 'North Dakota',
'NTX': 'North Texas',
'NFL': 'Northern Florida',
'NNJ': 'Northern New Jersey',
'NNY': 'Northern New York',
'NT': 'Northwest Territories/Yukon/Nunavut',
'NWT': 'Northwest Territories/Yukon/Nunavut (deprecated; use NT instead)',
'OH': 'Ohio',
'OK': 'Oklahoma',
'ON': 'Ontario',
'ORG': 'Orange',
'OR': 'Oregon',
'PAC': 'Pacific',
'PR': 'Puerto Rico',
'QC': 'Quebec',
'RI': 'Rhode Island',
'SV': 'Sacramento Valley',
'SDG': 'San Diego',
'SF': 'San Francisco',
'SJV': 'San Joaquin Valley',
'SB': 'Santa Barbara',
'SCV': 'Santa Clara Valley',
'SK': 'Saskatchewan',
'SC': 'South Carolina',
'SD': 'South Dakota',
'STX': 'South Texas',
'SFL': 'Southern Florida',
'SNJ': 'Southern New Jersey',
'TN': 'Tennessee',
'VI': 'US Virgin Islands',
'UT': 'Utah',
'VT': 'Vermont',
'VA': 'Virginia',
'WCF': 'West Central Florida',
'WTX': 'West Texas',
'WV': 'West Virginia',
'WMA': 'Western Massachusetts',
'WNY': 'Western New York',
'WPA': 'Western Pennsylvania',
'WWA': 'Western Washington',
'WI': 'Wisconsin',
'WY': 'Wyoming',
},
'Band': {
'2190M': '136KHz to 137KHz',
'630M': '472KHz to 479KHz',
'560M': '501KHz to 504KHz',
'160M': '1.8MHz to 2.0MHz',
'80M': '3.5MHz to 4.0MHz',
'60M': '5.102MHz to 5.4065MHz',
'40M': '7.0MHz to 7.3MHz',
'30M': '10.0MHz to 10.15MHz',
'20M': '14.0MHz to 14.35MHz',
'17M': '18.068MHz to 18.168MHz',
'15M': '21.0MHz to 21.45MHz',
'12M': '24.890MHz to 24.99MHz',
'10M': '28.0MHz to 29.7MHz',
'6M': '50MHz to 54MHz',
'4M': '70MHz to 71MHz',
'2M': '144MHz to 148MHz',
'1.25M': '222MHz to 225MHz',
'70CM': '420MHz to 450MHz',
'33CM': '902MHz to 928MHz',
'23CM': '1.240GHz to 1.300GHz',
'13CM': '2.300GHz to 2.450GHz',
'9CM': '3.300GHz to 3.500GHz',
'6CM': '5.650GHz to 5.925GHz',
'3CM': '10.0GHz to 10.5GHz',
'1.25CM': '24.0GHz to 24.250GHz',
'6MM': '47.0GHz to 47.2GHz',
'4MM': '75.5GHz to 81.0GHz',
'2.5MM': '119.98GHz to 120.02GHz',
'2MM': '142GHz to 149GHz',
'1MM': '241GHz to 250GHz',
},
'QSO Upload Status': {
'Y': 'the QSO has been uploaded to, and accepted by, the online service',
'N': 'do not upload the QSO to the online service',
'M': 'the QSO has been modified since being uploaded to the online service',
},
'Continent': {
'NA': 'North America',
'SA': 'South America',
'EU': 'Europe',
'AF': 'Africa',
'OC': 'Oceana',
'AS': 'Asia',
'AN': 'Antarctica',
},
'Contest ID': {
'070-PSKFEST': 'PODXS PSKFest',
'070-VALENTINE-SPRINT': 'PODXS Valentine Sprint',
'070-ST-PATS-DAY': 'PODXS St. Patricks Day',
'070-31-FLAVORS': 'PODXS 31 Flavors',
'070-3-DAY': 'PODXS Three Day Weekend',
'070-40M-SPRINT': 'PODXS 40m Firecracker Sprint',
'070-80M-SPRINT': 'PODXS 80m Jay Hudak Memorial Sprint',
'070-160M-SPRINT': 'PODXS Great Pumpkin Sprint',
'10-RTTY': 'Ten-Meter RTTY Contest (2011 onwards)',
'1010-OPEN-SEASON': 'Open Season Ten Meter QSO Party',
'7QP': '7th-Area QSO Party',
'AL-QSO-PARTY': 'Alabama QSO Party',
'ALL-ASIAN-DX-CW': 'JARL All Asian DX Contest (CW)',
'ALL-ASIAN-DX-PHONE': 'JARL All Asian DX Contest (PHONE)',
'ANARTS-RTTY': 'ANARTS WW RTTY',
'ANATOLIAN-RTTY': 'Anatolian WW RTTY',
'AP-SPRINT': 'Asia - Pacific Sprint',
'AR-QSO-PARTY': 'Arkansas QSO Party',
'ARI-DX': 'ARI DX Contest',
'ARRL-10': 'ARRL 10 Meter Contest',
'ARRL-160': 'ARRL 160 Meter Contest',
'ARRL-DX-CW': 'ARRL International DX Contest (CW)',
'ARRL-DX-SSB': 'ARRL International DX Contest (Phone)',
'ARRL-FIELD-DAY': 'ARRL Field Day',
'ARRL-RR-CW': 'ARRL Rookie Roundup (CW)',
'ARRL-RR-RTTY': 'ARRL Rookie Roundup (RTTY)',
'ARRL-RR-SSB': 'ARRL Rookie Roundup (Phone)',
'ARRL-RTTY': 'ARRL RTTY Round-Up',
'ARRL-SCR': 'ARRL School Club Roundup',
'ARRL-SS-CW': 'ARRL November Sweepstakes (CW)',
'ARRL-SS-SSB': 'ARRL November Sweepstakes (Phone)',
'ARRL-UHF-AUG': 'ARRL August UHF Contest',
'ARRL-VHF-JAN': 'ARRL January VHF Sweepstakes',
'ARRL-VHF-JUN': 'ARRL June VHF QSO Party',
'ARRL-VHF-SEP': 'ARRL September VHF QSO Party',
'AZ-QSO-PARTY': 'Arizona QSO Party',
'BARTG-RTTY': 'BARTG Spring RTTY Contest',
'BARTG-SPRINT': 'BARTG Sprint Contest',
'BC-QSO-PARTY': 'British Columbia QSO Party',
'CA-QSO-PARTY': 'California QSO Party',
'CO-QSO-PARTY': 'Colorado QSO Party',
'CQ-160-CW': 'CQ WW 160 Meter DX Contest (CW)',
'CQ-160-SSB': 'CQ WW 160 Meter DX Contest (SSB)',
'CQ-M': 'CQ-M International DX Contest',
'CQ-VHF': 'CQ World-Wide VHF Contest',
'CQ-WPX-CW': 'CQ WW WPX Contest (CW)',
'CQ-WPX-RTTY': 'CQ/RJ WW RTTY WPX Contest',
'CQ-WPX-SSB': 'CQ WW WPX Contest (SSB)',
'CQ-WW-CW': 'CQ WW DX Contest (CW)',
'CQ-WW-RTTY': 'CQ/RJ WW RTTY DX Contest',
'CQ-WW-SSB': 'CQ WW DX Contest (SSB)',
'CWOPS-CWT': 'CWops Mini-CWT Test',
'CIS-DX': 'CIS DX Contest',
'CT-QSO-PARTY': 'Connecticut QSO Party',
'CVA-DX-CW': 'Concurso Verde e Amarelo DX CW Contest',
'CVA-DX-SSB': 'Concurso Verde e Amarelo DX CW Contest',
'DARC-WAEDC-CW': 'WAE DX Contest (CW)',
'DARC-WAEDC-RTTY': 'WAE DX Contest (RTTY)',
'DARC-WAEDC-SSB': 'WAE DX Contest (SSB)',
'DARC-WAG': 'DARC Worked All Germany',
'DE-QSO-PARTY': 'Delaware QSO Party',
'DL-DX-RTTY': 'DL-DX RTTY Contest',
'DMC-RTTY': 'DMC RTTY Contest',
'EA-CNCW': u'Concurso Nacional de Telegrafía',
'EA-DME': u'Municipios Españoles',
'EA-PSK63': 'EA PSK63',
'EA-RTTY': 'Unión de Radioaficionados Españoles RTTY Contest',
'EA-SMRE-CW': 'Su Majestad El Rey de España - CW',
'EA-SMRE-SSB': 'Su Majestad El Rey de España - SSB',
'EA-VHF-ATLANTIC': 'Atlántico V-UHF',
'EA-VHF-COM': 'Combinado de V-UHF',
'EA-VHF-COSTA-SOL': 'Costa del Sol V-UHF',
'EA-VHF-EA': 'Nacional VHF',
'EA-VHF-EA1RCS': 'Segovia EA1RCS V-UHF',
'EA-VHF-QSL': 'QSL V-UHF & 50MHz',
'EA-VHF-SADURNI': 'Sant Sadurni V-UHF',
'EA-WW-RTTY': 'Unión de Radioaficionados Españoles RTTY Contest',
'EPC-PSK63': 'PSK63 QSO Party',
'EU': 'Sprint EU Sprint',
'EUCW160M': 'European CW Association 160m CW Party',
'EU-HF': 'EU HF Championship',
'EU-PSK-DX': 'EU PSK DX Contest',
'Fall': 'Sprint FISTS Fall Sprint',
'FL-QSO-PARTY': 'Florida QSO Party',
'GA-QSO-PARTY': 'Georgia QSO Party',
'HELVETIA': 'Helvetia Contest',
'HI-QSO-PARTY': 'Hawaiian QSO Party',
'HOLYLAND': 'IARC Holyland Contest',
'IARU-FIELD-DAY': 'DARC IARU Region 1 Field Day',
'IARU-HF': 'IARU HF World Championship',
'IA-QSO-PARTY': 'Iowa QSO Party',
'ID-QSO-PARTY': 'Idaho QSO Party',
'IL': 'QSO Party Illinois QSO Party',
'IN-QSO-PARTY': 'Indiana QSO Party',
'JARTS-WW-RTTY': 'JARTS WW RTTY',
'JIDX-CW': 'Japan International DX Contest (CW)',
'JIDX-SSB': 'Japan International DX Contest (SSB)',
'JT-DX-RTTY': 'Mongolian RTTY DX Contest',
'KS-QSO-PARTY': 'Kansas QSO Party',
'KY-QSO-PARTY': 'Kentucky QSO Party',
'LA-QSO-PARTY': 'Louisiana QSO Party',
'LDC-RTTY': 'DRCG Long Distance Contest (RTTY)',
'LZ': 'DX LZ DX Contest',
'MAR-QSO-PARTY': 'Maritimes QSO Party',
'MI-QSO-PARTY': 'Michigan QSO Party',
'MIDATLANTIC-QSO-PARTY': 'Mid-Atlantic QSO Party',
'MD-QSO-PARTY': 'Maryland QSO Party',
'ME-QSO-PARTY': 'Maine QSO Party',
'MI-QSO-PARTY': 'Michigan QSO Party',
'MN-QSO-PARTY': 'Minnesota QSO Party',
'MO-QSO-PARTY': 'Missouri QSO Party',
'MS-QSO-PARTY': 'Mississippi QSO Party',
'MT-QSO-PARTY': 'Montana QSO Party',
'NAQP-CW': 'North America QSO Party (CW)',
'NAQP-RTTY': 'North America QSO Party (RTTY)',
'NAQP-SSB': 'North America QSO Party (Phone)',
'NA-SPRINT-CW': 'North America Sprint (CW)',
'NA-SPRINT-RTTY': 'North America Sprint (RTTY)',
'NA-SPRINT-SSB': 'North America Sprint (Phone)',
'NEQP': 'New England QSO Party',
'NC-QSO-PARTY': 'North Carolina QSO Party',
'ND-QSO-PARTY': 'North Dakota QSO Party',
'NE-QSO-PARTY': 'Nebraska QSO Party',
'NH-QSO-PARTY': 'New Hampshire QSO Party',
'NJ-QSO-PARTY': 'New Jersey QSO Party',
'NM-QSO-PARTY': 'New Mexico QSO Party',
'NRAU-BALTIC-CW': 'NRAU-Baltic Contest (CW)',
'NRAU-BALTIC-SSB': 'NRAU-Baltic Contest (SSB)',
'NV-QSO-PARTY': 'Nevada QSO Party',
'NY-QSO-PARTY': 'New York QSO Party',
'OCEANIA-DX-CW': 'Oceania DX Contest (CW)',
'OCEANIA-DX-SSB': 'Oceania DX Contest (SSB)',
'OH-QSO-PARTY': 'Ohio QSO Party',
'OK-DX-RTTY': 'Czech Radio Club OK DX Contest',
'OK-OM-DX': 'Czech Radio Club OK-OM DX Contest',
'OK-QSO-PARTY': 'Oklahoma QSO Party',
'OMISS-QSO-PARTY': 'Old Man International Sideband Society QSO Party',
'ON-QSO-PARTY': 'Ontario QSO Party',
'OR-QSO-PARTY': 'Oregon QSO Party',
'PACC': 'Dutch PACC Contest',
'PA-QSO-PARTY': 'Pennsylvania QSO Party',
'PSK-DEATHMATCH': 'MDXA PSK DeathMatch (2005-2010)',
'QC-QSO-PARTY': 'Quebec QSO Party',
'RAC': 'Canadian Amateur Radio Society Contest',
'RAC-CANADA-DAY': 'Canadian Amateur Radio Society Canada Day Contest',
'RAC-CANADA-WINTER': 'Canadian Amateur Radio Society Canada Winter Contest',
'RDAC': 'Russian District Award Contest',
'RDXC': 'Russian DX Contest',
'REF-160M': 'Reseau des Emetteurs Francais 160m Contest',
'REF-CW': 'Reseau des Emetteurs Francais Contest (CW)',
'REF-SSB': 'Reseau des Emetteurs Francais Contest (SSB)',
'RI-QSO-PARTY': 'Rhode Island QSO Party',
'RSGB-160': '1.8Mhz Contest',
'RSGB-21/28-CW': '21/28 MHz Contest (CW)',
'RSGB-21/28-SSB': '21/28 MHz Contest (SSB)',
'RSGB-80M-CC': '80m Club Championships',
'RSGB-AFS-CW': 'Affiliated Societies Team Contest (CW)',
'RSGB-AFS-SSB': 'Affiliated Societies Team Contest (SSB)',
'RSGB-CLUB-CALLS': 'Club Calls',
'RSGB-COMMONWEALTH': 'Commonwealth Contest',
'RSGB-IOTA': 'IOTA Contest',
'RSGB-LOW-POWER': 'Low Power Field Day',
'RSGB-NFD': 'National Field Day',
'RSGB-ROPOCO': 'RoPoCo',
'RSGB-SSB-FD': 'SSB Field Day',
'RUSSIAN-RTTY': 'Russian Radio RTTY Worldwide Contest',
'SAC-CW': 'Scandinavian Activity Contest (CW)',
'SAC-SSB': 'Scandinavian Activity Contest (SSB)',
'SARTG-RTTY': 'SARTG WW RTTY',
'SCC-RTTY': 'SCC RTTY Championship',
'SC-QSO-PARTY': 'South Carolina QSO Party',
'SD-QSO-PARTY': 'South Dakota QSO Party',
'SMP-AUG': 'SSA Portabeltest',
'SMP-MAY': 'SSA Portabeltest',
'SPAR-WINTER-FD': 'SPAR Winter Field Day',
'SPDXContest': 'SP DX Contest',
'SP-DX-RTTY': 'PRC SPDX Contest (RTTY)',
'Spring': 'Sprint FISTS Spring Sprint',
'SR-MARATHON': 'Scottish-Russian Marathon',
'STEW-PERRY': 'Stew Perry Topband Distance Challenge',
'Summer': 'Sprint FISTS Summer Sprint',
'TARA-GRID-DIP': 'TARA Grid Dip PSK-RTTY Shindig',
'TARA-RTTY': 'TARA RTTY Mêlée',
'TARA-RUMBLE': 'TARA Rumble PSK Contest',
'TARA-SKIRMISH': 'TARA Skirmish Digital Prefix Contest',
'TEN-RTTY': 'Ten-Meter RTTY Contest (before 2011)',
'TMC-RTTY': 'The Makrothen Contest',
'TN-QSO-PARTY': 'Tennessee QSO Party',
'TX-QSO-PARTY': 'Texas QSO Party',
'UBA-DX-CW': 'UBA Contest (CW)',
'UBA-DX-SSB': 'UBA Contest (SSB)',
'UK-DX-BPSK63': 'European PSK Club BPSK63 Contest',
'UK-DX-RTTY': 'UK DX RTTY Contest',
'UKRAINIAN': 'DX Ukrainian DX',
'UKR-CHAMP-RTTY': 'Open Ukraine RTTY Championship',
'UKSMG-6M-MARATHON': 'UKSMG 6m Marathon',
'UKSMG-SUMMER-ES': 'UKSMG Summer Es Contest',
'URE-DX': 'Ukrainian DX Contest',
'US-COUNTIES-QSO': 'Mobile Amateur Awards Club',
'UT-QSO-PARTY': 'Utah QSO Party',
'VENEZ-IND-DAY': 'RCV Venezuelan Independence Day Contest',
'Virginia': 'QSO Party Virginia QSO Party',
'VA-QSO-PARTY': 'Virginia QSO Party',
'VOLTA-RTTY': 'Alessandro Volta RTTY DX Contest',
'WA-QSO-PARTY': 'Washington QSO Party',
'WI-QSO-PARTY': 'Wisconsin QSO Party',
'WV-QSO-PARTY': 'West Virginia QSO Party',
'WY-QSO-PARTY': 'Wyoming QSO Party',
'Winter': 'Sprint FISTS Winter Sprint',
'XE-INTL-RTTY': 'Mexico International Contest (RTTY)',
'YUDXC': 'YU DX Contest',
},
'Credit': {
'CQDX': 'CQDX',
'CQDX_BAND': 'CQDX_BAND',
'CQDX_MODE': 'CQDX_MODE',
'CQDX_MOBILE': 'CQDX_MOBILE',
'CQDX_QRP': 'CQDX_QRP',
'CQDX_SATELLITE': 'CQDX_SATELLITE',
'CQDXFIELD': 'CQDXFIELD',
'CQDXFIELD_BAND': 'CQDXFIELD_BAND',
'CQDXFIELD_MODE': 'CQDXFIELD_MODE',
'CQDXFIELD_MOBILE': 'CQDXFIELD_MOBILE',
'CQDXFIELD_QRP': 'CQDXFIELD_QRP',
'CQDXFIELD_SATELLITE': 'CQDXFIELD_SATELLITE',
'CQWAZ_MIXED': 'CQWAZ_MIXED',
'CQWAZ_BAND': 'CQWAZ_BAND',
'CQWAZ_MODE': 'CQWAZ_MODE',
'CQWAZ_SATELLITE': 'CQWAZ_SATELLITE',
'CQWAZ_EME': 'CQWAZ_EME',
'CQWAZ_MOBILE': 'CQWAZ_MOBILE',
'CQWAZ_QRP': 'CQWAZ_QRP',
'CQWPX': 'CQWPX',
'CQWPX_BAND': 'CQWPX_BAND',
'CQWPX_MODE': 'CQWPX_MODE',
'DXCC': 'DXCC',
'DXCC_BAND': 'DXCC_BAND',
'DXCC_MODE': 'DXCC_MODE',
'DXCC_SATELLITE': 'DXCC_SATELLITE',
'IOTA': 'IOTA',
'RDA': 'RDA',
'USACA': 'USACA',
'VUCC_BAND': 'VUCC_BAND',
'VUCC_SATELLITE': 'VUCC_SATELLITE',
'WAB': 'WAB',
'WAC': 'WAC',
'WAC_BAND': 'WAC_BAND',
'WAE': 'WAE',
'WAE_BAND': 'WAE_BAND',
'WAE_MODE': 'WAE_MODE',
'WAIP': 'WAIP',
'WAIP_BAND': 'WAIP_BAND',
'WAIP_MODE': 'WAIP_MODE',
'WAS': 'WAS',
'WAS_BAND': 'WAS_BAND',
'WAS_MODE': 'WAS_MODE',
'WAS_SATELLITE': 'WAS_SATELLITE',
},
'Country Code': {
'1': "CANADA",
'2': "ABU AIL IS (Deleted)",
'3': "AFGHANISTAN",
'4': "AGALEGA & ST BRANDON",
'5': "ALAND IS",
'6': "ALASKA",
'7': "ALBANIA",
'8': "ALDABRA (Deleted)",
'9': "AMERICAN SAMOA",
'10': "AMSTERDAM & ST PAUL",
'11': "ANDAMAN & NICOBAR IS",
'12': "ANGUILLA",
'13': "ANTARCTICA",
'14': "ARMENIA",
'15': "ASIATIC RUSSIA",
'16': "AUCKLAND & CAMPBELL",
'17': "AVES ISLAND",
'18': "AZERBAIJAN",
'19': "BAJO NUEVO (Deleted)",
'20': "BAKER, HOWLAND IS",
'21': "BALEARIC IS",
'22': "PALAU",
'23': "BLENHEIM REEF (Deleted)",
'24': "BOUVET",
'25': "BRITISH N. BORNEO (Deleted)",
'26': "BRITISH SOMALI (Deleted)",
'27': "BELARUS",
'28': "CANAL ZONE (Deleted)",
'29': "CANARY IS",
'30': "CELEBE/MOLUCCA IS (Deleted)",
'31': "C KIRIBATI",
'32': "CEUTA & MELILLA",
'33': "CHAGOS",
'34': "CHATHAM IS",
'35': "CHRISTMAS IS",
'36': "CLIPPERTON IS",
'37': "COCOS ISLAND",
'38': "COCOS-KEELING IS",
'39': "COMOROS (Deleted)",
'40': "CRETE",
'41': "CROZET",
'42': "DAMAO, DUI (Deleted)",
'43': "DESECHEO IS",
'44': "DESROCHES (Deleted)",
'45': "DODECANESE",
'46': "EAST MALAYSIA",
'47': "EASTER IS",
'48': "EASTERN KIRIBATI",
'49': "EQUATORIAL GUINEA",
'50': "MEXICO",
'51': "ERITREA",
'52': "ESTONIA",
'53': "ETHIOPIA",
'54': "EUROPEAN RUSSIA",
'55': "FARQUHAR (Deleted)",
'56': "FERNANDO DE NORONHA",
'57': "FRENCH EQ. AFRICA (Deleted)",
'58': "FRENCH INDO-CHINA (Deleted)",
'59': "FRENCH WEST AFRICA (Deleted)",
'60': "BAHAMAS",
'61': "FRANZ JOSEF LAND",
'62': "BARBADOS",
'63': "FRENCH GUIANA",
'64': "BERMUDA",
'65': "BRITISH VIRGIN IS",
'66': "BELIZE",
'67': "FRENCH INDIA (Deleted)",
'68': "SAUDI/KUWAIT N.Z. (Deleted)",
'69': "CAYMAN ISLANDS",
'70': "CUBA",
'71': "GALAPAGOS",
'72': "DOMINICAN REPUBLIC",
'74': "EL SALVADOR",
'75': "GEORGIA",
'76': "GUATEMALA",
'77': "GRENADA",
'78': "HAITI",
'79': "GUADELOUPE",
'80': "HONDURAS",
'81': "GERMANY (Deleted)",
'82': "JAMAICA",
'84': "MARTINIQUE",
'85': "BONAIRE,CURACAO (Deleted)",
'86': "NICARAGUA",
'88': "PANAMA",
'89': "TURKS & CAICOS IS",
'90': "TRINIDAD & TOBAGO",
'91': "ARUBA",
'93': "GEYSER REEF (Deleted)",
'94': "ANTIGUA & BARBUDA",
'95': "DOMINICA",
'96': "MONTSERRAT",
'97': "ST LUCIA",
'98': "ST VINCENT",
'99': "GLORIOSO IS",
'100': "ARGENTINA",
'101': "GOA (Deleted)",
'102': "GOLD COAST, TOGOLAND (Deleted)",
'103': "GUAM",
'104': "BOLIVIA",
'105': "GUANTANAMO BAY",
'106': "GUERNSEY",
'107': "GUINEA",
'108': "BRAZIL",
'109': "GUINEA-BISSAU",
'110': "HAWAII",
'111': "HEARD IS",
'112': "CHILE",
'113': "IFNI (Deleted)",
'114': "ISLE OF MAN",
'115': "ITALIAN SOMALI (Deleted)",
'116': "COLOMBIA",
'117': "ITU HQ",
'118': "JAN MAYEN",
'119': "JAVA (Deleted)",
'120': "ECUADOR",
'122': "JERSEY",
'123': "JOHNSTON IS",
'124': "JUAN DE NOVA",
'125': "JUAN FERNANDEZ",
'126': "KALININGRAD",
'127': "KAMARAN IS (Deleted)",
'128': "KARELO-FINN REP (Deleted)",
'129': "GUYANA",
'130': "KAZAKHSTAN",
'131': "KERGUELEN",
'132': "PARAGUAY",
'133': "KERMADEC",
'134': "KINGMAN REEF",
'135': "KYRGYZSTAN",
'136': "PERU",
'137': "REPUBLIC OF KOREA",
'138': "KURE ISLAND",
'139': "KURIA MURIA IS (Deleted)",
'140': "SURINAME",
'141': "FALKLAND IS",
'142': "LAKSHADWEEP ISLANDS",
'143': "LAOS",
'144': "URUGUAY",
'145': "LATVIA",
'146': "LITHUANIA",
'147': "LORD HOWE IS",
'148': "VENEZUELA",
'149': "AZORES",
'150': "AUSTRALIA",
'151': "MALYJ VYSOTSKIIS (Deleted)",
'152': "MACAO",
'153': "MACQUARIE IS",
'154': "YEMEN ARAB REP (Deleted)",
'155': "MALAYA (Deleted)",
'157': "NAURU",
'158': "VANUATU",
'159': "MALDIVES",
'160': "TONGA",
'161': "MALPELO IS",
'162': "NEW CALEDONIA",
'163': "PAPUA NEW GUINEA",
'164': "MANCHURIA (Deleted)",
'165': "MAURITIUS IS",
'166': "MARIANA IS",
'167': "MARKET REEF",
'168': "MARSHALL IS",
'169': "MAYOTTE",
'170': "NEW ZEALAND",
'171': "MELLISH REEF",
'172': "PITCAIRN IS",
'173': "MICRONESIA",
'174': "MIDWAY IS",
'175': "FRENCH POLYNESIA",
'176': "FIJI",
'177': "MINAMI TORISHIMA",
'178': "MINERVA REEF (Deleted)",
'179': "MOLDOVA",
'180': "MOUNT ATHOS",
'181': "MOZAMBIQUE",
'182': "NAVASSA IS",
'183': "NETHERLANDS BORNEO (Deleted)",
'184': "NETHERLANDS N GUINEA (Deleted)",
'185': "SOLOMON ISLANDS",
'186': "NEWFOUNDLAND, LABRADOR (Deleted)",
'187': "NIGER",
'188': "NIUE",
'189': "NORFOLK IS",
'190': "SAMOA",
'191': "N COOK IS",
'192': "OGASAWARA",
'193': "OKINAWA (Deleted)",
'194': "OKINO TORI-SHIMA (Deleted)",
'195': "ANNOBON I.",
'196': "PALESTINE (Deleted)",
'197': "PALMYRA & JARVIS IS",
'198': "PAPUA TERR (Deleted)",
'199': "PETER I IS",
'200': "PORTUGUESE TIMOR (Deleted)",
'201': "PRINCE EDWARD & MARION",
'202': "PUERTO RICO",
'203': "ANDORRA",
'204': "REVILLAGIGEDO",
'205': "ASCENSION ISLAND",
'206': "AUSTRIA",
'207': "RODRIGUEZ IS",
'208': "RUANDA-URUNDI (Deleted)",
'209': "BELGIUM",
'210': "SAAR (Deleted)",
'211': "SABLE ISLAND",
'212': "BULGARIA",
'213': "SAINT MARTIN",
'214': "CORSICA",
'215': "CYPRUS",
'216': "SAN ANDRES & PROVIDENCIA",
'217': "SAN FELIX",
'218': "CZECHOSLOVAKIA (Deleted)",
'219': "SAO TOME & PRINCIPE",
'220': "SARAWAK (Deleted)",
'221': "DENMARK",
'222': "FAROE IS",
'223': "ENGLAND",
'224': "FINLAND",
'225': "SARDINIA",
'226': "SAUDI/IRAQ N.Z. (Deleted)",
'227': "FRANCE",
'228': "SERRANA BANK & RONCADOR CAY (Deleted)",
'229': "GERMAN DEM. REP. (Deleted)",
'230': "FED REP OF GERMANY",
'231': "SIKKIM (Deleted)",
'232': "SOMALIA",
'233': "GIBRALTAR",
'234': "S COOK IS",
'235': "SOUTH GEORGIA IS",
'236': "GREECE",
'237': "GREENLAND",
'238': "SOUTH ORKNEY IS",
'239': "HUNGARY",
'240': "SOUTH SANDWICH ISLANDS",
'241': "SOUTH SHETLAND ISLANDS",
'242': "ICELAND",
'243': "DEM REP OF YEMEN (Deleted)",
'244': "SOUTHERN SUDAN (Deleted)",
'245': "IRELAND",
'246': "SOV MILITARY ORDER OF MALTA",
'247': "SPRATLY IS",
'248': "ITALY",
'249': "ST KITTS & NEVIS",
'250': "ST HELENA IS",
'251': "LIECHTENSTEIN",
'252': "ST PAUL ISLAND",
'253': "ST. PETER & ST. PAUL ROCKS",
'254': "LUXEMBOURG",
'255': "SINT MAARTEN, SABA, ST EUSTATIUS (Deleted)",
'256': "MADEIRA IS",
'257': "MALTA",
'258': "SUMATRA (Deleted)",
'259': "SVALBARD IS",
'260': "MONACO",
'261': "SWAN ISLAND (Deleted)",
'262': "TAJIKISTAN",
'263': "NETHERLANDS",
'264': "TANGIER (Deleted)",
'265': "NORTHERN IRELAND",
'266': "NORWAY",
'267': "TERR NEW GUINEA (Deleted)",
'268': "TIBET (Deleted)",
'269': "POLAND",
'270': "TOKELAU IS",
'271': "TRIESTE (Deleted)",
'272': "PORTUGAL",
'273': "TRINDADE & MARTIN VAZ ISLANDS",
'274': "TRISTAN DA CUNHA & GOUGH IS",
'275': "ROMANIA",
'276': "TROMELIN",
'277': "ST PIERRE & MIQUELON",
'278': "SAN MARINO",
'279': "SCOTLAND",
'280': "TURKMENISTAN",
'281': "SPAIN",
'282': "TUVALU",
'283': "UK BASES ON CYPRUS",
'284': "SWEDEN",
'285': "US VIRGIN ISLANDS",
'286': "UGANDA",
'287': "SWITZERLAND",
'288': "UKRAINE",
'289': "UNITED NATIONS HQ",
'291': "UNITED STATES",
'292': "UZBEKISTAN",
'293': "VIETNAM",
'294': "WALES",
'295': "VATICAN",
'296': "SERBIA",
'297': "WAKE IS",
'298': "WALLIS & FUTUNA",
'299': "WEST MALAYSIA",
'301': "W KIRIBATI",
'302': "WESTERN SAHARA",
'303': "WILLIS IS",
'304': "BAHRAIN",
'305': "BANGLADESH",
'306': "BHUTAN",
'307': "ZANZIBAR (Deleted)",
'308': "COSTA RICA",
'309': "MYANMAR",
'312': "CAMBODIA",
'315': "SRI LANKA",
'318': "CHINA",
'321': "HONG KONG",
'324': "INDIA",
'327': "INDONESIA",
'330': "IRAN",
'333': "IRAQ",
'336': "ISRAEL",
'339': "JAPAN",
'342': "JORDAN",
'344': "DEMOCRATIC PEOPLE'S REPUBLIC OF KOREA",
'345': "BRUNEI",
'348': "KUWAIT",
'354': "LEBANON",
'363': "MONGOLIA",
'369': "NEPAL",
'370': "OMAN",
'372': "PAKISTAN",
'375': "PHILIPPINES",
'376': "QATAR",
'378': "SAUDI ARABIA",
'379': "SEYCHELLES",
'381': "SINGAPORE",
'382': "DJIBOUTI",
'384': "SYRIA",
'386': "TAIWAN",
'387': "THAILAND",
'390': "TURKEY",
'391': "UNITED ARAB EMIRATES",
'400': "ALGERIA",
'401': "ANGOLA",
'402': "BOTSWANA",
'404': "BURUNDI",
'406': "CAMEROON",
'408': "CENTRAL AFRICAN REPUBLIC",
'409': "CAPE VERDE",
'410': "CHAD",
'411': "COMOROS",
'412': "REPUBLIC OF THE CONGO",
'414': "DEM. REPUBLIC OF THE CONGO",
'416': "BENIN",
'420': "GABON",
'422': "THE GAMBIA",
'424': "GHANA",
'428': "COTE D'IVOIRE",
'430': "KENYA",
'432': "LESOTHO",
'434': "LIBERIA",
'436': "LIBYA",
'438': "MADAGASCAR",
'440': "MALAWI",
'442': "MALI",
'444': "MAURITANIA",
'446': "MOROCCO",
'450': "NIGERIA",
'452': "ZIMBABWE",
'453': "REUNION",
'454': "RWANDA",
'456': "SENEGAL",
'458': "SIERRA LEONE",
'460': "ROTUMA IS",
'462': "REPUBLIC OF SOUTH AFRICA",
'464': "NAMIBIA",
'466': "SUDAN",
'468': "SWAZILAND",
'470': "TANZANIA",
'474': "TUNISIA",
'478': "EGYPT",
'480': "BURKINA-FASO",
'482': "ZAMBIA",
'483': "TOGO",
'488': "WALVIS BAY (Deleted)",
'489': "CONWAY REEF",
'490': "BANABA ISLAND",
'492': "YEMEN",
'493': "PENGUIN ISLANDS (Deleted)",
'497': "CROATIA",
'499': "SLOVENIA",
'501': "BOSNIA-HERZEGOVINA",
'502': "MACEDONIA",
'503': "CZECH REPUBLIC",
'504': "SLOVAK REPUBLIC",
'505': "PRATAS IS",
'506': "SCARBOROUGH REEF",
'507': "TEMOTU PROVINCE",
'508': "AUSTRAL IS",
'509': "MARQUESAS IS",
'510': "PALESTINE",
'511': "TIMOR-LESTE",
'512': "CHESTERFIELD IS",
'513': "DUCIE IS",
'514': "MONTENEGRO",
'515': "SWAINS ISLAND",
'516': "ST. BARTHELEMY",
'517': "CURACAO",
'518': "SINT MAARTEN",
'519': "ST EUSTATIUS AND SABA",
'520': "BONAIRE",
'521': "SOUTH SUDAN",
},
'QSL Rcvd': {
'Y': 'yes (confirmed)',
'N': 'no',
'R': 'requested',
'I': 'ignore or invalid',
'V': 'verified (deprecated)',
},
'QSL Sent': {
'Y': 'yes (confirmed)',
'N': 'no',
'R': 'requested',
'Q': 'queued',
'I': 'ignore or invalid',
},
'Mode': {
'AM': 'AM',
'ATV': 'ATV',
'CHIP': 'CHIP64, CHIP128',
'CLO': 'CLO',
'CONTESTI': 'CONTESTI',
'CW': 'PCW',
'DIGITALVOICE': 'DIGITALVOICE',
'DOMINO': 'DOMINOEX, DOMINOF',
'DSTAR': 'DSTAR',
'FAX': 'FAX',
'FM': 'FM',
'FSK441': 'FSK441',
'HELL': 'FMHELL, FSKHELL, HELL80, HFSK, PSKHELL',
'ISCAT': 'ISCAT-A, ISCAT-B',
'JT4': 'JT4A, JT4B, JT4C, JT4D, JT4E, JT4F, JT4G',
'JT6M': 'JT6M',
'JT9': 'JT9-1, JT9-2, JT9-5, JT9-10, JT9-30',
'JT44': 'JT44',
'JT65': 'JT65A, JT65B, JT65B2, JT65C, JT65C2',
'MFSK': 'MFSK4, MFSK8, MFSK11, MFSK16, MFSK22, MFSK31, MFSK32, MFSK64, MFSK128',
'MT63': 'MT63',
'OLIVIA': 'OLIVIA 4/125, OLIVIA 4/250, OLIVIA 8/250, OLIVIA 8/500, OLIVIA 16/500, OLIVIA 16/1000, OLIVIA 32/1000',
'OPERA': 'OPERA-BEACON, OPERA-QSO',
'PAC': 'PAC2, PAC3, PAC4',
'PAX': 'PAX2',
'PKT': 'PKT',
'PSK': 'FSK31, PSK10, PSK31, PSK63, PSK63F, PSK125, PSK250, PSK500, PSK1000, PSKAM10, PSKAM31, PSKAM50, PSKFEC31, QPSK31, QPSK63, QPSK125, QPSK250, QPSK500',
'PSK2K': 'PSK2K',
'Q15': 'Q15',
'ROS': 'ROS-EME, ROS-HF, ROS-MF',
'RTTY': 'ASCI',
'RTTYM': 'RTTYM',
'SSB': 'LSB, USB',
'SSTV': 'SSTV',
'THOR': 'THOR',
'THRB': 'THRBX',
'TOR': 'AMTORFEC, GTOR',
'V4': 'V4',
'VOI': 'VOI',
'WINMOR': 'WINMOR',
'WSPR': 'WSPR',
'AMTORFEC': 'AMTORFEC (deprecated)',
'ASCI': 'ASCI (deprecated)',
'CHIP64': 'CHIP64 (deprecated)',
'CHIP128': 'CHIP128 (deprecated)',
'DOMINOF': 'DOMINOF (deprecated)',
'FMHELL': 'FMHELL (deprecated)',
'FSK31': 'FSK31 (deprecated)',
'GTOR': 'GTOR (deprecated)',
'HELL80': 'HELL80 (deprecated)',
'HFSK': 'HFSK (deprecated)',
'JT4A': 'JT4A (deprecated)',
'JT4B': 'JT4B (deprecated)',
'JT4C': 'JT4C (deprecated)',
'JT4D': 'JT4D (deprecated)',
'JT4E': 'JT4E (deprecated)',
'JT4F': 'JT4F (deprecated)',
'JT4G': 'JT4G (deprecated)',
'JT65A': 'JT65A (deprecated)',
'JT65B': 'JT65B (deprecated)',
'JT65C': 'JT65C (deprecated)',
'MFSK8': 'MFSK8 (deprecated)',
'MFSK16': 'MFSK16 (deprecated)',
'PAC2': 'PAC2 (deprecated)',
'PAC3': 'PAC3 (deprecated)',
'PAX2': 'PAX2 (deprecated)',
'PCW': 'PCW (deprecated)',
'PSK10': 'PSK10 (deprecated)',
'PSK31': 'PSK31 (deprecated)',
'PSK63': 'PSK63 (deprecated)',
'PSK63F': 'PSK63F (deprecated)',
'PSK125': 'PSK125 (deprecated)',
'PSKAM10': 'PSKAM10 (deprecated)',
'PSKAM31': 'PSKAM31 (deprecated)',
'PSKAM50': 'PSKAM50 (deprecated)',
'PSKFEC31': 'PSKFEC31 (deprecated)',
'PSKHELL': 'PSKHELL (deprecated)',
'QPSK31': 'QPSK31 (deprecated)',
'QPSK63': 'QPSK63 (deprecated)',
'QPSK125': 'QPSK125 (deprecated)',
'THRBX': 'THRBX (deprecated)',
},
'Propagation': {
'AUR': 'Aurora',
'AUE': 'Aurora-E',
'BS': 'Back scatter',
'ECH': 'EchoLink',
'EME': 'Earth-Moon-Earth',
'ES': 'Sporadic E',
'FAI': 'Field Aligned Irregularities',
'F2': 'F2 Reflection',
'INTERNET': 'Internet-assisted',
'ION': 'Ionoscatter',
'IRL': 'IRLP',
'MS': 'Meteor scatter',
'RPT': 'Terrestrial or atmospheric repeater or transponder',
'RS': 'Rain scatter',
'SAT': 'Satellite',
'TEP': 'Trans-equatorial',
'TR': 'Tropospheric ducting',
},
'QSL Via': {
'B': 'bureau',
'D': 'direct',
'E': 'electronic',
'M': 'manager (deprecated)',
},
'QSL Sent': {
'Y': 'yes',
'N': 'no',
'R': 'requested',
'Q': 'queued',
'I': 'ignore/invalid',
},
'QSO Complete': {
'Y': 'yes',
'N': 'no',
'NIL': 'not heard',
'?': 'uncertain'
},
}
_regexes = {
'Date': re.compile(r'^[0-9]{8}$'),
'Boolean': re.compile(r'^[YN]$'),
'Number': re.compile(r'^-?[0-9]+(\.[0-9]*)?$'),
'String': re.compile(r'^[ -~]*$'),
'IntlString': re.compile(r'^[^\x00-\x1f]*$'),
'MultilineString': re.compile(r'^(?:[ -~]|(?:\r\n))*$'),
'IntlMultilineString': re.compile(r'^(?:[^\x00-\x1f]|(?:\r\n))*$'),
'Maidenhead': re.compile(r'^[A-R]{2}[0-9]{2}(?:[A-X]{2}(?:[0-9]{2})?)?$', re.I),
'Location': re.compile(r'^[EWNS][0-9]{3} [0-9]{2}\.[0-9]{3}$'),
}
_types = {
'D': {'regex':_regexes['Date']},
'B': {'regex':_regexes['Boolean']},
'N': {'regex':_regexes['Number']},
'S': {'regex':_regexes['String']},
'I': {'regex':_regexes['IntlString']},
'M': {'regex':_regexes['MultilineString']},
'G': {'regex':_regexes['IntlMultilineString']},
'L': {'regex':_regexes['Location']},
}
_validate_functions = {
# CreditList
# Date
# Time
# GridSquareList
}
_fieldTypes = {
'ADDRESS': {'type':'M', 'desc':"the contacted station's complete mailing address: full name, street address, city, postal code, and country"},
'ADDRESS_INTL': {'type':'G', 'desc':"the contacted station's complete mailing address: full name, street address, city, postal code, and country"},
'AGE': {'type':'N', 'desc':"the contacted station's operator's age in years"},