-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappConfig.lua
More file actions
717 lines (696 loc) · 24.2 KB
/
appConfig.lua
File metadata and controls
717 lines (696 loc) · 24.2 KB
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
-- ----------------------------------------------------------------------------
--
-- appConfig - setup for the application
--
-- see:
-- # Blocks-11.0.0.txt
-- # Date: 2017-10-16, 24:39:00 GMT [KW]
-- # © 2017 Unicode®, Inc.
-- # For terms of use, see http://www.unicode.org/terms_of_use.html
-- #
-- # Unicode Character Database
-- # For documentation, see http://www.unicode.org/reports/tr44/
-- ----------------------------------------------------------------------------
--
-- ----------------------------------------------------------------------------
-- list of blocks to output when creating samples
-- set to false an entry to disable the block
--
-- Note: titles marked with a (*) are a continuation segment and will display
-- data only (no title repetition), look at uniBlocks.lua for the physical division.
-- Warning: do not delete rows, disable them instead.
-- ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
--
-- Hint: to retrieve the corresponding document from the Unicode' ftp site
-- then use the Unicode hex value of the first segment (U+....)
--
-- Note: this is obviously not a 1:1 mapping of Blocks.txt from the
-- Unicode's Consortium, as the application details the physical
-- division of blocks and segments within each block, where a full
-- segment is 64 characters long (4 rows of 16 characters each).
--
local tUnicodeBlocks =
{
-- 7 bits only
--------------
{true, "Basic Latin"},
{true, "Basic Latin (*)"},
-- c2-df block (2 bytes)
------------------------
{true, "Latin-1 Supplement"},
{true, "Latin Extended-A"},
{true, "Latin Extended-B"},
{true, "Latin Extended-B (*)"},
{true, "IPA Extensions"},
{true, "IPA Extensions (*)"},
{true, "Spacing Modifier Letters"},
{true, "Spacing Modifier Letters (*)"},
{true, "Combining Diacritical Marks"},
{true, "Combining Diacritical Marks (*)"},
{true, "Greek and Coptic"},
{true, "Greek and Coptic (*)"},
{true, "Cyrillic"},
{true, "Cyrillic Supplement"},
{true, "Armenian"},
{true, "Armenian (*)"},
{true, "Armenian (*)"},
{true, "Hebrew"}, -- right to left
{true, "Hebrew (*)"},
{true, "Arabic"}, -- right to left
{true, "Arabic (*)"},
{true, "Syriac"}, -- right to left
{true, "Syriac (*)"},
{true, "Arabic Supplement"}, -- right to left
{true, "Thaana"}, -- right to left
{true, "N\'Ko"}, -- right to left
-- e0-ef block (3 bytes)
------------------------
{true, "Samaritan"},
{true, "Mandaic"},
{true, "Syriac Supplement"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Arabic Extended-A"}, -- right to left
{true, "Devanagari"},
{true, "Bengali"},
{true, "Gurmukhi"},
{true, "Gujarati"},
{true, "Oriya"},
{true, "Tamil"},
{true, "Telugu"},
{true, "Kannada"},
{true, "Malayalam"},
{true, "Sinhala"},
{true, "Thai"},
{true, "Lao"},
{true, "Tibetan"},
{true, "Myanmar"},
{true, "Myanmar (*)"},
{true, "Georgian"},
{true, "Georgian (*)"},
{true, "Hangul Jamo"},
{true, "Ethiopic"},
{true, "Ethiopic Supplement"},
{true, "Cherokee"},
{true, "Cherokee (*)"},
{true, "Unified Canadian Aboriginal Syllabics"},
{true, "Ogham"},
{true, "Runic"},
{true, "Runic (*)"},
{true, "Tagalog"},
{true, "Hanunoo"},
{true, "Buhid"},
{true, "Tagbanwa"},
{true, "Khmer"},
{true, "Mongolian"},
{true, "Mongolian (*)"},
{true, "Unified Canadian Aboriginal Syllabics Extended"},
{true, "Unified Canadian Aboriginal Syllabics Extended (*)"},
{true, "Limbu"},
{true, "Limbu (*)"},
{true, "Tai Le"},
{true, "New Tai Lue"},
{true, "New Tai Lue (*)"},
{true, "Khmer Symbols"},
{true, "Buginese"},
{true, "Tai Tham"},
{true, "Tai Tham (*)"},
{true, "Tai Tham (*)"},
{true, "Combining Diacritical Marks Extended"},
{true, "Combining Diacritical Marks Extended (*)"},
{true, "Balinese"},
{true, "Sundanese"},
{true, "Batak"},
{true, "Lepcha"},
{true, "Lepcha (*)"},
{true, "Ol Chiki"},
{true, "Cyrillic Extended-C"},
{true, "Georgian Extended"},
{true, "Sundanese Supplement"},
{true, "Vedic Extensions"},
{true, "Phonetic Extensions"},
{true, "Phonetic Extensions Supplement"},
{true, "Combining Diacritical Marks Supplement"},
{true, "Latin Extended Additional"},
{true, "Greek Extended"},
{true, "General Punctuation"},
{true, "General Punctuation (*)"},
{true, "Superscripts and Subscripts"},
{true, "Superscripts and Subscripts (*)"},
{true, "Currency Symbols"},
{true, "Currency Symbols (*)"},
{true, "Combining Diacritical Marks for Symbols"},
{true, "Letterlike Symbols"},
{true, "Letterlike Symbols (*)"},
{true, "Number Forms"},
{true, "Number Forms (*)"},
{true, "Arrows"},
{true, "Arrows (*)"},
{true, "Mathematical Operators"},
{true, "Miscellaneous Technical"},
{true, "Control Pictures"},
{true, "Optical Character Recognition"},
{true, "Enclosed Alphanumerics"},
{true, "Enclosed Alphanumerics (*)"},
{true, "Box Drawing"},
{true, "Block Elements"},
{true, "Geometric Shapes"},
{true, "Geometric Shapes (*)"},
{true, "Miscellaneous Symbols"},
{true, "Dingbats"},
{true, "Miscellaneous Mathematical Symbols-A"},
{true, "Supplemental Arrows-A"},
{true, "Braille Patterns"},
{true, "Supplemental Arrows-B"},
{true, "Miscellaneous Mathematical Symbols-B"},
{true, "Supplemental Mathematical Operators"},
{true, "Miscellaneous Symbols and Arrows"},
{true, "Glagolitic"},
{true, "Glagolitic (*)"},
{true, "Latin Extended-c"},
{true, "Coptic"},
{true, "Georgian Supplement"},
{true, "Tifinagh"},
{true, "Tifinagh (*)"},
{true, "Ethiopic Extended"},
{true, "Ethiopic Extended (*)"},
{true, "Cyrillic Extended-A"},
{true, "Supplemental Punctuation"},
{true, "CJK Radicals Supplement"},
{true, "Kangxi Radicals"},
{true, "Kangxi Radicals (*)"},
{true, "Ideographic Description Characters"},
{true, "CJK Symbols and Punctuation"},
{true, "Hiragana"},
{true, "Hiragana (*)"},
{true, "Katakana"},
{true, "Katakana (*)"},
{true, "Bopomofo"},
{true, "Hangul Compatibility Jamo"},
{true, "Hangul Compatibility Jamo (*)"},
{true, "Hangul Compatibility Jamo (*)"},
{true, "Kanbun"},
{true, "Bopomofo Extended"},
{true, "CJK Strokes"},
{true, "Katakana Phonetic Extensions"},
{true, "Enclosed CJK Letters and Months"},
{true, "CJK Compatibility"},
{true, "CJK Unified Ideographs Extension A"},
{true, "CJK Unified Ideographs Extension A (*)"},
{true, "Yijing Hexagram Symbols"},
{true, "CJK Unified Ideographs"},
{true, "CJK Unified Ideographs (*)"},
{true, "Yi Syllables"},
{true, "Yi Syllables (*)"},
{true, "Yi Radicals"},
{true, "Yi Radicals (*)"},
{true, "Lisu"},
{true, "Vai"},
{true, "Cyrillic Extended-B"},
{true, "Cyrillic Extended-B (*)"},
{true, "Bamum"},
{true, "Bamum (*)"},
{true, "Modifier Tone Letters"},
{true, "Latin Extended-D"},
{true, "Latin Extended-D (*)"},
{true, "Syloti Nagri"},
{true, "Common Indic Number Forms"},
{true, "Phags-pa"},
{true, "Saurashtra"},
{true, "Saurashtra (*)"},
{true, "Devanagari Extended"},
{true, "Kayah Li"},
{true, "Rejang"},
{true, "Rejang (*)"},
{true, "Hangul Jamo Extended-A"},
{true, "Javanese"},
{true, "Javanese (*)"},
{true, "Myanmar Extended-B"},
{true, "Cham"},
{true, "Cham (*)"},
{true, "Myanmar Extended-A"},
{true, "Tai Viet"},
{true, "Tai Viet (*)"},
{true, "Meetei Mayek Extensions"},
{true, "Ethiopic Extended-A"},
{true, "Latin Extended-E"},
{true, "Latin Extended-E (*)"},
{true, "Cherokee Supplement"},
{true, "Cherokee Supplement (*)"},
{true, "Meetei Mayek"},
{true, "Hangul Syllables"},
{true, "Hangul Syllables (*)"},
{true, "Hangul Syllables (*)"},
{true, "Hangul Syllables (*)"},
{true, "Hangul Jamo Extended-B"},
{true, "Hangul Jamo Extended-B (*)"},
{false, "High Surrogates"}, -- not in RFC 3629
{false, "High Private Use Surrogates"}, -- not in RFC 3629
{false, "Low Surrogates"}, -- not in RFC 3629
{true, "Private Use Area"},
{true, "Private Use Area (*)"},
{true, "CJK Compatibility Ideographs"},
{true, "Alphabetic Presentation Forms"}, -- some right to left
{true, "Alphabetic Presentation Forms (*)"}, -- right to left
{true, "Arabic Presentation Forms-A"}, -- right to left
{true, "Arabic Presentation Forms-A (*)"},
{true, "Arabic Presentation Forms-A (*)"},
{true, "Non-Characters"},
{true, "Arabic Presentation Forms-A (contd)"}, -- odd but true!
{true, "Variation Selectors"},
{true, "Vertical Forms"},
{true, "Combining Half Marks"},
{true, "CJK Compatibility Forms"},
{true, "CJK Compatibility Forms (*)"},
{true, "Small Form Variants"},
{true, "Arabic Presentation Forms-B"}, -- right to left
{true, "Arabic Presentation Forms-B (*)"},
{true, "Halfwidth and Fullwidth Forms"},
{true, "Halfwidth and Fullwidth Forms (*)"},
{true, "Specials"},
-- f0-f4 block (4 bytes)
------------------------
{true, "Linear B Syllabary"},
{true, "Linear B Ideograms"},
{true, "Aegean Numbers"},
{true, "Ancient Greek Numbers"},
{true, "Ancient Greek Numbers (*)"},
{true, "Ancient Symbols"},
{true, "Ancient Symbols (*)"},
{true, "Phaistos Disc"},
{false, "No_Block"},
{true, "Lycian"},
{true, "Carian"},
{true, "Carian (*)"},
{true, "Coptic Epact Numbers"},
{true, "Old Italic"},
{true, "Gothic"},
{true, "Gothic (*)"},
{true, "Old Permic"},
{true, "Ugaritic"},
{true, "Old Persian"},
{true, "Old Persian (*)"},
{false, "No_Block"},
{true, "Deseret"},
{true, "Deseret (*)"},
{true, "Shavian"},
{true, "Osmanya"},
{true, "Osage"},
{true, "Osage (*)"},
{true, "Elbasan"},
{true, "Caucasian Albanian"},
{true, "Caucasian Albanian (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Linear A"},
{false, "No_Block"},
{true, "Cypriot Syllabary"},
{true, "Imperial Aramaic"}, -- right to left
{true, "Palmyrene"},
{true, "Nabataean"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Hatran"},
{true, "Phoenician"},
{true, "Lydian"},
{false, "No_Block"},
{true, "Meroitic Hieroglyphs"},
{true, "Meroitic Cursive"}, -- right to left
{true, "Meroitic Cursive (*)"},
{true, "Kharoshthi"}, -- right to left
{true, "Kharoshthi (*)"},
{true, "Old South Arabian"}, -- right to left
{true, "Old North Arabian"},
{false, "No_Block"},
{true, "Manichaean"},
{true, "Avestan"},
{true, "Inscriptional Parthian"}, -- right to left
{true, "Inscriptional Pahlavi"}, -- right to left
{true, "Psalter Pahlavi"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Old Turkic"}, -- right to left
{true, "Old Turkic (*)"},
{false, "No_Block"},
{true, "Old Hungarian"},
{true, "Hanifi Rohingya"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Rumi Numeral Symbols"},
{false, "No_Block"},
{true, "Old Sogdian"},
{true, "Sogdian"},
{true, "Sogdian (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Brahmi"},
{true, "Kaithi"},
{true, "Kaithi (*)"},
{true, "Sora Sompeng"},
{true, "Chakma"},
{true, "Chakma (*)"},
{true, "Mahajani"},
{true, "Sharada"},
{true, "Sharada (*)"},
{true, "Sinhala Archaic Numbers"},
{true, "Khojki"},
{true, "Khojki (*)"},
{true, "Multani"},
{true, "Khudawadi"},
{true, "Khudawadi (*)"},
{true, "Grantha"},
{false, "No_Block"},
{true, "Newa"},
{true, "Tirhuta"},
{true, "Tirhuta (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Siddham"},
{true, "Modi"},
{true, "Modi (*)"},
{true, "Mongolian Supplement"},
{true, "Takri"},
{true, "Takri (*)"},
{false, "No_Block"},
{true, "Ahom"},
{false, "No_Block"},
{true, "Dogra"},
{true, "Dogra (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Warang Citi"},
{true, "Warang Citi (*)"},
{false, "No_Block"},
{true, "Zanabazar Square"},
{true, "Zanabazar Square (*)"},
{true, "Soyombo"},
{true, "Soyombo (*)"},
{false, "No_Block"},
{true, "Pau Cin Hau"},
{false, "No_Block"},
{true, "Bhaiksuki"},
{true, "Bhaiksuki (*)"},
{true, "Marchen"},
{true, "Marchen (*)"},
{false, "No_Block"},
{true, "Masaram Gondi"},
{true, "Masaram Gondi (*)"},
{true, "Gunjala Gondi"},
{true, "Gunjala Gondi (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Makasar"},
{false, "No_Block"},
{true, "Cuneiform"},
{true, "Cuneiform Numbers and Punctuation"},
{true, "Early Dynastic Cuneiform"},
{true, "Early Dynastic Cuneiform (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Egyptian Hieroglyphs"},
{true, "Egyptian Hieroglyphs (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Anatolian Hieroglyphs"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Bamum Supplement"},
{true, "Mro"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Bassa Vah"},
{true, "Pahawh Hmong"},
{true, "Pahawh Hmong (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Medefaidrin"},
{true, "Medefaidrin (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Miao"},
{true, "Miao (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Ideographic Symbols and Punctuation"},
{true, "Tangut"},
{true, "Tangut (*)"},
{true, "Tangut Components"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Kana Supplement"},
{true, "Kana Extended-A"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Nushu"},
{true, "Nushu (*)"},
{false, "No_Block"},
{true, "Duployan"},
{true, "Duployan (*)"},
{true, "Shorthand Format Controls"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Byzantine Musical Symbols"},
{true, "Musical Symbols"},
{true, "Ancient Greek Musical Notation"},
{true, "Ancient Greek Musical Notation (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Mayan Numerals"},
{false, "No_Block"},
{true, "Tai Xuan Jing Symbols"},
{true, "Tai Xuan Jing Symbols (*)"},
{true, "Counting Rod Numerals"},
{false, "No_Block"},
{true, "Mathematical Alphanumeric Symbols"},
{true, "Sutton SignWriting"},
{true, "Sutton SignWriting (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Glagolitic Supplement"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "Mende Kikakui"},
{true, "Mende Kikakui (*)"},
{false, "No_Block"},
{true, "Adlam"},
{true, "Adlam (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Indic Siyaq Numbers"},
{true, "Indic Siyaq Numbers (*)"},
{false, "No_Block"},
{true, "Arabic Mathematical Alphabetic Symbols"},
{false, "No_Block"},
{true, "Mahjong Tiles"},
{true, "Domino Tiles"},
{true, "Domino Tiles (*)"},
{true, "Domino Tiles (*)"},
{true, "Playing Cards"},
{true, "Playing Cards (*)"},
{true, "Enclosed Alphanumeric Supplement"},
{true, "Enclosed Ideographic Supplement"},
{true, "Miscellaneous Symbols and Pictographs"},
{true, "Emoticons"},
{true, "Emoticons (*)"},
{true, "Ornamental Dingbats"},
{true, "Transport and Map Symbols"},
{true, "Alchemical Symbols"},
{true, "Geometric Shapes Extended"},
{true, "Supplemental Arrows-C"},
{true, "Supplemental Symbols and Pictographs"},
{true, "Chess Symbols"},
{true, "Chess Symbols (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{true, "CJK Unified Ideographs Extension B"},
{true, "CJK Unified Ideographs Extension B (*)"},
{true, "CJK Unified Ideographs Extension B (*)"},
{false, "No_Block"},
{true, "CJK Unified Ideographs Extension C"},
{true, "CJK Unified Ideographs Extension C (*)"},
{true, "CJK Unified Ideographs Extension D"},
{true, "CJK Unified Ideographs Extension D (*)"},
{true, "CJK Unified Ideographs Extension E"},
{true, "CJK Unified Ideographs Extension E (*)"},
{true, "CJK Unified Ideographs Extension E (*)"},
{true, "CJK Unified Ideographs Extension E (*)"},
{true, "CJK Unified Ideographs Extension F"},
{true, "CJK Unified Ideographs Extension F (*)"},
{true, "CJK Unified Ideographs Extension F (*)"},
{true, "CJK Unified Ideographs Extension F (*)"},
{true, "CJK Unified Ideographs Extension F (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "CJK Compatibility Ideographs Supplement"},
{true, "CJK Compatibility Ideographs Supplement (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{false, "No_Block (*)"},
{true, "Tags"},
{false, "No_Block"},
{true, "Variation Selectors Supplement"},
{true, "Variation Selectors Supplement (*)"},
{false, "No_Block"},
{false, "No_Block (*)"},
{false, "Supplementary Private Use Area-A"},
{false, "Supplementary Private Use Area-B"},
{false, "Supplementary Private Use Area-B (*)"},
{true, "Non-Characters"},
}
-- ----------------------------------------------------------------------------
-- helper: these is a listing of some fonts installed on my laptop
-- so if I want to test a new font I just change the index in selected entry.
--
-- Note: characters in the 'Private Use Area' really depend on current font.
-- Hint: testing Latin-B, Arrows, Symbols, Shapes will give an idea of correctness.
-- A star '*' marks a failure on primary tests.
--
local tPreferFont =
{
"Source Code Pro", -- 1 falls short on Latin B
"Gentium Book Basic", -- 2 falls long on Latin B
"David Libre", -- 3 falls long on Latin B
"EmojiOne Color", -- 4 often prints below baseline
"Microsoft Sans Serif", -- 5 falls short on Supplemental Arrows
"Lucida Sans Unicode", -- 6 falls long on Phonetic Extensions
"DejaVu Sans Mono", -- 7 ok
"Noto Mono", -- 8 falls short on Latin B
"Trebuchet MS", -- 9 falls short on Latin B
"Liberation Sans", -- 10 ok, fails on Greek Extended + has leading
"Courier New", -- 11 too bad on Latin B first row
"Frank Ruehl CLM", -- 12 nice + leading
"Alef", -- 13 seldom falls really short
"Amiri", -- 14 odd behaviour, really bad
"Ebrima", -- 15 nice, falls really short, slow loupe
"Gadugi", -- 16 falls short on Latin B
"MusicM", -- 17 really bad display
"MS Gothic", -- 18 falls very long on Latin B
"Arial Unicode MS", -- 19 ok
"Rubik", -- 20 fat, *
"Segoe UI", -- 21 falls short on Arrows
"Tahoma", -- 22 ok
"Times New Roman", -- 23 ok + leading
"Trebuchet MS", -- 24 falls short on Latin B
"Verdana", -- 25 falls very long on Latin B
"Unifont", -- 26 harsh + leading + nl
"Batang", -- 27 fails on Cyrillic Extended A + leading + nl
"Gulim", -- 28 ok + leading + nl
"MingLiU", -- 29 many Mathematical Alphanumeric Symbols undefined + leading
"MS Mincho", -- 30 thin, falls very long
"SimHei", -- 31 slow drawing, Greek and Cyrillic wide spacing
"SimSun", -- 32 Greek wide spacing
"Caladea", -- 33 slightly oblique, text's extent really wrong
"Calibri", -- 34 fails on many Arrows
"Cambria", -- 35 ok
"Candara", -- 36 *
"Consolas", -- 37 mono-spaced, *
"Constantia", -- 38 *
"Corbel", -- 39 *, lacks many Arrows
"David CLM", -- 40 *
"Datum", -- 41 *, + leading
"Gabriola", -- 42 really bad, inconsistent
"Georgia", -- 43 often falls short on many characters
"Gungsuh", -- 44 ok but odd behaviour if treated, fat, + leading + nl
"Linux Biolinum G", -- 45 ok, fails on Blocks
"MS PMincho", -- 46 fails short on Latin B
"Miriam Mono CLM", -- 47 narrow Latin 1, mostly mono-spaced
"Nachlieli CLM", -- 48 *
"Reem Kufi", -- 49 *
"Rubik", -- 50 *
"Scheherazade", -- 51 inconsistent
"Sitka", -- 52 fails on Number Forms
"Sylfaen", -- 53 *
"Symbola", -- 54 ok, the best among all
"Unifont Upper", -- 55 ok, harsh after Specials block, + leading
"Nilus", -- 56 ok, the best for Egyptian Hieroglyphs
}
-- ----------------------------------------------------------------------------
-- list of known codepages for the testfiles
-- (all testfiles provided are Latin I or such ...)
-- Hint: to display properly text with box drawing characters use a mono-spaced font
--
local tKnowCPs =
{
{"Windows", 1252}, -- usually ok (test file 1,2,3,4,6,7,8)
{"OEM", 437}, -- lines and blocks (test file 5,a,b,c,d)
{"ISO", 885901}, -- Euro currency symbol not defined
}
-- ----------------------------------------------------------------------------
-- parameters for the application
-- if modified and the application is running then call refresh settings
--
-- Note: memory garbage collection set to Generational won't release much memory.
-- Memory is forced to be fully recollected upon a file read.
-- Hint: it's a wise choice to select the loupe's font name the same as per "TextFont".
-- Hint: Symbola_Hinted.ttf is the most complete and correct font of all, covers Music
-- and many obscure blocks. It does lack the external leading hint.
-- Hint: Unifont Upper though being harsh contains the Sutton SignWriting block.
--
local tSetupInf =
{
-- importing the file
--
-- ["InFile"] = "testfiles\\__Test_xx.txt", -- import file name
["InFile"] = "docs\\Punctuation.txt", -- import file name
["ReadMode"] = "r", -- r/rb
["AutoLoad"] = true, -- load at startup time
["Codepage"] = tKnowCPs[1], -- desired encoding
-- saving the file
--
["OutFile"] = "testfiles\\__Test_out.txt", -- output file name
["WriteMode"] = "w", -- w/wb/a with + option
-- checking validity
--
["Pedantic"] = false, -- trace each line error
["AutoCheck"] = false, -- check validity at load time
-- samples file creation
--
["OnlyGroups"] = false, -- compact output, show group's names only
["AlignByCols"] = 16, -- number of columns when not in compact mode
["ByBlocksRow"] = tUnicodeBlocks, -- table listing the Unicode blocks enabled
["SamplesFile"] = "testfiles\\__Test_xx.txt", -- output file name
-- display
--
["ByteFont"] = {12, tPreferFont[7]}, -- left display (codes)
["TextFont"] = {19, tPreferFont[54]}, -- right display (text)
["FontStep"] = 1, -- note: wxFont ignores decimals
["Columns"] = 16, -- number of columns in left pane
["Interleave"] = true, -- highlight even columns
["WheelMult"] = 10, -- override o.s. mouse wheel's scroll
["Format"] = "Hex", -- Oct/Dec/Hex
["HideSpaces"] = true, -- hide bytes of value 0x20 (space)
["Underline"] = true, -- underline bytes below 0x20
["ColourCodes"] = true, -- highlight Unicode bytes group
["TabSize"] = 4, -- convert tab to 'n' chars (left pane)
["Scheme"] = "Dark", -- colour scheme - White/Light/Dark/Black
-- edit
--
["CopyOption"] = "Word", -- Byte/UTF_8/Word/Line/Select
-- ["PasteOption"] = "Discard", -- (ignored) handling of errors - Discard/Convert/Plain
-- ["SelectOption"]= "Free", -- (ignored) selection mode - Line/Free
-- magnify
--
["Loupe"] = {200, tPreferFont[54]}, -- font for the magnifying window
["UseNames"] = "Docs\\NamesList.txt", -- names' file (comment line to disable)
-- extra
--
["TimeDisplay"] = 10, -- seconds of message in status bar
["Collector"] = "Generational", -- wasted memory - Generational/Incremental
["TraceMemory"] = true, -- enable tracing of memory usage
}
-- ----------------------------------------------------------------------------
--
return tSetupInf
-- ----------------------------------------------------------------------------
-- ----------------------------------------------------------------------------