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 3176 3177 3178 3179
|
. /////////////////////////////////////////////////////////////////////////////
. This is the primary source of the SDoP Manual. It is an xfpt document that is
. converted into DocBook XML for subsequent conversion into printing and online
. formats. The markup used herein is "standard" xfpt markup.
. /////////////////////////////////////////////////////////////////////////////
.include stdflags
.include stdmacs
. /////////////////////////////////////////////////////////////////////////////
. This outputs the standard DocBook boilerplate.
. /////////////////////////////////////////////////////////////////////////////
.docbook
. /////////////////////////////////////////////////////////////////////////////
. These literal XML lines are processing instructions for SDoP. They adjust
. the contents of the page footers, allow table cells to overflow without
. warning if there is no overprinting, and suppress warnings for unknown
. characters (several appear in the tables at the end).
. /////////////////////////////////////////////////////////////////////////////
.literal xml
<?sdop
foot_right_recto="&chaptertitle; (&chapternumber;)"
foot_right_verso="&chaptertitle; (&chapternumber;)"
table_warn_overflow="overprint"
warn_unsupported_characters="no"
?>
.literal off
. /////////////////////////////////////////////////////////////////////////////
. These definitions set some parameters and save some typing. Remember that
. the <bookinfo> element must also be updated for each new edition.
. /////////////////////////////////////////////////////////////////////////////
.set version "1.10"
.set R "☞"
.set B "​"
. /////////////////////////////////////////////////////////////////////////////
. This generates the outermost <book> element that wraps the entire document.
. /////////////////////////////////////////////////////////////////////////////
.book
. ////////////////////////////////////////////////////////////////////////////
. The <bookinfo> element is provided as raw XML.
. ////////////////////////////////////////////////////////////////////////////
.literal xml
<bookinfo>
<title>SDoP: A Simple DocBook Processor</title>
<titleabbrev>SDoP</titleabbrev>
<date>28 April 2023</date>
<author><firstname>Philip</firstname><surname>Hazel</surname></author>
<authorinitials>PH</authorinitials>
<address>Cambridge, England</address>
<revhistory><revision>
<revnumber>1.10</revnumber>
<date>28 April 2023</date>
<authorinitials>PH</authorinitials>
</revision></revhistory>
<copyright><year>2023</year><holder>Philip Hazel</holder></copyright>
</bookinfo>
.literal off
. /////////////////////////////////////////////////////////////////////////////
. Set up some "see" index entries
. /////////////////////////////////////////////////////////////////////////////
.index-see "heads and feet" "feet"
.index-see "table of contents" "contents"
. /////////////////////////////////////////////////////////////////////////////
. /////////////////////////////////////////////////////////////////////////////
.chapter "Introduction"
SDoP is a Simple DocBook Processor. It reads DocBook XML input and writes
PostScript output. The output can easily be converted into PDF form by the
&(ps2pdf)& command that comes as part of the GhostScript package. This document
describes SDoP version &version;. Cross-references should be clickable if the
PDF reader you are using supports the feature.
The first version of SDoP was written to support just those features of DocBook
that were needed to format the Exim manual. Further features have been added,
and this version has some support for almost all the elements that are part of
&'Simplified DocBook'&, as defined in the following URL:
.index "Simplified DocBook"
.index "DocBook" "Simplified DocBook"
.display
&<emphasis role="smallfont">&&url(http://docs.huihoo.com/docbook/&&&
simplified-docbook-definitive-guide/sdocbook.html)&</emphasis>&
.endd
.index "DocBook" "omitted features"
The main omissions are support for bibliographies, multiple authors,
subtables within tables, and some element attributes. Chapter
&<<CHAPsuppelems>>& of this document contains a complete list of what SDoP does
support.
SDoP supports illustrations, supplied as separate files, in several formats.
Encapsulated PostScript (.eps) is always supported. If the relevant libraries
are found when SDoP is being built, JPEG and PNG files are supported. There is
also some inbuilt support for Scalable Vector Graphics (.svg) files. This makes
use of the &(nanosvg)& source library
(&url(https://github.com/memononen/nanosvg)), modified to support text items.
For details, see section &<<SECTillfig>>& below.
I wrote SDoP because at that time the available non-commercial processors for
converting DocBook into PostScript or PDF were not only slow and cumbersome,
but also did not produce satisfactory output (see chapter &<<CHAPtypeset>>&). I
included `simple' in the program's name for the following reasons:
.ilist
SDoP does not check that the input conforms to a DocBook DTD, though it does
check that element starting and ending tags are correctly nested. Few people
write XML by hand, and what is generated by program is likely to be correct.
There are programs such as &(xmllint)& that can be used to validate XML if you
want to check your source before giving it to SDoP.
.next
SDoP is a single program, written in C, that does not rely on external
information, except for a few associated data files. This makes it very fast.
When it was first written it could process the Exim manual (466 pages) in under
2.5 seconds on the author's workstation; in contrast, using &(xmlto)& to
generate `formatting objects' and then &(fop)& to make PostScript took around 2
minutes.
.next
SDoP makes no use of complicated stylesheets such as XSL, though the way it
formats the output can be adjusted to some extent by means of embedded
processing instructions (see chapter &<<CHAPprocinst>>&).
.endlist
.section "Installing SDoP"
.index "installing SDoP"
You should be able to build and install SDoP using the traditional commands:
.code
./configure
make
make install
.endd
.index "JPEG support"
.index "PNG support"
The installation consists of one binary, one &'man'& page, and a directory
containing SDoP's data files (see chapter &<<CHAPdatafiles>>&). This is usually
installed as &(/usr/local/share/sdop)&. SDoP is automatically compiled with
support for handling JPEG and/or PNG images if the &(libjpeg)& and/or
&(libpng)& libraries, respectively, are installed. You can disable this support
by adding &`--disable-jpeg`& and/or &`--disable-png`& to the &`./configure`&
command.
.section "The SDoP command line"
.index "command line"
The SDoP command line is of the following form:
.display
&`sdop`& [&'options'&] [&'source file'&]
.endd
.index "input" "specifying"
.index "output" "specifying"
If no source file is given, the source is read from the standard input.
Output is by default written to the standard output if the source is the
standard input; otherwise it is written to a file whose name is the same as the
source, but with the extension changed to &_.ps_&. However, the destination can
be specified explicitly by the &%-o%& option.
.index "&$SDOP_SHARE$&"
.index "data files" "specifying location"
The &$SDOP_SHARE$& environment variable can be set to a colon-separated list of
directories that are searched, in order, when SDoP needs to read one of its
data files (see chapter &<<CHAPdatafiles>>&). If the required file is not found
in one of these directories, the default directory (often
&_/usr/local/share/sdop/_&) is searched. The &%-S%& option can be used to
override &$SDOP_SHARE$&.
.vlist
.vitem &%-d%&
.index "&*-d*& option"
.index "debugging option"
This option causes a small amount of debugging output to be written to the
standard error stream. More detailed output can be obtained by adding &'+name'&
after &%-d%&; a list of debugging names can be found from the &%--help%&
option.
.vitem "&%-help%& or &%--help%&"
.index "&*--help*& option"
This causes SDoP to list the available options and then exit.
.vitem &%-o%&&~<&'output-file'&>
.index "&*-o*& option"
This option overrides the default output destination. If the output is
specified as a single hyphen character, the standard output is used.
.vitem &%-p%&&~<&'page-list'&>
.index "&*-p*& option"
.index "output, selecting pages"
.index "page" "selection option"
This option restricts the output to just those pages that are listed. The pages
are counted from the start of the body of the document, that is, after any
front matter (title pages, table of contents, preface). In other words, they
are a book's `normal' page numbers.
A comma is used to separate items in a page list, and each item can be a single
page number or a hyphen-separated range. The page numbers must be in numerical
order. If either of the words `odd' or `even' appears anywhere in the list,
the entire output is restricted to either odd or even pages, respectively. If
both appear, there is no restriction. For example:
.code
sdop -p odd,23,35-50,99 myfile.xml
.endd
If `odd' or `even' is given with no page numbers, and there is no &%-pf%&
option, all odd or even pages (respectively), including front matter pages, are
output.
.index "bookmark information"
.index "cross-reference information"
.index "index" "page number links"
By default, SDoP includes bookmark information and link information for
cross-references and index page numbers in the output, for use when the
PostScript is converted to PDF. However, this feature is disabled when &%-p%&
or &%-pf%& is used, because the output is then incomplete.
.vitem &%-pf%&&~<&'page-list'&>
.index "&*-pf*& option"
.index "output, selecting pages"
.index "page" "selection option"
This option is like &%-p%&, except that the pages are counted from the very
start of the output, that is, this option is used to select pages from the
book's front matter. Unlike &%-p%&, `odd' and `even' may not appear in the
page list for &%-pf%&. However, you can use &%-p%& (with or without a page
list) in the same command as &%-pf%&, for example:
.code
sdop -p odd -pf 5-11 myfile.xml
.endd
This outputs just the odd pages from those selected from the front matter.
.vitem &%-q%&
.index "&*-q*& option"
.index "warnings" "suppressing"
This suppresses the default warnings that SDoP outputs for unsupported DocBook
elements and attributes, all of which are ignored. It overrides any setting
that may be in an SDoP processing instruction within the source document.
.vitem &%-qc%&
.index "&*-qc*& option"
.index "warnings" "suppressing"
This suppresses the default warnings that SDoP outputs for any unsupported
characters that it encounters. It overrides any setting that may be in an SDoP
processing instruction within the source document. Unsupported characters are
those that are not available in the PostScript fonts.
.vitem "&%-S%&&~<&'directory list'&>"
.index "&*-S*& option"
.index "data files" "specifying location"
This option supplies a colon-separated list of directories that are to be
searched, in order, when SDoP needs to read one of its data files (see chapter
&<<CHAPdatafiles>>&). If the required file is not found in one of these
directories, the default directory (often &_/usr/local/share/sdop/_&) is
searched.
.index "&$SDOP_SHARE$&"
This option overrides a value taken from the &$SDOP_SHARE$& environment
variable.
.vitem "&%-v%& or &%--version%&"
.index "&*-v*& option"
.index "&*--version*& option"
.index "version number, output of"
This causes SDoP to output its version number and to list any optional
facilities (such as JPEG support) that are available, and then exit.
.vitem &%-w%&
.index "&*-w*& option"
.index "warnings" "requesting"
This requests warning messages for unsupported DocBook elements and attributes
(the inverse of &%-q%&). It overrides any setting that may be in an SDoP
processing instruction within the source document.
.vitem &%-wc%&
.index "&*-wc*& option"
.index "warnings" "requesting"
This requests warnings for unsupported characters (the inverse of &%-qc%&). It
overrides any setting that may be in an SDoP processing instruction within the
source document. Unsupported characters are those that are not present in the
PostScript fonts.
.endlist
.section "SDoP input"
.index "input" "format of"
.index "Unicode"
SDoP expects its input to be XML, encoded in Unicode, using UTF-8 for
characters whose code points have a value that is greater than 127. SDoP
interprets XML elements (for example, &`<chapter>`&) as specified by DocBook,
though it makes no attempt to validate the input against a DocBook DTD. There
are programs such as &(xmllint)& that can be used for validation if you want
check your source before giving it to SDoP.
You can feed SDoP fragmentary input containing, for example, just a sequence of
&`<para>`& elements, and it will try to make sense of it. However, if the
nesting of elements contradicts the DocBook DTD, the results may not be what
you expect.
The elements that are recognized are listed below in chapter
&<<CHAPsuppelems>>&. Recognition of an element does not mean that SDoP actually
does any processing for it. For example, &`<trademark>`& is recognized, but has
no effect on the output. Unrecognized elements are completely ignored, though
by default SDoP outputs a list of them to the standard error stream at the end
of processing. This can be suppressed by means of the
.index "&*-q*& option"
.index "warnings" "suppressing"
&%-q%& command line option, or the &*warn_unsupported*& parameter (&R;
&<<SECTwarnings>>&).
SDoP recognizes a number of standard entities such as &`&&`& (which
represents a literal ampersand character). These are listed in chapter
&<<CHAPsuppents>>& below. In addition, there are some special entities that are
useful for referencing text strings for title pages, the table of contents,
headers, and footers (&R; &<<CHAPusingbi>>&, &<<SECTtabofcont>>&,
&<<SECThandf>>&).
.section "SDoP output"
.index "output" "format of"
.index "&*-p*& option"
.index "&*-pf*& option"
SDoP outputs an entire book or article as a single PostScript file. This can be
viewed by applications such as GhostScript, or printed by PostScript-compatible
printers. The file can also be turned into a PDF using (for example) the
&(ps2pdf)& command that comes as part of the GhostScript package.
.index "PDF bookmarks"
.index "PDF cross-references"
The PDF format supports bookmarks that are normally displayed in a sidebar, and
also clickable links within the document. Fortunately, there is a scheme for
including appropriate information in a PostScript file such that, when it is
turned into a PDF, bookmarks and clickable links are generated.
.index "&*-p*& option"
.index "&*-pf*& option"
Except when the output is restricted to specific pages by the &%-p%& or &%-pf%&
options, SDoP generates such information automatically, as follows:
.ilist
If a table of contents is being generated, bookmarks are created for chapters
and sections. It is possible, by making use of the &*toc_printed_sections*&
parameter (&R; &<<SECTtoc>>&), to include more entries in the PDF
bookmarks than are in the printed table of contents.
.next
If there are any &`<xref>`& items in the input, clickable links are generated
for their text.
.next
If an index is generated, the page numbers it contains are made into clickable
links.
.endlist
The last two facilities can be suppressed by setting the &*xref_links*&
parameter to &`no`&. The colour of these links is by default the same colour as
the surrounding text, but it can be explicitly specified by &*xref_rgb*&.
The complete output for a fully-featured book consists of the following sets of
pages:
.index "book" "title pages"
.olist
A title page and its reverse; this is output if there is a &`<book>`& element
that has an associated &`<title>`& element, or if a title is supplied in a
&`<bookinfo>`& element (&R; &<<SECTtitlepages>>&).
.next
A table of contents; this is omitted if it would be empty. The
&*toc_sections*&, &*toc_printed_sections*&, and &*index_headings_pdf_toc*&
parameters (&R; &<<SECTtoc>>&, &<<SECTindex>>&) control what is included.
.next
One or more `prefaces' (for example, a preface and a foreword), if present in
the input.
.next
The main body of the book; this is always output.
.next
One or more appendices, if present in the input.
.next
One or more indexes; these are output at the points where the &`<index>`&
elements appear in the document. However, an index is not generated if there
are no relevant &`<indexterm>`& elements.
.next
One or more colophons, if present in the input.
.endlist
You can mix multiple indexes, chapters, and appendices in an arbitrary order,
though this feature is rarely needed,
.index "article" "title material"
An article is similar to a single chapter of a book. The output for an article
does not have a title page or table of contents. The article's title material
appears at the top of the first body page. An article cannot contain prefaces,
indexes, or colophons. An appendix is treated as a new section, whereas in a
book it is treated as a new chapter.
.section "SDoP Errors"
.index "errors, in input"
Error and warning messages are written to the standard error stream. If there
are more than 40 warnings, subsequent ones are suppressed, with a message to
say this is happening. If there are more than 40 errors, processing is
abandoned. For some disastrous errors, processing is abandoned immediately.
Certain errors are not serious enough to stop processing of the input file, but
would cause problems if any output were attempted. A message is output to say
that nothing has been generated. In other error cases (for example, line length
overflow), as well as after warnings, output is generated, but a message is
written to say that it might be flawed.
The return code from SDoP is the system value EXIT_SUCCESS (usually zero) if
there have been no problems more serious than a warning; otherwise it is
EXIT_FAILURE (usually 1).
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Processing Instructions" "CHAPprocinst"
.index-from "ID1" "processing instructions"
XML allows for &'processing instructions'& to be embedded in sources. A
processing instruction is of the form shown in this example:
.code
<?sdop table_warn_overflow="never" toc_sections="yes,no"?>
.endd
After the initial &`<?`& the name of the application for which this instruction
is intended appears. All other applications that process the input should
completely ignore the item. SDoP pays attention only to those that start with
&`<?sdop`&.
.index "processing instructions" "parameter types"
A processing instruction can contain any number of parameter settings and may
extend over more than one line. Each parameter specifies a value as a quoted
string, the interpretation of which depends on the particular parameter. SDoP's
processing parameters are of three kinds:
.ilist
&'Preprocessing'& parameters modify the input before the main processing
takes place.
.next
&'Global'& parameters apply throughout the document. An example might be an
instruction about the format of the table of contents. SDoP scans the input
for these parameters early on. If the same parameter is set more than once, it
is the last value that is used.
.next
&'Local'& parameters are processed inline with the text. They apply only to
what follows. For example, the use of hyphenation can be turned on and off for
different parts of the document.
.endlist
There is one restriction on SDoP's processing instructions: they must not
appear between a &`<book>`& and a &`<bookinfo>`& element or between an
&`<article>`& and an &`<articleinfo>`& element.
.section "Including other files"
.index "including other files"
.index "files" "including"
A preprocessing instruction is available for including an external file at a
given point in the input. The format is:
.display
&`<?sdop include="`&&'filename'&&`"?>`&
.endd
This could be used to bring in an SDoP `style' definition (a collection of
processing instructions) that is held externally. The &(include)& instruction
is processed immediately after the main input has been read.
.section "Skipping parts of the input" "SECTskippart"
.index "input" "skipping parts of"
There is a facility for skipping parts of the input. At present this feature is
of little use outside the title templates (&R; &<<SECTtitlepages>>&,
&<<SECTarttitle>>&). There are two forms of conditional:
.display
&`<?sdop ifdef="`&&'name'&&`"?>`&
&'...lines of input...'&
&`<?sdop endif=""?>`&
&`<?sdop ifndef="`&&'name'&&`"?>`&
&'...lines of input...'&
&`<?sdop endif=""?>`&
.endd
In the first form, the intermediate lines are processed if an entity with the
given name exists and contains a non-empty string. The second form applies the
opposite condition. For example, a title page template might contain this:
.code
<?sdop ifdef="book_subtitle"?>
<row>
<entry>
<emphasis role="booktitle2">&book_subtitle;</emphasis>
</entry>
</row>
<?sdop endif=""?>
.endd
This example inserts a row containing the book's subtitle in the table that is
used for the title page, but only if a subtitle has been specified.
The conditional parameters are obeyed after extracting information from the
&`<bookinfo>`& or &`<article>`& element, if present, and after processing any
global instructions. They may be nested arbitrarily deep.
.section "Changing font styles" "SECTchfontstyle"
.index "fonts" "changing styles"
A number of parameters whose names end with &*_style*& make it easy to change
the styles of fonts that are used for certain DocBook elements, without
affecting other font features such as size or font family. For example, to
specify the style that is to be used for the text of &`<command>`& elements:
.code
<?sdop command_style="bold"?>
.endd
The recognized values that can be specified for these parameters are: &`bold`&,
&`bolditalic`&, &`italic`&, &`mono`&, &`monobold`&, &`monobolditalic`&,
&`monoitalic`&, and &`roman`&.
.section "Changing font families" "SECTchfontfam"
.index "fonts" "changing families"
The font families that are used by default are Times, Helvetica, and Courier.
These can be changed by the processing parameters &*serif_family*&,
&*sanserif_family*&, and &*monospace_family*&. For example:
.code
<?sdop serif_family="Palatino"
sanserif_family="AvantGarde"?>
.endd
However, the family specified must be one that SDoP knows about, so that it can
generate appropriate suffixes for bold, italic, and roman fonts. The currently
known families are: AvantGarde, Bookman, Courier, Helvetica, NewCenturySchlbk,
Palatino, Times, and Utopia.
.index "fonts" "metric files"
In addition, the font metric (AFM) files for the specific fonts must be
available in SDoP's shared data files (&R; &<<SECTmetrics>>&).
There is a facility for accessing characters from individual special fonts that
are not available in the standard families, for example a font of musical
characters. This uses an extension of the &`<emphasis>`& element (&R;
&<<SECTexotic>>&).
.section "Specifying fonts sizes and styles" "SECTchindfont"
.index "fonts" "specifying"
There are a number of processing parameters with names starting &*font_*& that
allow you to specify a font size and style for a specific type of text. For
example:
.code
<?sdop font_chapter="20,2,serif,bolditalic"?>
.endd
The first figure is the point size of the font, and the second is the
additional vertical spacing (leading) that is associated with the font. For
single fonts such as the one used for chapter titles, up to four
comma-separated values can be given, as in the example above. Omitting a value
leaves the related parameter unchanged. For example,
.code
<?sdop font_section="13"?>
.endd
sets the size of section titles, without changing the leading, family or
style. The third value must be &`serif`&, &`sanserif`&, or &`monospaced`&, and
the fourth must be the name of a font style (&R; &<<SECTchfontstyle>>&).
.section "Specifying font sets" "SECTchfontset"
.index "fonts" "specifying sets of"
Some &*font_*& parameters control sets of fonts. For example, &*font_main*&
defines the set of eight fonts (four normal, four monospaced) used for the main
text. In these cases only three values are used &-- and the third is in fact
ignored for the monospaced fonts. For example:
.code
<?sdop font_main="12,1,sanserif"?>
.endd
This specifies that the main text is to use 12-point, sanserif fonts, with 1
point of leading. There are also some parameters that affect only the
monospaced set of fonts, thus allowing them to be a different size (for
example). In these settings, the style should not be used, as it could lead to
weird effects.
.section "Overall scaling"
.index "fonts" "overall scaling"
A parameter called &*scale_typesize_base*& can be used to change all the font
sizes and leading by the same factor. The value is the font size for normal
text. For example:
.code
<?sdop scale_typesize_base="12"?>
.endd
The default size is 11 points, so the above example would multiple all fonts
sizes and leadings by 12/11. The scaling is applied after any individual size
changes specified by &*font_*& parameters. If you change the overall type
sizes, you might also need to change some of the indentation parameters.
.section "Dimensions"
.index "dimensions, format of"
Whenever a processing instruction sets a dimension (for example, the vertical
space for a page footer), the value must be given as a fixed-point number,
optionally followed by one of the abbreviations &`pt`& (points),
&`pc`& (picas), &`in`& (inches), &`mm`& (millimetres), or &`cm`& (centimetres).
If no units are given, points are assumed. For example:
.code
<?sdop foot_length="0.9in"?>
.endd
.section "Changing indentation" "SECTchindent"
.index "indent" "format for changing"
There are a number of processing parameters whose names end with &*_indent*&
that allow you to change the indentation for certain kinds of text. Up to three
dimensions can be given for most of them. For example:
.code
<?sdop blockquote_indent="1in,2cm,4pt"
.endd
The first dimension is the indent for the first lines of paragraphs; the second
applies to the remaining lines, and the third is an &'endent'&, that is, an
leftwards indent at the end of each line. The values may be negative, causing
text to stick out over the normal ends of lines. One parameter,
&*table_indent*&, has just a single dimension to set the indentation for
subsequent tables.
.section "Lists of parameters"
.index-from ID11 "processing instructions" "parameters, lists of"
The following sections list all the parameters that may be present in
processing instructions. Those that are marked as local can be used to apply
different values in different parts of the document, whereas the global
parameters set a single value for the whole document.
.subsection "Block quotations"
.vlist
.vitem "&*blockquote_indent*& (global)"
.index "block quotes" "changing parameters"
.index "indent" "block quotes"
This specifies the indentation parameters for block quotes (&R;
&<<SECTchindent>>&). The default value is &`"24,24,24"`&.
.vitem "&*blockquote_ruled*& (global)"
This specifies whether a block quote should be preceded and followed by
horizontal rules. The value must be &`yes`& or &`no`& (the default).
.vitem "&*blockquote_title_justify*& (global)"
This specifies the justification for block quote titles. The value must be
&`left`&, &`right`&, or &`centre`& (the default).
.endlist
.subsection "Chapters and sections"
.vlist
.vitem "&*chapter_skip_head*& (local)"
.index "chapter" "skipping page heading"
.index "page heading" "skipping at chapter start"
.index "heading, page" "skipping at chapter start"
The value of this parameter must be &`yes`& or &`no`& (default). When the value
is &`yes`&, page headings are omitted at the start of chapters. This parameter
must be set before the first chapter to which it applies. If this is in the
middle of the book, the best place is immediately before the relevant
&`<chapter>`& element.
.vitem "&*numbertitles*& (local)"
.index "title numbering, specifying"
The value of this parameter is split up into up to 10 comma-separated
substrings, each of which must be &`yes`& or &`no`&. If there are fewer than 10
substrings, the remainder are assumed to be &`no`&. The first substring
determines whether or not chapters are to be numbered. The remaining substrings
control sections, subsections, subsubsections, etc. By default, only chapters,
sections, and subsections are numbered in a book. In an article, there is no
numbering by default. You can change this by setting this parameter, and it
works even if the setting precedes the &`<article>`& element.
.endlist
.subsection "Cross-references"
.vlist
.vitem "&*xref_links*& (global)"
.index "cross-references" "clickable links"
The value of this parameter must be &`yes`& (default) or &`no`&. If it is set
to &`no`&, information for generating clickable links for cross-references and
index page numbers in a PDF is not included in the PostScript output. Note that
the use of the &%-p%& and &%-pf%& command line options also suppresses this
output.
.vitem "&*xref_rgb*& (global)"
.index "cross-references" "colour of links"
.index "colour" "cross-reference links"
This parameter specifies the colour of the text of cross-references and index
page numbers that are made into clickable links when the output is converted to
a PDF. For example:
.code
<?sdop xref_rgb="0,0,1"?>
.endd
The value of the parameter is a red-green-blue triple of values between 0 and
1; the above example sets the colour to blue. If this parameter is not set, the
text colour is determined in the same way as normal text (&R;
&<<SECTcolour>>&).
.endlist
.subsection "Examples in the text"
.vlist
.vitem "&*example_number_format*& (local)"
.index "example" "format of numeration"
This parameter controls the format of example numbers that are (optionally)
added to example titles, and can also be inserted as cross-references. The
value is a string that can contain up to two instances of &`%s`&. If there is
just one, the example number, counting from the start of the document, is
inserted. If there are two, the first is replaced by the chapter number, and
the second by the example number, counting from the start of the chapter. The
default setting is &`%s-%s`&, leading to example numbers of the form &`2-7`&.
.vitem "&*example_title_format*& (local)"
.index "example" "format of title"
This parameter controls the format of example titles. Its value is inserted
before the text given in the &`<title>`& elelment of a example. The string may
contain a single instance of &`%s`&, which is is replaced by the example number,
in the format defined by &*example_number_format*&. The default setting is the
string &`Example`& &`%s:`& followed by a terminating space.
.vitem "&*example_title_justify*& (local)"
The value of this parameter specifies how example titles are formatted. Its
value must be one of the words &`left`&, &`right`&, &`centre`& (or &`center`&),
or &`both`&, with the default being &`centre`&. If a example contains a
&`<mediaobject>`&, its alignment is taken as the example's alignment. Otherwise
the example is assumed to be left justified.
.vitem "&*example_title_width*& (local)"
This parameter controls the width of example titles. Text that is longer than
the width is split into multiple lines. The default is to take the width of a
&`<mediaobject>`& if available, otherwise the page width. The value may be an
absolute dimension, or the word &`object`&, signifying the default.
.endlist
.subsection "Figures in the text" "SECTfigure"
.vlist
.vitem "&*figure_number_format*& (local)"
.index "figures" "format of numeration"
This parameter controls the format of figure numbers that are (optionally)
added to figure titles, and can also be inserted as cross-references. The value
is a string that can contain up to two instances of &`%s`&. If there is just
one, the figure number, counting from the start of the document, is inserted.
If there are two, the first is replaced by the chapter number, and the second
by the figure number, counting from the start of the chapter. The default
setting is &`%s-%s`&, leading to figure numbers of the form &`4-5`&.
.vitem "&*figure_title_format*& (local)"
.index "figures" "format of titles"
This parameter controls the format of figure titles. Its value is inserted
before the text given in the &`<title>`& element of a figure. The string may
contain a single instance of &`%s`&, which is is replaced by the figure number,
in the format defined by &*figure_number_format*&. The default setting is the
string &`Figure`& &`%s:`& followed by a terminating space.
.vitem "&*figure_title_justify*& (local)"
The value of this parameter specifies how figure titles are formatted. Its
value must be one of the words &`left`&, &`right`&, &`centre`& (or &`center`&),
or &`both`&, with the default being &`centre`&. If a figure contains a
&`<mediaobject>`&, its alignment is taken as the figure's alignment. Otherwise
the figure is assumed to be left justified. The title is formatted and
positioned in relation to the figure, according to the value of
&*figure_title_justify*&. For example, if the figure is left aligned and the
title is centred, it is centred with the figure if possible (it may not be
possible for an overlong title), not with the page.
.vitem "&*figure_title_width*& (local)"
This parameter controls the width of figure titles. Text that is longer than
the width is split into multiple lines. The default is to take the width of a
&`<mediaobject>`& if available, otherwise the page width. The value may be an
absolute dimension, or the word &`object`&, signifying the default. For many
figures the default works well. However, for small figures it may be necessary
to specify a width that is greater than the width of the figure.
.endlist
.subsection "Font specification" "SECTfontspec"
.index-from "ID2" "font-specifying parameters" "list of"
The local parameters in this section should not be changed within a footnote.
.vlist
.vitem "&*command_style*& (global)"
This sets the style of font to be used for &`<command>`& elements (&R;
&<<SECTchfontstyle>>&). The default is italic.
.vitem "&*font_blockquote_title*& (global)"
This specifies the font for blockquote titles. The default value is
&`"11,1,serif,bold"`&.
.vitem "&*font_booktitle1*& (global)" "&*font_booktitle2*& (global)" &&&
"&*font_booktitle3*& (global)" "&*font_booktitle4*& (global)"
.index "book" "title pages, fonts for"
These four parameters specify the fonts that can be used for different levels
of title on book title pages (&R; &<<SECTchindfont>>&). The defaults are all
sanserif bold, with respective sizes and leading &`"24,2"`&, &`"18,1.5"`&,
&`"15,1.25"`&, and &`"13,1"`&.
.vitem "&*font_chapter*& (global)"
.index "chapter" "font for title"
This specifies the font for chapter titles, which is also used for article
titles. The default value is &`"16,0,sanserif,bold"`&.
.vitem "&*font_chapter_subtitle*& (global)"
This specifies the font for chapter subtitles, which is also used for article
subtitles. The default value is &`"12,0,sanserif,bold"`&.
.vitem "&*font_figure_title*& (global)"
.index "figures" "font for titles"
This specifies the font for figure titles. The default value is
&`"11,1,serif,italic"`&.
.vitem "&*font_footnote*& (global)"
.index "footnotes" "fonts for"
This specifies the set of eight fonts that are used for footnotes (&R;
&<<SECTchfontset>>&). The default value is &`"9,1,serif"`&.
.vitem "&*font_footnotemono*& (global)"
This specifies just the set of four monospaced fonts that are used for
footnotes. The default value is &`"9,1"`&.
.vitem "&*font_formalpara_title*& (global)"
.index "formal paragraphs" "font for titles"
This specifies the font for formal paragraph titles. The default value is
&`"11,1,serif,bold"`&.
.vitem "&*font_headfoot*& (global)"
.index "heads and feet" "fonts, specifying"
This specifies the set of eight fonts that are used in heads and feet. The
default value is &`"11,1,serif"`&.
.vitem "&*font_headfootmono*& (global)"
This specifies just the set of four monospaced fonts that are used for
heads and feet. The default value is &`"11,1"`&.
.vitem "&*font_ilist_tag*& (local)"
This specifies the font that is used for the `tags' in subsequent idenfified
lists. The default value is whatever is set for &*font_main*&; the style can
also be changed by &*ilist_tag_style*&.
.vitem "&*font_index*& (global)"
.index "index" "fonts"
This specifies the set of eight fonts that are used for the text in indexes.
The default is &`"9.6,1,serif"`&.
.vitem "&*font_index_section*& (global)"
This specifies the font that is used for `section titles' in indexes. The
default is &`"11.5,0,sanserif,bold"`&.
.vitem "&*font_indexmono*& (global)"
This specifies just the set of four monospaced fonts that are used for the text
in indexes. The default is &`"9.6,1"`&.
.vitem "&*font_main*& (global)"
.index "fonts" "main text"
This specifies the set of eight fonts that are used for the main body text. The
default is &`"11,1,serif"`&.
.vitem "&*font_mainmono*& (global)"
This specifies just the set of four monospaced fonts that are used for the main
body text. The default is &`"11,1"`&.
.vitem "&*font_note_title*& (global)"
.index "note" "title, fonts for"
This specifies the font for note titles. The default value is
&`"11,1,serif,italic"`&.
.vitem "&*font_olist_tag*& (local)"
This specifies the font that is used for the `tags' in subsequent ordered
lists. The default value is whatever is set for &*font_main*&; the style can
also be changed by &*olist_tag_style*&.
.vitem "&*font_section*& (global)"
.index "section titles, fonts for"
This specifies the font that is used for top-level section titles. The default
is &`"13,0,sanserif,bold"`&.
.vitem "&*font_subsection*& (global)"
.index "subsection titles, fonts for"
This specifies the font that is used for section titles other than those at the
top level. The default is &`"11,0,sanserif,bold"`&.
.vitem "&*font_sidebar_title*& (global)"
.index "sidebar" "title, fonts for"
This specifies the font for sidebar titles. The default value is
&`"11,1,serif,bold"`&.
.vitem "&*font_small_main*& (global)"
.index "fonts" "small main text"
This specifies the set of eight fonts that are used for `small' main body
text (&R; &<<SECTsmallfont>>&). The default is &`"9,1,serif"`&.
.vitem "&*font_small_mainmono*& (global)"
This specifies just the set of four monospaced fonts that are used for
`small' main body text (&R; &<<SECTsmallfont>>&). The default is &`"9,1"`&.
.vitem "&*font_table_title*& (global)"
.index "tables" "titles, fonts for"
This specifies the font for table titles. The default value is
&`"11,1,serif,italic"`&.
.vitem "&*font_title*& (global)"
.index "book" "title pages, fonts for"
This specifies the set of eight fonts that are used for any text that appears
on title pages, except where such text is explicitly marked as being in a title
font by the use of &`<emphasis>`& (&R; &<<SECTtitlepages>>&). Normally the
fonts set by &*font_title*& are used for general information on the reverse of
a title page. The default value is &`"11,1,serif"`&.
.vitem "&*font_title_section*& (global)"
This specifies the font that is used for any section headings on title pages.
These might be used to separate information on the reverse of a title page.
The default value is &`"11.5,0,sanserif,bold"`&.
.vitem "&*font_titlemono*& (global)"
This specifies just the set of four monospaced fonts that are used for text on
title pages. The default value is &`"11,1"`&.
.vitem "&*font_toc*& (global)"
.index "table of contents" "fonts for"
This specifies the set of eight fonts that are used for the text of the table
of contents. The default value is &`"11,1,sanserif"`&.
.vitem "&*font_toc_fill*& (global)"
This specifies the font that is used for the `filler' in table of contents
lines. The default value is &`"11,0,serif,roman"`&.
.vitem "&*font_tocmono*& (global)"
This specifies just the set of four monospaced fonts that are used for text in
tables of contents. The default value is &`"11,0"`&.
.vitem "&*function_style*& (global)"
This sets the style of font to be used for &`<function>`& elements (&R;
&<<SECTchfontstyle>>&). The default is italic.
.vitem "&*ilist_tag_rgb*& (local)"
.index "itemized list" "tag colour"
.index "colour" "itemized list tag"
This specifies the colour of the tags for itemized lists (default black). The
value is a comma-separated triple of red-green-blue values in the range 0 to 1.
.vitem "&*ilist_tag_style*& (local)"
.index "itemized list" "tag font style"
This parameter sets the font style (&R; &<<SECTchfontstyle>>&) for the
identification `tags' on each item of an itemized list. The default is
taken from &*font_main*&, and can also be changed by &*font_ilist_tag*&.
.vitem "&*monospace_family*& (global)"
The value of this parameter must be the name of one of the known font families
(&R; &<<SECTchfontfam>>&). The default is Courier. It is used for monospaced
text. The results are unpredictable if the fonts are not in fact monospaced.
.vitem "&*olist_tag_rgb*& (local)"
.index "ordered list" "tag colour"
.index "colour" "ordered list tag"
This specifies the colour of the tags for ordered lists (default black). The
value is a comma-separated triple of red-green-blue values in the range 0 to 1.
.vitem "&*olist_tag_style*& (local)"
.index "ordered list" "tag font style"
This parameter sets the font style (&R; &<<SECTchfontstyle>>&) for the
numeration on each item of an ordered list. The default is taken from
&*font_main*&, and can also be changed by &*font_olist_tag*&.
.vitem "&*option_style*& (global)"
This sets the style of font to be used for &`<option>`& elements (&R;
&<<SECTchfontstyle>>&). The default is bold.
.vitem "&*replaceable_style*& (global)"
This sets the style of font to be used for &`<replaceable>`& elements (&R;
&<<SECTchfontstyle>>&). The default is italic.
.vitem "&*sanserif_family*& (global)"
.index "fonts" "sanserif family"
The value of this parameter must be the name of one of the known font families
(&R; &<<SECTchfontfam>>&). The default is Helvetica.
.vitem "&*scale_typesize_base*& (global)"
.index "fonts" "scaling"
This parameter can be used to scale all the font sizes at once. The value is a
point size for `normal' text. For example:
.code
<?sdop scale_typesize_base="13"?>
.endd
This changes the normal font size from 11 to 13 points, and scales other fonts
(for chapter titles, etc.) in proportion. This scaling is applied after
specific font sizes have been set up by the &*font_*&&'xxx'& parameters. It is
useful for making small adjustments to the default font sizes; if the change is
large, you may have to adjust other spacing such as the indents.
.vitem "&*serif_family*& (global)"
.index "fonts" "serif family"
The value of this parameter must be the name of one of the known font families
(&R; &<<SECTchfontfam>>&). The default is Times.
.vitem "&*userinput_style*& (global)"
This sets the style of font to be used for &`<userinput>`& elements (&R;
&<<SECTchfontstyle>>&). The default is monospaced.
.vitem "&*varname_style*& (global)"
This sets the style of font to be used for &`<varname>`& elements (&R;
&<<SECTchfontstyle>>&). The default is italic.
.endlist
.index-to "ID2"
.subsection "Heads and feet" "SECTheadfoot"
.vlist
.vitem "&*foot_centre_recto*& (local)" "&*foot_centre_verso*& (local)" &&&
"&*foot_left_recto*& (local)" "&*foot_left_verso*& (local)" &&&
"&*foot_right_recto*& (local)" "&*foot_right_verso*& (local)"
.index "heads and feet" "text for, main pages"
These parameters set texts for use in page footers on righthand (recto) and
lefthand (verso) pages (&R; &<<SECThandf>>&). The default value for the two
centre parameters is &`"&&arabicpage;"`&, which inserts an arabic page number.
The others default to empty strings. You normally need to force a new page
before changing footer contents in the middle of a document.
.vitem "&*foot_length*& (global)"
.index "heads and feet" "vertical space"
This sets the amount of vertical space that is reserved for the footer at the
bottom of each page. The default is 24 points.
.vitem "&*head_centre_recto*& (local)" "&*head_centre_verso*& (local)" &&&
"&*head_left_recto*& (local)" "&*head_left_verso*& (local)" &&&
"&*head_right_recto*& (local)" "&*head_right_verso*& (local)"
These parameters set texts for use in page headers on righthand (recto) and
lefthand (verso) pages (&R; &<<SECThandf>>&). They all default to empty
strings.
.vitem "&*head_length*& (global)"
This sets the amount of vertical space that is reserved for the header at the
top of each page. The default is zero, which causes no header to be output.
.vitem "&*preface_foot_centre_recto*& (local)" &&&
"&*preface_foot_centre_verso*& (local)" &&&
"&*preface_foot_left_recto*& (local)" &&&
"&*preface_foot_left_verso*& (local)" &&&
"&*preface_foot_right_recto*& (local)" &&&
"&*preface_foot_right_verso*& (local)"
.index "heads and feet" "text for, preface pages"
These parameters set texts for use in preface page footers on righthand (recto)
and lefthand (verso) pages (&R; &<<SECThandf>>&). The default value for the two
centre parameters is &`"&&romanpage;"`&, which inserts an roman page number.
The others default to empty strings. You normally need to force a new page
before changing footer contents in the middle of a document.
.vitem "&*preface_head_centre_recto*& (local)" &&&
"&*preface_head_centre_verso*& (local)" &&&
"&*preface_head_left_recto*& (local)" &&&
"&*preface_head_left_verso*& (local)" &&&
"&*preface_head_right_recto*& (local)" &&&
"&*preface_head_right_verso*& (local)"
These parameters set texts for use in preface page headers on righthand (recto)
and lefthand (verso) pages (&R; &<<SECThandf>>&). They all default to empty
strings.
.endlist
.subsection "Indexes" "SECTindex"
.vlist
.vitem "&*index_headings*& (local)"
.index "index" "disabling headings"
The value of this parameter must be &`yes`& (default) or &`no`&. The default is
to insert headings into indexes when the leading letter of the entries changes,
unless every entry starts with the same character. No headings are inserted if
the value is &`no`&. These headings never appear in a printed table of
contents, but they may be present in PDF tables of contents (see next
parameter).
.vitem "&*index_headings_pdf_toc*& (local)"
.index "index" "headings in PDF table of contents"
The value of this parameter must be &`yes`& or &`no`& (default). It is
inspected only if &*index_headings*& is is set and a table of contents is being
created. If it is &`yes`&, entries for each index heading (change of letter)
are created for a PDF table of contents.
.vitem "&*index_sort_omit*& (global)"
.index "index" "sort, omitting characters"
This specifies a list of characters that are to be ignored when sorting index
entries. The default is to ignore the `break permitted here' (U+0082), `no
break here' (U+0083), zero-width space (U+200B) and opening and
closing double quote (U+201C and U+201D) characters. Setting this parameter
completely replaces the list of characters.
.code
<?sdop index_sort_omit="[]*‘"?>
.endd
This example ignores only square brackets, asterisk, and opening single quote.
As the example shows, you can use entity names in the list. However, only those
entities that represent a single character are permitted.
.endlist
.subsection "Lists: itemized, ordered and variable"
Parameters for specifying the colour and font style for itemized and ordered
list `tags' are described in the section on fonts (&R; &<<SECTfontspec>>&).
The parameters in this section should not be changed within a footnote.
.vlist
.vitem "&*ilist_indent*& (global)"
.index "itemized list" "indent"
.index "indent" "itemized lists"
This specifies the indent parameters for itemized lists (&R;
&<<SECTchindent>>&). The default value is &`"12,12,0"`&.
.vitem "&*olist_format*& (local)"
.index "ordered list" "format of numeration"
The value of this parameter controls what is printed when numbering an ordered
list. The format of item numbers is controlled by the &%numeration%& attribute
of the &`<orderedlist>`& element &-- this parameter controls the additional
characters (for example, punctuation) that are added. It may contain entity
names, and must contain &`%s`& at the point where the item number is to be
inserted. The default value is &`(%s)`&, which outputs the number in
parentheses. The font style for the whole string can be specified by the
&*olist_style*& parameter.
.vitem "&*olist_indent*& (global)"
.index "ordered list" "indent"
.index "indent" "ordered lists"
This specifies the indent parameters for ordered lists (&R;
&<<SECTchindent>>&). The default value is &`"24,24,0"`&.
.vitem "&*vlist_indent*& (global)"
.index "variable list" "indent"
.index "indent" "variable lists"
This sets the indent parameters for the paragraphs in a variable list (&R;
&<<SECTchindent>>&). The default is &`"14,14,0"`&.
.vitem "&*vlist_term_indent*& (global)"
.index "variable list" "term indent"
.index "indent" "variable list terms"
This sets the indent parameters for &`<term>`& items within a variable list
(&R; &<<SECTchindent>>&). The default is &`"0,0,0"`&.
.vitem "&*vlist_title_indent*& (global)"
.index "variable list" "title indent"
.index "indent" "variable list titles"
This sets the indent parameters for the title of a variable list (&R;
&<<SECTchindent>>&). The default is &`"0,0,0"`&.
.endlist
.subsection "Literal blocks" "SECTliteral"
.vlist
.vitem "&*literal_indent*& (global)"
.index "literal layout indent"
.index "indent" "literal blocks"
This specifies the indent parameters for blocks of literal text (&R;
&<<SECTchindent>>&). The default value is &`"12,12,0"`&.
.vitem "&*literal_indent_fudge*& (global)"
The value of this parameter must be &`yes`& (default) or &`no`&. It controls
the handling of lines within &`<literallayout>`& elements. If this facility is
turned on, and there is a common indent for every line, it is removed. For
example:
.code
<literallayout>
abcd efgh
ijkl
</literallayout>
.endd
is treated as if it were:
.code
<literallayout>
abcd efgh
ijkl
</literallayout>
.endd
This feature exists because SDoP automatically indents literal blocks within
other indented items such as lists, whereas some other DocBook processors do
not. Input that was created for other processors may therefore contain explicit
indents that are not needed for SDoP and which, if heeded, lead to excessive
indentation.
.endlist
.subsection "Notes"
.vlist
.vitem "&*note_indent*& (global)"
.index "note" "indent"
.index "indent" "notes"
.index "note" "parameters"
This specifies the indentation parameters for notes (&R;
&<<SECTchindent>>&). The default value is &`"24,24,24"`&.
.vitem "&*note_ruled*& (global)"
This specifies whether a note should be preceded and followed by
horizontal rules. The value must be &`yes`& or &`no`& (the default).
.vitem "&*note_title_justify*& (global)"
This specifies the justification for note titles. The value must be
&`left`&, &`right`&, or &`centre`& (the default).
.endlist
.subsection "Page layout"
.index-from "ID12" "page" "layout parameters"
.vlist
.vitem "&*format*& (local)"
.index "new page, forcing"
.index "page" "forcing new"
The only recognized value for this parameter at present is &`newpage`&. It
forces a new page in the output.
.vitem "&*main_even_pages*& (global)"
.index "page" "padding"
The value of this parameter must be &`yes`& or &`no`& (default). If it is set
to &`yes`&, SDoP ensures that the main body of the output fills an even number
of pages, adding a blank page at the end if necessary.
.vitem "&*margin_bottom*& (global)"
.index "margin" "bottom of page"
This specifies the amount of space at the bottom of each page. The default is
60 points (a bit less than an inch).
.vitem "&*margin_left_recto*& (global)"
.index "margin" "left of page"
This specifies the amount of space at the lefthand side of righthand pages. The
default is 72 points (one inch).
.vitem "&*margin_left_verso*& (global)"
This specifies the amount of space at the lefthand side of lefthand pages. The
default is 72 points (one inch).
.vitem "&*page_columns*& (local)"
.index "columns, specifying"
This parameter sets the number of columns on the page (default 1). It is used
automatically to print indexes in two columns, and that is the main use for
which it was implemented. It is not a very sophisticated implementation. A page
break is forced if the number of columns is changed when text is currently
being formatted into a column other than the first.
.vitem "&*page_column_separation*& (local)"
This parameter specifies the separation between multiple columns on the page.
The default value is 16 points.
.vitem "&*page_foot_line_width*& (global)"
.index "heads and feet" "line width"
This specifies the width of lines in footers at the bottom of each page. The
default is the value of &*page_line_width*&.
.vitem "&*page_full_length*& (global)"
.index "page" "length"
This specifies the full length of the page that is used for printing, including
any heads and feet. The default is 720 points (10 inches).
.vitem "&*page_head_line_width*& (global)"
This specifies the width of lines in headers at the top of each page. The
default is the value of &*page_line_width*&.
.vitem "&*page_line_width*& (global)"
.index "page" "width"
This specifies the width of lines on the page. The default is 450 points (6.25
inches).
.vitem "&*paper_size*& (global)"
.index "paper size"
.index "PostScript" "/PageSize setting"
If this parameter is set, it causes a &`/PageSize`& setting to be included in
the PostScript. It is not necessary for normal output, but can be useful if
SDoP is used to make a PDF for a slideshow (see chapter &<<CHAPslides>>&). The
value must be two numbers &'in points'&, separated by the letter &`x`&. For
example:
.code
<?sdop paper_size="900x660"?>
.endd
The first number specifies the width and the second the depth.
.endlist
.index-to "ID12"
.subsection "Paragraphs"
.vlist
.vitem "&*formalpara_indent*& (global)"
.index "formal paragraphs" "indent"
.index "indent" "formal paragraphs"
This specifies the indent parameters for formal paragraphs (&R;
&<<SECTchindent>>&). The default value is &`"0,0,0"`&.
.vitem "&*para_indent*& (global)"
.index "paragraph indent"
.index "indent" "paragraphs"
This specifies the indent parameters for normal paragraphs (&R;
&<<SECTchindent>>&). The default value is &`"0,0,0"`&.
.endlist
.subsection "Side bars"
.vlist
.vitem "&*sidebar_indent*& (global)"
.index "sidebar" "indent"
.index "indent" "sidebars"
.index "sidebar" "parameters"
This specifies the indentation parameters for sidebars (&R;
&<<SECTchindent>>&). The default value is &`"24,24,24"`&.
.vitem "&*sidebar_ruled*& (global)"
This specifies whether a sidebar should be preceded and followed by
horizontal rules. The value must be &`yes`& or &`no`& (the default).
.vitem "&*sidebar_title_justify*& (global)"
This specifies the justification for sidebar titles. The value must be
&`left`&, &`right`&, or &`centre`& (the default).
.endlist
.subsection "Subscripts and superscripts" "SECTsubsuper"
.vlist
.vitem "&*subscript_small*& (local)"
.index "subscripts" "font size"
If the value of this parameter is &`yes`& (the default), subscripts are printed
in a small font. At present, the footnote font is used for this. If the value
is &`no`&, subscripts are printed at normal size. This parameter is ignored
when printing titles; the title font is always used.
.vitem "&*subscript_down*& (local)"
.index "subscripts" "position of"
The value of this parameter must be a number in the range 1&--127. It specifies
the percentage of the line depth by which subscripts are lowered. The default
value is 33.
.vitem "&*superscript_small*& (local)"
.index "superscripts" "font size"
If the value of this parameter is &`yes`& (the default), superscripts are
printed in a small font. At present, the footnote font is used for this. If the
value is &`no`&, superscripts are printed at normal size. This parameter is
ignored when printing titles; the title font is always used.
.vitem "&*superscript_up*& (local)"
.index "superscripts" "position of"
The value of this parameter must be a number in the range 1&--127. It specifies
the percentage of the line depth by which superscripts are raised. The default
value is 33.
.endlist
.subsection "Tables in the text" "SECTintexttables"
.vlist
.vitem "&*table_indent*& (local)"
.index "tables" "indentation"
.index "indent" "tables"
This parameter's data is a single dimension that specifies an indent for all
subsequent tables in the document.
.vitem "&*table_number_format*& (local)"
.index "tables" "numeration"
This parameter controls the format of table numbers that are (optionally) added
to table titles, and can also be inserted as cross-references. The value is a
string that can contain up to two instances of &`%s`&. If there is just one,
the table number, counting from the start of the document, is inserted. If
there are two, the first is replaced by the chapter number, and the second by
the table number, counting from the start of the chapter. The default setting
is &`%s-%s`&, leading to table numbers of the form &`2-7`&.
.vitem "&*table_title_format*& (local)"
.index "tables" "title format"
This parameter controls the format of table titles. Its value is inserted
before the text given in the &`<title>`& elelment of a table. The string may
contain a single instance of &`%s`&, which is is replaced by the table number,
in the format defined by &*table_number_format*&. The default setting is the
string &`Table`& &`%s:`& followed by a terminating space.
.vitem "&*table_title_justify*& (local)"
The value of this parameter specifies how table titles are formatted. Its value
must be one of the words &`left`&, &`right`&, &`centre`& (or &`center`&), or
&`both`&, with the default being &`left`&. The title is formatted and
positioned in relation to the table. For example, if the title is centred, it
is centred with the table if possible (it may not be possible for an overlong
title), not with the page.
.vitem "&*table_title_width*& (local)"
This parameter controls the width of table titles. Text that is longer than the
width is split into multiple lines. The default is the width of the table. The
value may be an absolute dimension, or the word &`object`&, signifying the
default.
.vitem "&*table_warn_overflow*& (local)"
.index "tables" "cell overflow warnings"
This parameter controls what happens when a cell in a table overflows (&R;
&<<SECTtables>>&). Text in table cells can be split into multiple lines if it
contains any splitting points; the overflow case occurs when the text cannot be
split. The value of this parameter must be &`always`& (default), &`never`&, or
&`overprint`&. In the default case, a cell overflow is a hard error, and a
warning message is always output. Conversely, if &`never`& is specified, the
overflow is ignored.
If the value is &`overprint`&, a warning is generated only when the overflow
actually causes overprinting of the contents of an adjacent cell, or of a
separator (vertical line) between the two cells. In other words, when there is
no cell separator, one cell may overflow into the next, provided that its text
does not actually overprint the adjacent cell's text.
.endlist
.subsection "Table of contents" "SECTtoc"
.index-from "ID3" "table of contents" "parameters"
.vlist
.vitem "&*toc_chapter_blanks*& (global)"
The value of this parameter controls the spacing around chapter entries in the
table of contents. It consists of two &`yes`&/&`no`& substrings, separated by a
comma. The default value is:
.code
<?sdop toc_chapter_blanks="yes,yes"?>
.endd
If the first substring is &`yes`&, a blank line is inserted before each chapter
line in the table of contents, except for the first chapter. If the second
substring is &`yes`& a blank line is inserted before the first section line
that follows a chapter line. Missing substrings are interpreted as &`no`&.
.vitem "&*toc_even_pages*& (global)"
The value of this parameter must be &`yes`& (default) or &`no`&. If it is set
to &`yes`&, SDoP ensures that the table of contents fills an even number of
pages, adding a blank page at the end if necessary.
.vitem "&*toc_fill_leftspace*& (global)"
The value of this parameter is a dimension (default 2 points). It specifies the
amount of space to leave after an entry in the table of contents before
starting the `filler' sequence (typically a row of dots).
.vitem "&*toc_fill_rightspace*& (global)"
The value of this parameter is a dimension (default 4 points). It specifies the
amount of space to leave after the `filler' sequence in an entry in the table
of contents, immediately before the page number.
.vitem "&*toc_fill_string*& (global)"
The value of this parameter is a literal string (default &`"."`&). It specifies
the string that is replicated to create the `filler' in table of contents
lines.
.vitem "&*toc_foot_centre_recto*& (global)" &&&
"&*toc_foot_centre_verso*& (global)" &&&
"&*toc_foot_left_recto*& (global)" &&&
"&*toc_foot_left_verso*& (global)" &&&
"&*toc_foot_right_recto*& (global)" &&&
"&*toc_foot_right_verso*& (global)"
.index "heads and feet" "text for, contents pages"
These parameters set texts for use in table of contents page footers on
righthand (recto) and lefthand (verso) pages (&R; &<<SECThandf>>&). The default
value for the two centre parameters is &`"&&romanpage;"`&, which inserts an
roman page number. The others default to empty strings. These are global
processing parameters because there is no way of changing them in the middle
of a table of contents.
.vitem "&*toc_head_centre_recto*& (global)" &&&
"&*toc_head_centre_verso*& (global)" &&&
"&*toc_head_left_recto*& (global)" &&&
"&*toc_head_left_verso*& (global)" &&&
"&*toc_head_right_recto*& (global)" &&&
"&*toc_head_right_verso*& (global)"
These parameters set texts for use in table of contents page headers on
righthand (recto) and lefthand (verso) pages (&R; &<<SECThandf>>&). They all
default to empty strings. These are global processing parameters because
there is no way of changing them in the middle of a table of contents.
.vitem "&*toc_line_chapter_strings*& (global)"
The value of this parameter is split into six, comma-separated substrings. They
control the format of lines in the table of contents that refer to chapters. If
a literal comma is required in one of the substrings, it must be preceded by an
ampersand. Here is a totally unrealistic example (a realistic one would be too
wide for the page):
.code
<?sdop toc_line_chapter_strings="A&,A,BB,CC,DD,EE,FF"?>
.endd
The six strings are used to construct the table of contents line as follows:
.ilist
The first string is always used at the start of the line;
.next
If chapter numbers are being included in the table of contents, the second
string is inserted, followed by the chapter number and the third string. If
chapter numbers are not being included, the second and third strings are
ignored.
.next
Then come the chapter title and the fourth string.
.next
At this point, a suitable number of copies of the filler string, as defined by
&*toc_fill_string*&, are inserted.
.next
The line ends with the fifth string, the page number, and finally the sixth
string.
.endlist
The default values for the strings are:
.itable none 0 0 3 10pt left 196pt left 244pt left
.row "" "&`<emphasis role='bold'>`&" "Start of line"
.row "" "(&'empty'&)" "Before chapter number"
.row "" "&`.& & `&" "After chapter number"
.row "" "&`</emphasis>`&" "After title"
.row "" "&`<emphasis role='bold'>`&" "Before page number"
.row "" "&`</emphasis>`&" "After page number"
.endtable
The entity &`& `& is a `non-breaking space', that is, it is a space that
is treated as if it were a printing character.
.vitem "&*toc_line_sect1_strings*& (global)"
The value of this parameter is treated in the same way as
&*toc_line_chapter_strings*&, except that it applies to first-level section
lines in the table of contents. The default values for the strings are:
.itable none 0 0 3 10pt left 196pt left 244pt left
.row "" "&`& & & & `&" "Start of line"
.row "" "(&'empty'&)" "Before section number"
.row "" "&`& & `&" "After section number"
.row "" "(&'empty'&)" "After title"
.row "" "(&'empty'&)" "Before page number"
.row "" "(&'empty'&)" "After page number"
.endtable
.vitem "&*toc_line_sect2_strings*& (global)"
The value of this parameter is treated in the same way as
&*toc_line_chapter_strings*&, except that it applies to second-level
(subsection) and any lower level section lines in the table of contents. The
default values for the strings are the same as for first-level sections, except
that the initial indent is eight spaces rather than four.
.vitem "&*toc_printed_sections*& (local)"
.index "table of contents" "specifying what is printed"
.index "PDF bookmarks"
This parameter works in conjunction with &*toc_sections*&. Its default value is
the same as for &*toc_sections*&, and it is altered whenever &*toc_sections*&
is changed. If you want &*toc_&B;printed_&B;sections*& to be different, you
must set it after setting &*toc_sections*& (each time, if there is more than
one setting). The value of &*toc_printed_sections*& is in the same format as
&*toc_sections*&, but it can only specify fewer items. This makes it possible
to limit the table of contents that is printed (that is, forms part of the
document's text), while at the same time retaining a more comprehensive version
in the output file for conversion to a PDF table of bookmarks. For example:
.code
<?sdop toc_sections="yes,yes,yes,no"
toc_printed_sections="yes,yes,no"?>
.endd
This example restricts the printed table of contents to chapters and sections,
but includes subsections as well in a PDF version.
.vitem "&*toc_sections*& (local)"
.index "table of contents" "specifying what is included"
The value of this parameter must be a sequence of up to 10 comma-separated
substrings. It controls which parts of the document are to be listed in the
table of contents. As it is a local processing parameter, the choice can be
different in different parts of the document. For example, you can include
section titles in the table of contents in the body of the book, but not for
the preface. If you set &*toc_sections*& without setting
&*toc_printed_sections*&, the selection applies both to what is printed, and to
what is included in the online bookmarks if the output is converted to PDF.
The first substring applies to chapters and chapter-like parts such as
appendices. Subsequent substrings apply to successive levels of nested
sections, until one of them is &`no`&. If the first value is &`no`&, no table
of contents is output. In this case, no bookmark information is available in
the PostScript, so if it is converted to PDF, there is no PDF table of
bookmarks either.
There are two default values, one for prefaces, and one for the body of the
document. For prefaces, the default is:
.code
<?sdop toc_sections="yes,no"?>
.endd
That is, only the preface title is included by default in the table of
contents. Any sections within the preface are omitted. For the rest of the
document, the default value is:
.code
<?sdop toc_sections="yes,yes,yes,no"?>
.endd
This includes chapters, sections, and subsections, but nothing deeper.
The way settings of this parameter are processed is as follows:
.ilist
Before processing the prefaces, the preface default is set. A setting
that precedes the first preface can be used to override the default. Thus,
for example, if you have &`<?sdop toc_sections="no"?>`& before the first
preface, it will not be included in the table of contents. Subsequent settings
that are within the prefaces apply to the following preface material.
.next
After the prefaces have been processed, the body default is set. A setting that
precedes the first preface again overrides this, but settings that are within
the prefaces are now ignored. The preface material is skipped, and the rest of
the document is processed. Subsequent settings apply to the body material that
follows them.
.endlist
Note in particular that a setting preceding the first preface applies both to
the preface and to the main body of the document. If you want something
different for the body, you must include another setting after the prefaces.
.vitem "&*toc_title*& (global)"
The value of this parameter is used as the title for the table of contents. The
default is &`Contents`&.
.endlist
.index-to "ID3"
.subsection "Warnings" "SECTwarnings"
.vlist
.vitem "&*warn_unsupported*& (global)"
.index "warnings" "controlling"
The value of this parameter must be &`yes`& (default) or &`no`&. If it is set
to &`yes`&, SDoP outputs a list of unrecognized DocBook elements and parameters
to the standard error at the end of processing. This setting can be overridden
by the use of &%-q%& or &%-w%& on the command line.
.vitem "&*warn_unsupported_characters*& (global)"
The value of this parameter must be &`yes`& (default) or &`no`&. If it is set
to &`yes`&, SDoP outputs a warning message the first time it encounters a
character that is not supported. An unsupported character is one that is not
present in the current PostScript font. This setting can be overridden by the
use of &%-qc%& or &%-wc%& on the command line.
.endlist
.subsection "Other parameters" "SECTotherpin"
The remaining processing parameters are listed here in alphabetical order.
.vlist
.vitem "&*background_rgb*& (global)"
.index "background colour"
.index "colour" "background"
This sets a colour for the background of each page. Its intended use is for
when SDoP is being used to create slides rather than printed pages (see chapter
&<<CHAPslides>>&). It is necessary also to set &*paper_size*& so that SDoP
knows the area that is to be coloured. The value is a comma-separated triple of
red-green-blue values in the range 0 to 1.
.vitem "&*extra_leading*& (local)"
.index "space" "extra between lines"
.index "leading, extra"
This parameter's data must be a dimension. It specifies an extra amount of
vertical space that is to be inserted between the lines of the next and
subsequent paragraphs.
.vitem "&*hyphenate*& (local)"
.index "hyphenation" "disabling"
The value of this parameter must be &`yes`& (default) or &`no`&. When it
is set to &`yes`&, hyphenation is enabled (&R; &<<SECThyphenation>>&).
.vitem "&*kern*& (local)"
.index "kerning" "disabling"
The value of this parameter must be &`yes`& (default) or &`no`&. If it
is set to &`yes`&, kerning of adjacent letters in words is enabled. Kerning
adjusts the spacing between letters to make the result look nicer.
.endlist
.subsection "Obsolete synonyms"
.index "processing instructions" "parameters, obsolete synonyms"
As SDoP has developed, the names of some parameters have been changed to
be more appropriate to their function. The old names still work, but cause
warnings to be generated.
.literal xml
<?sdop table_indent="10pt"?>
.literal off
.itable all 1 1 2 100 left 100 left
.row "&'Old name'&" "&'New name'&"
.row "&*ilist_font*&" "&*ilist_tag_style*&"
.row "&*olist_font*&" "&*olist_tag_style*&"
.row "&*olist_format*&" "&*olist_tag_format*&"
.row "&*orderedlist_format*&" "&*olist_tag_format*&"
.row "&*term_indent*&" "&*vlist_term_indent*&"
.row "&*command_font*&" "&*command_style*&"
.row "&*function_font*&" "&*function_style*&"
.row "&*option_font*&" "&*option_style*&"
.row "&*replaceable_font*&" "&*replaceable_style*&"
.row "&*userinput_font*&" "&*userinput_style*&"
.row "&*varname_font*&" "&*varname_style*&"
.endtable
.literal xml
<?sdop table_indent="0"?>
.literal off
.index-to "ID1"
.index-to "ID11"
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Using information from &`<bookinfo>`& or &`<articleinfo>`&" &&&
"CHAPusingbi" "Using &`<`&&'xxx'&&`info>`& information"
.index "&*bookinfo*& data"
.index "&*articleinfo*& data"
Information is extracted from the &`<bookinfo>`& or &`<articleinfo>`& elements
and made available for insertion at arbitrary places in the document in two
different ways:
.olist
Simple text strings are placed in special entities; for example, the data from
the &`<surname>`& element inside &`<author>`& is inserted anywhere that
&`&&author_surname;`& appears.
.next
.index "insertions from &*bookinfo*& and &*articleinfo*&"
Two more complicated items that contain further entities are inserted by one of
the following processing instructions:
.code
<?sdop insert="legalnotice"?>
<?sdop insert="revdescription"?>
.endd
If there are multiple occurrences of &`<legalnotice>`& or &`<revdescription>`&,
they are inserted in order of definition.
.endlist
Both kinds of insert can appear anywhere in the document, though they are most
commonly found in title pages. The special entities are shown in the table
below. If no title, subtitle, or title abbreviation is provided in the
&`<bookinfo>`& element, values from the &`<book>`& element are used if they
exist. In other words, &`<bookinfo>`& overrides &`<book>`&.
The names of the entities do not change for &`<article>`&s, even though the
information is taken from &`<articleinfo>`& rather than &`<bookinfo>`&. For
example, you must use &`&&book_title;`& to insert the article's title.
.index "entities" "set from &*bookinfo*& and &*articleinfo*&"
.itable none 0 0 3 10pt left 196pt left 244pt left
.row "" &`&&author_address;`&
.row "" &`&&author_corpauthor;`&
.row "" &`&&author_firstname;`&
.row "" &`&&author_honorific;`&
.row "" &`&&author_initials;`&
.row "" &`&&author_jobtitle;`&
.row "" &`&&author_lineage;`&
.row "" &`&&author_orgname;`&
.row "" &`&&author_othername;`&
.row "" &`&&author_surname;`&
.row "" &`&&book_cpyholder;`&
.row "" &`&&book_cpyyear;`&
.row "" &`&&book_date;`&
.row "" &`&&book_edition;`&
.row "" &`&&book_issuenum;`&
.row "" &`&&book_pubdate;`&
.row "" &`&&book_publishername;`&
.row "" &`&&book_releaseinfo;`&
.row "" &`&&book_revauthorinitials;`&
.row "" &`&&book_revdate;`&
.row "" &`&&book_revnumber;`&
.row "" &`&&book_subtitle;`&
.row "" &`&&book_title;`&
.row "" &`&&book_titleabbrev;`&
.row "" &`&&book_volumenum;`&
.row "" &`&&editor_firstname;`&
.row "" &`&&editor_honorific;`&
.row "" &`&&editor_initials;`&
.row "" &`&&editor_jobtitle;`&
.row "" &`&&editor_lineage;`&
.row "" &`&&editor_orgname;`&
.row "" &`&&editor_othername;`&
.row "" &`&&editor_surname;`&
.row "" &`&&othercredit_firstname;`&
.row "" &`&&othercredit_honorific;`&
.row "" &`&&othercredit_initials;`&
.row "" &`&&othercredit_jobtitle;`&
.row "" &`&&othercredit_lineage;`&
.row "" &`&&othercredit_orgname;`&
.row "" &`&&othercredit_othername;`&
.row "" &`&&othercredit_surname;`&
.endtable
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "SDoP data files" "CHAPdatafiles"
.index "data files"
.index "files" "data for SDoP"
.index "&*-S*& option"
.index "&$SDOP_SHARE$&"
SDoP uses a number of auxiliary data files in its processing. The distributed
versions are normally installed in a public directory such as
&_/usr/local/share/sdop/_&. The &$SDOP_SHARE$& environment variable or the
&%-S%& command line option can be used to supply a list of directories to
search before the standard one, thereby providing a means for individual users
to override the default files. This chapter discusses the uses that are made of
the different files.
.section "PostScript header file"
.index "PostScript" "header file"
.index "files" "PostScript header"
At the start of SDoP's output, it writes a copy of the file &_PSheader_& (with
PostScript comments removed). This is a typical PostScript header file that
defines some PostScript functions for use by the following code. In particular,
it contains a function for loading fonts and adjusting their encodings.
.section "Font metrics" "SECTmetrics"
.index "font metric files"
.index "files" "font metrics"
Any typsetting program needs to know the metrics of the fonts it is using. SDoP
is distributed with AFM files for all the standard Adobe fonts in a
subdirectory called &_fontmetrics_&. For example, the file for the Times Roman
font is in &_fontmetrics/Times-Roman.afm_&. If you want to use other fonts, you
must either install their AFM files in this directory, or use the &%-S%&
command line option or &$SDOP_SHARE$& environment variable to specify where
they are (&R; &<<SECTexotic>>&).
.section "Hyphenation dictionary" "SECThydict"
.index "hyphenation" "dictionary file"
.index "files" "hyphenation dictionary"
SDoP does hyphenation by means of a dictionary. A dictionary for British
English is installed in the file &_HyphenData_&. The source of this file, and
the program that prepares it for use are also distributed (see chapter
&<<CHAPmainhydic>>&).
.section "Title pages for books" "SECTtitlepages"
.index "title page template"
.index "book" "title page template"
.index "files" "template for book title"
The file &_titletemplate_& is a template for the title pages of a book.
There are some special entities and an `insert' facility that can be used in
the title pages to insert data obtained from the &`<bookinfo>`& element (see
chapter &<<CHAPusingbi>>&).
The distibuted version of &_titletemplate_& is an input fragment that defines
two tables, one for each of two pages. The tables are defined in XML, but there
are also a number of SDoP conditional processing parameters that control what
is output on the title pages (&R; &<<SECTskippart>>&), depending on what data
has been supplied. If no book title is available, no title pages are output.
The &`<emphasis>`& element can be used in title pages with
&`role="booktitle`&&'n'&&`"`&, where &'n'& is a number between 1 and 4. This
selects one of four different sizes of title font: 24, 16, 18, or 13 points.
You can provide your own title page layout by copying &_titletemplate_& to
another file, editing it to your own requirements, and passing the name of the
directory where it resides to SDoP using the &%-S%& command line option.
.section "Article titles" "SECTarttitle"
.index "article" "title template"
.index "files" "template for article title"
The file &_arttemplate_& is a template for the title material of an article,
which appears at the top of the first page if an article title has been
defined. The distributed version is an input fragment that defines a single
table containing the heading material. It is similar to the first table used
for a book's title page, as described in the previous section, except that the
values of the special entities are obtained from the &`<articleinfo>`& element
rather than &`<bookinfo>`&. Nevertheless, the same entity names are used (for
example, &`&&book_date;`& rather than &`&&article_date;`&).
.section "Table of contents" "SECTtabofcont"
.index "table of contents" "template for"
The table of contents is mostly generated dynamically as a &`<table>`& that is
processed internally by SDoP. However, the start of the table of contents
`chapter' and the beginning of the &`<table>`& is obtained from a file called
&_toctemplate_&. You are unlikely to want to modify this, except perhaps to
change the format of the title. The special entity &`&&toc_title;`& contains
the string set by the &*toc_title*& global processing parameter (&R;
&<<SECTtoc>>&). The default is &`Contents`&. If you just want to
change this text, use the processing parameter.
.section "Headers and footers" "SECThandf"
.index-from "ID5" "heads and feet"
.index "heads and feet" "templates for"
.index "files" "templates for heads and feet"
A page header or footer is output only if space has been reserved for it. By
default, SDoP reserves 24 points of vertical space for a footer, but no header.
The &*head_length*& and &*foot_length*& processing parameters can be used to
ajust the allocations. When headers are in use, those on pages that start
chapters can be independently suppressed by setting the &*chapter_skip_head*&
processing parameter to &`yes`&.
.index "preface, heads and feet for"
.index "table of contents" "heads and feet for"
There are two files called &_headtable_& and &_foottable_& that define head and
foot lines for the body of the document and any appendixes, indexes, and
colophons. There are similar files called &_headtable-t_& and &_foottable-t_&
for the table of contents, and a third set called &_headtable-p_& and
&_foottable-p_& for the preface(s).
A two-level substitution process is used for head and foot lines. This makes it
possible to have different heads and feet on left-hand and right-hand pages,
while also making it easy to change their contents by means of local processing
parameter settings. However, if you want to change the overall layout of heads
of feet, you have to provide new template files.
.index "entities" "for heads and feet"
.index "heads and feet" "entities for use in"
In the supplied templates, an XML table is used, containing references to the
following special entities:
.itable none 0 0 3 10pt left 100pt left 244pt left
.row "" &`&footcentre;`& "centre foot text"
.row "" &`&footleft;`& "left foot text"
.row "" &`&footright;`& "right foot text"
.row "" &`&headcentre;`& "centre head text"
.row "" &`&headleft;`& "left head text"
.row "" &`&headright;`& "right head text"
.endtable
As their names suggest, these are placed in table cells that are respectively
left-, centre-, and right-justified. The values of these entities for the main
body of the book and the preface(s) can be set by local processing parameters
(&R; &<<SECTheadfoot>>&). This means they can be varied during the course of
the document; it is usually necessary to force a new page before changing the
contents of the footer.
For the table of contents, the values are set by global processing parameters
(&R; &<<SECTtoc>>&), because there is no way to change them in the
middle of the table of contents.
References to other entities are permitted in the values set for the above
special entities. The default for the main body pages is to print an arabic
page number in the centre of the footer, equivalent to:
.code
<?sdop foot_centre_recto="&arabicpage;"
foot_centre_verso="&arabicpage;"?>
.endd
This setting means that, on both right-hand (recto) and left-hand (verso)
pages, the value of &`&footcentre;`& is &`&&arabicpage;`&. If you want to
have page numbers on the left and right instead, you could use:
.code
<?sdop foot_centre_recto=""
foot_centre_verso=""
<?sdop foot_right_recto="&arabicpage;"
foot_left_verso="&arabicpage;"?>
.endd
It is not possible to include markup when changing the values of these strings.
If you want to change the markup in headers or footers, you have to provide
your own template files.
Other useful entities that are available in header and footer lines are
&`&&chapternumber;`&, &`&&chaptertitle`&, &`&§ionnumber`&, and
&`&§iontitle`&. In the case of titles, the value is taken from a
&`<titleabbrev>`& element if present, otherwise from &`<title>`&. Here is an
example of a processing instruction that adds the chapter title and number to
footer lines, on the right and left, respectively:
.code
<?sdop
foot_right_recto="&chaptertitle; (&chapternumber;)"
foot_left_verso="&chaptertitle; (&chapternumber;)"
?>
.endd
During chapter-like components such as prefaces, appendices, indexes, and
colophons, the title is placed in &`&&chaptertitle`&.
In an article, &`&&chaptertitle`& contains the title of the article. In an
appendix in an article, the title is placed in &`&§iontitle`&, because it
behaves like a section and does not start a new page.
You can use &`&&romanpage;`& to obtain the page number as a roman numeral. This
is used in the default settings for the table of contents and the preface(s),
where the page number is printed in italic.
If you want to use a rule (a horizontal line) in a header or a footer, you can
do so by providing your own template file containing a suitable table with a
top or bottom frame line.
.index-to "ID5"
.section "Index sorting" "SECTindexcollate"
.index "index" "collating sequence"
.index "files" "index collation sequence"
The file called &_indexcollate_& controls the order in which index items are
sorted. There are comments in the file that explain its format. You can change
the index sorting order by overriding this file.
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Typesetting features" "CHAPtypeset"
.index-from "ID6" "typesetting features"
This chapter discusses some of the typesetting features of SDoP. The lack of
some of these facilities in other processors was one of the reasons for writing
SDoP.
.section "Vertical white space"
.index "space" "vertical"
.index "space" "zero-width"
.index "space" "hard"
Additional vertical white space can be obtained by inserting a paragraph
containing just a single `hard space' character (U+00A0). A smaller amount of
vertical space can be obtained by inserting a paragraph containing just a
single `zero-width space' character (U+200B). SDoP treats this case
specially, removing the line containing the space so that only the pre- and
post-paragraph spaces remain.
.section "Indentation for literal blocks"
.index "indent" "literal blocks"
SDoP automatically indents literal blocks within indented items. For example,
paragraphs in a list are indented; if a &`<literallayout>`& block is part of a
list item, SDoP indents it by the list item's indent, in addition to any indent
for the literal block itself.
Some other DocBook processors do not do this. They always set literal blocks
with reference to the lefthand edge of the page. Consequently, input that was
created for such other processors may contain extra indents for literal blocks
that are not needed when it is processed by SDoP. To avoid excessive
indentation, SDoP automatically removes an indent that is common to every line
in a literal block. This feature can be turned off by setting the global
processing parameter &*literal_indent_fudge*& to &`no`& (&R;
&<<SECTliteral>>&).
.section "Pagination"
SDoP never outputs a section title as the last line on a page (chapter titles
are always at the head of a page). A table that contains just a single row is
treated as a sort of heading and is also not printed at the end of a page. SDoP
generally avoids printing just one line of a multi-line paragraph as either the
first or last line of a page (such lines are known as `widow' and `orphan'
lines, respectively).
.section "Line splitting and hyphenation" "SECThyphenation"
.index "hyphenation" "processing details"
.index "line splitting"
Some other applications do overly-aggressive hyphenation. If a word that does
not fit into a line can be hyphenated, they always split it. This leads to far
too much hyphenation. SDoP attempts hyphenation only when the line is very
`loose' &-- that is, the ratio of space to text in the line is high, which
would make it look ugly if no more text were added.
When it encounters a very loose line, SDoP first looks for explicit hyphens
within the next word. If any are found, it tries to split the word at one of
them. If this fails (because the shortest initial part of the word still makes
the line overflow), no hyphenation occurs. There are four explicit hyphen
characters:
.ilist
.index "hyphen" "hard"
A `hard' hyphen is the normal hyphen character (U+002D). It is output
whether or not the word is split immediately after it.
.next
.index "hyphen" "soft"
The `soft' hyphen character (U+00AD) indicates a potential hyphenation point,
but is output only if the word is actually split at that point. It is omitted
when there is no split.
.next
.index "hyphen" "invisible"
.index "kerning" "zero width space"
The `zero width space' character (U+200B) also indicates a potential
hyphenation point. Unlike the soft hyphen, however, nothing is inserted if the
word is split at that point. It is useful, for example, for allowing technical
`words' containing underscores to be split after the underscore without any
insertion. When the spaces in a line are stretched to justify a line, zero
width spaces are not affected. However, a zero width space does prevent kerning
between the preceding and following characters.
.next
.index "hyphenation" "BPH character"
.index "kerning" "BPH character"
The Unicode character called BPH (`break permitted here') is treated in
exactly the same way as a zero width space, except that, when the word is not
split, it does not prevent kerning between the preceding and following
characters.
.endlist
If no explicit hyphens are found, SDoP tries automatic hyphenation. SDoP does
not automatically hyphenate the last word in a paragraph, or any word that
contains capital letters. If you need to hyphenate such a word (for example, a
long word at the start of a sentence), you must insert one or more soft hyphen
characters.
.index "hyphenation" "disabling"
Both forms of hyphenation can be disabled by a processing instruction (&R;
&<<SECTotherpin>>&). This is a local processing instruction, so hyphenation
can be turned on and off as often as you like throughout the document. SDoP
uses a dictionary for automatic hyphenation (&R; &<<SECThydict>>&,
&<<CHAPmainhydic>>&).
.index "hyphenation" "NBH character"
It is also possible to disable automatic hyphenation at specific points in
individual words by including the `no break here' character (NBH, U+0083).
For example, the word `elec-tri-fi-cation' has three automatic hyphenation
points, as shown. If you input it as &`elec&ƒtrification`&, the first of
them is disabled. The inclusion of NBH does not prevent kerning between the
previous and following characters.
.section "Fine adjustments to lines"
Once it has formatted a paragraph, SDoP does a second pass over the lines to
look for instances where a very tight, but not hyphenated, line is followed by
a very loose line. If it finds such a pair of lines, it checks to see whether
it is possible to move the last word from the first line onto the second line
without making the first line unacceptably loose. This is a rare occurrence,
but when it works it can make the paragraph look a lot nicer.
.section "Ligatures"
.index "ligatures"
SDoP automatically uses the single character `fi' (U+FB01) whenever the
letter `f' is followed by the letter `i' and the font is not monospaced and
does contain the ligature character.
.section "Kerning"
.index "kerning"
SDoP uses the kerning information in a font's AFM file to move certain pairs of
characters closer together or further apart, in order to improve the appearance
of the text. There is a local processing setting that can suppress this for all
or part of a document (&R; &<<SECTotherpin>>&). Kerning between two
individual characters can be suppressed by inserting a zero width space between
them. The `break permitted here' and `no break here' characters do not
suppress kerning.
.section "The <emphasis> element" "SECTemphasis"
.index-from "ID7" "&*emphasis*&"
.index "fonts" "italic"
.index "fonts" "bold"
.index "fonts" "roman"
The &`<emphasis>`& element with no attributes specifies italic; the attribute
&`role="bold"`& specifies a boldface font. Also supported is &`role="roman"`&,
which can be useful for overriding a bold or italic font caused by an element
such as &`<varname>`&.
.index "colour" "text"
The &`role`& attribute can also be used to specify special fonts or coloured
text. In the template for the title page (the data file &(titletemplate)&) the
form &`role="booktitle`&&'n'&&`"`&, where &'n'& is a number between 1 and 4,
can appear. This selects one of four different sizes of title font.
.section "Using a small font" "SECTsmallfont"
.index "fonts" "small"
A normal font, but at a smaller that normal size, can be specified by:
.code
<emphasis role="smallfont">
.endd
The actual size of font can be set by the &*font_small_main*& processing
parameter.
.section "Using exotic fonts" "SECTexotic"
.index "fonts" "exotic"
.index "fonts" "specifying special"
In the main text, the &`role`& attribute can be used to specify the use of a
special font. The format for this is:
.display
&`<emphasis role="`&&'exotic-font-name/size/leading'&&`">`&
.endd
The leading (`ledding', not `leeding') is a minimum amount of extra vertical
white space that is inserted above each line that contains characters from this
font. (The default font size is 11 points, with 1 point of leading.)
If the size and leading are omitted, the values from the current font are used.
The size can be given as zero to mean `the current size' if just additional
leading is needed. Fonts with standard encoding are re-encoded as Unicode; for
others, only characters in the range 0&--255 are supported, in their native
encoding. For example, to include a treble clef at a 9-point size from the
musical font that is part of &'Philip's Music Writer'&, you could use:
.code
<emphasis role="PMW-Music/9">!</emphasis>
.endd
The treble clef is encoded as character 33 (an exclamation mark in Unicode) in
the PMW-Music font. If you use a special font in this way, you must ensure that
its AFM file is available in a directory that you pass to SDoP via the &%-S%&
command line option or &$SDOP_SHARE$& environment variable, or in the
&(fontmetrics)& subdirectory of such a directory.
.section "Specifying coloured text" SECTcolour
.index "colour" "text"
You can specify that text is to be coloured like this:
.code
<emphasis role="rgb=r,g,b">...</emphasis>
.endd
The colour is defined by the three red-green-blue values, in the range 0 to 1.
For example:
.code
This is a <emphasis role="rgb=1,0,0">red</emphasis> word.
.endd
The colour of text that forms a cross-reference or an index page number that is
turned into a clickable link when the output is converted to a PDF can be
separately specified by setting the &*xref_rgb*& parameter. This overrides any
&`<emphasis>`& setting.
.index-to "ID7"
.section "Change bars"
.index "change bars"
SDoP supports the &`revisionflag`& option on elements, but the only value that
is recognized is `changed'. The effect is to print a vertical change bar at
the right hand side of the affected text.
.section "Itemized lists"
.index "itemized list" "mark"
If no &`mark`& option is present on an &`<itemizedlist>`& element, SDoP uses a
bullet (U+00B7) for top level lists, a dash (U+2212) for the first nested
level, and a small circle (the letter `o') for the next level. SDoP
recognizes the words &`bullet`&, &`dash`&, and &`opencircle`& as values for
&`mark`&. You can also give a Unicode code point, for example, &`U+261E`&. The
font style for the mark can be set via the &*ilist_tag_style*& parameter, or
the entire font (size, type, style) can be set via the &*font_ilist_tag*&
parameter.
.section "Ordered lists"
.index "ordered list" "numbering"
The &*olist_format*& parameter controls what is printed when numbering an
ordered list. It specifies a text string that contains &`%s`& at the point
where the item number is to be inserted. The default value is &`(%s)`&. The
format of the item number itself (roman, arabic, alphabetic) is controlled by
the &%numeration%& attribute of the &`<orderedlist>`& element. The font style
for the whole string (default roman) can be specified by the
&*olist_tag_style*& parameter, or the entire font (size, type, style) can be
set via the &*font_olist_tag*& parameter.
.section "Tables" "SECTtables"
.index "tables" "parameters for"
Space is left at the beginning and end of the entries in each column of a
table. This reduces the column widths as specified in the XML. Vertical space
is left between rows, above the top of the frame, and below the bottom of the
frame (in cases where a top and bottom frame line is drawn). The thickness of
the frame is in principle variable, but none of these values are yet adjustable
(though they may be in a later release):
.itable none 0 0 3 10pt left 140pt left 244pt left
.row "" "Left entry space" "5pt"
.row "" "Right entry space" "5pt"
.row "" "Row separation space" "5pt"
.row "" "Top frame space" "0pt"
.row "" "Bottom frame space" "4pt"
.row "" "Frame thickness" "0.5pt"
.endtable
Tables are by default set flush left on the page, but they can be indented by
setting the &*table_indent*& processing parameter. There are a number of other
processing parameters that can be used to control the way table titles are
handled (&R; &<<SECTintexttables>>&). A further parameter can be used to alter
the way SDoP diagnoses table cells that overflow. Setting:
.code
<?sdop table_warn_overflow="never"?>
.endd
suppresses all cell overflow warnings, whereas setting:
.code
<?sdop table_warn_overflow="overprint"?>
.endd
suppresses cell overflow warnings in two circumstances when there is no actual
text collision, provided that no separator is being printed between the
relevant columns:
.olist
The overflowing cell is not the last on the line, is left justified, and the
next cell is not left justified.
.next
The overflowing cell is not the first on the line, is right justified, and the
previous cell is not right justified.
.endlist
Both of these settings affect only what follows them; they can be changed
as often as you like during the course of a document.
.index "character alignment in tables"
.index "tables" "character alignment"
There is support for aligning cells by reference to a specific character (for
example, to align monetary values on the decimal point). This takes the form of
support for &`align="char"`& and the &`char`& and &`charoff`& attributes of the
&`<tgroup>`&, &`<colspec>`&, and &`<entry>`& elements. The default values for
&`char`& and &`charoff`& are &`"."`& and &`"50"`&, respectively. The value of
&`char`& can be an entity name. If the aligning character is not found in a
cell's text, SDoP behaves as if it were present at the end of the string. If
character alignment would cause overflow or underflow, an error is generated
and right or left alignment (respectively) is used instead.
.section "Footnotes"
.index "footnotes"
Up to nine footnotes per page are fully supported, keyed by the numbers 1&--9.
If there are more than nine footnotes on a page, the lines containing
footnote references greater than nine may be poorly spaced. A warning message
is output. This is another example of the `simple' approach that SDoP takes.
.footnote
Footnote numbering is a chicken-and-egg problem. Paragraphs have to be
formatted before they can be assigned to pages. SDoP assumes that a footnote
reference will be a single digit. Only after the page breaks are determined can
the footnotes be numbered, and an extra digit alters the length of the line. If
the line is justified and the extra digit can be accommodated by reducing the
stretch for each space, all is well, but this cannot be guaranteed.
.endnote
If a &`<footnote>`& element is at the start of an input line, the newline
character at the end of the previous line is ignored, so that the footnote key
is hard up against the preceding word.
.section "Illustrations and figures" "SECTillfig"
.index "illustrations, parameters for"
.index "figures" "parameters for"
The &`<textobject>`& and &`<imageobject>`& elements within a
&`<mediaobject>`& element are supported. For images, the &`<imagedata>`&
element supports only the &`fileref`& attribute for the source of the image
data and the &`format`& attribute to specify a format. If no format is given,
the file name extension is used. The formats currently recognized are EPS for
encapsulated PostScript, SVG for Scalar Vector Graphics, JPEG or JPG for a JPEG
image (if &(libjpeg)& is available), and PNG for a PNG image (if &(libpng)&
is available). SVG support is new to release 1.10, and is fairly basic. If you
have an SVG image that SDoP does not render correctly, a workaround is to use
an image processor such as &(ImageMagick)& to convert it to one of the other
formats. A program for testing SDoP's SVG support, called &(svgtest)&, is built
with SDoP, but not installed. You can find it in the build &_src_& directory.
It takes an SVG file name as an argument, and writes free-standing PostScript
to the standard output.
SDoP recognizes the &`align`&, &`depth`&, &`width`&, &`scale`&, and
&`scalefit`& attributes on an &`<imagedata>`& element. If either of the width
and depth are not given, they are taken from the bounding box data of the
image, if available. If an explicit depth is greater than the bounding box
depth, the image is vertically centred in the given depth.
If &`scalefit`& is set to 1, the image is scaled to fit the explicit width, if
given, otherwise to the explicit depth, if given, otherwise to the page width.
Occasionally, an image may not appear exactly where you want it; this can
happen if the bounding box values in the data are not quite right. A facility
for adjusting the position of an image is therefore provided. If the
&`<imageobject>`& element has a &`role`& attribute that consists of one or two
dimensions, comma separated, they are used to ajust the position of the image.
The values may be negative. The first dimension moves the image right or left,
and the second, if present, up or down.
There is support for the &`<figure>`& element, and there are a number of
processing parameters that can be used to control the format and alignment of
figure titles (&R; &<<SECTfigure>>&). However, figures are always set
inline; there is no support for floating figures.
.section "Subscripts and superscripts"
.index "subscripts"
.index "superscripts"
Subscripts and superscripts are supported. By default, in body text, they are
printed in a small font, and are lowered or raised by 33% of the line depth,
respectively. In titles, they are raised or lowered, but the font is unchanged.
There are local processing parameters that can be used to adjust the amount of
raising or lowering, and to disable the use of a small font in body text ((&R;
&<<SECTsubsuper>>&).
.section "Indexes"
.index "index" "parameters for"
A document may contain multiple indexes, interspersed with chapters and
appendices if required. The entries for a particular index are identified by
the use of the &`role`& option on &`<indexterm>`& and &`<index>`& elements.
Unlike some other DocBook processors, SDoP respects font-changing elements such
as &`<emphasis>`& and &`<filename>`& in index entries. It is possible to alter
the order in which index elements sort by overriding the default collation file
(&R; &<<SECTindexcollate>>&).
When comparing index items, both for sorting, and so that it can amalgamate
multiple page numbers into a single entry, SDoP requires not only that the text
be identical, but also that the same font (at the same size) is used, and also
that the colour and any sub- or superscripting is the same.
Indexes are printed in two columns, using slightly smaller fonts than the body
of the document by default. An index is omitted if there are no relevant
entries. If there are at least two different leading characters in the index
entries, headings are inserted before those that start with a symbol, those
that start with a digit, and those that start with each individual letter. If
all the entries start with the same character, no heading is inserted (this
might be the case in an index of variables, for example, where they all start
with &`$`&). Headings can be manually disabled by setting the processing
parameter &*index_headings*& to &`no`&. Index headings never appear in the
printed table of contents, but they can be requested for the PDF table of
contents by setting &*index_headings_pdf_toc*&.
By default, the page numbers in indexes are identified in the PostScript output
such that they are turned into clickable links if it is converted to a PDF.
This can be disabled by setting &*xref_links*& to &`no`&.
Apart from the index sorting order, which is controlled by one of SDoP's data
files (&R; &<<SECTindexcollate>>&), and the list of characters that are ignored
when sorting (set by the &*index_sort_omit*& parameter), no other
characteristics of indexes are at present configurable.
.index-to "ID6"
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Making Slides" "CHAPslides"
.index "slides, parameters for"
As well as generating PostScript for printed page images, SDoP can be used to
generate PostScript that, when converted to a PDF, can be used for slideshows.
To do this you need to adjust some of the processing parameters. The following
is an example:
.code
<?sdop background_rgb="0.8,0.8,1.0"
page_foot_line_width="840"
page_full_length="620"
page_line_width="810"
paper_size="900x660"
font_main="26"
font_mainmono="24"
font_chapter="32"
font_toc="18,1,serif"
foot_centre_recto=""
foot_centre_verso=""
foot_right_recto="&arabicpage;"
foot_right_verso="&arabicpage;"
ilist_indent="24,24,0"
margin_bottom="20"
margin_left_recto="45"
margin_left_verso="45"
numbertitles="no"
toc_sections="no"
?>
.endd
This sets up a pale background, adjusts sizes and widths, and arranges that
slide (page) numbers are in the bottom lefthand corner. Each slide can then be
defined as a `chapter'.
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Supported DocBook elements" "CHAPsuppelems"
.index-from "ID8" "elements" "supported"
The named entities and Unicode characters that SDoP supports are listed in the
following two chapters. As well as elements and entities, SDoP recognizes these
special XML constructs:
.itable none 0 0 3 10pt left 150pt left 150pt left
.row "" "&`<!...!>`&" "XML heading: ignored"
.row "" "&`<!--...-->`&" "XML comment: ignored"
.row "" "&`<![CDATA[...]]>`&" "Literal character data"
.endtable
The following table lists the DocBook elements that are supported, in whole or
in part, by SDoP. In some cases, though the element is recognized, it causes no
change of processing. Examples of elements of this type are &`<abbrev>`&,
&`<acronym>`&, and &`<trademark>`&. Elements that are defined for Simplified
DocBook are marked with a dagger.
.itable none 0 0 4 10pt left 16pt left 124pt left 300pt left
.row "" "" "&*Element*&" "&*Comment*&"
.row "" "†" "&`abbrev`&" "Ignored"
.row "" "†" "&`abstract`&" "Ignored"
.row "" "†" "&`acronym`&" "Ignored"
.row "" "" "&`address`&"
.row "" "†" "&`affiliation`&"
.row "" "†" "&`appendix`&" "Supports &`id`&"
.row "" "†" "&`article`&"
.row "" "†" "&`articleinfo`&"
.row "" "†" "&`attribution`&"
.row "" "†" "&`audiodata`&" "Ignored"
.row "" "†" "&`audioobject`&" "Ignored"
.row "" "†" "&`author`&"
.row "" "†" "&`authorblurb`&" "Ignored"
.row "" "†" "&`authorinitials`&"
.row "" "†" "&`blockquote`&"
.row "" "" "&`book`&"
.row "" "" "&`bookinfo`&"
.row "" "†" "&`caption`&"
.row "" "" "&`chapter`&" "Supports &`id`&"
.row "" "†" "&`citetitle`&" "Treated as &`<emphasis>`&"
.row "" "" "&`colophon`&"
.row "" "†" "&`colspec`&" "Supports &`align`&, &`char`&, &&&
&`charoff`&, &`colwidth`&, &&&
&`colsep`&"
.row "" "†" "&`command`&"
.row "" "†" "&`computeroutput`&" "Treated as &`<literal>`&"
.row "" "†" "&`copyright`&" "Supported in &`<articleinfo>`& and &&&
&`<bookinfo>`&"
.row "" "†" "&`corpauthor`&"
.row "" "†" "&`date`&"
.row "" "†" "&`edition`&"
.row "" "†" "&`editor`&"
.row "" "†" "&`email`&" "Italic by default"
.row "" "†" "&`emphasis`&" "Supports &`role`&"
.row "" "†" "&`entry`&" "Supports &`align`&, &`char`&, &&&
&`charoff`&"
.row "" "†" "&`epigraph`&" "Works like &`<blockquote>`&"
.row "" "†" "&`example`&" "Supports &`id`&"
.row "" "†" "&`figure`&" "Supports &`id`&"
.row "" "†" "&`filename`&"
.row "" "†" "&`firstname`&"
.row "" "†" "&`footnote`&"
.row "" "†" "&`footnoteref`&" "Only on same page as the footnote"
.row "" "" "&`formalpara`&"
.row "" "" "&`function`&"
.row "" "†" "&`holder`&"
.row "" "†" "&`honorific`&"
.row "" "†" "&`imagedata`&" "Supports &`align`&, &`depth`&, &&&
&`fileref`&, &`format`&, &&&
&`scale`&, &`scalefit`&, &`width`&"
.row "" "†" "&`imageobject`&"
.row "" "" "&`index`&" "Supports &`role`&"
.row "" "" "&`indexterm`&" "Supports &`class`&, &`id`&, &`role`&"
.row "" "" "&`informalfigure`&"
.row "" "†" "&`informaltable`&" "Supports &`frame`&, &`colsep`&, &&&
&`rowsep`&"
.row "" "†" "&`inlinemediaobject`&" "Treated as &`<mediaobject>`&"
.row "" "†" "&`issuenum`&"
.row "" "†" "&`itemizedlist`&" "Supports &`mark`&"
.row "" "†" "&`jobtitle`&"
.row "" "†" "&`keyword`&" "Ignored"
.row "" "†" "&`keywordset`&" "Ignored"
.row "" "†" "&`legalnotice`&"
.row "" "†" "&`lineage`&"
.row "" "†" "&`lineannotation`&" "Uses a small italic font"
.row "" "†" "&`link`&" "Ignored"
.row "" "†" "&`listitem`&"
.row "" "†" "&`literal`&"
.row "" "†" "&`literallayout`&" "Supports &`class`&"
.row "" "†" "&`mediaobject`&"
.row "" "†" "&`note`&" "Works like &`<blockquote>`&"
.row "" "†" "&`objectinfo`&" "Ignored"
.row "" "†" "&`option`&"
.row "" "†" "&`orderedlist`&" "Supports &`numeration`&"
.row "" "†" "&`orgname`&"
.row "" "†" "&`othercredit`&"
.row "" "†" "&`othername`&"
.row "" "†" "&`para`&"
.row "" "†" "&`phrase`&"
.row "" "" "&`preface`&"
.row "" "" "&`primary`&"
.row "" "†" "&`programlisting`&" "Treated as &`<screen>`&"
.row "" "†" "&`pubdate`&"
.row "" "†" "&`publishername`&"
.row "" "†" "&`quote`&"
.row "" "†" "&`releaseinfo`&"
.row "" "†" "&`replaceable`&" "Italic by default"
.row "" "†" "&`revdescription`&"
.row "" "†" "&`revhistory`&"
.row "" "†" "&`revision`&"
.row "" "†" "&`revnumber`&"
.row "" "†" "&`revremark`&" "Ignored"
.row "" "†" "&`row`&" "Supports &`rowsep`&"
.row "" "" "&`screen`&"
.row "" "" "&`secondary`&"
.row "" "†" "&`section`&" "Supports &`id`&"
.row "" "†" "&`sectioninfo`&" "Ignored"
.row "" "" "&`sect`&&'n'&" "Treated as &`<section>`&"
.row "" "" "&`see`&"
.row "" "" "&`seealso`&"
.row "" "†" "&`sidebar`&" "Works like &`<blockquote>`&"
.row "" "" "&`simpara`&"
.row "" "†" "&`subject`&" "Ignored"
.row "" "†" "&`subjectset`&" "Ignored"
.row "" "†" "&`subjectterm`&" "Ignored"
.row "" "" "&`subscript`&" "No small font in titles; ignored &&&
in table of contents"
.row "" "†" "&`subtitle`&" "For articles, chapters, appendixes, &&&
and indexes"
.row "" "" "&`superscript`&" "No small font in titles; ignored &&&
in table of contents"
.row "" "†" "&`surname`&"
.row "" "†" "&`systemitem`&" "Ignored"
.row "" "†" "&`table`&" "Supports &`frame`&, &`colsep`&, &&&
&`rowsep`&"
.row "" "†" "&`tbody`&"
.row "" "†" "&`term`&"
.row "" "" "&`tertiary`&"
.row "" "†" "&`textobject`&"
.row "" "†" "&`tfoot`&"
.row "" "†" "&`tgroup`&" "Supports &`align`&, &`char`&, &&&
&`charoff`&, &`cols`&, &`colsep`&, &&&
&`rowsep`&"
.row "" "†" "&`thead`&"
.row "" "†" "&`title`&"
.row "" "†" "&`titleabbrev`&"
.row "" "†" "&`trademark`&" "Ignored"
.row "" "†" "&`ulink`&" "Supports &`url`&"
.row "" "†" "&`userinput`&" "Monospaced by default"
.row "" "†" "&`variablelist`&"
.row "" "†" "&`varlistentry`&"
.row "" "" "&`varname`&"
.row "" "†" "&`videodata`&" "Ignored"
.row "" "†" "&`videoobject`&" "Ignored"
.row "" "†" "&`volumenum`&"
.row "" "†" "&`xref`&" "Supports &`linkend`&"
.row "" "†" "&`year`&"
.endtable
In an &`<article>`& element, &`<id>`& and &`<class>`& attributes are
recognized, but ignored.
The Simplified DocBook elements that are not supported are &`<authorgroup>`&,
&`<biblio`&&'xxx'&&`>`&, &`<entrytbl>`&, and &`<spanspec>`&.
.index-to "ID8"
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Supported DocBook entities" "CHAPsuppents"
.index-from "ID9" "entities" "supported"
Individual data characters can always be specified by their numerical code
points using the entity notation &`&&#`&&'n'&&`;`& (where &'n'& is a decimal
number) or &`&&#x`&&'n'&&`;`& (where &'n'& is a hexadecimal number). The latter
form is more common because Unicode code points are normally listed in
hexadecimal. For example, a copyright symbol can be specified as &`&©`&.
SDoP also recognizes a number of named entities that represent special
characters. They are shown in the table below. Additional special entity names
are recognized in header, footer, title page, and table of contents templates
(&R; &<<SECThandf>>&, &<<SECTtitlepages>>&, &<<SECTtabofcont>>&).
.itable none 0 0 5 10pt left 80pt left 80pt centre 60pt centre 100pt left
.row "" " &&&
&*Name*&" "&*Code point*&" "&*Character*&"
.row "" "&`&Æ`&" "&`U+00C6`&" "Æ"
.row "" "&`&Á`&" "&`U+00C1`&" "Á"
.row "" "&`&Ă`&" "&`U+0102`&" "Ă"
.row "" "&`&Â`&" "&`U+00C2`&" "Â"
.row "" "&`&À`&" "&`U+00C0`&" "À"
.row "" "&`&Ā`&" "&`U+0100`&" "Ā"
.row "" "&`&Ą`&" "&`U+0104`&" "Ą"
.row "" "&`&Å`&" "&`U+00C5`&" "Å"
.row "" "&`&Ã`&" "&`U+00C3`&" "Ã"
.row "" "&`&Ä`&" "&`U+00C4`&" "Ä"
.row "" "&`&Ć`&" "&`U+0106`&" "Ć"
.row "" "&`&Č`&" "&`U+010C`&" "Č"
.row "" "&`&Ç`&" "&`U+00C7`&" "Ç"
.row "" "&`&Ĉ`&" "&`U+0108`&" "Ĉ"
.row "" "&`&Ċ`&" "&`U+010A`&" "Ċ"
.row "" "&`&‡`&" "&`U+2021`&" "‡"
.row "" "&`&Ď`&" "&`U+010E`&" "Ď"
.row "" "&`&Đ`&" "&`U+0110`&" "Đ"
.row "" "&`&Ŋ`&" "&`U+014A`&" "Ŋ"
.row "" "&`&Ð`&" "&`U+00D0`&" "Ð"
.row "" "&`&É`&" "&`U+00C9`&" "É"
.row "" "&`&Ě`&" "&`U+011A`&" "Ě"
.row "" "&`&Ê`&" "&`U+00CA`&" "Ê"
.row "" "&`&Ė`&" "&`U+0116`&" "Ė"
.row "" "&`&È`&" "&`U+00C8`&" "È"
.row "" "&`&Ē`&" "&`U+0112`&" "Ē"
.row "" "&`&Ę`&" "&`U+0118`&" "Ę"
.row "" "&`&Ë`&" "&`U+00CB`&" "Ë"
.row "" "&`&&Euro;`&" "&`U+20AC`&" "&Euro;"
.row "" "&`&Ğ`&" "&`U+011E`&" "Ğ"
.row "" "&`&Ģ`&" "&`U+0122`&" "Ģ"
.row "" "&`&Ĝ`&" "&`U+011C`&" "Ĝ"
.row "" "&`&Ġ`&" "&`U+0120`&" "Ġ"
.row "" "&`&Ĥ`&" "&`U+0124`&" "Ĥ"
.row "" "&`&Ħ`&" "&`U+0126`&" "Ħ"
.row "" "&`&IJ`&" "&`U+0132`&" "IJ"
.row "" "&`&Í`&" "&`U+00CD`&" "Í"
.row "" "&`&Î`&" "&`U+00CE`&" "Î"
.row "" "&`&İ`&" "&`U+0130`&" "İ"
.row "" "&`&Ì`&" "&`U+00CC`&" "Ì"
.row "" "&`&Ī`&" "&`U+012A`&" "Ī"
.row "" "&`&Į`&" "&`U+012E`&" "Į"
.row "" "&`&Ĩ`&" "&`U+0128`&" "Ĩ"
.row "" "&`&Ï`&" "&`U+00CF`&" "Ï"
.row "" "&`&Ĵ`&" "&`U+0134`&" "Ĵ"
.row "" "&`&Ķ`&" "&`U+0136`&" "Ķ"
.row "" "&`&Ĺ`&" "&`U+0139`&" "Ĺ"
.row "" "&`&Ľ`&" "&`U+013D`&" "Ľ"
.row "" "&`&Ļ`&" "&`U+013B`&" "Ļ"
.row "" "&`&Ŀ`&" "&`U+013F`&" "Ŀ"
.row "" "&`&Ł`&" "&`U+0141`&" "Ł"
.row "" "&`&Ń`&" "&`U+0143`&" "Ń"
.row "" "&`&Ň`&" "&`U+0147`&" "Ň"
.row "" "&`&Ņ`&" "&`U+0145`&" "Ņ"
.row "" "&`&Ñ`&" "&`U+00D1`&" "Ñ"
.row "" "&`&Œ`&" "&`U+0152`&" "Œ"
.row "" "&`&Ó`&" "&`U+00D3`&" "Ó"
.row "" "&`&Ô`&" "&`U+00D4`&" "Ô"
.row "" "&`&Ő`&" "&`U+0150`&" "Ő"
.row "" "&`&Ò`&" "&`U+00D2`&" "Ò"
.row "" "&`&Ō`&" "&`U+014C`&" "Ō"
.row "" "&`&Ø`&" "&`U+00D8`&" "Ø"
.row "" "&`&Õ`&" "&`U+00D5`&" "Õ"
.row "" "&`&Ö`&" "&`U+00D6`&" "Ö"
.row "" "&`&Ŕ`&" "&`U+0154`&" "Ŕ"
.row "" "&`&Ř`&" "&`U+0158`&" "Ř"
.row "" "&`&Ŗ`&" "&`U+0156`&" "Ŗ"
.row "" "&`&Ś`&" "&`U+015A`&" "Ś"
.row "" "&`&Š`&" "&`U+0160`&" "Š"
.row "" "&`&Ş`&" "&`U+015E`&" "Ş"
.row "" "&`&Ŝ`&" "&`U+015C`&" "Ŝ"
.row "" "&`&Þ`&" "&`U+00DE`&" "Þ"
.row "" "&`&Ť`&" "&`U+0164`&" "Ť"
.row "" "&`&Ţ`&" "&`U+0162`&" "Ţ"
.row "" "&`&Ŧ`&" "&`U+0166`&" "Ŧ"
.row "" "&`&Ú`&" "&`U+00DA`&" "Ú"
.row "" "&`&Ŭ`&" "&`U+016C`&" "Ŭ"
.row "" "&`&Û`&" "&`U+00DB`&" "Û"
.row "" "&`&Ű`&" "&`U+0170`&" "Ű"
.row "" "&`&Ù`&" "&`U+00D9`&" "Ù"
.row "" "&`&Ū`&" "&`U+016A`&" "Ū"
.row "" "&`&Ų`&" "&`U+0172`&" "Ų"
.row "" "&`&Ů`&" "&`U+016E`&" "Ů"
.row "" "&`&Ũ`&" "&`U+0168`&" "Ũ"
.row "" "&`&Ü`&" "&`U+00DC`&" "Ü"
.row "" "&`&Ŵ`&" "&`U+0174`&" "Ŵ"
.row "" "&`&Ý`&" "&`U+00DD`&" "Ý"
.row "" "&`&Ŷ`&" "&`U+0176`&" "Ŷ"
.row "" "&`&Ÿ`&" "&`U+0178`&" "Ÿ"
.row "" "&`&Ź`&" "&`U+0179`&" "Ź"
.row "" "&`&Ž`&" "&`U+017D`&" "Ž"
.row "" "&`&Ż`&" "&`U+017B`&" "Ż"
.row "" "&`&á`&" "&`U+00E1`&" "á"
.row "" "&`&ă`&" "&`U+0103`&" "ă"
.row "" "&`&â`&" "&`U+00E2`&" "â"
.row "" "&`&æ`&" "&`U+00E6`&" "æ"
.row "" "&`&à`&" "&`U+00E0`&" "à"
.row "" "&`&ā`&" "&`U+0101`&" "ā"
.row "" "&`&&`&" "&`U+0026`&" "&"
.row "" "&`&ą`&" "&`U+0105`&" "ą"
.row "" "&`&'`&" "&`U+0027`&" "'"
.row "" "&`&å`&" "&`U+00E5`&" "å"
.row "" "&`&ã`&" "&`U+00E3`&" "ã"
.row "" "&`&ä`&" "&`U+00E4`&" "ä"
.row "" "&`&¦`&" "&`U+00A6`&" "¦"
.row "" "&`&ć`&" "&`U+0107`&" "ć"
.row "" "&`&č`&" "&`U+010D`&" "č"
.row "" "&`&ç`&" "&`U+00E7`&" "ç"
.row "" "&`&ĉ`&" "&`U+0109`&" "ĉ"
.row "" "&`&ċ`&" "&`U+0A0B`&" "ċ"
.row "" "&`&¢`&" "&`U+00A2`&" "¢"
.row "" "&`&✓`&" "&`U+2713`&" "✓"
.row "" "&`&♣`&" "&`U+2663`&" "♣"
.row "" "&`&©`&" "&`U+00A9`&" "©"
.row "" "&`&✗`&" "&`U+2717`&" "✗"
.row "" "&`&¤`&" "&`U+00A4`&" "¤"
.row "" "&`&†`&" "&`U+2020`&" "†"
.row "" "&`&↓`&" "&`U+2193`&" "↓"
.row "" "&`&ď`&" "&`U+010F`&" "ď"
.row "" "&`&°`&" "&`U+00B0`&" "°"
.row "" "&`&♦`&" "&`U+2666`&" "♦"
.row "" "&`&÷`&" "&`U+00F7`&" "÷"
.row "" "&`&đ`&" "&`U+0111`&" "đ"
.row "" "&`&é`&" "&`U+00E9`&" "é"
.row "" "&`&ě`&" "&`U+011B`&" "ě"
.row "" "&`&ê`&" "&`U+00EA`&" "ê"
.row "" "&`&ė`&" "&`U+0117`&" "ė"
.row "" "&`&è`&" "&`U+00E8`&" "è"
.row "" "&`&ē`&" "&`U+0113`&" "ē"
.row "" "&`&ŋ`&" "&`U+014B`&" "ŋ"
.row "" "&`&ę`&" "&`U+0119`&" "ę"
.row "" "&`&ð`&" "&`U+00F0`&" "ð"
.row "" "&`&ë`&" "&`U+00EB`&" "ë"
.row "" "&`&fi`&" "&`U+FB01`&" "fi"
.row "" "&`&fl`&" "&`U+FB02`&" "fl"
.row "" "&`&½`&" "&`U+00BD`&" "½"
.row "" "&`&¼`&" "&`U+00BC`&" "¼"
.row "" "&`&¾`&" "&`U+00BE`&" "¾"
.row "" "&`&ğ`&" "&`U+011F`&" "ğ"
.row "" "&`&ĝ`&" "&`U+011D`&" "ĝ"
.row "" "&`&ġ`&" "&`U+0121`&" "ġ"
.row "" "&`&>`&" "&`U+003E`&" ">"
.row "" "&`&½`&" "&`U+00BD`&" "½"
.row "" "&`&ĥ`&" "&`U+0125`&" "ĥ"
.row "" "&`&♥`&" "&`U+2665`&" "♥"
.row "" "&`&…`&" "&`U+2026`&" "…"
.row "" "&`&ħ`&" "&`U+0127`&" "ħ"
.row "" "&`&í`&" "&`U+00ED`&" "í"
.row "" "&`&î`&" "&`U+00EE`&" "î"
.row "" "&`&¡`&" "&`U+00A1`&" "¡"
.row "" "&`&ì`&" "&`U+00EC`&" "ì"
.row "" "&`&ij`&" "&`U+0133`&" "ij"
.row "" "&`&ī`&" "&`U+012B`&" "ī"
.row "" "&`&ı`&" "&`U+0131`&" "ı"
.row "" "&`&į`&" "&`U+012F`&" "į"
.row "" "&`&¿`&" "&`U+00BF`&" "¿"
.row "" "&`&ĩ`&" "&`U+0129`&" "ĩ"
.row "" "&`&ï`&" "&`U+00EF`&" "ï"
.row "" "&`&ĵ`&" "&`U+0135`&" "ĵ"
.row "" "&`&ķ`&" "&`U+0137`&" "ķ"
.row "" "&`&ĸ`&" "&`U+0138`&" "ĸ"
.row "" "&`&ĺ`&" "&`U+013A`&" "ĺ"
.row "" "&`&«`&" "&`U+00AB`&" "«"
.row "" "&`&←`&" "&`U+2190`&" "←"
.row "" "&`&ľ`&" "&`U+013E`&" "ľ"
.row "" "&`&ļ`&" "&`U+013C`&" "ļ"
.row "" "&`&“`&" "&`U+201C`&" "“"
.row "" "&`&„`&" "&`U+201E`&" "„"
.row "" "&`&ŀ`&" "&`U+0140`&" "ŀ"
.row "" "&`&◊`&" "&`U+25CA`&" "◊"
.row "" "&`&‘`&" "&`U+2018`&" "‘"
.row "" "&`&‚`&" "&`U+201A`&" "‚"
.row "" "&`&ł`&" "&`U+0142`&" "ł"
.row "" "&`&<`&" "&`U+003C`&" "<"
.row "" "&`&✠`&" "&`U+2720`&" "✠"
.row "" "&`&—`&" "&`U+2014`&" "—"
.row "" "&`&µ`&" "&`U+00B5`&" "µ"
.row "" "&`&·`&" "&`U+00B7`&" "·"
.row "" "&`&…`&" "&`U+2026`&" "…"
.row "" "&`&ń`&" "&`U+0144`&" "ń"
.row "" "&`&ʼn`&" "&`U+0149`&" "ʼn"
.row "" "&`& `&" "&`U+00A0`&" "&'hard space'&"
.row "" "&`&ň`&" "&`U+0148`&" "ň"
.row "" "&`&ņ`&" "&`U+0146`&" "ņ"
.row "" "&`&–`&" "&`U+2013`&" "–"
.row "" "&`&¬`&" "&`U+00AC`&" "¬"
.row "" "&`&ñ`&" "&`U+00F1`&" "ñ"
.row "" "&`&ó`&" "&`U+00F3`&" "ó"
.row "" "&`&ô`&" "&`U+00F4`&" "ô"
.row "" "&`&ő`&" "&`U+0151`&" "ő"
.row "" "&`&œ`&" "&`U+0153`&" "œ"
.row "" "&`&ò`&" "&`U+00F2`&" "ò"
.row "" "&`&ō`&" "&`U+014D`&" "ō"
.row "" "&`&ª`&" "&`U+00AA`&" "ª"
.row "" "&`&º`&" "&`U+00BA`&" "º"
.row "" "&`&ø`&" "&`U+00F8`&" "ø"
.row "" "&`&õ`&" "&`U+00F5`&" "õ"
.row "" "&`&ö`&" "&`U+00F6`&" "ö"
.row "" "&`&¶`&" "&`U+00B6`&" "¶"
.row "" "&`&☎`&" "&`U+260E`&" "☎"
.row "" "&`&±`&" "&`U+00B1`&" "±"
.row "" "&`&£`&" "&`U+00A3`&" "£"
.row "" "&`&"`&" "&`U+0022`&" """
.row "" "&`&ŕ`&" "&`U+0155`&" "ŕ"
.row "" "&`&»`&" "&`U+00BB`&" "»"
.row "" "&`&→`&" "&`U+2192`&" "→"
.row "" "&`&ř`&" "&`U+0159`&" "ř"
.row "" "&`&ŗ`&" "&`U+0157`&" "ŗ"
.row "" "&`&”`&" "&`U+201D`&" "”"
.row "" "&`&”`&" "&`U+201D`&" "”" "(same as &`&”`&)"
.row "" "&`&®`&" "&`U+00AE`&" "®"
.row "" "&`&’`&" "&`U+2019`&" "’"
.row "" "&`&’`&" "&`U+2019`&" "’" "(same as &`&’`&)"
.row "" "&`&ś`&" "&`U+015B`&" "ś"
.row "" "&`&š`&" "&`U+0161`&" "š"
.row "" "&`&ş`&" "&`U+015F`&" "ş"
.row "" "&`&ŝ`&" "&`U+015D`&" "ŝ"
.row "" "&`&§`&" "&`U+00A7`&" "§"
.row "" "&`&✶`&" "&`U+2736`&" "✶"
.row "" "&`&­`&" "&`U+00AD`&" "­"
.row "" "&`&♠`&" "&`U+2660`&" "♠"
.row "" "&`&¹`&" "&`U+00B9`&" "¹"
.row "" "&`&²`&" "&`U+00B2`&" "²"
.row "" "&`&³`&" "&`U+00B3`&" "³"
.row "" "&`&ß`&" "&`U+00DF`&" "ß"
.row "" "&`&ť`&" "&`U+0165`&" "ť"
.row "" "&`&ţ`&" "&`U+0163`&" "ţ"
.row "" "&`&þ`&" "&`U+00FE`&" "þ"
.row "" "&`&×`&" "&`U+00D7`&" "×"
.row "" "&`&™`&" "&`U+2122`&" "™"
.row "" "&`&ŧ`&" "&`U+0167`&" "ŧ"
.row "" "&`&ú`&" "&`U+00FA`&" "ú"
.row "" "&`&↑`&" "&`U+2191`&" "↑"
.row "" "&`&ŭ`&" "&`U+016D`&" "ŭ"
.row "" "&`&û`&" "&`U+00FB`&" "û"
.row "" "&`&ű`&" "&`U+0171`&" "ű"
.row "" "&`&ù`&" "&`U+00F9`&" "ù"
.row "" "&`&ū`&" "&`U+016B`&" "ū"
.row "" "&`&ų`&" "&`U+0173`&" "ų"
.row "" "&`&ů`&" "&`U+016F`&" "ů"
.row "" "&`&ũ`&" "&`U+0169`&" "ũ"
.row "" "&`&ü`&" "&`U+00FC`&" "ü"
.row "" "&`&ŵ`&" "&`U+0175`&" "ŵ"
.row "" "&`&ý`&" "&`U+00FD`&" "ý"
.row "" "&`&ŷ`&" "&`U+0177`&" "ŷ"
.row "" "&`&¥`&" "&`U+00A5`&" "¥"
.row "" "&`&ÿ`&" "&`U+00FF`&" "ÿ"
.row "" "&`&ź`&" "&`U+017A`&" "ź"
.row "" "&`&ž`&" "&`U+017E`&" "ž"
.row "" "&`&ż`&" "&`U+017C`&" "ż"
.endtable
.index-to "ID9"
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Supported Unicode characters" "CHAPsuppchars"
.index-from "ID10" "Unicode" "supported characters"
SDoP supports all the Unicode characters that are in the common Adobe
PostScript fonts and their compatible equivalents, plus some additional
characters from the &'Symbol'& and &'ZapfDingbats'& fonts. You do not have to
specify anything to cause SDoP to use the special fonts; they are used
automatically for characters that are not in the ordinary fonts. When it
encounters a character for which it does not have a PostScript equivalent, SDoP
prints the rarely-used `currency symbol' ¤.
All printing characters in the &'C0 Controls and Basic Latin'& code page
(U+0020&--U+007E, corresponding to ASCII) and in the &'C1 Controls and Latin-1
Supplement'& code page (U+00A0&--U+00FF, corresponding to ISO 8859-1) are
supported, including `hard space' (U+00A0), `soft hyphen' (U+00AD), `break
permitted here' (U+0082), and `no break here' (U+0083). SDop also supports
`zero width space' (U+200B).
All characters in the &'Latin Extended-A'& page (U+0100&--U+017F) are also
supported. However, some of them are not in the original Adobe PostScript
fonts, but are present in later versions and in compatible equivalent fonts.
Nothing is printed for these characters in fonts that lack them:
.itable none 0 0 5 10pt left 1* left 3* left 1* left 3* left
.row "" &`U+0108`& "C with circumflex" &`U+013F`& "L with middle dot"
.row "" &`U+0109`& "c with circumflex" &`U+0140`& "l with middle dot"
.row "" &`U+010A`& "C with dot above" &`U+0149`& "n with leading apostrophe"
.row "" &`U+010B`& "c with dot above" &`U+014A`& "capital &""eng""& (N with hook)"
.row "" &`U+0114`& "E with breve" &`U+014B`& "lower case &""eng""& (n with hook)"
.row "" &`U+0115`& "e with breve" &`U+014E`& "O with breve"
.row "" &`U+011c`& "G with circumflex" &`U+014F`& "o with breve"
.row "" &`U+011d`& "g with circumflex" &`U+015C`& "S with circumflex"
.row "" &`U+0120`& "G with dot above" &`U+015D`& "s with circumflex"
.row "" &`U+0121`& "g with dot above" &`U+0162`& "T with cedilla"
.row "" &`U+0124`& "H with circumflex" &`U+0163`& "t with cedilla"
.row "" &`U+0125`& "h with circumflex" &`U+0166`& "T with bar"
.row "" &`U+0126`& "H with bar" &`U+0167`& "t with bar"
.row "" &`U+0127`& "h with bar" &`U+0168`& "U with tilde"
.row "" &`U+0128`& "I with tilde" &`U+0169`& "u with tilde"
.row "" &`U+0129`& "i with tilde" &`U+016C`& "U with breve"
.row "" &`U+012C`& "I with breve" &`U+016D`& "u with breve"
.row "" &`U+012D`& "i with breve" &`U+0174`& "W with circumflex"
.row "" &`U+0132`& "IJ ligature" &`U+0175`& "w with circumflex"
.row "" &`U+0133`& "ij ligature" &`U+0176`& "Y with circumflex"
.row "" &`U+0134`& "J with circumflex" &`U+0177`& "y with circumflex"
.row "" &`U+0135`& "j with circumflex" &`U+017F`& "long s"
.row "" &`U+0138`& "small &""kra""& (Greenlandic)"
.endtable
The following tables show all the characters that are supported by SDoP. The
first table shows those from the first three Unicode pages (U+0000&--U+017F):
.itable none 0 0 9 10pt left &&&
1* left 1* left 1* left 1* left 1* left 1* left 1* left 1* left
.row "" &`U+0020`& space &`U+00B4`& ´ &`U+00F9`& ù &`U+013E`& ľ
.row "" &`U+0021`& ! &`U+00B5`& µ &`U+00FA`& ú &`U+013F`& Ŀ
.row "" &`U+0022`& " &`U+00B6`& ¶ &`U+00FB`& û &`U+0140`& ŀ
.row "" &`U+0023`& # &`U+00B7`& · &`U+00FC`& ü &`U+0141`& Ł
.row "" &`U+0024`& $ &`U+00B8`& ¸ &`U+00FD`& ý &`U+0142`& ł
.row "" &`U+0025`& % &`U+00B9`& ¹ &`U+00FE`& þ &`U+0143`& Ń
.row "" &`U+0026`& & &`U+00BA`& º &`U+00FF`& ÿ &`U+0144`& ń
.row "" &`U+0027`& ' &`U+00BB`& » &`U+0100`& Ā &`U+0145`& Ņ
.row "" &`U+0028`& ( &`U+00BC`& ¼ &`U+0101`& ā &`U+0146`& ņ
.row "" &`U+0029`& ) &`U+00BD`& ½ &`U+0102`& Ă &`U+0147`& Ň
.row "" &`U+002A`& * &`U+00BE`& ¾ &`U+0103`& ă &`U+0148`& ň
.row "" &`U+002B`& + &`U+00BF`& ¿ &`U+0104`& Ą &`U+0149`& ʼn
.row "" &`U+002C`& , &`U+00C0`& À &`U+0105`& ą &`U+014A`& Ŋ
.row "" &`U+002D`& - &`U+00C1`& Á &`U+0106`& Ć &`U+014B`& ŋ
.row "" &`U+002E`& . &`U+00C2`& Â &`U+0107`& ć &`U+014C`& Ō
.row "" &`U+002F`& / &`U+00C3`& Ã &`U+0108`& Ĉ &`U+014D`& ō
.row "" &`U+0030`& 0 &`U+00C4`& Ä &`U+0109`& ĉ &`U+014E`& Ŏ
.row "" &`U+0031`& 1 &`U+00C5`& Å &`U+010A`& Ċ &`U+014F`& ŏ
.row "" &`U+0032`& 2 &`U+00C6`& Æ &`U+010B`& ċ &`U+0150`& Ő
.row "" &`U+0033`& 3 &`U+00C7`& Ç &`U+010C`& Č &`U+0151`& ő
.row "" &`U+0034`& 4 &`U+00C8`& È &`U+010D`& č &`U+0152`& Œ
.row "" &`U+0035`& 5 &`U+00C9`& É &`U+010E`& Ď &`U+0153`& œ
.row "" &`U+0036`& 6 &`U+00CA`& Ê &`U+010F`& ď &`U+0154`& Ŕ
.row "" &`U+0037`& 7 &`U+00CB`& Ë &`U+0110`& Đ &`U+0155`& ŕ
.row "" &`U+0038`& 8 &`U+00CC`& Ì &`U+0111`& đ &`U+0156`& Ŗ
.row "" &`U+0039`& 9 &`U+00CD`& Í &`U+0112`& Ē &`U+0157`& ŗ
.row "" &`U+003A`& : &`U+00CE`& Î &`U+0113`& ē &`U+0158`& Ř
.row "" &`U+003B`& ; &`U+00CF`& Ï &`U+0114`& Ĕ &`U+0159`& ř
.row "" &`U+003C`& < &`U+00D0`& Ð &`U+0115`& ĕ &`U+015A`& Ś
.row "" &`U+003D`& = &`U+00D1`& Ñ &`U+0116`& Ė &`U+015B`& ś
.row "" &`U+003E`& > &`U+00D2`& Ò &`U+0117`& ė &`U+015C`& Ŝ
.row "" &`U+003F`& ? &`U+00D3`& Ó &`U+0118`& Ę &`U+015D`& ŝ
.row "" &`U+0040`& @ &`U+00D4`& Ô &`U+0119`& ę &`U+015E`& Ş
.row "" &`U+0041`& A &`U+00D5`& Õ &`U+011A`& Ě &`U+015F`& ş
.row "" … &`U+00D6`& Ö &`U+011B`& ě &`U+0160`& Š
.row "" &`U+005A`& Z &`U+00D7`& × &`U+011C`& Ĝ &`U+0161`& š
.row "" &`U+005B`& [ &`U+00D8`& Ø &`U+011D`& ĝ &`U+0162`& Ţ
.row "" &`U+005C`& \ &`U+00D9`& Ù &`U+011E`& Ğ &`U+0163`& ţ
.row "" &`U+005D`& ] &`U+00DA`& Ú &`U+011F`& ğ &`U+0164`& Ť
.row "" &`U+005E`& ^ &`U+00DB`& Û &`U+0120`& Ġ &`U+0165`& ť
.row "" &`U+005F`& _ &`U+00DC`& Ü &`U+0121`& ġ &`U+0166`& Ŧ
.row "" &`U+0060`& ` &`U+00DD`& Ý &`U+0122`& Ģ &`U+0167`& ŧ
.row "" &`U+0061`& a &`U+00DE`& Þ &`U+0123`& ģ &`U+0168`& Ũ
.row "" … &`U+00DF`& ß &`U+0124`& Ĥ &`U+0169`& ũ
.row "" &`U+007A`& z &`U+00E0`& à &`U+0125`& ĥ &`U+016A`& Ū
.row "" &`U+007B`& { &`U+00E1`& á &`U+0126`& Ħ &`U+016B`& ū
.row "" &`U+007C`& | &`U+00E2`& â &`U+0127`& ħ &`U+016C`& Ŭ
.row "" &`U+007D`& } &`U+00E3`& ã &`U+0128`& Ĩ &`U+016D`& ŭ
.row "" &`U+007E`& ~ &`U+00E4`& ä &`U+0129`& ĩ &`U+016E`& Ů
.row "" &`U+00A0`& space &`U+00E5`& å &`U+012A`& Ī &`U+016F`& ů
.row "" &`U+00A1`& ¡ &`U+00E6`& æ &`U+012B`& ī &`U+0170`& Ű
.row "" &`U+00A2`& ¢ &`U+00E7`& ç &`U+012C`& Ĭ &`U+0171`& ű
.row "" &`U+00A3`& £ &`U+00E8`& è &`U+012D`& ĭ &`U+0172`& Ų
.row "" &`U+00A4`& ¤ &`U+00E9`& é &`U+012E`& Į &`U+0173`& ų
.row "" &`U+00A5`& ¥ &`U+00EA`& ê &`U+012F`& į &`U+0174`& Ŵ
.row "" &`U+00A6`& ¦ &`U+00EB`& ë &`U+0130`& İ &`U+0175`& ŵ
.row "" &`U+00A7`& § &`U+00EC`& ì &`U+0131`& ı &`U+0176`& Ŷ
.row "" &`U+00A8`& ¨ &`U+00ED`& í &`U+0132`& IJ &`U+0177`& ŷ
.row "" &`U+00A9`& © &`U+00EE`& î &`U+0133`& ij &`U+0178`& Ÿ
.row "" &`U+00AA`& ª &`U+00EF`& ï &`U+0134`& Ĵ &`U+0179`& Ź
.row "" &`U+00AB`& « &`U+00F0`& ð &`U+0135`& ĵ &`U+017A`& ź
.row "" &`U+00AC`& ¬ &`U+00F1`& ñ &`U+0136`& Ķ &`U+017B`& Ż
.row "" &`U+00AD`& ­ &`U+00F2`& ò &`U+0137`& ķ &`U+017C`& ż
.row "" &`U+00AE`& ® &`U+00F3`& ó &`U+0138`& ĸ &`U+017D`& Ž
.row "" &`U+00AF`& ¯ &`U+00F4`& ô &`U+0139`& Ĺ &`U+017E`& ž
.row "" &`U+00B0`& ° &`U+00F5`& õ &`U+013A`& ĺ &`U+017F`& ſ
.row "" &`U+00B1`& ± &`U+00F6`& ö &`U+013B`& Ļ
.row "" &`U+00B2`& ² &`U+00F7`& ÷ &`U+013C`& ļ
.row "" &`U+00B3`& ³ &`U+00F8`& ø &`U+013D`& Ľ
.endtable
The next table shows the other supported characters that are taken from the
normal PostScript fonts if possible (some older fonts lack some of these
characters). U+021A and U+021B are mapped to &'Tcommaaccent'& and
&'tcommaaccent'&, whereas U+0162 and U+0163 are mapped to &'Tcedilla'& and
&'tcedilla'&. Although Unicode specifies these as alternative glyphs, they look
the same in many fonts.
.itable none 0 0 9 10pt left &&&
1* left 1* left 1* left 1* left 1* left 1* left 1* left 1* left
.row "" &`U+0218`& Ș &`U+0328`& ̨ &`U+2020`& † &`U+2211`& ∑
.row "" &`U+0219`& ș &`U+0394`& Δ &`U+2021`& ‡ &`U+2212`& −
.row "" &`U+021A`& Ț &`U+2013`& – &`U+2026`& … &`U+221A`& √
.row "" &`U+021B`& ț &`U+2014`& — &`U+2027`& ‧ &`U+221E`& ∞
.row "" &`U+0302`& ̂ &`U+2018`& ‘ &`U+2031`& ‱ &`U+2260`& ≠
.row "" &`U+0303`& ̃ &`U+2019`& ’ &`U+2039`& ‹ &`U+2264`& ≤
.row "" &`U+0306`& ̆ &`U+201A`& ‚ &`U+203A`& › &`U+2265`& ≥
.row "" &`U+0307`& ̇ &`U+201C`& “ &`U+2044`& ⁄ &`U+25CA`& ◊
.row "" &`U+030B`& ̋ &`U+201D`& ” &`U+20AC`& € &`U+FB01`& fi
.row "" &`U+0326`& ̦ &`U+201E`& „ &`U+2122`& ™ &`U+FB02`& fl
.endtable
The next table shows characters that are supported by using the &'Symbol'&
font (in some cases, only if the normal font lacks them):
.itable none 0 0 9 10pt left &&&
1* left 1* left 1* left 1* left 1* left 1* left 1* left 1* left
.row "" &`U+0391`& Α &`U+03BA`& κ &`U+21B5`& ↵ &`U+2283`& ⊃
.row "" &`U+0392`& Β &`U+03BB`& λ &`U+21D0`& ⇐ &`U+2284`& ⊄
.row "" &`U+0393`& Γ &`U+03BC`& μ &`U+21D1`& ⇑ &`U+2286`& ⊆
.row "" &`U+0394`& Δ &`U+03BD`& ν &`U+21D2`& ⇒ &`U+2287`& ⊇
.row "" &`U+0395`& Ε &`U+03BE`& ξ &`U+21D3`& ⇓ &`U+2295`& ⊕
.row "" &`U+0396`& Ζ &`U+03BF`& ο &`U+21D4`& ⇔ &`U+2297`& ⊗
.row "" &`U+0397`& Η &`U+03C0`& π &`U+2200`& ∀ &`U+22A5`& ⊥
.row "" &`U+0398`& Θ &`U+03C1`& ρ &`U+2202`& ∂ &`U+22C0`& ⋀
.row "" &`U+0399`& Ι &`U+03C2`& ς &`U+2203`& ∃ &`U+22C1`& ⋁
.row "" &`U+039A`& Κ &`U+03C3`& σ &`U+2205`& ∅ &`U+22C5`& ⋅
.row "" &`U+039B`& Λ &`U+03C4`& τ &`U+2207`& ∇ &`U+2320`& ⌠
.row "" &`U+039C`& Μ &`U+03C5`& υ &`U+2208`& ∈ &`U+2321`& ⌡
.row "" &`U+039D`& Ν &`U+03C6`& φ &`U+2209`& ∉ &`U+2329`& 〈
.row "" &`U+039E`& Ξ &`U+03C7`& χ &`U+220D`& ∍ &`U+232A`& 〉
.row "" &`U+039F`& Ο &`U+03C8`& ψ &`U+220F`& ∏ &`U+239B`& ⎛
.row "" &`U+03A0`& Π &`U+03C9`& ω &`U+2211`& ∑ &`U+239C`& ⎜
.row "" &`U+03A1`& Ρ &`U+03D1`& ϑ &`U+2215`& ∕ &`U+239D`& ⎝
.row "" &`U+03A3`& Σ &`U+03D2`& ϒ &`U+221A`& √ &`U+239E`& ⎞
.row "" &`U+03A4`& Τ &`U+03D5`& ϕ &`U+221D`& ∝ &`U+239F`& ⎟
.row "" &`U+03A5`& Υ &`U+03D6`& ϖ &`U+221E`& ∞ &`U+23A0`& ⎠
.row "" &`U+03A6`& Φ &`U+12AA`& ኪ &`U+2220`& ∠ &`U+23A1`& ⎡
.row "" &`U+03A7`& Χ &`U+2032`& ′ &`U+2229`& ∩ &`U+23A2`& ⎢
.row "" &`U+03A8`& Ψ &`U+2033`& ″ &`U+222A`& ∪ &`U+23A3`& ⎣
.row "" &`U+03A9`& Ω &`U+20AC`& € &`U+222B`& ∫ &`U+23A4`& ⎤
.row "" &`U+03B1`& α &`U+2111`& ℑ &`U+2234`& ∴ &`U+23A5`& ⎥
.row "" &`U+03B2`& β &`U+2118`& ℘ &`U+223C`& ∼ &`U+23A6`& ⎦
.row "" &`U+03B3`& γ &`U+211C`& ℜ &`U+2245`& ≅ &`U+23A7`& ⎧
.row "" &`U+03B4`& δ &`U+2135`& ℵ &`U+2248`& ≈ &`U+23A8`& ⎨
.row "" &`U+03B5`& ε &`U+2190`& ← &`U+2260`& ≠ &`U+23A9`& ⎩
.row "" &`U+03B6`& ζ &`U+2191`& ↑ &`U+2261`& ≡ &`U+23AB`& ⎫
.row "" &`U+03B7`& η &`U+2192`& → &`U+2264`& ≤ &`U+23AC`& ⎬
.row "" &`U+03B8`& θ &`U+2193`& ↓ &`U+2265`& ≥ &`U+23AD`& ⎭
.row "" &`U+03B9`& ι &`U+2194`& ↔ &`U+2282`& ⊂ &`U+23AE`& ⎮
.endtable
The final table shows characters that are supported by using the
&'ZapfDingbats'& font:
.itable none 0 0 9 10pt left &&&
1* left 1* left 1* left 1* left 1* left 1* left 1* left 1* left
.row "" &`U+25A0`& ■ &`U+2722`& ✢ &`U+2751`& ❑ &`U+2791`& ➑
.row "" &`U+25B2`& ▲ &`U+2723`& ✣ &`U+2752`& ❒ &`U+2792`& ➒
.row "" &`U+25BC`& ▼ &`U+2724`& ✤ &`U+2756`& ❖ &`U+2793`& ➓
.row "" &`U+25C6`& ◆ &`U+2725`& ✥ &`U+2758`& ❘ &`U+2794`& ➔
.row "" &`U+25CA`& ◊ &`U+2726`& ✦ &`U+2759`& ❙ &`U+2798`& ➘
.row "" &`U+25D7`& ◗ &`U+2727`& ✧ &`U+275A`& ❚ &`U+2799`& ➙
.row "" &`U+260E`& ☎ &`U+2729`& ✩ &`U+275B`& ❛ &`U+279A`& ➚
.row "" &`U+261B`& ☛ &`U+272A`& ✪ &`U+275C`& ❜ &`U+279B`& ➛
.row "" &`U+261E`& ☞ &`U+272B`& ✫ &`U+275D`& ❝ &`U+279C`& ➜
.row "" &`U+2660`& ♠ &`U+272C`& ✬ &`U+275E`& ❞ &`U+279D`& ➝
.row "" &`U+2663`& ♣ &`U+272D`& ✭ &`U+2761`& ❡ &`U+279E`& ➞
.row "" &`U+2665`& ♥ &`U+272E`& ✮ &`U+2762`& ❢ &`U+279F`& ➟
.row "" &`U+2666`& ♦ &`U+272F`& ✯ &`U+2763`& ❣ &`U+27A0`& ➠
.row "" &`U+26AB`& ⚫ &`U+2730`& ✰ &`U+2764`& ❤ &`U+27A1`& ➡
.row "" &`U+2701`& ✁ &`U+2731`& ✱ &`U+2765`& ❥ &`U+27A2`& ➢
.row "" &`U+2702`& ✂ &`U+2732`& ✲ &`U+2766`& ❦ &`U+27A3`& ➣
.row "" &`U+2703`& ✃ &`U+2733`& ✳ &`U+2767`& ❧ &`U+27A4`& ➤
.row "" &`U+2704`& ✄ &`U+2734`& ✴ &`U+2776`& ❶ &`U+27A5`& ➥
.row "" &`U+2706`& ✆ &`U+2735`& ✵ &`U+2777`& ❷ &`U+27A6`& ➦
.row "" &`U+2707`& ✇ &`U+2736`& ✶ &`U+2778`& ❸ &`U+27A7`& ➧
.row "" &`U+2708`& ✈ &`U+2737`& ✷ &`U+2779`& ❹ &`U+27A8`& ➨
.row "" &`U+2709`& ✉ &`U+2738`& ✸ &`U+277A`& ❺ &`U+27A9`& ➩
.row "" &`U+270C`& ✌ &`U+2739`& ✹ &`U+277B`& ❻ &`U+27AA`& ➪
.row "" &`U+270D`& ✍ &`U+273A`& ✺ &`U+277C`& ❼ &`U+27AB`& ➫
.row "" &`U+270E`& ✎ &`U+273B`& ✻ &`U+277D`& ❽ &`U+27AC`& ➬
.row "" &`U+270F`& ✏ &`U+273C`& ✼ &`U+277E`& ❾ &`U+27AD`& ➭
.row "" &`U+2710`& ✐ &`U+273D`& ✽ &`U+277F`& ❿ &`U+27AE`& ➮
.row "" &`U+2711`& ✑ &`U+273E`& ✾ &`U+2780`& ➀ &`U+27AF`& ➯
.row "" &`U+2712`& ✒ &`U+273F`& ✿ &`U+2781`& ➁ &`U+27B1`& ➱
.row "" &`U+2713`& ✓ &`U+2740`& ❀ &`U+2782`& ➂ &`U+27B2`& ➲
.row "" &`U+2714`& ✔ &`U+2741`& ❁ &`U+2783`& ➃ &`U+27B3`& ➳
.row "" &`U+2715`& ✕ &`U+2742`& ❂ &`U+2784`& ➄ &`U+27B4`& ➴
.row "" &`U+2716`& ✖ &`U+2743`& ❃ &`U+2785`& ➅ &`U+27B5`& ➵
.row "" &`U+2717`& ✗ &`U+2744`& ❄ &`U+2786`& ➆ &`U+27B6`& ➶
.row "" &`U+2718`& ✘ &`U+2745`& ❅ &`U+2787`& ➇ &`U+27B7`& ➷
.row "" &`U+2719`& ✙ &`U+2746`& ❆ &`U+2788`& ➈ &`U+27B8`& ➸
.row "" &`U+271A`& ✚ &`U+2747`& ❇ &`U+2789`& ➉ &`U+27B9`& ➹
.row "" &`U+271B`& ✛ &`U+2748`& ❈ &`U+278A`& ➊ &`U+27BA`& ➺
.row "" &`U+271C`& ✜ &`U+2749`& ❉ &`U+278B`& ➋ &`U+27BB`& ➻
.row "" &`U+271D`& ✝ &`U+274A`& ❊ &`U+278C`& ➌ &`U+27BC`& ➼
.row "" &`U+271E`& ✞ &`U+274B`& ❋ &`U+278D`& ➍ &`U+27BD`& ➽
.row "" &`U+271F`& ✟ &`U+274D`& ❍ &`U+278E`& ➎ &`U+27BE`& ➾
.row "" &`U+2720`& ✠ &`U+274F`& ❏ &`U+278F`& ➏
.row "" &`U+2721`& ✡ &`U+2750`& ❐ &`U+2790`& ➐
.endtable
.index-to "ID10"
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
.chapter "Maintaining the hyphenation dictionary" "CHAPmainhydic" &&&
"Hyphenation dictionary"
.index "hyphenation" "dictionary maintenance"
SDoP is distributed with a British English hyphenation dictionary in a file
called &_HyphenData_&. This is installed with the other SDoP data files (often
in &_/usr/local/share/sdop/_&). The distribution also contains tools that
enable you to modify this dictionary, or create entirely different
dictionaries. These tools are not installed as user commands &-- they are built
by `make', but remain in the build &_src_& directory.
The &(buildhy)& program reads a file of hyphenated words and adds indexing
information on the front so that SDoP can then use it as a hyphenation
dictionary. Use it like this:
.display
&`buildhy`& <&'inputfile'&> <&'outputfile'&>
.endd
The input file is a list of words, one per line, in alphabetical order (not
counting the hyphens in the sort). The list that is used to create the
distributed dictionary is supplied in the file &_hyphenlist_&. It starts like
this:
.code
aba-cus
aba-lone
aban-don
aban-doned
aban-doner
aban-don-ment
abase-ment
.endd
The index that is added to the start of the output file (which is otherwise a
copy of the input) is in the form of four-letter entries with the offset of the
relevant point in the dictionary in digits after them. The total number of
entries in the index is output on the first line. The distributed dictionary
starts like this:
.code
1541
abdi148
abdu225
abid309
abol413
abor528
abra576
.endd
You can test a newly-built dictionary using the &(hytest)& program:
.display
&`hytest`& <&'new dictionary'&> [<&'input file'&> [<&'output file'&>]]
.endd
If no input (output) file is given, the standard input (output) is used.
A good test for a new dictionary is to take the input that you originally gave
to &(buildhy)&, remove all the hyphens, feed it to &(hytest)& and check that
you get back the original, hyphenated file. If you do not, the most likely
cause is that the input file is not in the correct alphabetic order.
. ////////////////////////////////////////////////////////////////////////////
. ////////////////////////////////////////////////////////////////////////////
. /////////////////////////////////////////////////////////////////////////////
. These literal XML lines are processing instructions for SDoP. Show only the
. title in page footers for the index.
. /////////////////////////////////////////////////////////////////////////////
.literal xml
<?sdop
format="newpage"
foot_right_recto="&chaptertitle;"
foot_right_verso="&chaptertitle;"
?>
.literal off
. /////////////////////////////////////////////////////////////////////////////
. /////////////////////////////////////////////////////////////////////////////
.makeindex "Index"
. /////////////////////////////////////////////////////////////////////////////
. /////////////////////////////////////////////////////////////////////////////
|