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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
//! The parameter registry: every number that the DOCX layout uses, except 0, 1 and 2, array
//! lengths and indexes, and the unit conversions of `f-office-units`.
//!
//! The doc comment of each constant says what the value is and ends with its unit and its
//! status. The statuses are:
//!
//! - `specified`: ECMA-376 or another specification gives the value.
//! - `derived`: it follows from font data, units or other parameters.
//! - `measured`: Word's pages confirm its exact value.
//! - `fitted`: empirical target-matching value.
//! - `unknown`: observed target behavior without a documented derivation.
//! - `limit`: a value of F-Office itself that does not model Word, such as the deepest chain of
//! styles that it follows or a default for a table that a font lacks.
use Length;
use ;
use Rgb;
use ;
use crateCompatibilityMode;
/// A length of `points` points.
const
/// A length of `parts` of a point, a point in `per_point` parts, rounded toward zero.
const
/// A length of `twips` twips.
const
/// A length of `emus` EMUs.
const
// Compatibility modes and Word's defaults.
/// The number of compatibility mode 14, Word 2010's, in the setting `compatibilityMode`. A
/// smaller number, and a document without the setting, is a mode below 14.
///
/// - unit: value of the setting
/// - status: specified
pub const MODE_14_NUMBER: u32 = 14;
/// The number of compatibility mode 15, Word 2013's, in the setting `compatibilityMode`. A
/// larger number acts as this mode.
///
/// - unit: value of the setting
/// - status: specified
pub const MODE_15_NUMBER: u32 = 15;
/// The thick band's share relative to the thin band and gap of an asymmetric
/// DrawingML compound line. The full stated width contains all three parts.
///
/// - unit: parts of the thin band
/// - status: measured
pub const COMPOUND_LINE_THICK_PARTS: i64 = 3;
/// The compatibility mode of Word 2010, from which Word joins standard ligatures that a run
/// turns on.
///
/// - unit: compatibility mode
/// - status: specified
pub const LIGATURE_MODE: CompatibilityMode = Mode14;
/// The compatibility mode of Word 2010, from which a joined space run, a run of white space
/// that holds a no-break space, keeps the words on both of its sides on one line. Before it,
/// and in a document that names no mode, a line may break after the run's plain spaces.
///
/// - unit: compatibility mode
/// - status: measured
pub const JOINED_SPACE_MODE: CompatibilityMode = Mode14;
/// The compatibility mode of Word 2013, from which the text after a tab to a right, center or
/// decimal stop at or past the line's end ends at most at its limit where the target's quirk
/// `AlignedTabOverrun` says so. Before it, and in a document that names no mode, such text keeps
/// its place at the stop, and its line runs on to where it ends; a stop before the line's end
/// takes the limit in every mode.
///
/// - unit: compatibility mode
/// - status: measured
pub const ALIGNED_TAB_PAST_END_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a tab to a custom left stop past the line's
/// end starts the next line and ends there at the line's end, where the target's quirk
/// `LeftStopPastEnd` says so. Before it, and in a document that names no mode, such a tab goes to
/// its stop on its own line.
///
/// - unit: compatibility mode
/// - status: measured
pub const LEFT_STOP_PAST_END_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a paragraph that starts with page breaks
/// and holds more after them starts its first line after the first of the breaks, where the
/// target's quirk `LeadingPageBreak` says so. Before it, and in a document that names no mode,
/// the first line comes after all of them.
///
/// - unit: compatibility mode
/// - status: measured
pub const LEADING_BREAK_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which Word lays out a paragraph's text in pieces
/// of [`TEXT_PIECE_LENGTH`] characters. Before it, and in a document that names no mode, the
/// pieces are [`OLD_MODE_TEXT_PIECE_LENGTH`] characters long.
///
/// - unit: compatibility mode
/// - status: measured
pub const TEXT_PIECE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which Word does not read the setting
/// `w:doNotUseIndentAsNumberingTabStop`. Before it, and in a document that names no mode, the
/// setting puts the left indent after the custom tab stops for the tab after a list label.
///
/// - unit: compatibility mode
/// - status: measured
pub const NUMBERING_INDENT_SETTING_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which the outer edge of a table's left border, and not the
/// text of its first cell, sits at the table indent.
///
/// - unit: compatibility mode
/// - status: specified
pub const EDGE_ALIGNED_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which justified lines shrink their spaces.
///
/// - unit: compatibility mode
/// - status: specified
pub const COMPRESSING_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which the edge check of right-edge steps, on a target that
/// counts Word's shares of a justified line's free space (`EdgeShares::ExactFree`), rounds the
/// sum of the shares up to a glyph toward zero to whole parts of [`SHARE_PARTS_PER_POINT`]. In
/// an earlier mode, it rounds the line's free space to the nearest whole part, gives each
/// stretched space an equal share of those parts toward zero, and one part more to each of the
/// first spaces, as many as the equal shares leave.
///
/// - unit: compatibility mode
/// - status: measured
pub const SUMMED_SHARE_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which the stretched spaces of a filled justified line take
/// the shares of its free space that the quirk `StretchedSpaceShare` says. In an earlier mode,
/// each stretched space takes the same share.
///
/// - unit: compatibility mode
/// - status: measured
pub const WIDTH_SHARE_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which a justified line keeps the width of every no-break
/// space. In an earlier mode, a no-break space takes the share of a plain space where the quirk
/// `NoBreakSpaceShare` says.
///
/// - unit: compatibility mode
/// - status: measured
pub const NO_BREAK_SHARE_MODE: CompatibilityMode = Mode15;
/// The lowest compatibility mode in which a justified line of a paragraph aligned `lowKashida`
/// no longer lengthens one joint of each of its last words that can take a kashida, where the
/// quirk `KashidaJustification` says so: from it, the line lengthens its joints after a seen,
/// sheen, sad or dad first, where the quirk `SeenKashidas` says so.
///
/// - unit: compatibility mode
/// - status: measured
pub const KASHIDA_WORDS_MODE: CompatibilityMode = Mode15;
/// The widest kashida after a seen, sheen, sad or dad of a justified line of a paragraph aligned
/// `lowKashida` from `KASHIDA_WORDS_MODE`, where the quirk `SeenKashidas` says so, in widths of a
/// space of the joint's face at its size, rounded to whole dots.
///
/// - unit: space widths
/// - status: measured
pub const SEEN_KASHIDA_SPACES: i64 = 3;
/// How many times what each stretched space widens a kashida before an alef or a heh that ends
/// a joined group takes, of the room that the kashidas after a seen, sheen, sad or dad leave in a
/// justified line of a paragraph aligned `lowKashida` from `KASHIDA_WORDS_MODE`, where the quirk
/// `SeenKashidas` says so.
///
/// - unit: space shares
/// - status: fitted
pub const FINAL_KASHIDA_SHARE: i64 = 3;
/// How many gaps between words each letter joint that does not follow a seen, sheen, sad or dad
/// counts as, beside the spaces, in the stretch per gap that a justified line of a paragraph
/// aligned `lowKashida` from `KASHIDA_WORDS_MODE` would need without one more word, where the
/// quirk `SeenKashidas` says so: the line takes that word by shrinking its spaces only while each
/// shrinks by at most the share `NEXT_WORD_STRETCH_SHARE` of that stretch.
///
/// - unit: gaps
/// - status: fitted
pub const NEXT_WORD_JOINT_GAPS: i64 = 3;
/// How many gaps between words each letter joint after a seen, sheen, sad or dad counts as in
/// the stretch per gap of `NEXT_WORD_JOINT_GAPS`.
///
/// - unit: gaps
/// - status: fitted
pub const NEXT_WORD_SEEN_JOINT_GAPS: i64 = 9;
/// The lowest compatibility mode in which automatic hyphenation ignores the hyphenation zone
/// and keeps [`HYPHEN_LEAST_AFTER`] letters after a point. Before it, a word that does not fit
/// is hyphenated only when the room that the line leaves for it is wider than the zone, and a
/// point keeps [`OLDER_HYPHEN_LEAST_AFTER`] letters after it.
///
/// - unit: compatibility mode
/// - status: measured
pub const HYPHENATION_MODE: CompatibilityMode = Mode15;
/// The fewest letters that automatic hyphenation leaves before a point.
///
/// - unit: letters
/// - status: measured
pub const HYPHEN_LEAST_BEFORE: usize = 2;
/// The fewest letters that automatic hyphenation leaves after a point from
/// [`HYPHENATION_MODE`].
///
/// - unit: letters
/// - status: measured
pub const HYPHEN_LEAST_AFTER: usize = 3;
/// The fewest letters that automatic hyphenation leaves after a point before
/// [`HYPHENATION_MODE`].
///
/// - unit: letters
/// - status: measured
pub const OLDER_HYPHEN_LEAST_AFTER: usize = 2;
/// The space after a paragraph when the styles have no default paragraph properties, as in
/// Word's own default template: 8 pt.
///
/// - unit: twips
/// - status: fitted
pub const DEFAULT_SPACE_AFTER: i64 = 160;
/// The line spacing when the styles have no default paragraph properties, as in Word's own
/// default template: 278/240 of a line.
///
/// - unit: 240ths of a line
/// - status: fitted
pub const DEFAULT_LINE_SPACING: i64 = 278;
/// The largest multiple of automatic line spacing that the reader takes, from `w:line` with
/// `w:lineRule="auto"` or from a DrawingML share of a line: 256 lines. A larger multiple reads
/// as the limit, and a multiple below its negative as its negative, with the warning
/// `limit-reached` (`Limit::LineMultiple`), so that a line of that multiple of the single line
/// of any face, at any size that the reader takes, stays a length. A bound of the work, not a
/// measure of Word: what Word does with such a multiple, or with a negative one, is not
/// measured.
///
/// - unit: 240ths of a line
/// - status: limit
pub const MAX_LINE_MULTIPLE: i64 = 61_440;
/// The distance between default tab stops when the settings give none (ECMA-376 Part 1,
/// 17.15.1.25).
///
/// - unit: twips
/// - status: specified
pub const DEFAULT_TAB_DISTANCE: i64 = 720;
/// The hyphenation zone when the settings turn automatic hyphenation on and give no zone
/// (ECMA-376 Part 1, 17.15.1.53).
///
/// - unit: twips
/// - status: specified
pub const DEFAULT_HYPHENATION_ZONE: i64 = 360;
/// The deepest chain of `w:basedOn` styles that F-Office follows, which stops a chain that
/// loops.
///
/// - unit: styles
/// - status: limit
pub const MAX_STYLE_CHAIN: usize = 32;
// Charts.
/// The gap between the clusters of a bar chart without `c:gapWidth`, as a percentage of a
/// bar's width (ECMA-376 Part 1, 21.2.2.75).
///
/// - unit: percent of a bar
/// - status: specified
pub const CHART_GAP_WIDTH: i64 = 150;
/// How far the bars of a cluster overlap without `c:overlap`, as a percentage of a bar's
/// width (ECMA-376 Part 1, 21.2.2.131).
///
/// - unit: percent of a bar
/// - status: specified
pub const CHART_OVERLAP: i64 = 0;
/// The major units that a value axis' automatic scale chooses from: these times a power of
/// ten.
///
/// - unit: multiples of a power of ten
/// - status: measured
pub const CHART_AXIS_UNITS: = ;
/// The headroom of a value axis' automatic scale: its top is at least the largest value times
/// this.
///
/// - unit: thousandths of the largest value
/// - status: measured
pub const CHART_AXIS_HEADROOM: i64 = 1_050;
/// The most major units from zero to the top of a value axis' automatic scale.
///
/// - unit: major units
/// - status: measured
pub const CHART_AXIS_STEPS: i64 = 10;
/// The part of a plot area's height that the value labels of an automatic scale leave free
/// where the count of major units is limited by the labels' lines: n units fit when n of the
/// labels' single lines fit the plot area's height less this.
///
/// - unit: points
/// - status: measured
pub const CHART_AXIS_LABEL_ROOM: Length = points;
/// The largest power of ten, up or down, that the digits of a cached chart value may carry. A
/// value beyond it does not read, so its chart keeps its empty frame. The 17 digits of a double
/// carry a power from about -340 to 292, so the limit holds every value that a double can hold.
///
/// - unit: powers of ten
/// - status: limit
pub const CHART_EXPONENT_LIMIT: i64 = 350;
/// The significant digits of a value that a chart label keeps before its number format rounds
/// it: a value of a cache, written with 17 significant digits such as `1.0049999999999999`,
/// first rounds half away from zero to these, then to the format's decimals (`1.01` in `0.00`).
///
/// - unit: digits
/// - status: measured
pub const CHART_SIGNIFICANT_DIGITS: u32 = 15;
/// The most characters in which a chart's data label in General writes its value, its decimal
/// point counted and its minus sign not: one third writes `0.333333333` and minus one third
/// `-0.333333333`, and 123,456,789,012 writes `1.23457E+11`.
///
/// - unit: characters
/// - status: measured
pub const CHART_GENERAL_CHARACTERS: usize = 11;
/// The most characters in which a value label of a chart's value axis in General writes its
/// value, its minus sign and its decimal point counted: 800,000,000 writes `800000000`, and
/// 1,000,000,000 `1E+09` and -300,000,000 `-3E+08`.
///
/// - unit: characters
/// - status: measured
pub const CHART_AXIS_GENERAL_CHARACTERS: usize = 9;
/// The fewest digits of the exponent of a chart label that General writes in scientific
/// notation: `1.6E+09`.
///
/// - unit: digits
/// - status: measured
pub const CHART_EXPONENT_DIGITS: u32 = 2;
/// The digits of each group of a whole part that a number format with a group separator writes
/// apart, the thousands separator of a format code (ECMA-376 Part 1, 18.8.31).
///
/// - unit: digits
/// - status: specified
pub const CHART_DIGIT_GROUP: usize = 3;
/// The sections of a number format code at most: for values above zero, below zero, zero and
/// text (ECMA-376 Part 1, 18.8.31).
///
/// - unit: sections
/// - status: specified
pub const CHART_FORMAT_SECTIONS: usize = 4;
/// The sections of a number format code that write numbers: for values above zero, below zero
/// and zero (ECMA-376 Part 1, 18.8.31).
///
/// - unit: sections
/// - status: specified
pub const CHART_NUMBER_SECTIONS: usize = 3;
/// The color of a chart label whose number format's section names `[Red]`: `FF0000`.
///
/// - unit: RGB
/// - status: measured
pub const CHART_FORMAT_RED: Rgb = Rgb ;
/// The size of a chart's text when neither the element's own text nor the chart space's text
/// (`c:txPr` of `c:chartSpace`) sets one: 10 pt (ECMA-376 Part 1, 21.2.3.46).
///
/// - unit: half-points
/// - status: specified
pub const CHART_TEXT_SIZE: i64 = 20;
/// The size of a chart title that writes none, in a chart that names its chart style in Word's
/// form (`c14:style`) and whose chart space's text writes no size, where the target draws a
/// title's text: 18 pt.
///
/// - unit: half-points
/// - status: measured
pub const CHART_STYLED_TITLE_SIZE: i64 = 36;
/// The gap between the end of a bar and the text box of its data label: 3.00 pt.
///
/// - unit: hundredths of a point
/// - status: fitted
pub const CHART_DATA_LABEL_GAP: Length = point_parts;
/// The minimum marker diameter used when offsetting a line chart's data label (`t`, `b`, `l`,
/// `r`, or default) from its point: 5 pt (matching OOXML's default marker size, so lines without
/// markers or with markers up to 5 pt offset by 2.5 pt + [`CHART_DATA_LABEL_GAP`], while larger
/// markers offset by half their size + [`CHART_DATA_LABEL_GAP`]).
///
/// - unit: points
/// - status: measured
pub const CHART_LINE_DATA_LABEL_MARKER_MIN: Length = points;
/// The insets of a data label's text box when its `a:bodyPr` gives none: 3 pt at the sides
/// and 1.5 pt above and below, the insets that Word writes for data labels.
///
/// - unit: EMU
/// - status: fitted
pub const CHART_DATA_LABEL_INSETS: = ;
/// The distance from the plot area's right edge to the chart frame's right edge.
///
/// - unit: points
/// - status: measured
pub const CHART_PLOT_RIGHT: Length = points;
/// The share of a pie's radius and [`CHART_PLOT_RIGHT`] that the pie keeps of them when its
/// data labels may stand outside the circle, as a numerator and a denominator: its radius
/// with that edge is this share of the largest circle's with it.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_OUTSIDE_LABEL_SHARE: = ;
/// The default perspective of a chart's 3-D view (`c:perspective`, ECMA-376 Part 1,
/// 21.2.2.141), whose value is twice its field of view in degrees.
///
/// - unit: half degrees
/// - status: specified
pub const CHART_VIEW_DEFAULT_PERSPECTIVE: i64 = 30;
/// The largest perspective of a chart's 3-D view (`ST_Perspective`, ECMA-376 Part 1,
/// 21.2.3.32).
///
/// - unit: half degrees
/// - status: specified
pub const CHART_VIEW_LARGEST_PERSPECTIVE: i64 = 240;
/// The pixels of the picture of a 3-D pie's plot area for each inch of the plot area, across
/// and down.
///
/// - unit: pixels per inch
/// - status: measured
pub const CHART_PIE_3D_PIXELS_PER_INCH: i64 = 200;
/// The thickness of a 3-D pie as a share of its radius: a numerator and a denominator.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_3D_THICKNESS: = ;
/// The room that the figure of a 3-D pie leaves at each side of its picture, as a share of
/// the picture's width or height: a numerator and a denominator.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_3D_MARGIN: = ;
/// The pixels of the picture of a shape's outer shadow for each inch of the picture, across and
/// down, without a blur; a blurred shadow's picture has the largest whole part of them at which
/// its blur radius spans at most [`SHADOW_BLUR_PIXELS`].
///
/// - unit: pixels per inch
/// - status: measured
pub const SHADOW_PIXELS_PER_INCH: i64 = 200;
/// The most pixels of its picture that the blur radius of a shape's outer shadow spans.
///
/// - unit: pixels
/// - status: measured
pub const SHADOW_BLUR_PIXELS: i64 = 8;
/// The standard deviation of the Gaussian that blurs a shape's outer shadow, as a share of its
/// blur radius (`blurRad`): a numerator and a denominator.
///
/// - unit: share
/// - status: measured
pub const SHADOW_BLUR_SPREAD: = ;
/// The size of text at which its shadow (`w14:shadow`) takes its whole blur radius and
/// distance; at another size it takes the share of [`TEXT_SHADOW_POWER`].
///
/// - unit: points
/// - status: measured
pub const TEXT_SHADOW_SIZE: Length = points;
/// The power of the size over [`TEXT_SHADOW_SIZE`] that gives the share of its blur radius and
/// distance that the shadow of text takes: a numerator and a denominator, at most 1.
///
/// - unit: share
/// - status: measured
pub const TEXT_SHADOW_POWER: = ;
/// The length that the offset of a sharp shadow of text, drawn as the paths of its glyphs,
/// keeps beyond the share of its distance: the offset is the share s of the distance and
/// (1 − s) of this length, 0.048 pt, so it vanishes at [`TEXT_SHADOW_SIZE`].
///
/// - unit: half-EMUs
/// - status: measured
pub const TEXT_SHADOW_BASE_OFFSET: Length = from_units;
/// The step of the page to which the edges of the box of a shadow's picture round: each edge of
/// the shape's outline moved by the shadow's offset rounds to the nearest step, and the box
/// grows from there by the blur radius rounded up to whole steps and [`SHADOW_BOX_ROOM`] more.
///
/// - unit: half-EMUs (0.12 pt)
/// - status: measured
pub const SHADOW_BOX_STEP: Length = point_parts;
/// The steps of [`SHADOW_BOX_STEP`] by which the box of a shadow's picture grows past its
/// rounded blur at each side.
///
/// - unit: steps
/// - status: measured
pub const SHADOW_BOX_ROOM: i64 = 1;
/// The gap between the circle of a pie and the text boxes of its data labels at the inner end,
/// along each slice's bisector, as a share of the radius: a numerator and a denominator.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_INNER_END_GAP: = ;
/// The gap across between the circle of a pie and the text boxes of its data labels at the
/// outer end, as a share of the radius: the point from which a label stands lies this share
/// of the radius farther out across than the point where the slice's bisector meets the
/// circle.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_OUTER_END_ACROSS: = ;
/// The gap down between the circle of a pie and the text boxes of its data labels at the outer
/// end, as a share of the radius, as [`CHART_PIE_OUTER_END_ACROSS`] is across.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_OUTER_END_DOWN: = ;
/// The width that a pie's data label at the outer end takes beside its point, as a share of
/// its text box's width: a numerator and a denominator.
///
/// - unit: share
/// - status: measured
pub const CHART_PIE_OUTER_END_WIDTH: = ;
/// How fast a pie's data label at the outer end slides across from its point, within 45
/// degrees of the vertical, as the slice's bisector leans from the vertical: the share of its
/// half width is this factor times the tangent of the lean, up to the whole.
///
/// - unit: factor
/// - status: measured
pub const CHART_PIE_OUTER_END_SLIDE: i64 = 3;
/// The distance from the chart frame's top to the plot area's top, less the title's lines.
///
/// - unit: points
/// - status: measured
pub const CHART_TITLE_TOP: Length = points;
/// The distance from the chart frame's top to the plot area's top below a title, less half a
/// line of the axis labels, when that is lower than the title's lines put it.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_TITLE_LABEL_TOP: Length = point_parts;
/// The distance from the chart frame's left edge to the start of the widest value label.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_VALUE_LABEL_LEFT: Length = point_parts;
/// The gap from the end of the widest value label to the plot area.
///
/// - unit: thousandths of the label size
/// - status: measured
pub const CHART_VALUE_LABEL_GAP: i64 = 925;
/// The distance from the plot area's bottom to the chart frame's bottom with the category
/// labels and the legend below the plot area, less [`CHART_BOTTOM_PER_SIZE`] of the label
/// size.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_BOTTOM: Length = point_parts;
/// The part of the distance from the plot area's bottom to the chart frame's bottom that grows
/// with the label size.
///
/// - unit: thousandths of the label size
/// - status: measured
pub const CHART_BOTTOM_PER_SIZE: i64 = 3_064;
/// The most units of a value axis whose major unit the axis sets: an axis with more draws no
/// plot area, since its gridlines would cover it.
///
/// - unit: units of an axis
/// - status: limit
pub const CHART_AXIS_STEP_LIMIT: i64 = 1_000;
// The plot area of `ChartPlotArea::FontLines`. Each length that a font gives is one of the
// labels' lines (`usWinAscent` plus `usWinDescent` at the labels' size) or their ascent
// (`usWinAscent` at that size).
/// The distance from the chart frame's left edge to the start of the widest value label.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINES_LABEL_START: Length = point_parts;
/// The part of the value labels' line in the gap from the end of the widest value label to
/// the plot area.
///
/// - unit: thousandths of the labels' line
/// - status: measured
pub const CHART_LINES_LABEL_GAP_LINE: i64 = 500;
/// The parts into which a band of chart text divides the labels' ascent, of which it takes one:
/// in the gap from the end of the widest value label to the plot area, and in the room of the
/// category labels and of the legend below the plot area, each a line and a third of the
/// ascent.
///
/// - unit: parts of the labels' ascent
/// - status: measured
pub const CHART_LINES_BAND_ASCENT_PARTS: i64 = 3;
/// The parts into which the length from a value label's place to its baseline divides the em,
/// the win top and the win descents that it holds: `(em + top - 3 descent) / 4` of the
/// labels' font at their size, the mean of the win line centered on the label's place and the
/// em box with the baseline a descent above its bottom.
///
/// - unit: parts of a length
/// - status: measured
pub const CHART_LINES_VALUE_BASELINE_PARTS: i64 = 4;
/// The win descents that the length from a value label's place to its baseline takes away
///, beside the em and the win top, before [`CHART_LINES_VALUE_BASELINE_PARTS`] divides
/// it.
///
/// - unit: win descents
/// - status: measured
pub const CHART_LINES_VALUE_BASELINE_DESCENTS: i64 = 3;
/// The parts of the labels' win top, each [`CHART_LINES_BAND_ASCENT_PARTS`] of it, between the
/// plot area's bottom and the top of a category label's win line: the baseline lies the
/// win top and these parts below the plot area.
///
/// - unit: parts of the labels' win top
/// - status: measured
pub const CHART_LINES_CATEGORY_TOP_PARTS: i64 = 2;
/// The distance from the end of a title's lines to the plot area's top, less half a value
/// label's line, where that is more than [`CHART_TITLE_TOP`].
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINES_TITLE_LABEL_TOP: Length = point_parts;
/// The distance from the chart frame's top to the plot area's top without a title, and
/// from the plot area's bottom to the room of the legend at the bottom when the category labels
/// stand inside the plot area.
///
/// - unit: points
/// - status: measured
pub const CHART_LINES_UNTITLED_TOP: Length = points;
/// The distance from the chart frame's top to the plot area's top without a title, less half a
/// value label's line, where that is more than [`CHART_LINES_UNTITLED_TOP`]; and the
/// same at the bottom when the category labels stand inside the plot area.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINES_UNTITLED_LABEL_TOP: Length = point_parts;
/// The distance from the plot area's bottom to the chart frame's bottom with the category
/// labels and the legend below it, less a band of each: its line and a part of its ascent
/// ([`CHART_LINES_BAND_ASCENT_PARTS`]).
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINES_BOTTOM: Length = point_parts;
/// The distance from the chart frame's left edge to the plot area's left edge beyond the reach
/// of category labels turned 45 degrees: the most by which a label's advance over the square
/// root of two passes its category's middle, with the categories of a plot area that would
/// start at the frame's left edge.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_TURNED_LABEL_LEFT: Length = point_parts;
/// The share of the chart frame's height above which the room of turned category labels below
/// the plot area makes Word cut them short, which F-Office does not draw: a half.
///
/// - unit: a share, as numerator and denominator
/// - status: limit
pub const CHART_TURNED_LABEL_CUT_SHARE: = ;
/// The room that an axis title takes from its side of the plot area beyond its single line
/// (its win line and its external leading) in its face at its size: 9 pt, whatever the face,
/// the size, bold and the labels.
///
/// - unit: points
/// - status: measured
pub const CHART_AXIS_TITLE_GAP: Length = points;
/// The distance from the chart frame's left edge to the start of the line box of the value
/// axis' title, which reads upward: its baseline lies its external leading and its win ascent
/// further right.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_VALUE_TITLE_LEFT: Length = point_parts;
/// The distance from the chart frame's bottom, or from the top of the room of a legend at the
/// bottom, to the end of the line box of the category axis' title: its baseline lies its win
/// descent higher.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_CATEGORY_TITLE_BOTTOM: Length = point_parts;
/// The part in points of the room that a legend takes from the plot area, at the bottom, the
/// top, the left or the right: 12 pt.
///
/// - unit: points
/// - status: measured
pub const CHART_LINES_LEGEND_PAD: Length = points;
/// The part of the legend's line in the room of a legend at the bottom or the top, between the
/// plot area and the category labels or the title, beside [`CHART_LINES_LEGEND_PAD`]: 0.990
/// lines.
///
/// - unit: thousandths of the legend's line
/// - status: measured
pub const CHART_LINES_LEGEND_ROOM: i64 = 990;
/// The part of the legend's line in the room of a legend at the left or the right beyond the
/// width of its widest series name and [`CHART_LINES_LEGEND_PAD`]: its keys, the gap after
/// them and its margins: 0.900 lines.
///
/// - unit: thousandths of the legend's line
/// - status: measured
pub const CHART_LINES_SIDE_LEGEND: i64 = 900;
/// The gap between the box of an `outer` manual layout and the start of the widest value label
/// at its left, and between the box and the category labels' band at its bottom: 1.50 pt at
/// both edges.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINES_OUTER_GAP: Length = point_parts;
/// The part of the frame's top above the line of a chart's title: 7.50 pt. The title's first
/// baseline lies its face's single line, less its win descent, below that line's top.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_TITLE_LINE_TOP: Length = point_parts;
/// The share of the frame's width that holds a line of a chart's title: 0.8. A line may be
/// this share less [`CHART_TITLE_LINE_INSET`] wide; a title whose sum of advances is wider goes
/// on more lines, each with the most whole words that fit.
///
/// - unit: thousandths of the frame's width
/// - status: measured
pub const CHART_TITLE_LINE_SHARE: i64 = 800;
/// The length that a line of a chart's title gives up from [`CHART_TITLE_LINE_SHARE`] of the
/// frame's width: 6.00 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_TITLE_LINE_INSET: Length = point_parts;
/// The part of a scatter chart's frame width that its x axis' units leave: 22 pt. The x axis
/// takes at most as many units as the rest of the width holds at
/// [`CHART_SCATTER_ZERO_SPACING`].
///
/// - unit: points
/// - status: measured
pub const CHART_SCATTER_FRAME_ROOM: Length = points;
/// The width that a unit of a scatter chart's x axis needs: 7.5 advances of the zero of the
/// labels' face at their size.
///
/// - unit: tenths of the zero's advance
/// - status: measured
pub const CHART_SCATTER_ZERO_SPACING: i64 = 75;
/// How far the clip of a scatter chart's series lines reaches past the plot area's right edge
/// and bottom before it is rounded down to the layout device's dots: 0.75 pt.
///
/// - unit: points
/// - status: measured
pub const CHART_SCATTER_CLIP_ROOM: Length = point_parts;
/// The parts of the difference of an inner point's two neighbors that a smooth chart line's
/// tangent at the point takes: a sixth.
///
/// - unit: parts of the neighbors' difference
/// - status: measured
pub const CHART_SMOOTH_INNER_PARTS: i64 = 6;
/// The parts of the difference of a smooth chart line's first or last point and its neighbor
/// that the line's tangent there takes: a third.
///
/// - unit: parts of the end's difference
/// - status: measured
pub const CHART_SMOOTH_END_PARTS: i64 = 3;
/// The parts of a curve's chord of a smooth chart line that its longer tangent reaches at most:
/// a half.
///
/// - unit: parts of the chord
/// - status: measured
pub const CHART_SMOOTH_REACH_PARTS: i64 = 2;
/// The part of the frame's top above a legend's area with a title, beyond the title's lines:
/// 9.00 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LEGEND_AREA_TITLE: Length = point_parts;
/// The side of a legend's key: 0.450 of the legend's line.
///
/// - unit: thousandths of the legend's line
/// - status: measured
pub const CHART_LEGEND_KEY: i64 = 450;
/// How much less than half a key's side lies between the key's right edge and the start of its
/// name: 0.32 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LEGEND_NAME_INSET: Length = point_parts;
/// The width of a line key's area in a legend entry, where a square key's area is two of its
/// sides: 24 pt. The key stands in its middle, and the name starts
/// [`CHART_LEGEND_NAME_INSET`] before its end.
///
/// - unit: points
/// - status: measured
pub const CHART_LINE_KEY_AREA: Length = points;
/// The length of a line key's stroke between its ends, without its caps: 19.20 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINE_KEY_STROKE: Length = point_parts;
/// The width of the area of a dashed line's key in a legend entry: 31.5 pt, in place of
/// [`CHART_LINE_KEY_AREA`]. The key's stroke takes the same share of it.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LINE_KEY_DASHED_AREA: Length = point_parts;
/// The part of the legend's text size, cut to a whole point, that the largest marker at a line
/// key's middle is, cut to a whole point: 0.6. A smaller marker keeps its size.
///
/// - unit: thousandths
/// - status: measured
pub const CHART_LINE_KEY_MARKER_SHARE: i64 = 600;
/// The distance from the plot area's right edge to a legend at the right, less half a key's
/// side: 13.25 pt to the keys' left edges.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LEGEND_SIDE_START: Length = point_parts;
/// The part in points of the step from one row of a legend at a side to the next, beside
/// [`CHART_LINES_LEGEND_ROOM`] of the line: 6.00 pt.
///
/// - unit: points
/// - status: measured
pub const CHART_LEGEND_ROW_PAD: Length = points;
/// What a legend's entry in the box of its manual layout counts beyond its drawn width (the
/// key, the gap and the name): 2.847 pt. The entries take one row when their counted widths fit
/// in the box, and one column when two counted widths of the widest entry do not.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_LEGEND_BOX_ENTRY: Length = point_parts;
/// How far a key of a legend in the box of its manual layout stands into its entry's counted
/// width ([`CHART_LEGEND_BOX_ENTRY`]) in one row, and in one column at the top or the bottom,
/// beyond a quarter of the key's side: 2.763 pt.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_LEGEND_BOX_ROW_KEY: Length = point_parts;
/// Where a key of a legend in the box of its manual layout stands, in one column at the left or
/// the right, from the left edge of the widest drawn entry less half a key's side, centered in
/// the box: 0.170 pt before it.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_LEGEND_BOX_COLUMN_KEY: Length = point_parts;
/// How far the widest line of a chart title at the corner of its manual layout starts right of
/// the title's box, and ends left of the frame's right edge when the box moves left to fit:
/// 2.979 pt.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_TITLE_CORNER_LEFT: Length = point_parts;
/// How far the line of a chart title at the corner of its manual layout lies below the corner:
/// 1.505 pt. The title's first baseline lies its face's single line, less its win descent, below
/// that line's top.
///
/// - unit: thousandths of a point
/// - status: measured
pub const CHART_TITLE_CORNER_TOP: Length = point_parts;
/// How far the middle of a legend row's keys lies inside the frame's bottom, or inside the top of
/// the legend's area, beyond half the line: 8.90 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LEGEND_ROW_INSET: Length = point_parts;
/// How many key sides an entry of a legend row counts for, beside its name.
///
/// - unit: key sides
/// - status: measured
pub const CHART_LEGEND_ENTRY_SIDES: i64 = 2;
/// The part of its name's advances and its key sides that an entry of a legend row counts for:
/// 1.2.
///
/// - unit: thousandths
/// - status: measured
pub const CHART_LEGEND_ENTRY_FACTOR: i64 = 1_200;
/// The part of the line that a legend row counts for beside its entries: a quarter.
///
/// - unit: thousandths of the legend's line
/// - status: measured
pub const CHART_LEGEND_ROW_LINES: i64 = 250;
/// How far before the first key, beyond half a key's side, the extent of a legend row that is
/// centered on the frame starts: 1.15 pt.
///
/// - unit: hundredths of a point
/// - status: measured
pub const CHART_LEGEND_ROW_LEAD: Length = point_parts;
/// The cap of a legend row, 0.9 of its frame's width. The entries of a row count at most the
/// cap, so that the spaces of a nearly full row shrink equally; and the row goes on more than
/// one line when its names' advances and two key sides of each entry pass the cap.
///
/// - unit: thousandths of the frame's width
/// - status: measured
pub const CHART_LEGEND_ROW_CAP: i64 = 900;
/// How many times the width of the theme's first line style a line chart's series line is when
/// the chart's style gives it: 3, in eight themes.
///
/// - unit: count
/// - status: measured
pub const CHART_STYLE_LINE_STYLES: i64 = 3;
/// The dot of a preset dash of a line (`a:prstDash` `dot`, `sysDot` and the dots of the
/// dash-dot presets): one width of the line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_DOT_WIDTHS: i64 = 1;
/// The dash of the presets `dash`, `dashDot`: four widths of the line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_DASH_WIDTHS: i64 = 4;
/// The dash of the long presets `lgDash`, `lgDashDot` and `lgDashDotDot`: eight widths of the
/// line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_LONG_DASH_WIDTHS: i64 = 8;
/// The gap of the presets that are not the system's (`dot`, `dash`, `lgDash` and their dot
/// forms): three widths of the line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_GAP_WIDTHS: i64 = 3;
/// The dash of the system presets `sysDash`, `sysDashDot` and `sysDashDotDot`: three widths of
/// the line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_SYSTEM_DASH_WIDTHS: i64 = 3;
/// The gap of the system presets (`sysDash`, `sysDot`, `sysDashDot` and `sysDashDotDot`): one
/// width of the line.
///
/// - unit: line widths
/// - status: specified
pub const PRESET_SYSTEM_GAP_WIDTHS: i64 = 1;
/// The most dashes with which a chart's series line of a preset dash is drawn: a chart whose
/// line would take more is left out, as a chart whose plot area has no place is. Without the
/// limit, a thin line through many points gives any count of dashes. A bound of the work, not a
/// measure of Word.
///
/// - unit: dashes
/// - status: limit
pub const MAX_CHART_LINE_DASHES: usize = 1 << 16;
/// The most points that the cache of a chart's series or categories (`c:numCache`, `c:strCache`
/// and their literal forms) may count (`c:ptCount`) when it leaves blank points out: a series
/// whose cache counts more gives no values. Without the limit, a count far above the points
/// that the cache writes would ask for any size of memory. A bound of the work, not a measure of
/// Word.
///
/// - unit: points
/// - status: limit
pub const MAX_CHART_POINTS: usize = 1 << 16;
/// The part of a marker's size that does not grow with the theme's first line style, when the
/// chart's style gives the size: 3 pt, of `3 + 6 w` cut to a whole point.
///
/// - unit: points
/// - status: measured
pub const CHART_STYLE_MARKER_BASE: i64 = 3;
/// How many times the width of the theme's first line style the chart's style adds to a
/// marker's size: 6, of `3 + 6 w` cut to a whole point.
///
/// - unit: count
/// - status: measured
pub const CHART_STYLE_MARKER_LINES: i64 = 6;
/// The lower bound of the linear-light shade/tint ramp that chart style 2 uses across its
/// lightness cycles (`N = count / 6 + 1`): cycle `k` takes whole percent
/// `30 + 140 * (k + 1) / (N + 1)` (shaded below 100%, plain at 100%, tinted to `200 - step`%
/// above 100%).
///
/// - unit: percent
/// - status: measured
pub const CHART_STYLE_SHADE_FLOOR: i64 = 30;
/// How much of each channel, in linear light, the style look of chart style 2 keeps of the
/// text color (`tx1`) for a gridline, an axis line or the chart area's outline without
/// properties, the rest mixed with white: 75 %, before the modifiers of the theme's first line
/// style.
///
/// - unit: thousandths of a percent
/// - status: measured
pub const CHART_STYLE_LINE_TINT: i64 = 75_000;
// Justified lines.
/// The most that each space of a justified line may shrink: a quarter of its width.
///
/// - unit: thousandths of a space
/// - status: measured
pub const JUSTIFIED_SPACE_SHRINK: i64 = 250;
/// How many times the stretch per gap that a justified line with `compressPunctuation` would
/// need without its next word each blank half of its punctuation may shrink so that the word
/// fits: R, 32.
///
/// - unit: ratio
/// - status: measured
pub const PUNCTUATION_SHRINK_RATIO: i64 = 32;
/// The most that each space of a justified line may shrink to take one more word, as a share of
/// the stretch per gap that the line would need without that word: a half. With k spaces before
/// the word, g its width, s the space before it and E the line's natural width over the column,
/// the line takes the word when E(3k - 2) <= k(g + s). When the word is a term of an equation
/// after the hanging space of an operator, that space is s but not one of the k spaces, and the
/// line takes the term when E <= (g + s)/3. Word allows slightly more at more spaces, for a
/// reason that is not known.
///
/// - unit: thousandths of the stretch per gap
/// - status: unknown
pub const NEXT_WORD_STRETCH_SHARE: i64 = 500;
/// How far past its width a justified line with the justification of `WordPerfect` may run to
/// take a word, as a share of its natural width up to the word's end: 3/80, 3.75 %. The line
/// takes the word while its width is at least 77/80 of that natural width, to the nearest
/// twip.
///
/// - unit: share of the natural width
/// - status: measured
pub const WORDPERFECT_LINE_SHRINK: = ;
// The device steps of `GridAdvances::RightEdgeSteps`.
/// How close to the limit a glyph's edge must lie for the edge check
/// `GlyphEdgeCheck::RoundedWithTie` to count it as on the limit. The target of that form
/// compares the edge with the limit exactly and moves a glyph whose edge lies exactly the limit
/// short of its exact edge. The form keeps each advance in half-EMUs, so the sum of a line's
/// rounded advances leaves such an edge a few half-EMUs off the limit.
///
/// - unit: half-EMUs
/// - status: limit
pub const GLYPH_EDGE_TIE: Length = from_units;
/// The units per point in which the edge check and the restarts of right-edge steps count a
/// glyph's character spacing under `CharacterSpacingCount::NearestUnit`. One twip is then a
/// whole number and 0.8 of these units, so the spacing of k twips counts round(0.8 k) - 0.8 k
/// units more than the document gives.
///
/// - unit: units per point
/// - status: fitted
pub const CHARACTER_SPACING_UNITS_PER_POINT: i64 = 3_576;
/// The parts of a point in which the edge check of right-edge steps counts the shares of a
/// justified line's free space under `EdgeShares::ExactFree`: the line's free space that the
/// exact advances of its glyphs leave, over its stretched spaces, rounded to whole parts as
/// [`SUMMED_SHARE_MODE`] says.
///
/// - unit: parts of a point
/// - status: measured
pub const SHARE_PARTS_PER_POINT: i64 = 4_096;
/// The parts of a point down to which the edge check `GlyphEdgeCheck::Exact` cuts each glyph's
/// exact advance, the font's advance at the size, before it counts the advance in the exact
/// places. The advance that the glyph keeps, in whole half-EMUs, does not change.
///
/// - unit: parts of a point
/// - status: measured
pub const ADVANCE_PARTS_PER_POINT: i64 = 4_096;
/// How many device dots right of their steps the glyphs of a line of a right-to-left
/// paragraph (`w:bidi`) lie: every glyph of the line, its Hebrew and its Latin text alike, at
/// the start of the line and inside it.
///
/// - unit: dots
/// - status: measured
pub const RIGHT_TO_LEFT_LINE_DOTS: i64 = 1;
// The PDF writer of `GridAdvances::RightEdgeSteps`.
/// The significant digits with which the writer writes a text object's start in points, a
/// half rounded up: 0.01 pt from 100 pt and 0.1 pt from 1,000 pt. Below 100 pt a start on the
/// step of the target's start offset (`writer.start_offset_step_half_emus`) keeps its three
/// decimals.
///
/// - unit: digits
/// - status: measured
pub const WRITER_START_DIGITS: u32 = 5;
/// The share of a text object's steps that must exceed their widths by the same length for
/// the writer to give the object that length as character spacing: 20 of each 23.
///
/// - unit: share of the steps
/// - status: measured
pub const WRITER_SPACING_SHARE: = ;
/// The part of its own width up to which a stretched space of a filled justified line takes a
/// share of the free space in proportion to that width, before the spaces take the rest in
/// equal parts, where the quirk `StretchedSpaceShare::WidthFirst` holds: a half, of a share
/// that widens the space or of one that narrows it.
///
/// - unit: share of the space's width
/// - status: measured
pub const STRETCH_BY_WIDTH: = ;
/// The band within which a step's excess over its width lies from the first step's excess
/// when the writer of `WriterSpacing::FirstStep` counts it as sharing that excess: less than a
/// hundredth of a point, whatever the size, and not a share of the em.
///
/// - unit: hundredths of a point
/// - status: measured
pub const WRITER_SPACING_BAND: i64 = 1;
/// The steps of a text object, from its first, that the writer of `WriterSpacing::FirstStep`
/// looks at: when each of them lies less than `WRITER_SPACING_BAND` from the first step's
/// excess, the object takes that excess as its character spacing, whatever the later steps.
///
/// - unit: steps
/// - status: measured
pub const WRITER_SPACING_LOOKAHEAD: i64 = 7;
/// The steps per point in which the writer of `WriterSpacing::FirstStep` writes a text object's
/// character spacing, a half rounded up: 1,000, three decimals.
///
/// - unit: steps per point
/// - status: measured
pub const WRITER_SPACING_STEPS: i64 = 1_000;
/// The significant digits with which the writer of `WrittenSpacing::PrintedDigits` prints a text
/// object's character spacing in points, a dropped half away from zero: -1.51 pt for an excess
/// of -1.512 pt, 0.0178 pt for one of 0.01784 pt.
///
/// - unit: digits
/// - status: fitted
pub const WRITER_SPACING_DIGITS: u32 = 3;
/// The decimals that the writer of `WrittenSpacing::PrintedDigits` keeps at least when it prints
/// a text object's character spacing in points, beside `WRITER_SPACING_DIGITS`: 52.94 pt for an
/// excess of 52.944 pt.
///
/// - unit: decimals
/// - status: fitted
pub const WRITER_SPACING_LEAST_DECIMALS: u32 = 2;
/// What the writer adds to the ideal adjustment of a step longer than its width and spacing
/// before it rounds the adjustment half away from zero: a thousandth of an em.
///
/// - unit: thousandths of an em
/// - status: measured
pub const WRITER_LONGER_EXTRA: i64 = 1;
/// The adjustment below which the writer leaves a step as its width and spacing draw it, and
/// carries what the step left out to the next one: 3 thousandths of an em. Word writes no
/// adjustment of 1 or 2.
///
/// - unit: thousandths of an em
/// - status: measured
pub const WRITER_DEAD_ZONE: i64 = 3;
/// The bits of the mantissa with which the writer counts what its steps left out since its last
/// written adjustment: 24, binary single precision. The rounding of that count decides a step
/// whose adjustment is exactly the dead zone.
///
/// - unit: bits
/// - status: measured
pub const WRITER_COUNT_BITS: u32 = 24;
// The PDF writer of `PageOffsetSizes::PaperForms`. Each measured size's steps hold in the
// order in which Word for Windows places a dot inside a step: it rounds the product in
// sixteenths of a step before the division and so acts as a bias of 1/32 of a step. With
// `PageOffsetProduct::Binary32` the product of the dot and the page entry, 16 (5 + c / D),
// is held in binary32 first; the steps across of the sizes 4,961 and 7,016 dots wide give the
// page entries that hold on every dot across a page with that product. Every other measured
// side takes the entry whose steps differ least from its exact fit at the dots of its side,
// as the entries of those two sides and of Letter across do.
/// The steps of the page form of the writer's offset on a page of 4,961 by 7,016 written dots,
/// across and down: the factor `c` times 100,000.
///
/// - unit: written dots of 1/600 inch, and hundred-thousandths of a writer step
/// - status: fitted
pub const PAGE_4961_7016_STEPS: = ;
/// The steps of a page of 4,960 by 7,015 written dots, across and down, as for
/// [`PAGE_4961_7016_STEPS`].
///
/// - unit: written dots of 1/600 inch, and hundred-thousandths of a writer step
/// - status: fitted
pub const PAGE_4960_7015_STEPS: = ;
/// The steps of a page of 7,016 by 4,961 written dots, A4 across, in a section that sets the
/// landscape orientation, as for [`PAGE_4961_7016_STEPS`].
///
/// - unit: written dots of 1/600 inch, and hundred-thousandths of a writer step
/// - status: fitted
pub const PAGE_7016_4961_STEPS: = ;
/// The steps of the page form of the writer's offset across a Letter page, 5,100 by 6,600
/// written dots: the factor `c` is 4.72515. Down, a Letter page keeps the profile's factor. A
/// Letter page across, in a landscape section, takes these steps down.
///
/// - unit: written dots of 1/600 inch, and hundred-thousandths of a writer step
/// - status: specified
pub const PAGE_5100_6600_ACROSS_STEPS: = ;
/// The writer's paper forms: first the papers that the driver of the writer's printer offers, in
/// the driver's order, each with the sides of its form in the printer's list of forms, in whole mm
/// or thousandths of an inch; then the forms that Microsoft's public documentation of the
/// `DEVMODE` structure, field `dmPaperSize`
/// (<https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-devmodea>), names
/// rotated (`DMPAPER_*_ROTATED`), which are landscape forms, in the order of its table. The order
/// decides a tie of the class rule ([`PAPER_FORM_CLASS_RULE`]). A documented form that the driver
/// does not offer, such as Quarto or A4 Plus, takes no page. A page's entries follow from its
/// form's sides in whole mm and in dots alone.
///
/// - unit: whole mm or thousandths of an inch
/// - status: measured
pub const PAPER_FORMS: & = &;
/// Letter, 8.5 by 11 inches, the first of [`PAPER_FORMS`] and the class rule's last form.
const LETTER: PaperForm = inches;
/// A3, 297 by 420 mm.
const A3: PaperForm = millimetres;
/// A4, 210 by 297 mm.
const A4: PaperForm = millimetres;
/// The class rule that gives a page of a size with no given steps its paper form
/// (`f_office_paint::paper_forms::ClassRule`): the nearest of [`PAPER_FORMS`] whose sides both
/// lie within 100 written dots of the page's (the reach), but no rotated form for a page in a
/// portrait section; else the first of A4 and A3 whose sides, 100 dots longer, hold the page;
/// else Letter. A page wider than high in a landscape section takes the form that the rule gives
/// its page turned upright in a portrait section, turned back. The writer reads the form that
/// the device assigns, which this rule stands in for, and some page sizes take another form than
/// the rule gives.
///
/// - unit: written dots of 1/600 inch for the reach
/// - status: fitted
pub const PAPER_FORM_CLASS_RULE: ClassRule = ClassRule ;
/// The most glyphs, spaces among them, that the PDF writer puts in one text object: it starts
/// a new object at the next glyph, at the glyph's own place.
///
/// - unit: glyphs
/// - status: measured
pub const TEXT_OBJECT_GLYPHS: usize = 125;
/// The binary fraction bits of the point in which a length from a page's or a column's edge
/// goes to the device of 600 dots per inch: the length goes to the nearest 1/65536 pt, a half
/// up, and that number to the nearest dot, a half up. So a length in whole twips that ends
/// exactly half a dot past a whole dot goes the way that the first step rounded it. With 8 or 12
/// bits every whole number of twips up to 31,680 gets the same dot. The rounded top of a line of
/// single spacing goes to its dot the same way (`TopHalves::FixedPoint`).
///
/// - unit: bits
/// - status: measured
pub const LINE_START_FRACTION_BITS: u32 = 16;
/// The characters of a tab leader that the PDF writer puts in one text object: it starts a
/// new object at every this many characters of the leader, counted from its first character,
/// at that character's own place.
///
/// - unit: characters
/// - status: measured
pub const LEADER_OBJECT_GLYPHS: usize = 32;
/// Fallback underline for a face without a `post` table, which holds a face's underline position
/// and thickness: a tenth of an em below the baseline, and a twentieth of an em thick.
///
/// - unit: parts of an em, the position's and the thickness's
/// - status: limit
pub const UNDERLINE_WITHOUT_POST: = ;
/// The least room between the two lines of a double underline, which moves the lower line
/// down where the single underline's bottom leaves less: 8 dots of the target's device.
///
/// - unit: points
/// - status: measured
pub const UNDERLINE_DOUBLE_GAP: Length = point_parts;
/// The row of a dotted underline, and of the heavy one in the band of a thick underline: a dot
/// and a gap in turn from the run's start, whatever the face and the size.
///
/// - unit: points, on and off in turn
/// - status: measured
pub const UNDERLINE_DOTTED: = ;
/// The row of a dashed underline (`dash`, and `dashedHeavy` in the thick band).
///
/// - unit: points, on and off in turn
/// - status: measured
pub const UNDERLINE_DASH: = ;
/// The row of an underline of long dashes (`dashLong`, and `dashLongHeavy` in the thick band).
///
/// - unit: points, on and off in turn
/// - status: measured
pub const UNDERLINE_DASH_LONG: = ;
/// The row of an underline of dashes and dots (`dotDash`, and `dashDotHeavy` in the thick
/// band): a dash, a gap, a dot and a gap.
///
/// - unit: points, on and off in turn
/// - status: measured
pub const UNDERLINE_DOT_DASH: = ;
/// The row of an underline of a dash and two dots (`dotDotDash`, and `dashDotDotHeavy` in the
/// thick band): a dash, then a gap and a dot twice, and a gap.
///
/// - unit: points, on and off in turn
/// - status: measured
pub const UNDERLINE_DOT_DOT_DASH: = ;
/// Fallback strikeout for a face without an `OS/2` table, which holds a face's strikeout position
/// and thickness: a quarter of an em above the baseline, and a twentieth of an em thick
/// (see [`UNDERLINE_WITHOUT_POST`]).
///
/// - unit: parts of an em, of the position and of the thickness
/// - status: limit
pub const STRIKEOUT_WITHOUT_OS2: = ;
/// The longest font name whose font table entry decides the face of a missing complex script
/// font, where the target decides by the entry: a face name of a Windows `LOGFONT` holds 32
/// UTF-16 code units with the terminating null. The entry of a longer name counts as absent.
///
/// - unit: UTF-16 code units of the font name
/// - status: specified
pub const LONGEST_READ_FONT_NAME: usize = 31;
/// The `w:charset` value of the Arabic character set of a font table entry (ECMA-376 Part 1,
/// 17.8.3.2, as the character set values of a Windows `LOGFONT`), by which the entry names the
/// Arabic script.
///
/// - unit: value of `w:charset`
/// - status: specified
pub const ARABIC_CHARSET: i64 = 0xB2;
/// The `w:charset` value of the Hebrew character set of a font table entry, by which the entry
/// names the Hebrew script.
///
/// - unit: value of `w:charset`
/// - status: specified
pub const HEBREW_CHARSET: i64 = 0xB1;
/// The bit of the code page 1255, Hebrew, in the `w:csb0` field of a font table entry's font
/// signature, as in `ulCodePageRange1` of the OpenType `OS/2` table.
///
/// - unit: bit number
/// - status: specified
pub const HEBREW_CODE_PAGE_BIT: u32 = 5;
/// The bit of the code page 1256, Arabic, in the `w:csb0` field of a font table entry's font
/// signature.
///
/// - unit: bit number
/// - status: specified
pub const ARABIC_CODE_PAGE_BIT: u32 = 6;
/// The PANOSE family kind of Latin text faces, the first digit of a face's PANOSE number in the
/// OpenType `OS/2` table, by which the target's table of substitute faces counts a face as sans.
///
/// - unit: PANOSE digit
/// - status: specified
pub const PANOSE_LATIN_TEXT: u8 = 2;
/// The first PANOSE serif style of a face without serifs (normal sans serif), the second digit of
/// a Latin text face's PANOSE number.
///
/// - unit: PANOSE digit
/// - status: specified
pub const PANOSE_FIRST_SANS_SERIF: u8 = 11;
/// The last PANOSE serif style of a face without serifs (rounded), the second digit of a Latin
/// text face's PANOSE number.
///
/// - unit: PANOSE digit
/// - status: specified
pub const PANOSE_LAST_SANS_SERIF: u8 = 15;
/// The PANOSE proportion of a monospaced face, the fourth digit of a Latin text face's PANOSE
/// number.
///
/// - unit: PANOSE digit
/// - status: specified
pub const PANOSE_MONOSPACED: u8 = 9;
/// The PANOSE family kind of pictorial faces, such as Symbol, the first digit of a face's PANOSE
/// number, whose characters the target's groups of substitute faces leave alone.
///
/// - unit: PANOSE digit
/// - status: specified
pub const PANOSE_LATIN_PICTORIAL: u8 = 5;
// Text.
/// The size of small capitals: 4/5 of the run's size, to the nearest whole half-point.
///
/// - unit: share of the font size
/// - status: measured
pub const SMALL_CAPS_SCALE: = ;
/// How much a synthetic bold face widens each glyph: a fiftieth of the font size.
///
/// - unit: parts of the font size
/// - status: fitted
pub const SYNTHETIC_BOLD_PARTS: i64 = 50;
/// The room that the line of a font made for East Asian text gets above and below its text:
/// 15% of its own line each.
///
/// - unit: percent of the font's line
/// - status: fitted
pub const EAST_ASIAN_LINE_EXTRA: i64 = 15;
/// The space between East Asian text and Latin text or digits: a quarter of the font size.
///
/// - unit: parts of the font size
/// - status: fitted
pub const EAST_ASIAN_SPACING_PARTS: i64 = 4;
/// The first and the last character of the symbol area, where a symbol font has its glyphs:
/// U+F000 and U+F0FF.
///
/// - unit: characters
/// - status: specified
pub const SYMBOL_AREA: = ;
/// The character of the Symbol font's bullet, which Word's PDFs write as U+2022.
///
/// - unit: character
/// - status: fitted
pub const SYMBOL_BULLET: char = '\u{F0B7}';
// Run and paragraph properties.
/// The largest character scale (`w:w`): 600% (ECMA-376 Part 1, 17.3.2.43).
///
/// - unit: percent
/// - status: specified
pub const MAX_CHARACTER_SCALE: i64 = 600;
/// Automatic paragraph spacing (`w:beforeAutospacing` and `w:afterAutospacing`): 14 pt,
/// whatever the given value says.
///
/// - unit: twips
/// - status: measured
pub const AUTOMATIC_SPACING: i64 = 280;
/// Automatic paragraph spacing where the compatibility option
/// `w:doNotUseHTMLParagraphAutoSpacing` is set: 5 pt, the value that ECMA-376 gives above a
/// paragraph. The target that follows the option gives it below a paragraph too.
///
/// - unit: twips
/// - status: specified
pub const FIXED_AUTOMATIC_SPACING: i64 = 100;
/// A double border is three times as wide as its line, and draws its first and last third.
///
/// - unit: parts of the border width
/// - status: measured
pub const DOUBLE_BORDER_PARTS: i64 = 3;
/// A triple border is three lines as wide as its line, with gaps of the same size between
/// them: five parts.
///
/// - unit: parts of the border width
/// - status: measured
pub const TRIPLE_BORDER_PARTS: i64 = 5;
/// The thin lines and the gaps of the compound borders with a small gap, such as
/// `thinThickSmallGap`, at every width: 0.75 pt.
///
/// - unit: eighths of a point
/// - status: measured
pub const SMALL_GAP_EIGHTHS: i64 = 6;
/// The thin lines and the gaps of the compound borders with a medium gap, such as
/// `thinThickMediumGap`, are this part of the thick line: half of it.
///
/// - unit: parts of the line width
/// - status: measured
pub const MEDIUM_GAP_PARTS: i64 = 2;
/// The count of the line styles of `ST_Border`, from `nil` to `inset`, which come before its
/// art styles, from `apples` to `zigZagStitch` (ECMA-376 Part 1, 17.18.2).
///
/// - unit: styles
/// - status: specified
pub const LINE_STYLE_NAMES: usize = 27;
/// The parts of a box in which the caller's art pictures give their points: a point of
/// `ART_PICTURE_UNIT` lies on the box's right or bottom edge. A value of F-Office's own form of
/// art pictures.
///
/// - unit: parts of a box
/// - status: limit
pub const ART_PICTURE_UNIT: i32 = 1_000_000;
/// The parts of a point in which the caller's art pictures give the width of the stroke around
/// a rectangle (a `rect` line): a stroke of `ART_STROKE_UNIT` is one point wide. A value of
/// F-Office's own form of art pictures.
///
/// - unit: parts of a point
/// - status: limit
pub const ART_STROKE_UNIT: u32 = 1_000;
/// The most bytes that one call of `ArtPictures::add` reads: 32 MiB.
///
/// - unit: bytes
/// - status: limit
pub const ART_PICTURES_BYTE_LIMIT: usize = 32 << 20;
/// The most items in one part of an art picture: its shapes and the starts and ends of its
/// clips.
///
/// - unit: items
/// - status: limit
pub const ART_PICTURES_SHAPE_LIMIT: usize = 1 << 16;
/// The most clips of an art picture that can hold one shape, one inside another.
///
/// - unit: clips
/// - status: limit
pub const ART_PICTURES_CLIP_DEPTH_LIMIT: usize = 16;
/// The most commands in the outline of one shape of an art picture: its moves, lines, curves and
/// closes.
///
/// - unit: commands
/// - status: limit
pub const ART_PICTURES_COMMAND_LIMIT: usize = 1 << 16;
/// The largest size of an art border, in points, of which a picture can be given: the largest
/// `w:sz` of an art side that the schema's byte holds.
///
/// - unit: points
/// - status: limit
pub const ART_PICTURES_SIZE_LIMIT: u32 = 255;
/// How far a point of an art picture may lie from its part's box: four boxes.
///
/// - unit: parts of a box
/// - status: limit
pub const ART_PICTURES_REACH_LIMIT: i32 = 4 * ART_PICTURE_UNIT;
/// How many device dots longer than its corner square each picture of a page border's side of
/// an art style is at the least, on a target that draws them (`ArtPageBorders::Pictures`): a
/// side of `L` dots between corner squares of `C` dots holds `floor(L / (C + 1))` pictures.
///
/// - unit: device dots
/// - status: measured
pub const ART_PICTURE_EXTRA_DOTS: i64 = 1;
/// The thin lines of the compound borders with a large gap, such as `thinThickLargeGap`, at
/// every width, on a target that draws their lines (`LargeGapBorders::Parts`): 0.75 pt.
///
/// - unit: eighths of a point
/// - status: measured
pub const LARGE_GAP_THIN_EIGHTHS: i64 = 6;
/// The thick line of the compound borders with a large gap, such as `thinThickLargeGap`, at
/// every width, on a target that draws their lines (`LargeGapBorders::Parts`): 1.5 pt. Their
/// gaps are as wide as the side's line.
///
/// - unit: eighths of a point
/// - status: measured
pub const LARGE_GAP_THICK_EIGHTHS: i64 = 12;
/// The dashes and the gaps of a `dotted` border, in widths of its line, from its first dash:
/// a dot as long as the line is wide, then a gap as long.
///
/// - unit: line widths
/// - status: measured
pub const DOTTED_BORDER_DASHES: = ;
/// The dashes and the gaps of a `dashed` border, in widths of its line: a dash three widths
/// long, then a gap of one width.
///
/// - unit: line widths
/// - status: measured
pub const DASHED_BORDER_DASHES: = ;
/// The dashes and the gaps of a `dotDash` border, in widths of its line: a dash, a gap, a dot
/// and a gap.
///
/// - unit: line widths
/// - status: measured
pub const DOT_DASH_BORDER_DASHES: = ;
/// The dashes and the gaps of a `dotDotDash` border, in widths of its line: a dash and a gap,
/// then two dots, each with a gap.
///
/// - unit: line widths
/// - status: measured
pub const DOT_DOT_DASH_BORDER_DASHES: = ;
/// The outer and the inner band of a side of a 3-D border style (`threeDEmboss`,
/// `threeDEngrave`), which lie on both sides of its line: 0.75 pt each for a line narrower than
/// [`THREE_D_WIDE_LINE_EIGHTHS`], and 1.5 pt each from it.
///
/// - unit: eighths of a point
/// - status: measured
pub const THREE_D_BAND_EIGHTHS: = ;
/// The width of the line of a 3-D border style from which its outer and inner bands take the
/// wider width of [`THREE_D_BAND_EIGHTHS`]: 3 pt.
///
/// - unit: eighths of a point
/// - status: measured
pub const THREE_D_WIDE_LINE_EIGHTHS: i64 = 24;
/// The steps of the lightness of the bands of a 3-D border style, from black to white, on which
/// [`THREE_D_LIGHTER_BELOW`], [`THREE_D_LIGHTER_STEP`] and [`THREE_D_DARKER`] count.
///
/// - unit: steps of lightness
/// - status: measured
pub const THREE_D_LIGHTNESS_STEPS: i64 = 240;
/// The lightnesses of a line's color below which the light band of a 3-D border style is
/// [`THREE_D_LIGHTER_STEP`] lighter than the line, once for each: a quarter and a half of
/// [`THREE_D_LIGHTNESS_STEPS`].
///
/// - unit: steps of lightness
/// - status: measured
pub const THREE_D_LIGHTER_BELOW: = ;
/// How much lighter the light band of a 3-D border style is than its line, for each lightness
/// of [`THREE_D_LIGHTER_BELOW`] that the line's color lies below.
///
/// - unit: steps of lightness
/// - status: measured
pub const THREE_D_LIGHTER_STEP: i64 = 40;
/// How much darker the middle and the dark band of a 3-D border style are than its light band,
/// with the hue and the saturation of the line's color.
///
/// - unit: steps of lightness
/// - status: measured
pub const THREE_D_DARKER: = ;
/// The light, middle and dark bands of a 3-D border style in black or the automatic color.
///
/// - unit: red, green and blue
/// - status: measured
pub const THREE_D_BLACK_BANDS: = ;
/// The light, middle and dark bands of a 3-D border style in white.
///
/// - unit: red, green and blue
/// - status: measured
pub const THREE_D_WHITE_BANDS: = ;
/// The most items of a page's body with which a target that draws a table line as its dashes
/// draws them: a piece of a line whose dashes would take the page beyond this many items is
/// drawn whole, with the warning `limit-reached` (`Limit::TableDashes`). Without the limit, a
/// grid column as wide as a file can make it gives a dashed line of any count of dashes. A bound
/// of the work, not a measure of Word.
///
/// - unit: items
/// - status: limit
pub const MAX_DASHED_PAGE_ITEMS: usize = 1 << 20;
/// The base of hexadecimal values, such as the colors `FF0080` (ECMA-376 Part 1, 17.18.38).
///
/// - unit: radix
/// - status: specified
pub const HEX_RADIX: u32 = 16;
/// The colors of the highlight names (`ST_HighlightColor`, ECMA-376 Part 1, 17.18.40).
///
/// - unit: red, green and blue
/// - status: specified
pub const HIGHLIGHT_COLORS: = ;
/// The share in percent of the foreground color in each percent pattern of shading (`ST_Shd`,
/// ECMA-376 Part 1): the number in the pattern's name, which rounds down the patterns of an
/// eighth, such as `pct12` for 12.5%.
///
/// - unit: percent
/// - status: specified
pub const SHADING_PERCENTS: = ;
// The calendar of `DATE` and `TIME` fields.
/// The months of a year, and the number of the last month.
///
/// - unit: months
/// - status: specified
pub const MONTHS_PER_YEAR: u8 = 12;
/// The number of the last day that a month can have.
///
/// - unit: days
/// - status: specified
pub const MAX_DAY_OF_MONTH: u8 = 31;
/// The hours of a day.
///
/// - unit: hours
/// - status: specified
pub const HOURS_PER_DAY: u8 = 24;
/// The hours of a half day, from midnight or from noon, which the 12-hour clock counts.
///
/// - unit: hours
/// - status: specified
pub const HOURS_PER_HALF_DAY: u8 = 12;
/// The minutes of an hour.
///
/// - unit: minutes
/// - status: specified
pub const MINUTES_PER_HOUR: u8 = 60;
/// The seconds that a minute can have, with room for a leap second.
///
/// - unit: seconds
/// - status: specified
pub const MAX_SECONDS_PER_MINUTE: u8 = 61;
/// The days of a week.
///
/// - unit: days
/// - status: specified
pub const DAYS_PER_WEEK: i32 = 7;
/// The number of March, the first month after the leap day.
///
/// - unit: month
/// - status: specified
pub const MARCH: usize = 3;
/// The days of each month of a common year of the Gregorian calendar, from January; February
/// has one more in a leap year.
///
/// - unit: days
/// - status: specified
pub const MONTH_DAYS: = ;
/// The leap years of the Gregorian calendar: every fourth year, except every hundredth, except
/// every four hundredth.
///
/// - unit: years
/// - status: specified
pub const LEAP_YEAR_CYCLES: = ;
/// The shifts of Sakamoto's method for the day of the week of the first of each month.
///
/// - unit: days
/// - status: derived
pub const WEEKDAY_SHIFTS: = ;
/// The years of a century, which a two-digit year (`yy`) leaves out.
///
/// - unit: years
/// - status: specified
pub const YEARS_PER_CENTURY: i32 = 100;
/// The digits of a four-digit year (`yyyy`).
///
/// - unit: digits
/// - status: specified
pub const YEAR_DIGITS: usize = 4;
/// The letters of a short day or month name, such as `ddd` and `MMM`, and of its picture item
/// (ECMA-376 Part 1, 17.16.4.1).
///
/// - unit: letters
/// - status: specified
pub const SHORT_NAME_LETTERS: usize = 3;
/// The letters of the picture item of a full day or month name, such as `dddd` and `MMMM`.
///
/// - unit: letters
/// - status: specified
pub const FULL_NAME_LETTERS: usize = 4;
// Lists.
/// The levels of a list (`w:ilvl` from 0 to 8, ECMA-376 Part 1, 17.9.3).
///
/// - unit: levels
/// - status: specified
pub const LIST_LEVELS: usize = 9;
// Outline levels.
/// The outline level of body text (`w:outlineLvl`, ECMA-376 Part 1, 17.3.1.20), the largest
/// that the element may give: a paragraph at it is no heading. The levels of headings are 0 to
/// 8.
///
/// - unit: outline level
/// - status: specified
pub const BODY_TEXT_OUTLINE_LEVEL: u8 = 9;
/// The first and the last octet of a list level (`w:ilvl`, its value modulo 256) at which a
/// paragraph shows no number and takes no property of its list's levels, when the level reads
/// by its octet.
///
/// - unit: octet values
/// - status: measured
pub const UNNUMBERED_LEVEL_OCTETS: = ;
/// The octet of a list level (`w:ilvl`, its value modulo 256) above the last octet without a
/// number at which a paragraph stands at the first level, when the level reads by its octet.
/// Every other octet above the levels stands at the deepest level.
///
/// - unit: octet value
/// - status: measured
pub const FIRST_LEVEL_OCTET: u8 = 15;
/// The place values of decimal numbers that English number words name: ten, a hundred and a
/// thousand.
///
/// - unit: number
/// - status: specified
pub const DECIMAL_PLACES: = ;
/// The first number that `cardinalText` writes as digits, because it has no words below a
/// million.
///
/// - unit: number
/// - status: limit
pub const CARDINAL_TEXT_LIMIT: i64 = 1_000_000;
/// The letters of the alphabet that `lowerLetter` and `upperLetter` count with.
///
/// - unit: letters
/// - status: specified
pub const ALPHABET_LETTERS: i64 = 26;
/// The first number that `lowerLetter` and `upperLetter` write as digits, because a number from
/// the file could otherwise ask for a label of any length. Its labels have at most 3,847
/// letters.
///
/// - unit: number
/// - status: limit
pub const LETTER_LIMIT: i64 = 100_000;
/// The letters of the Arabic alphabet that `arabicAlpha` and `arabicAbjad` count with.
///
/// - unit: letters
/// - status: specified
pub const ARABIC_LETTERS: i64 = 28;
/// The numbers that Hebrew numerals (`hebrew1`) write as nine and a sign of ones, ט and ו and
/// ט and ז, rather than as ten and a sign of ones.
///
/// - unit: number
/// - status: measured
pub const HEBREW_NINE_AND: = ;
/// The times that a sign of `russianLower`, `russianUpper` and `chicago` repeats at most:
/// after the last sign repeated this many times, the labels start again from the first sign
/// once.
///
/// - unit: times
/// - status: measured
pub const SIGN_REPEATS: i64 = 30;
/// The length of the cycle of the Hebrew and Arabic formats (`hebrew1`, `arabicAlpha`,
/// `arabicAbjad`): a number above it is written as the number modulo it.
///
/// - unit: number
/// - status: measured
pub const RIGHT_TO_LEFT_CYCLE: i64 = 392;
/// The first number that `chineseCounting` and `taiwaneseCounting` write digit by digit; below
/// it they count with signs of units.
///
/// - unit: number
/// - status: measured
pub const SHORT_COUNTING_LIMIT: i64 = 100;
/// The first number for which `japaneseDigitalTenThousand` writes nothing.
///
/// - unit: number
/// - status: measured
pub const TEN_THOUSAND_DIGITS_LIMIT: i64 = 10_000;
/// The largest number that `hindiNumbers` and `thaiNumbers` write as it is; a larger number is
/// written modulo it.
///
/// - unit: number
/// - status: measured
pub const DIGIT_SIGN_WRAP: i64 = 32_767;
/// The first number that the counting formats with signs of units write as decimal digits,
/// because they have no unit above ten thousand.
///
/// - unit: number
/// - status: limit
pub const COUNTING_LIMIT: i64 = 100_000_000;
/// The roman numerals with their values, largest first.
///
/// - unit: number
/// - status: specified
pub const ROMAN_NUMERALS: = ;
/// The first number that roman numerals cannot write, which F-Office writes in digits.
///
/// - unit: number
/// - status: specified
pub const ROMAN_LIMIT: i64 = 4_000;
// The markup pane of comments.
/// The steps of the page scale of a print with markup: a scale is a whole number of 1/300.
///
/// - unit: steps
/// - status: fitted
pub const MARKUP_SCALE_STEPS: i64 = 300;
/// What the printed sheet leaves of the paper's width.
///
/// - unit: device dots
/// - status: fitted
pub const MARKUP_PAPER_MARGIN: i64 = 32;
/// How far the markup area reaches right of the text column: 266.4 pt.
///
/// - unit: device dots
/// - status: fitted
pub const MARKUP_REACH: i64 = 1_110;
/// Where the gray markup area starts right of the text column.
///
/// - unit: device dots
/// - status: fitted
pub const MARKUP_GRAY_START: i64 = 38;
/// Where a balloon starts right of the text column.
///
/// - unit: device dots
/// - status: fitted
pub const BALLOON_START: i64 = 131;
/// The width of a balloon: 230.4 pt.
///
/// - unit: device dots
/// - status: fitted
pub const BALLOON_WIDTH: i64 = 960;
/// The room between a balloon's side and its text.
///
/// - unit: device dots
/// - status: fitted
pub const BALLOON_PADDING: i64 = 19;
/// The room between a balloon's top and the top of its first line.
///
/// - unit: device dots
/// - status: fitted
pub const BALLOON_TOP: i64 = 9;
/// The room between the bottom of a balloon's last line and the top of the next balloon.
///
/// - unit: device dots
/// - status: fitted
pub const BALLOON_BOTTOM: i64 = 14;
/// The extra offset of the page from the top of the paper.
///
/// - unit: tenths of a device dot
/// - status: fitted
pub const MARKUP_TOP_OFFSET: i64 = 27;
/// The point about which the page scale shrinks its x offset.
///
/// - unit: device dots
/// - status: fitted
pub const MARKUP_X_PIVOT: i64 = 16;
/// The size of balloon text without a "Balloon Text" style.
///
/// - unit: half-points
/// - status: fitted
pub const BALLOON_SIZE: i64 = 18;
/// The color of the markup area.
///
/// - unit: red, green and blue
/// - status: fitted
pub const MARKUP_GRAY: = ;
/// The fill of a balloon.
///
/// - unit: red, green and blue
/// - status: fitted
pub const BALLOON_FILL: = ;
/// The outline of a balloon.
///
/// - unit: red, green and blue
/// - status: fitted
pub const BALLOON_LINE: = ;
// Sections.
/// The page size when a section gives none: US Letter, as Word uses it.
///
/// - unit: twips
/// - status: measured
pub const DEFAULT_PAGE_SIZE: = ;
/// The page size of a document whose body has no section properties at all, on a target whose
/// default template has an A4 page: 210 by 297 mm, to whole twips.
///
/// - unit: twips
/// - status: measured
pub const A4_PAGE_SIZE: = ;
/// Each page margin when a section gives none: one inch.
///
/// - unit: twips
/// - status: measured
pub const DEFAULT_MARGIN: Length = twips;
/// The distance of the header from the top edge, and of the footer from the bottom edge, when a
/// section gives none: half an inch.
///
/// - unit: twips
/// - status: measured
pub const DEFAULT_HEADER_DISTANCE: Length = twips;
/// The indent step of Word's built-in list: each level hangs its label by one step, and its text
/// lies one step further right than the level before's.
///
/// - unit: twips
/// - status: measured
pub const BUILT_IN_LIST_INDENT: Length = twips;
/// The space between text columns when `w:cols` gives none: half an inch (ECMA-376 Part 1,
/// 17.6.4).
///
/// - unit: twips
/// - status: specified
pub const COLUMN_SPACE: Length = twips;
/// The width of the line that a target draws between two text columns of a section with
/// `w:sep` (`ColumnSeparator::SpaceMiddle`): 6 dots at 600 dots per inch, its left edge half
/// this width left of the space's middle.
///
/// - unit: pt
/// - status: measured
pub const COLUMN_SEPARATOR_WIDTH: Length = point_parts;
/// The most text columns whose own widths a section keeps. A section with more columns of
/// their own widths gets columns of equal width.
///
/// - unit: columns
/// - status: limit
pub const MAX_COLUMNS: usize = 8;
/// The most trials of balanced columns: the layouts of a section's blocks below a limit that
/// grows from the mean height of its columns until they fit. Each trial raises the limit by at
/// least one point, so this many trials balance the columns of every page up to 2,048 points
/// high, more than 28 inches. After the last trial the columns stay as they fill, with the
/// warning `limit-reached` (`Limit::BalanceTrials`). Without the limit, a page as high as a
/// file can make it asks for a trial for each of its points. A bound of the work, not a
/// measure of Word.
///
/// - unit: trials
/// - status: limit
pub const MAX_BALANCE_TRIALS: usize = 2_048;
/// The most text columns that Word gives a section. ECMA-376 allows any number in `w:num` of
/// `w:cols`, and [MS-OI29500] says that Word takes a number from 1 to 45 (Part 1, 17.6.4, a).
///
/// - unit: columns
/// - status: specified
pub const MAX_COLUMN_COUNT: usize = 45;
/// The distance between line numbers and the text when `w:lnNumType` gives none: a quarter
/// inch.
///
/// - unit: twips
/// - status: fitted
pub const LINE_NUMBER_DISTANCE: Length = twips;
/// The heading levels whose number can start a page number (`w:chapStyle`), from "heading 1"
/// to "heading 9".
///
/// - unit: levels
/// - status: specified
pub const HEADING_LEVELS: u8 = 9;
// Tracked changes.
/// The colors that Word's PDFs give the tracked changes of an author. How Word picks an
/// author's color in its session is not known, so F-Office picks one from the author's name.
///
/// - unit: red, green and blue
/// - status: unknown
pub const AUTHOR_COLORS: = ;
/// The offset basis and the prime of the 32-bit FNV-1a hash, which picks an author's color
/// from the author's name.
///
/// - unit: hash constants
/// - status: specified
pub const FNV_32: = ;
// Drawings.
/// How much wider than its line a frame without a width that holds one line is, where the
/// target's `FrameFittedWidth` is `HalfTwipWider`: 319 EMU, 0.5024 twip. The line's width counts
/// at its nominal size. The value fits Word's frames aligned right in twelve fonts at sizes from
/// 10 to 15.5 points to within about 0.002 twip; why Word adds about half a twip, and what makes
/// the last 0.002 twip, is not known.
///
/// - unit: EMU
/// - status: measured
pub const FRAME_FITTED_ROOM: Length = emus;
/// The insets of a DrawingML text box when `bodyPr` gives none: 0.1 inch at the sides and 0.05
/// inch above and below (ECMA-376 Part 1, 21.1.2.1.1).
///
/// - unit: EMU
/// - status: specified
pub const TEXT_BOX_INSETS: = ;
/// The insets of a VML text box when `inset` gives none: 0.1 inch at the sides and 0.05 inch
/// above and below (ECMA-376 Part 4, 14.1.2.22).
///
/// - unit: thousandths of a point
/// - status: specified
pub const VML_TEXT_BOX_INSETS: = ;
/// The distance between a VML shape with square, tight or through wrap and the text at its
/// sides, when `mso-wrap-distance-left` and `-right` give none (ECMA-376 Part 4, 14.1.2.19).
///
/// - unit: pt
/// - status: specified
pub const VML_WRAP_DISTANCE: Length = points;
/// The corner radius of a VML round rectangle when `arcsize` gives none: 0.2 of half its
/// shorter side (ECMA-376 Part 4, 14.1.2.17).
///
/// - unit: 100,000ths
/// - status: specified
pub const VML_ARC_SIZE: i64 = 20_000;
/// The width of a VML shape's line when `strokeweight` gives none: 0.75 pt (ECMA-376 Part 4,
/// 14.1.2.19).
///
/// - unit: share of a point
/// - status: specified
pub const VML_STROKE_WEIGHT: Length = point_parts;
/// The device on which an outlined inline VML rectangle with an anchor lock allocates room.
///
/// - unit: dots per inch
/// - status: measured
pub const VML_ANCHOR_DOTS_PER_INCH: i64 = 96;
/// The pixels on which an inline VML shape without a picture, a line or a horizontal rule takes
/// its room under `InlineVmlSize::PixelRoom`: its size in the nearest whole pixel, when that is
/// larger than its size in the nearest twip.
///
/// - unit: pixels per inch
/// - status: measured
pub const VML_ROOM_PIXELS_PER_INCH: i64 = 96;
/// The pixels of an image without a density of its own in an inch, for the natural size of an
/// inline VML picture under `VmlPictureRoom::NaturalScale`.
///
/// - unit: pixels per inch
/// - status: measured
pub const VML_PICTURE_PIXELS_PER_INCH: i64 = 96;
/// The steps of a whole in which an inline VML picture under `VmlPictureRoom::NaturalScale`
/// scales its image's natural size, and the preview of an embedded object under
/// `VmlPreviewRoom::OriginalScale` its object's original size: whole thousandths.
///
/// - unit: steps per whole
/// - status: measured
pub const VML_PICTURE_SCALE_STEPS: i64 = 1_000;
/// The coordinates of a wrap polygon across a drawing's width and height: from 0 to 21,600.
///
/// - unit: polygon steps
/// - status: specified
pub const WRAP_POLYGON_WHOLE: i64 = 21_600;
/// The font size of a DrawingML run of a SmartArt drawing when `sz` gives none. ECMA-376 takes
/// it from `a:defRPr`, and [MS-OI29500] says that Office uses 1800 hundredths of a point when
/// nothing gives it (Part 1, 21.1.2.3.9, e). F-Office reads no `a:lstStyle` of a SmartArt
/// drawing, so a run without `sz` takes this size.
///
/// - unit: pt
/// - status: specified
pub const DRAWING_FONT_SIZE: i64 = 18;
/// The line of a DrawingML paragraph whose spacing is a share of a line: 1.2 times the font
/// size. No specification gives the factor: ECMA-376 makes `a:spcPct` a share of the largest
/// text size on the line (Part 1, 21.1.2.2.11), and [MS-OI29500] adds nothing to it. Whether
/// Word takes 1.2 times the size is not known.
///
/// - unit: share of the font size
/// - status: fitted
pub const DRAWING_LINE_SCALE: = ;
// Lines and paragraphs.
/// The parts of a point in which Word for Windows holds the height of a line of automatic
/// spacing at or above single spacing whose faces are of [`WHOLE_HEIGHT_UNITS_PER_EM`] units per
/// em: the faces' single line times the spacing in 240ths, rounded to a whole part, a half up,
/// with the tops of the lines added exactly (`LineHeightUnit::Whole4096ths`).
///
/// - unit: parts of a point
/// - status: measured
pub const HEIGHT_PARTS_PER_POINT: i64 = 4096;
/// The units per em of the faces whose lines Word for Windows holds in whole
/// [`HEIGHT_PARTS_PER_POINT`]: at every size in half points, such a face's single line is a whole
/// number of those parts. The lines of faces of other units per em, such as 1,000 and 4,096,
/// keep F-Office's height.
///
/// - unit: font units per em
/// - status: measured
pub const WHOLE_HEIGHT_UNITS_PER_EM: u16 = 2048;
/// How much taller a line of a turned cell's text, or of a text box whose body turns its text,
/// is than an upright one, as a share of the line's largest font size, where the target's `TurnedLineRoom` is `SizeShare`: a 32nd, half
/// above the text and half below it. Why Word adds it is not known.
///
/// - unit: share of the font size
/// - status: measured
pub const TURNED_LINE_ROOM: = ;
/// Where an exact line height puts the baseline: at four fifths of the line, whatever the
/// font. Why Word puts it there is not known.
///
/// - unit: share of the line height
/// - status: unknown
pub const EXACT_BASELINE: = ;
/// The length of the pieces in which Word lays out a paragraph's text from compatibility mode
/// [`TEXT_PIECE_MODE`]: at each multiple of it, counted in UTF-16 code units from the start of
/// each run and from the paragraph's first character on each page, the PDF writer starts a new
/// text object.
///
/// - unit: characters
/// - status: measured
pub const TEXT_PIECE_LENGTH: usize = 256;
/// The length of the text buffers in which Word gathers the text of a document's runs: a run
/// that does not fit in the rest of the buffer starts a new buffer, and with it a new text
/// object and a new count of the text pieces.
///
/// - unit: characters
/// - status: measured
pub const TEXT_BUFFER_LENGTH: usize = 512;
/// The length in a text buffer of each mark of Word's text that is no character of a run's
/// text: the end of a paragraph, the end of a table cell after the end of the cell's last
/// paragraph, the end of a table row, a tab, a line break, and each of the three marks of a
/// field.
///
/// - unit: characters
/// - status: measured
pub const TEXT_BUFFER_MARK_LENGTH: usize = 1;
/// The characters that the text buffer of a document's body holds before the document's
/// first character: 4.
///
/// - unit: characters
/// - status: measured
pub const TEXT_BUFFER_FIRST_FILL: usize = 4;
/// The characters that a `HYPERLINK` field takes in a text buffer beyond its three marks, its
/// code and its result, also the field that Word makes of a hyperlink, where it stands after
/// the field's start, and a reference with the link switch: 1.
///
/// - unit: characters
/// - status: derived
pub const HYPERLINK_FIELD_EXTRA_LENGTH: usize = 1;
/// The characters of the switch that the code of the field that Word makes of a hyperlink
/// holds when the hyperlink does not record history (`w:history` not on): 3.
///
/// - unit: characters
/// - status: derived
pub const HYPERLINK_HISTORY_OFF_LENGTH: usize = 3;
/// The length of the pieces of a paragraph's text in a document of a compatibility mode before
/// [`TEXT_PIECE_MODE`], or of none.
///
/// - unit: characters
/// - status: measured
pub const OLD_MODE_TEXT_PIECE_LENGTH: usize = 512;
/// The steps of an em in which Word's PDFs write each glyph advance: thousandths of an em with
/// one more decimal.
///
/// - unit: steps of an em
/// - status: fitted
pub const PDF_ADVANCE_STEPS: i64 = 10_000;
/// How far the top and bottom lines of a paragraph's border reach past its indents, before
/// rounding down to whole device dots: 1.5 pt.
///
/// - unit: half-points
/// - status: measured
pub const BORDER_REACH: Length = point_parts;
/// The steps of a point in which a character grid's `w:charSpace` gives the pitch that it adds
/// to each character (ECMA-376 Part 1, 17.6.5).
///
/// - unit: steps of a point
/// - status: specified
pub const CHAR_SPACE_STEPS: i64 = 4_096;
/// The fewest lines of a paragraph that widow control leaves at the bottom of a page or at the
/// top of the next one (ECMA-376 Part 1, 17.3.1.44).
///
/// - unit: lines
/// - status: specified
pub const WIDOW_LINES: usize = 2;
/// The weights of red, green and blue in the luma of a color, in thousandths: those of ITU-R
/// BT.601.
///
/// - unit: thousandths
/// - status: specified
pub const LUMA_WEIGHTS: = ;
/// The luma below which a shading is dark, so that text of the automatic color on it is
/// white: 59.75 of 255, in thousandths of a step, so that the text is white where
/// 299 R + 587 G + 114 B is below 59,750.
///
/// - unit: thousandths of a luma step
/// - status: measured
pub const AUTO_TEXT_DARK_LUMA: i64 = 59_750;
/// The compatibility mode of Word 2013, from which a drawing in the body that text wraps
/// around and that is placed from its paragraph does not go above the top margin.
///
/// - unit: compatibility mode
/// - status: specified
pub const MARGIN_KEEPING_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a line that holds only a column break has
/// the height of the break's own run. Before it, that line takes no room.
///
/// - unit: compatibility mode
/// - status: measured
pub const COLUMN_BREAK_LINE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a target whose multiple-spaced line that holds
/// tall inline objects alone scales the spacing above single spacing by the largest line of the
/// objects' runs (`ObjectLineMultiple::ObjectRun`) does so. Before it, the paragraph mark's line
/// scales it.
///
/// - unit: compatibility mode
/// - status: measured
pub const OBJECT_LINE_RUN_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which the band of a frame at the text that keeps
/// the text below it reaches each line of the paragraph before it by the line's bottom. Before
/// it, the last line of that paragraph reaches into the band with the paragraph's space after.
///
/// - unit: compatibility mode
/// - status: measured
pub const FRAME_BAND_TOP_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a frame at the text right after a paragraph
/// whose own band moves none of that paragraph's lines counts from the lines as the bands of
/// the later frames leave them. Before it, such a frame keeps the place that the paragraph gave
/// it before the later bands.
///
/// - unit: compatibility mode
/// - status: measured
pub const FRAME_PLACE_FROM_LINES_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a table in the flow whose rows all go leaves
/// the space before of the paragraph after it, at the top of a page, as it would be without the
/// table. Before it, that paragraph has no space before there.
///
/// - unit: compatibility mode
/// - status: measured
pub const DELETED_TABLE_TOP_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which the paragraph that a run of paragraphs that
/// show nothing and whose marks are hidden joins draws the border lines of the run's first
/// paragraph, when it has a border or a fill of its own. Before it, the run's borders go.
///
/// - unit: compatibility mode
/// - status: measured
pub const HIDDEN_MARK_BORDERS_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a line above the footnotes of its page
/// needs its whole height, and the last line of a paragraph the space after too. Below it,
/// and without a mode, a line above the footnotes of earlier lines needs only the room of its
/// text, as on a page without footnotes, and a line that brings footnotes needs its whole
/// height above them, without the space after.
///
/// - unit: compatibility mode
/// - status: measured
pub const NOTE_WHOLE_ROOM_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which the rule above the rest of a footnote that
/// started on the page before (`w:continuationSeparator`) is as long as the separator's rule.
/// Below it, and without a mode, the rule is as wide as the column.
///
/// - unit: compatibility mode
/// - status: measured
pub const NOTE_NARROW_CONTINUATION_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which `w:cantSplit` does not keep a row whole in
/// a table with `w:tblpPr`. In mode 14 the row moves whole, as in a table without `w:tblpPr`.
///
/// - unit: compatibility mode
/// - status: measured
pub const PLACED_ROW_SPLITS_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a row of a floating table that breaks across
/// pages, where the target's quirk `FloatingTableBreaks` says so, fits on its page when its
/// bottom lies above the body's end, as a row in the flow does. Before it, and in a document
/// that names no mode, the row fits when its top lies above the body's end.
///
/// - unit: compatibility mode
/// - status: measured
pub const FLOATING_ROW_BOTTOM_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a header row (`w:tblHeader`) is kept with
/// the next row of its table: it moves to the next page with the row below it, and a chain of
/// kept paragraphs before the table goes on through it. In modes 14 and 12 the header rows stay
/// at the page's foot and repeat above that row on the next page.
///
/// - unit: compatibility mode
/// - status: measured
pub const HEADER_ROWS_KEPT_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which the row below the header rows that repeat
/// at the top of a page keeps the room of the line between it and the row before it in the
/// table, where the line drawn above it is the last header row's bottom line or its own top
/// line (`RowBelowHeaders::LastHeader`). In the modes below, its content starts below the drawn
/// line, as below the row before it on one page.
///
/// - unit: compatibility mode
/// - status: measured
pub const HEADER_LINE_ROOM_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a right-to-left table in a right-to-left
/// section does not start left of the column: a table wider than the text starts at the
/// column's left edge and goes over its right edge.
///
/// - unit: compatibility mode
/// - status: measured
pub const WIDE_RIGHT_TO_LEFT_TABLE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which `w:keepNext` binds only a paragraph's last
/// line to the next paragraph, so that a kept paragraph that widow control lets split splits at
/// the page's foot also when all its lines fit. Before it, such a paragraph splits only when its
/// lines run past the foot, and otherwise the chain moves whole.
///
/// - unit: compatibility mode
/// - status: measured
pub const KEPT_SPLIT_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a paragraph that starts a page after a page
/// break before it has no space above it.
///
/// - unit: compatibility mode
/// - status: specified
pub const PAGE_BREAK_SPACE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a drop cap is no link of a chain of
/// paragraphs that are kept with the next one, and goes to the next page with the paragraph
/// after it.
///
/// - unit: compatibility mode
/// - status: measured
pub const DROP_CAP_WITH_TEXT_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which Word sets the footnotes of a page in a
/// section of more than one text column in the columns of the footnote area, from the first
/// column on, each column filled before the next. Before it, each footnote stands at the foot of the text column that holds its
/// reference, as wide as that column, below a separator of its own.
///
/// - unit: compatibility mode
/// - status: measured
pub const NOTE_FLOW_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which the empty paragraph that ends a section of
/// one column before a continuous section keeps its line and its spaces when a table stands
/// right before it, on a target whose continuous section ends keep their spaces. Before it,
/// and in a document that names no mode, the paragraph shows nothing and the next paragraph
/// has only the part of its space before beyond the paragraph's space after.
///
/// - unit: compatibility mode
/// - status: measured
pub const SECTION_END_AFTER_TABLE_LINE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a target whose kerned runs step at the
/// nearest dot (`KernedDeviceWidths::Nearest` and `KernedDeviceWidths::NearestOrOwn`) steps a
/// glyph of a kerned run in a GPOS-kerned face by its exact distance to the next glyph at the
/// nearest dot, without the bias. With `Nearest`, a glyph of a legacy-kern face steps from it by
/// its advance rounded and the bias (`KernedDeviceWidths::Rounded`), and every glyph steps
/// before it by its own device width and the bias plus the pair's kerning in whole dots on its
/// own (`KernedDeviceWidths::OwnWithKerningOnItsOwn`). With `NearestOrOwn`, the glyph steps
/// before it, and in a legacy-kern face in every mode, by its own device width and the bias
/// (`KernedDeviceWidths::Own`).
///
/// - unit: compatibility mode
/// - status: measured
pub const KERNED_STEP_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a target that reads the `kern` table before
/// a mode (`KerningTableRead::KernTableBeforeMode`) gives a kerned pair the value of the face's
/// kerning source, the `kern` feature of `GPOS` where the face has one. Before it, the pair
/// takes the value of the face's `kern` table alone. It is the mode of [`KERNED_STEP_MODE`].
///
/// - unit: compatibility mode
/// - status: measured
pub const KERNED_KERN_FEATURE_MODE: CompatibilityMode = Mode15;
/// The compatibility mode of Word 2013, from which a target that takes a later column's edge by
/// its parts (`ColumnEdgeHalves::ColumnParts`) takes it as one length, as `WholeEdge`. Before
/// it, the left margin and each earlier column's width with its space go to the dot one by one.
///
/// - unit: compatibility mode
/// - status: measured
pub const COLUMN_EDGE_WHOLE_MODE: CompatibilityMode = Mode15;
/// The narrowest piece of a line beside a drawing that still takes text: a quarter inch.
///
/// - unit: pt
/// - status: measured
pub const NARROWEST_WRAP: Length = points;
/// The compatibility mode of Word 2013, from which the narrowest piece of a line beside a frame
/// that the text flows around is [`NARROWEST_WRAP`], as beside a drawing. Before it, the piece
/// must be [`FRAME_NARROWEST_PIECE`] wide.
///
/// - unit: compatibility mode
/// - status: measured
pub const FRAME_PIECE_MODE: CompatibilityMode = Mode15;
/// The narrowest piece of a line beside a frame, between a margin and the frame's distance as
/// the frame lies on the page, that takes text before [`FRAME_PIECE_MODE`]: an inch, on either
/// side of the frame.
///
/// - unit: twip
/// - status: measured
pub const FRAME_NARROWEST_PIECE: Length = twips;
/// How far outside the text the bar that marks a tracked change sits: left of the left margin,
/// or right of the right margin on an odd page with odd and even headers.
///
/// - unit: pt
/// - status: fitted
pub const CHANGE_BAR_INSET: Length = points;
/// The width of the strokes of the square of a check box form field, before it is rounded to
/// whole device dots: 3 dots at 300 and at 288 dots per inch, 6 at 600.
///
/// - unit: pt
/// - status: fitted
pub const CHECK_BOX_STROKE: Length = point_parts;
/// The width of the bar that marks a tracked change.
///
/// - unit: device dots
/// - status: fitted
pub const CHANGE_BAR_WIDTH: i64 = 3;
/// The parts of the largest length of which a header or footer story takes one as its height,
/// so that it never ends and lengths can still be added to it.
///
/// - unit: parts
/// - status: limit
pub const STORY_HEIGHT_PARTS: i64 = 4;
/// The most layout passes after the second one. The passes end sooner when every drawing lies
/// on the page that its wrap started and no bookmark changes its page. A bound of the work,
/// not a measure of Word.
///
/// - unit: passes
/// - status: limit
pub const FURTHER_PASSES: usize = 3;
// The look of runs.
/// The font size when no style sets one: 10 pt (ECMA-376 Part 1, 17.3.2.38).
///
/// - unit: half-points
/// - status: specified
pub const DEFAULT_FONT_SIZE: i64 = 20;
/// The font size of the run defaults of Word's own template, which a document without
/// `w:rPrDefault` takes: 12 pt.
///
/// - unit: half-points
/// - status: measured
pub const TEMPLATE_FONT_SIZE: i64 = 24;
/// The largest font size that a run's `w:sz` or `w:szCs` gives: 2^28 half-points. A larger size
/// reads as the limit, with the warning `limit-reached` (`Limit::FontSize`), so that a size is
/// always a length and its products with a font's units and a glyph's advance fit in an `i64`.
/// A bound of the work, not a measure of Word: Word's own largest size, and what it does above
/// it, are not known.
///
/// - unit: half-points
/// - status: limit
pub const MAX_FONT_SIZE: i64 = 268_435_456;
/// The size of superscript and subscript text: two thirds of the run's size, rounded down to
/// whole half-points.
///
/// - unit: share of the font size
/// - status: fitted
pub const SCRIPT_SIZE: = ;
/// The largest share of the run's size at which a script in a font's own size
/// (`quirks::ScriptSize::FaceValues`), to the nearest half-point, falls back to
/// [`SCRIPT_FALLBACK_SIZE`]: a script of at most a third of its line falls back, one of more
/// keeps its size, line by line.
///
/// - unit: share of the font size
/// - status: measured
pub const SCRIPT_FALLBACK_LINE_SHARE: = ;
/// The largest superscript y size of a font, as a share of its em, at which scripts take the
/// font's own sizes (`quirks::ScriptSize::FaceValues`): the largest size seen to keep them,
/// the whole em. No larger size has been seen.
///
/// - unit: share of the em
/// - status: measured
pub const SCRIPT_KEPT_SIZE_MAX: = ;
/// The largest superscript y offset of a font, as a share of its em, at which scripts take the
/// font's own sizes (`quirks::ScriptSize::FaceValues`): offsets up to three quarters of the em keep
/// them and larger offsets fall back.
///
/// - unit: share of the em
/// - status: measured
pub const SCRIPT_KEPT_OFFSET_MAX: = ;
/// The size of superscript and subscript text in a font whose own script values Word does not
/// take (`quirks::ScriptSize::FaceValues`): three fifths of the run's size, to the nearest
/// half-point.
///
/// - unit: share of the font size
/// - status: measured
pub const SCRIPT_FALLBACK_SIZE: = ;
/// The farthest that a subscript in a font whose own script values Word does not take
/// (`quirks::ScriptSize::FaceValues`) drops to meet the bottom of its line: a fifth of the run's
/// size, to the nearest half-point.
///
/// - unit: share of the font size
/// - status: measured
pub const SCRIPT_FALLBACK_DROP_MAX: = ;
/// The size of a script of an equation: the `ScriptPercentScaleDown` of Cambria Math's `MATH`
/// table, as a share of the size of the equation, rounded down to whole half-points.
///
/// - unit: percent of the font size
/// - status: derived
pub const MATH_SCRIPT_PERCENT: i64 = 73;
/// The size of a script inside a script of an equation: the `ScriptScriptPercentScaleDown` of
/// Cambria Math's `MATH` table, as a share of the size of the equation, rounded down to whole
/// half-points.
///
/// - unit: percent of the font size
/// - status: derived
pub const MATH_SCRIPT_SCRIPT_PERCENT: i64 = 60;
/// The width of the space on each side of a binary operator of an equation outside script
/// style, as a share of the em of the operator's face: Word draws it at exactly 4/18 em, wider
/// than the no-break space of Cambria Math that stands for it (451 of 2048 units).
///
/// - unit: share of the em
/// - status: specified
pub const MATH_OPERATOR_SPACE: = ;
/// What the space on each side of a relation of an equation outside script style adds to the
/// space of a binary operator, as a share of the em: Word draws the relation's space at exactly
/// 5/18 em, and a hair space of this width follows the operator's space.
///
/// - unit: share of the em
/// - status: specified
pub const MATH_RELATION_SPACE_EXTRA: = ;
/// How far a superscript of an equation rises above its base's baseline: the
/// `SuperscriptShiftUp` of Cambria Math's `MATH` table, in font units of its em of 2048, at the
/// size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUPERSCRIPT_SHIFT_UP: = ;
/// How far a superscript in a cramped part of an equation, a fraction's denominator at any
/// depth, rises above its base's baseline: the `SuperscriptShiftUpCramped` of Cambria Math's
/// `MATH` table, in font units of its em of 2048, at the size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUPERSCRIPT_SHIFT_UP_CRAMPED: = ;
/// How far a subscript of an equation drops below its base's baseline: the
/// `SubscriptShiftDown` of Cambria Math's `MATH` table, in font units of its em of 2048, at the
/// size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUBSCRIPT_SHIFT_DOWN: = ;
/// How high the top of a subscript's ink lies at most above its base's baseline: the
/// `SubscriptTopMax` of Cambria Math's `MATH` table, in font units of its em of 2048, at the
/// size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUBSCRIPT_TOP_MAX: = ;
/// The smallest gap between the ink of the superscript and of the subscript of one base: the
/// `SubSuperscriptGapMin` of Cambria Math's `MATH` table, in font units of its em of 2048, at
/// the size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUB_SUPERSCRIPT_GAP_MIN: = ;
/// How high the bottom of a superscript's ink rises at least when the superscript moves away
/// from a subscript of the same base: the `SuperscriptBottomMaxWithSubscript` of Cambria Math's
/// `MATH` table, in font units of its em of 2048, at the size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT: = ;
/// How high the bottom of the ink of a superscript without a subscript lies at least above its
/// base's baseline: the `SuperscriptBottomMin` of Cambria Math's `MATH` table, in font units of
/// its em of 2048, at the size of the base.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_SUPERSCRIPT_BOTTOM_MIN: = ;
/// The deepest script or fraction part of an equation that F-Office tells apart; a part
/// further in sits as one at this depth.
///
/// - unit: scripts
/// - status: limit
pub const MATH_SCRIPT_DEPTH: usize = 8;
/// The most times that an extender of a glyph assembly repeats when an accent of an equation
/// draws the assembly over its base, so that a malformed font cannot make it draw without end.
///
/// - unit: repeats
/// - status: limit
pub const MATH_ASSEMBLY_REPEATS: usize = 64;
/// How far above the baseline the middle of a fraction's bar lies: the `AxisHeight` of Cambria
/// Math's `MATH` table, in font units of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_AXIS_HEIGHT: = ;
/// How far short of its content's need a variant of a growing delimiter may fall: a delimiter of
/// `m:d` that grows around content that is not line high draws the first vertical variant of its
/// glyph whose height reaches twice the larger of the content's ink above and below the math
/// axis, less this much, in font units of the math face's em of 2048 at the delimiter's size.
/// The `MATH` table and ECMA-376 give no such value.
///
/// - unit: font units per em
/// - status: fitted
pub const MATH_DELIMITER_SHORTFALL: = ;
/// The share of its content's need that a variant of a growing delimiter must reach: the
/// variant reaches the larger of the need less `MATH_DELIMITER_SHORTFALL` and this share of the
/// need, so that this share decides around content of small need and the shortfall around tall
/// content. The `MATH` table and ECMA-376 give no such value.
///
/// - unit: ratio
/// - status: fitted
pub const MATH_DELIMITER_SHARE: = ;
/// How much taller than its own least height a delimiter nested in another makes the other: a
/// delimiter that is the first element of a growing delimiter's content and opens with its
/// opening character, or the last one and closes with its closing character, makes the other
/// draw a variant that reaches this many times the least height that the nested one's need
/// alone asks (`MATH_DELIMITER_SHARE`, `MATH_DELIMITER_SHORTFALL`), the need being twice the
/// larger of its box above and below the math axis, where a radical's bar keeps the clear
/// space above it when it stands on the outer delimiter's side of a fraction's part. The
/// `MATH` table and ECMA-376 give no such value.
///
/// - unit: ratio
/// - status: fitted
pub const MATH_NESTED_DELIMITER_GROWTH: = ;
/// The thickness of a fraction's bar: the `FractionRuleThickness` of Cambria Math's `MATH`
/// table, in font units of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_FRACTION_RULE_THICKNESS: = ;
/// How far the baseline of a fraction's numerator lies above the fraction's baseline: the
/// `FractionNumeratorShiftUp` of Cambria Math's `MATH` table, in font units of its em of 2048,
/// at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_NUMERATOR_SHIFT_UP: = ;
/// How far the baseline of a fraction's numerator lies above the fraction's baseline in a
/// display: the `FractionNumeratorDisplayStyleShiftUp` of Cambria Math's `MATH` table, in font
/// units of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_NUMERATOR_DISPLAY_SHIFT_UP: = ;
/// How far the baseline of a fraction's denominator lies below the fraction's baseline: the
/// `FractionDenominatorShiftDown` of Cambria Math's `MATH` table, in font units of its em of
/// 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_DENOMINATOR_SHIFT_DOWN: = ;
/// How far the baseline of a fraction's denominator lies below the fraction's baseline in a
/// display: the `FractionDenominatorDisplayStyleShiftDown` of Cambria Math's `MATH` table, in
/// font units of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_DENOMINATOR_DISPLAY_SHIFT_DOWN: = ;
/// The smallest gap between the ink of a part of a fraction and the edge of its bar, for a
/// fraction in any style but display style: the `FractionNumeratorGapMin` and the
/// `FractionDenominatorGapMin` of Cambria Math's `MATH` table, which are equal, in font units
/// of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_FRACTION_GAP_MIN: = ;
/// The smallest gap between the ink of a part of a fraction and the edge of its bar, for a
/// fraction in display style: the `FractionNumDisplayStyleGapMin` and the
/// `FractionDenomDisplayStyleGapMin` of Cambria Math's `MATH` table, which are equal, in font
/// units of its em of 2048, at the size of the fraction.
///
/// - unit: font units per em
/// - status: derived
pub const MATH_FRACTION_DISPLAY_GAP_MIN: = ;
/// The most columns that one column setting of a matrix of an equation (`m:count` of `m:mcPr`)
/// covers: the largest value of its type.
///
/// - unit: columns
/// - status: specified
pub const MATH_MATRIX_COLUMNS: i64 = 255;
/// The distance between the baselines of two rows of a matrix of an equation with one and a
/// half lines' spacing (`m:rSpRule` 1), in lines of the matrix's font.
///
/// - unit: lines
/// - status: specified
pub const MATH_MATRIX_ONE_AND_A_HALF_LINES: = ;
/// How far a subscript drops: a quarter of the size that it loses.
///
/// - unit: parts of the lost size
/// - status: fitted
pub const SUBSCRIPT_DROP_PARTS: i64 = 4;
/// The color in which Word draws a text outline with a theme color, whatever the theme
/// color is.
///
/// - unit: red, green and blue
/// - status: unknown
pub const OUTLINE_THEME_COLOR: = ;
// Tables.
/// The bits of `w:tblLook w:val` for the first row, the last row, the first column, the last
/// column, no row bands and no column bands (ECMA-376 Part 1, 17.4.56).
///
/// - unit: bits
/// - status: specified
pub const TABLE_LOOK_BITS: = ;
/// The most grid columns that a `w:gridSpan` or a `w:gridBefore` counts, that a `w:tblGrid`
/// gives, and that a row adds to the grid of its table. A larger value reads as the limit, a
/// `w:tblGrid` gives its first columns up to it, and the grid stops at it, each with the warning
/// `limit-reached` (`Limit::GridColumns`), so that one value of the file cannot ask for a grid
/// of any size. A bound of the work, not a measure of Word.
///
/// - unit: grid columns
/// - status: limit
pub const MAX_GRID_COLUMNS: usize = 1_000;
/// The most fields that the reader keeps open at one place of a story: fields nested in the
/// code or the result of other fields, and fields that begin and do not end. A field that
/// begins while this many are open is read as content of the field around it: its marks and
/// the text of its code are left out, and its other content, such as its stored result, stays.
/// Each such field gives the warning `limit-reached` (`Limit::FieldDepth`). Without the limit,
/// the nesting of the file could ask for a recursion of any depth, which `IF` fields need to
/// give their text, and each content item would search a list of open fields of any length. A
/// bound of the work, not a measure of Word.
///
/// - unit: fields
/// - status: limit
pub const MAX_FIELD_DEPTH: usize = 64;
// Rules whose reason is not known.
//
// Each of these is a condition or a choice of F-Office in a place where Word's rule is not
// known: Word sometimes does something else there, for a reason that is not known. The values
// keep the layout as it is. A model of Word that explains a case replaces its
// entry.
/// The style that a style ID without a definition in the styles part stands for: none, so that
/// it adds nothing. Whether Word takes its built-in style of that ID is not known.
///
/// - unit: style ID
/// - status: unknown
pub const MISSING_STYLE_FALLBACK: = None;
/// The compatibility mode of Word 2013, from which widow control applies in a cell of a row
/// that splits. Why Word splits some rows that it then moves whole is not known.
///
/// - unit: compatibility mode
/// - status: unknown
pub const CELL_WIDOW_MODE: CompatibilityMode = Mode15;
/// The left or right margin of a table cell that no cell, row, table or table style sets, on a
/// target that gives such a side a margin (`UnsetCellMargins::DefaultSides`): 10 twips, 0.5 pt.
///
/// - unit: half-EMU
/// - status: measured
pub const UNSET_SIDE_MARGIN: Length = twips;
// Notes.
/// The length of a note separator's rule: 2 inches.
///
/// - unit: pt
/// - status: fitted
pub const NOTE_SEPARATOR_WIDTH: Length = points;
// Pictures.
/// The weight from which a metafile font is bold: `FW_SEMIBOLD` of [MS-WMF].
///
/// - unit: font weight
/// - status: specified
pub const METAFILE_BOLD_WEIGHT: i32 = 600;