This file is indexed.

/usr/share/debian-reference/ch11.en.html is in debian-reference-en 2.72.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Chapter 11. Data conversion</title>
    <link rel="stylesheet" type="text/css" href="debian-reference.css"/>
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="home" href="index.en.html" title="Debian Reference"/>
    <link rel="up" href="index.en.html" title="Debian Reference"/>
    <link rel="prev" href="ch10.en.html" title="Chapter 10. Data management"/>
    <link rel="next" href="ch12.en.html" title="Chapter 12. Programming"/>
  </head>
  <body>
    <div class="navheader">
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Chapter 11. Data conversion</th>
        </tr>
        <tr>
          <td align="left"><a accesskey="p" href="ch10.en.html"><img src="images/prev.png" alt="Prev"/></a> </td>
          <th width="60%" align="center"> </th>
          <td align="right"> <a accesskey="n" href="ch12.en.html"><img src="images/next.png" alt="Next"/></a></td>
        </tr>
      </table>
      <hr/>
    </div>
    <div class="chapter">
      <div class="titlepage">
        <div>
          <div>
            <h1 class="title"><a id="_data_conversion"/>Chapter 11. Data conversion</h1>
          </div>
        </div>
      </div>
      <div class="toc">
        <p>
          <strong>Table of Contents</strong>
        </p>
        <dl class="toc">
          <dt>
            <span class="section">
              <a href="ch11.en.html#_text_data_conversion_tools">11.1. Text data conversion tools</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_converting_a_text_file_with_iconv">11.1.1. Converting a text file with iconv</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_checking_file_to_be_utf_8_with_iconv">11.1.2. Checking file to be UTF-8 with iconv</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_converting_file_names_with_iconv">11.1.3. Converting file names with iconv</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_eol_conversion">11.1.4. EOL conversion</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_tab_conversion">11.1.5. TAB conversion</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_editors_with_auto_conversion">11.1.6. Editors with auto-conversion</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_plain_text_extraction">11.1.7. Plain text extraction</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_highlighting_and_formatting_plain_text_data">11.1.8. Highlighting and formatting plain text data</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_xml_data">11.2. XML data</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_basic_hints_for_xml">11.2.1. Basic hints for XML</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_xml_processing">11.2.2. XML processing</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_the_xml_data_extraction">11.2.3. The XML data extraction</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_type_setting">11.3. Type setting</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_roff_typesetting">11.3.1. roff typesetting</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_tex_latex">11.3.2. TeX/LaTeX</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_pretty_print_a_manual_page">11.3.3. Pretty print a manual page</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_creating_a_manual_page">11.3.4. Creating a manual page</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_printable_data">11.4. Printable data</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_ghostscript">11.4.1. Ghostscript</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_merge_two_ps_or_pdf_files">11.4.2. Merge two PS or PDF files</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_printable_data_utilities">11.4.3. Printable data utilities</a>
                </span>
              </dt>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_printing_with_cups">11.4.4. Printing with CUPS</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_the_mail_data_conversion">11.5. The mail data conversion</a>
            </span>
          </dt>
          <dd>
            <dl>
              <dt>
                <span class="section">
                  <a href="ch11.en.html#_mail_data_basics">11.5.1. Mail data basics</a>
                </span>
              </dt>
            </dl>
          </dd>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_graphic_data_tools">11.6. Graphic data tools</a>
            </span>
          </dt>
          <dt>
            <span class="section">
              <a href="ch11.en.html#_miscellaneous_data_conversion">11.7. Miscellaneous data conversion</a>
            </span>
          </dt>
        </dl>
      </div>
      <p>Tools and tips for converting data formats on the Debian system are described.</p>
      <p>Standard based tools are in very good shape but support for proprietary data formats are limited.</p>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_text_data_conversion_tools"/>11.1. Text data conversion tools</h2>
            </div>
          </div>
        </div>
        <p>Following packages for the text data conversion caught my eyes.</p>
        <div class="table">
          <a id="listoftextdataconversiontools"/>
          <p class="title">
            <strong>Table 11.1. List of text data conversion tools</strong>
          </p>
          <div class="table-contents">
            <table class="table" summary="List of text data conversion tools" border="1">
              <colgroup>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
              </colgroup>
              <thead>
                <tr>
                  <th style="text-align: left">
    package
    </th>
                  <th style="text-align: left">
    popcon
    </th>
                  <th style="text-align: left">
    size
    </th>
                  <th style="text-align: left">
    keyword
    </th>
                  <th style="text-align: left">
    description
    </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/libc6">
                <code class="literal">libc6</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=libc6">V:930, I:999</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/libc/libc6.html">11401</a>
                  </td>
                  <td style="text-align: left">
    charset
    </td>
                  <td style="text-align: left">
    text encoding converter between locales by <span class="citerefentry"><span class="refentrytitle">iconv</span>(1)</span> (fundamental)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/recode">
                <code class="literal">recode</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=recode">V:4, I:30</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/r/recode.html">608</a>
                  </td>
                  <td style="text-align: left">
    charset+eol
    </td>
                  <td style="text-align: left">
    text encoding converter between locales (versatile, more aliases and features)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/konwert">
                <code class="literal">konwert</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=konwert">V:2, I:59</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/k/konwert.html">123</a>
                  </td>
                  <td style="text-align: left">
    charset
    </td>
                  <td style="text-align: left">
    text encoding converter between locales (fancy)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/nkf">
                <code class="literal">nkf</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=nkf">V:0, I:10</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/n/nkf.html">347</a>
                  </td>
                  <td style="text-align: left">
    charset
    </td>
                  <td style="text-align: left">
    character set translator for Japanese
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/tcs">
                <code class="literal">tcs</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=tcs">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/tcs.html">479</a>
                  </td>
                  <td style="text-align: left">
    charset
    </td>
                  <td style="text-align: left">
    character set translator
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/unaccent">
                <code class="literal">unaccent</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=unaccent">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/u/unaccent.html">29</a>
                  </td>
                  <td style="text-align: left">
    charset
    </td>
                  <td style="text-align: left">
    replace accented letters by their unaccented equivalent
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/tofrodos">
                <code class="literal">tofrodos</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=tofrodos">V:2, I:32</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/tofrodos.html">51</a>
                  </td>
                  <td style="text-align: left">
    eol
    </td>
                  <td style="text-align: left">
    text format converter between DOS and Unix: <span class="citerefentry"><span class="refentrytitle">fromdos</span>(1)</span> and <span class="citerefentry"><span class="refentrytitle">todos</span>(1)</span>
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/macutils">
                <code class="literal">macutils</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=macutils">V:0, I:1</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/m/macutils.html">298</a>
                  </td>
                  <td style="text-align: left">
    eol
    </td>
                  <td style="text-align: left">
    text format converter between Macintosh and Unix: <span class="citerefentry"><span class="refentrytitle">frommac</span>(1)</span> and <span class="citerefentry"><span class="refentrytitle">tomac</span>(1)</span>
    </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <br class="table-break"/>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_converting_a_text_file_with_iconv"/>11.1.1. Converting a text file with iconv</h3>
              </div>
            </div>
          </div>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p><span class="citerefentry"><span class="refentrytitle">iconv</span>(1)</span> is provided as a part of the <code class="literal">libc6</code> package and it is always available on practically all Unix-like systems to convert the encoding of characters.</p>
                </td>
              </tr>
            </table>
          </div>
          <p>You can convert encodings of a text file with <span class="citerefentry"><span class="refentrytitle">iconv</span>(1)</span> by the following.</p>
          <pre class="screen">$ iconv -f encoding1 -t encoding2 input.txt &gt;output.txt</pre>
          <p>Encoding values are case insensitive and ignore "<code class="literal">-</code>" and "<code class="literal">_</code>" for matching.  Supported encodings can be checked by the "<code class="literal">iconv -l</code>" command.</p>
          <div class="table">
            <a id="list-of-encoding-values"/>
            <p class="title">
              <strong>Table 11.2. List of encoding values and their usage</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of encoding values and their usage" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    encoding value
    </th>
                    <th style="text-align: left">
    usage
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/ASCII">ASCII</a>
                </td>
                    <td style="text-align: left"><a class="ulink" href="http://en.wikipedia.org/wiki/ASCII">American Standard Code for Information Interchange</a>, 7 bit code w/o accented characters
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a>
                </td>
                    <td style="text-align: left">
    current multilingual standard for all modern OSs
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a>
                </td>
                    <td style="text-align: left">
    old standard for western European languages, ASCII + accented characters
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-2">ISO-8859-2</a>
                </td>
                    <td style="text-align: left">
    old standard for eastern European languages, ASCII + accented characters
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-15">ISO-8859-15</a>
                </td>
                    <td style="text-align: left">
    old standard for western European languages, <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a> with euro sign
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_850">CP850</a>
                </td>
                    <td style="text-align: left">
    code page 850, Microsoft DOS characters with graphics for western European languages, <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-1">ISO-8859-1</a> variant
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_932">CP932</a>
                </td>
                    <td style="text-align: left">
    code page 932, Microsoft Windows style <a class="ulink" href="http://en.wikipedia.org/wiki/Shift_JIS">Shift-JIS</a> variant for Japanese
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_936">CP936</a>
                </td>
                    <td style="text-align: left">
    code page 936, Microsoft Windows style <a class="ulink" href="http://en.wikipedia.org/wiki/GB2312">GB2312</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/GBK">GBK</a> or <a class="ulink" href="http://en.wikipedia.org/wiki/GB18030">GB18030</a> variant for Simplified Chinese
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_949">CP949</a>
                </td>
                    <td style="text-align: left">
    code page 949, Microsoft Windows style <a class="ulink" href="http://en.wikipedia.org/wiki/Extended_Unix_Code#EUC-KR">EUC-KR</a> or Unified Hangul Code variant for Korean
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_950">CP950</a>
                </td>
                    <td style="text-align: left">
    code page 950, Microsoft Windows style <a class="ulink" href="http://en.wikipedia.org/wiki/Big5">Big5</a> variant for Traditional Chinese
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Windows-1251">CP1251</a>
                </td>
                    <td style="text-align: left">
    code page 1251, Microsoft Windows style encoding for the Cyrillic alphabet
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Windows-1252">CP1252</a>
                </td>
                    <td style="text-align: left">
    code page 1252, Microsoft Windows style <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859-15">ISO-8859-15</a> variant for western European languages
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/KOI8-R">KOI8-R</a>
                </td>
                    <td style="text-align: left">
    old Russian UNIX standard for the Cyrillic alphabet
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_2022">ISO-2022-JP</a>
                </td>
                    <td style="text-align: left">
    standard encoding for Japanese email which uses only 7 bit codes
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Extended_Unix_Code">eucJP</a>
                </td>
                    <td style="text-align: left">
    old Japanese UNIX standard 8 bit code and completely different from <a class="ulink" href="http://en.wikipedia.org/wiki/Shift_JIS">Shift-JIS</a>
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Shift_JIS">Shift-JIS</a>
                </td>
                    <td style="text-align: left">
    JIS X 0208 Appendix 1 standard for Japanese (see <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page_932">CP932</a>)
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>Some encodings are only supported for the data conversion and are not used as locale values (<a class="xref" href="ch08.en.html#_basics_of_encoding" title="8.4.1. Basics of encoding">Section 8.4.1, “Basics of encoding”</a>).</p>
                </td>
              </tr>
            </table>
          </div>
          <p>For character sets which fit in single byte such as <a class="ulink" href="http://en.wikipedia.org/wiki/ASCII">ASCII</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_8859">ISO-8859</a> character sets, the <a class="ulink" href="http://en.wikipedia.org/wiki/Character_encoding">character encoding</a> means almost the same thing as the character set.</p>
          <p>For character sets with many characters such as <a class="ulink" href="http://en.wikipedia.org/wiki/JIS_X_0213">JIS X 0213</a> for Japanese or <a class="ulink" href="http://en.wikipedia.org/wiki/Universal_Character_Set">Universal Character Set (UCS, Unicode, ISO-10646-1)</a> for practically all languages, there are many encoding schemes to fit them into the sequence of the byte data.</p>
          <div class="itemizedlist">
            <ul class="itemizedlist">
              <li class="listitem">
                <p><a class="ulink" href="http://en.wikipedia.org/wiki/Extended_Unix_Code">EUC</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/ISO/IEC_2022">ISO/IEC 2022 (also known as JIS X 0202)</a> for Japanese
</p>
              </li>
              <li class="listitem">
                <p><a class="ulink" href="http://en.wikipedia.org/wiki/UTF-8">UTF-8</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/UTF-16/UCS-2">UTF-16/UCS-2</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/UTF-32/UCS-4">UTF-32/UCS-4</a> for Unicode
</p>
              </li>
            </ul>
          </div>
          <p>For these, there are clear differentiations between the character set and the character encoding.</p>
          <p>The <a class="ulink" href="http://en.wikipedia.org/wiki/Code_page">code page</a> is used as the synonym to the character encoding tables for some vendor specific ones.</p>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>Please note most encoding systems share the same code with ASCII for the 7 bit characters.  But there are some exceptions. If you are converting old Japanese C programs and URLs data from the casually-called shift-JIS encoding format to UTF-8 format, use "<code class="literal">CP932</code>" as the encoding name instead of "<code class="literal">shift-JIS</code>" to get the expected results: <code class="literal">0x5C</code> → "<code class="literal">\</code>" and <code class="literal">0x7E</code> → "<code class="literal">~</code>".  Otherwise, these are converted to wrong characters.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p><span class="citerefentry"><span class="refentrytitle">recode</span>(1)</span> may be used too and offers more than the combined functionality of <span class="citerefentry"><span class="refentrytitle">iconv</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">fromdos</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">todos</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">frommac</span>(1)</span>, and <span class="citerefentry"><span class="refentrytitle">tomac</span>(1)</span>.  For more, see "<code class="literal">info recode</code>".</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_checking_file_to_be_utf_8_with_iconv"/>11.1.2. Checking file to be UTF-8 with iconv</h3>
              </div>
            </div>
          </div>
          <p>You can check if a text file is encoded in UTF-8 with <span class="citerefentry"><span class="refentrytitle">iconv</span>(1)</span> by the following.</p>
          <pre class="screen">$ iconv -f utf8 -t utf8 input.txt &gt;/dev/null || echo "non-UTF-8 found"</pre>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>Use "<code class="literal">--verbose</code>" option in the above example to find the first non-UTF-8 character.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_converting_file_names_with_iconv"/>11.1.3. Converting file names with iconv</h3>
              </div>
            </div>
          </div>
          <p>Here is an example script to convert encoding of file names from ones created under older OS to modern UTF-8 ones in a single directory.</p>
          <pre class="screen">#!/bin/sh
ENCDN=iso-8859-1
for x in *;
 do
 mv "$x" "$(echo "$x" | iconv -f $ENCDN -t utf-8)"
done</pre>
          <p>The "<code class="literal">$ENCDN</code>" variable specifies the original encoding used for file names under older OS as in <a class="xref" href="ch11.en.html#list-of-encoding-values" title="Table 11.2. List of encoding values and their usage">Table 11.2, “List of encoding values and their usage”</a>.</p>
          <p>For more complicated case, please mount a filesystem (e.g. a partition on a disk drive) containing such file names with proper encoding as the <span class="citerefentry"><span class="refentrytitle">mount</span>(8)</span> option (see <a class="xref" href="ch08.en.html#_filename_encoding" title="8.4.6. Filename encoding">Section 8.4.6, “Filename encoding”</a>) and copy its entire contents to another filesystem mounted as UTF-8 with "<code class="literal">cp -a</code>" command.</p>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_eol_conversion"/>11.1.4. EOL conversion</h3>
              </div>
            </div>
          </div>
          <p>The text file format, specifically the end-of-line (EOL) code, is dependent on the platform.</p>
          <div class="table">
            <a id="listofeolstylesffferentplatforms"/>
            <p class="title">
              <strong>Table 11.3. List of EOL styles for different platforms</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of EOL styles for different platforms" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    platform
    </th>
                    <th style="text-align: left">
    EOL code
    </th>
                    <th style="text-align: left">
    control
    </th>
                    <th style="text-align: left">
    decimal
    </th>
                    <th style="text-align: left">
    hexadecimal
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
    Debian (unix)
    </td>
                    <td style="text-align: left">
    LF
    </td>
                    <td style="text-align: left">
                  <code class="literal">^J</code>
                </td>
                    <td style="text-align: left">
    10
    </td>
                    <td style="text-align: left">
    0A
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
    MSDOS and Windows
    </td>
                    <td style="text-align: left">
    CR-LF
    </td>
                    <td style="text-align: left">
                  <code class="literal">^M^J</code>
                </td>
                    <td style="text-align: left">
    13 10
    </td>
                    <td style="text-align: left">
    0D 0A
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
    Apple's Macintosh
    </td>
                    <td style="text-align: left">
    CR
    </td>
                    <td style="text-align: left">
                  <code class="literal">^M</code>
                </td>
                    <td style="text-align: left">
    13
    </td>
                    <td style="text-align: left">
    0D
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <p>The EOL format conversion programs, <span class="citerefentry"><span class="refentrytitle">fromdos</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">todos</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">frommac</span>(1)</span>, and <span class="citerefentry"><span class="refentrytitle">tomac</span>(1)</span>, are quite handy.  <span class="citerefentry"><span class="refentrytitle">recode</span>(1)</span> is also useful.</p>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>Some data on the Debian system, such as the wiki page data for the <code class="literal">python-moinmoin</code> package, use MSDOS style CR-LF as the EOL code.  So the above rule is just a general rule.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>Most editors (eg. <code class="literal">vim</code>, <code class="literal">emacs</code>, <code class="literal">gedit</code>, …) can handle files in MSDOS style EOL transparently.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>The use of "<code class="literal">sed -e '/\r$/!s/$/\r/'</code>" instead of <span class="citerefentry"><span class="refentrytitle">todos</span>(1)</span> is better when you want to unify the EOL style to the MSDOS style from the mixed MSDOS and Unix style.  (e.g., after merging 2 MSDOS style files with <span class="citerefentry"><span class="refentrytitle">diff3</span>(1)</span>.)  This is because <code class="literal">todos</code> adds CR to all lines.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_tab_conversion"/>11.1.5. TAB conversion</h3>
              </div>
            </div>
          </div>
          <p>There are few popular specialized programs to convert the tab codes.</p>
          <div class="table">
            <a id="listoftabconversoreutilspackages"/>
            <p class="title">
              <strong>Table 11.4. List of TAB conversion commands from <code class="literal">bsdmainutils</code> and <code class="literal">coreutils</code> packages</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of TAB conversion commands from bsdmainutils and coreutils packages" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    function
    </th>
                    <th style="text-align: left">
                  <code class="literal">bsdmainutils</code>
                </th>
                    <th style="text-align: left">
                  <code class="literal">coreutils</code>
                </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
    expand tab to spaces
    </td>
                    <td style="text-align: left">
    "<code class="literal">col -x</code>"
    </td>
                    <td style="text-align: left">
                  <code class="literal">expand</code>
                </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
    unexpand tab from spaces
    </td>
                    <td style="text-align: left">
    "<code class="literal">col -h</code>"
    </td>
                    <td style="text-align: left">
                  <code class="literal">unexpand</code>
                </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <p><span class="citerefentry"><span class="refentrytitle">indent</span>(1)</span> from the <code class="literal">indent</code> package completely reformats whitespaces in the C program.</p>
          <p>Editor programs such as <code class="literal">vim</code> and <code class="literal">emacs</code> can be used for TAB conversion, too.  For example with <code class="literal">vim</code>, you can expand TAB with "<code class="literal">:set expandtab</code>" and "<code class="literal">:%retab</code>" command sequence.  You can revert this with "<code class="literal">:set noexpandtab</code>" and "<code class="literal">:%retab!</code>" command sequence.</p>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_editors_with_auto_conversion"/>11.1.6. Editors with auto-conversion</h3>
              </div>
            </div>
          </div>
          <p>Intelligent modern editors such as the <code class="literal">vim</code> program are quite smart and copes well with any encoding systems and any file formats.  You should use these editors under the UTF-8 locale in the UTF-8 capable console for the best compatibility.</p>
          <p>An old western European Unix text file, "<code class="literal">u-file.txt</code>", stored in the latin1 (iso-8859-1) encoding can be edited simply with <code class="literal">vim</code> by the following.</p>
          <pre class="screen">$ vim u-file.txt</pre>
          <p>This is possible since the auto detection mechanism of the file encoding in <code class="literal">vim</code> assumes the UTF-8 encoding first and, if it fails, assumes it to be latin1.</p>
          <p>An old Polish Unix text file, "<code class="literal">pu-file.txt</code>", stored in the latin2 (iso-8859-2) encoding can be edited with <code class="literal">vim</code> by the following.</p>
          <pre class="screen">$ vim '+e ++enc=latin2 pu-file.txt'</pre>
          <p>An old Japanese unix text file, "<code class="literal">ju-file.txt</code>", stored in the eucJP encoding can be edited with <code class="literal">vim</code> by the following.</p>
          <pre class="screen">$ vim '+e ++enc=eucJP ju-file.txt'</pre>
          <p>An old Japanese MS-Windows text file, "<code class="literal">jw-file.txt</code>", stored in the so called shift-JIS encoding (more precisely: CP932) can be edited with <code class="literal">vim</code> by the following.</p>
          <pre class="screen">$ vim '+e ++enc=CP932 ++ff=dos jw-file.txt'</pre>
          <p>When a file is opened with "<code class="literal">++enc</code>" and "<code class="literal">++ff</code>" options, "<code class="literal">:w</code>" in the Vim command line  stores it in the original format and overwrite the original file.  You can also specify the saving format and the file name in the Vim command line, e.g., "<code class="literal">:w ++enc=utf8 new.txt</code>".</p>
          <p>Please refer to the mbyte.txt "multi-byte text support" in <code class="literal">vim</code> on-line help and <a class="xref" href="ch11.en.html#list-of-encoding-values" title="Table 11.2. List of encoding values and their usage">Table 11.2, “List of encoding values and their usage”</a> for locale values used with "<code class="literal">++enc</code>".</p>
          <p>The <code class="literal">emacs</code> family of programs can perform the equivalent functions.</p>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_plain_text_extraction"/>11.1.7. Plain text extraction</h3>
              </div>
            </div>
          </div>
          <p>The following reads a web page into a text file.  This is very useful when copying configurations off the Web or applying basic Unix text tools such as <span class="citerefentry"><span class="refentrytitle">grep</span>(1)</span> on the web page.</p>
          <pre class="screen">$ w3m -dump http://www.remote-site.com/help-info.html &gt;textfile</pre>
          <p>Similarly, you can extract plain text data from other formats using the following.</p>
          <div class="table">
            <a id="listoftoolstoextactplaintextdata"/>
            <p class="title">
              <strong>Table 11.5. List of tools to extract plain text data</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of tools to extract plain text data" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    function
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/w3m">
                  <code class="literal">w3m</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=w3m">V:126, I:564</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/w/w3m.html">2302</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    HTML to text converter with the "<code class="literal">w3m -dump</code>" command
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/html2text">
                  <code class="literal">html2text</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=html2text">V:14, I:58</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/h/html2text.html">257</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    advanced HTML to text converter (ISO 8859-1)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/lynx">
                  <code class="literal">lynx</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=lynx">V:23, I:104</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/l/lynx.html">1903</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    HTML to text converter with the "<code class="literal">lynx -dump</code>" command
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/elinks">
                  <code class="literal">elinks</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=elinks">V:12, I:31</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/e/elinks.html">1583</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    HTML to text converter with the "<code class="literal">elinks -dump</code>" command
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/links">
                  <code class="literal">links</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=links">V:15, I:44</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/l/links.html">2123</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    HTML to text converter with the "<code class="literal">links -dump</code>" command
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/links2">
                  <code class="literal">links2</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=links2">V:2, I:16</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/l/links2.html">5366</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    HTML to text converter with the "<code class="literal">links2 -dump</code>" command
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/antiword">
                  <code class="literal">antiword</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=antiword">V:5, I:13</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/a/antiword.html">623</a>
                    </td>
                    <td style="text-align: left">
    MSWord→text,ps
    </td>
                    <td style="text-align: left">
    convert MSWord files to plain text or ps
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/catdoc">
                  <code class="literal">catdoc</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=catdoc">V:56, I:100</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/c/catdoc.html">675</a>
                    </td>
                    <td style="text-align: left">
    MSWord→text,TeX
    </td>
                    <td style="text-align: left">
    convert MSWord files to plain text or TeX
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/pstotext">
                  <code class="literal">pstotext</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=pstotext">V:3, I:6</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/pstotext.html">126</a>
                    </td>
                    <td style="text-align: left">
    ps/pdf→text
    </td>
                    <td style="text-align: left">
    extract text from PostScript and PDF files
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/unhtml">
                  <code class="literal">unhtml</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=unhtml">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/u/unhtml.html">42</a>
                    </td>
                    <td style="text-align: left">
    html→text
    </td>
                    <td style="text-align: left">
    remove the markup tags from an HTML file
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/odt2txt">
                  <code class="literal">odt2txt</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=odt2txt">V:2, I:7</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/o/odt2txt.html">53</a>
                    </td>
                    <td style="text-align: left">
    odt→text
    </td>
                    <td style="text-align: left">
    converter from OpenDocument Text to text
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_highlighting_and_formatting_plain_text_data"/>11.1.8. Highlighting and formatting plain text data</h3>
              </div>
            </div>
          </div>
          <p>You can highlight and format plain text data by the following.</p>
          <div class="table">
            <a id="listoftoolstohigghtplaintextdata"/>
            <p class="title">
              <strong>Table 11.6. List of tools to highlight plain text data</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of tools to highlight plain text data" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/vim-runtime">
                  <code class="literal">vim-runtime</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=vim-runtime">V:20, I:429</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/v/vim-runtime.html">28409</a>
                    </td>
                    <td style="text-align: left">
    highlight
    </td>
                    <td style="text-align: left">
    Vim MACRO to convert source code to HTML with "<code class="literal">:source $VIMRUNTIME/syntax/html.vim</code>"
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/cxref">
                  <code class="literal">cxref</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=cxref">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/c/cxref.html">1182</a>
                    </td>
                    <td style="text-align: left">
    c→html
    </td>
                    <td style="text-align: left">
    converter for the C program to latex and HTML (C language)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/src2tex">
                  <code class="literal">src2tex</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=src2tex">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/src2tex.html">622</a>
                    </td>
                    <td style="text-align: left">
    highlight
    </td>
                    <td style="text-align: left">
    convert many source codes to TeX (C language)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/source-highlight">
                  <code class="literal">source-highlight</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=source-highlight">V:1, I:7</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/source-highlight.html">2002</a>
                    </td>
                    <td style="text-align: left">
    highlight
    </td>
                    <td style="text-align: left">
    convert many source codes to HTML, XHTML, LaTeX, Texinfo, ANSI color escape sequences and DocBook files with highlight (C++)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/highlight">
                  <code class="literal">highlight</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=highlight">V:1, I:16</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/h/highlight.html">1028</a>
                    </td>
                    <td style="text-align: left">
    highlight
    </td>
                    <td style="text-align: left">
    convert many source codes to HTML, XHTML, RTF, LaTeX, TeX or XSL-FO files with highlight (C++)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/grc">
                  <code class="literal">grc</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=grc">V:0, I:2</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/g/grc.html">106</a>
                    </td>
                    <td style="text-align: left">
    text→color
    </td>
                    <td style="text-align: left">
    generic colouriser for everything (Python)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/txt2html">
                  <code class="literal">txt2html</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=txt2html">V:0, I:4</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/txt2html.html">296</a>
                    </td>
                    <td style="text-align: left">
    text→html
    </td>
                    <td style="text-align: left">
    text to HTML converter (Perl)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/markdown">
                  <code class="literal">markdown</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=markdown">V:0, I:7</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/m/markdown.html">57</a>
                    </td>
                    <td style="text-align: left">
    text→html
    </td>
                    <td style="text-align: left">
    markdown text document formatter to (X)HTML (Perl)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/asciidoc">
                  <code class="literal">asciidoc</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=asciidoc">I:13</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/a/asciidoc.html">80</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    AsciiDoc text document formatter to XML/HTML (Python)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/pandoc">
                  <code class="literal">pandoc</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=pandoc">V:5, I:35</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/pandoc.html">50901</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    general markup converter (Haskell)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/python-docutils">
                  <code class="literal">python-docutils</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=python-docutils">V:39, I:332</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/python-docutils.html">1752</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    ReStructured Text document formatter to XML (Python)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/txt2tags">
                  <code class="literal">txt2tags</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=txt2tags">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/txt2tags.html">951</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    document conversion from text to HTML, SGML, LaTeX, man page, MoinMoin, Magic Point and PageMaker (Python)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/udo">
                  <code class="literal">udo</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=udo">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/u/udo.html">564</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    universal document - text processing utility (C language)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/stx2any">
                  <code class="literal">stx2any</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=stx2any">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/stx2any.html">264</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    document converter from structured plain text to other formats (m4)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/rest2web">
                  <code class="literal">rest2web</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=rest2web">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/r/rest2web.html">527</a>
                    </td>
                    <td style="text-align: left">
    text→html
    </td>
                    <td style="text-align: left">
    document converter from ReStructured Text to html (Python)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/aft">
                  <code class="literal">aft</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=aft">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/a/aft.html">235</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    "free form" document preparation system (Perl)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/yodl">
                  <code class="literal">yodl</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=yodl">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/y/yodl.html">615</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    pre-document language and tools to process it (C language)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/sdf">
                  <code class="literal">sdf</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=sdf">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/sdf.html">1445</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    simple document parser (Perl)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/sisu">
                  <code class="literal">sisu</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=sisu">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/sisu.html">5341</a>
                    </td>
                    <td style="text-align: left">
    text→any
    </td>
                    <td style="text-align: left">
    document structuring, publishing and search framework (Ruby)
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_xml_data"/>11.2. XML data</h2>
            </div>
          </div>
        </div>
        <p><a class="ulink" href="http://en.wikipedia.org/wiki/XML">The Extensible Markup Language (XML)</a> is a markup language for documents containing structured information.</p>
        <p>See introductory information at <a class="ulink" href="http://xml.com/">XML.COM</a>.</p>
        <div class="itemizedlist">
          <ul class="itemizedlist">
            <li class="listitem">
              <p>
            <a class="ulink" href="http://www.xml.com/pub/a/98/10/guide0.html">"What is XML?"</a>
          </p>
            </li>
            <li class="listitem">
              <p>
            <a class="ulink" href="http://xml.com/pub/a/2000/08/holman/index.html">"What Is XSLT?"</a>
          </p>
            </li>
            <li class="listitem">
              <p>
            <a class="ulink" href="http://xml.com/pub/a/2002/03/20/xsl-fo.html">"What Is XSL-FO?"</a>
          </p>
            </li>
            <li class="listitem">
              <p>
            <a class="ulink" href="http://xml.com/pub/a/2000/09/xlink/index.html">"What Is XLink?"</a>
          </p>
            </li>
          </ul>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_basic_hints_for_xml"/>11.2.1. Basic hints for XML</h3>
              </div>
            </div>
          </div>
          <p>XML text looks somewhat like <a class="ulink" href="http://en.wikipedia.org/wiki/HTML">HTML</a>.  It enables us to manage multiple formats of output for a document.  One easy XML system is the <code class="literal">docbook-xsl</code> package, which is used here.</p>
          <p>Each XML file starts with standard XML declaration as the following.</p>
          <pre class="screen">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</pre>
          <p>The basic syntax for one XML element is marked up as the following.</p>
          <pre class="screen">&lt;name attribute="value"&gt;content&lt;/name&gt;</pre>
          <p>XML element with empty content is marked up in the following short form.</p>
          <pre class="screen">&lt;name attribute="value"/&gt;</pre>
          <p>The "<code class="literal">attribute="value"</code>" in the above examples are optional.</p>
          <p>The comment section in XML is marked up as the following.</p>
          <pre class="screen">&lt;!-- comment --&gt;</pre>
          <p>Other than adding markups, XML requires minor conversion to the content using predefined entities for following characters.</p>
          <div class="table">
            <a id="listofpredefinedentitiesforxml"/>
            <p class="title">
              <strong>Table 11.7. List of predefined entities for XML</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of predefined entities for XML" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    predefined entity
    </th>
                    <th style="text-align: left">
    character to be converted into
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                  <code class="literal">&amp;quot;</code>
                </td>
                    <td style="text-align: left"><code class="literal">"</code> : quote
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <code class="literal">&amp;apos;</code>
                </td>
                    <td style="text-align: left"><code class="literal">'</code> : apostrophe
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <code class="literal">&amp;lt;</code>
                </td>
                    <td style="text-align: left"><code class="literal">&lt;</code> : less-than
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <code class="literal">&amp;gt;</code>
                </td>
                    <td style="text-align: left"><code class="literal">&gt;</code> : greater-than
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                  <code class="literal">&amp;amp;</code>
                </td>
                    <td style="text-align: left"><code class="literal">&amp;</code> : ampersand
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <div class="caution" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Caution">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Caution]" src="images/caution.png"/>
                </td>
                <th align="left">Caution</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>"<code class="literal">&lt;</code>" or "<code class="literal">&amp;</code>" can not be used in attributes or elements.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>When SGML style user defined entities, e.g. "<code class="literal">&amp;some-tag:</code>", are used, the first definition wins over others.  The entity definition is expressed in "<code class="literal">&lt;!ENTITY some-tag "entity value"&gt;</code>".</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>As long as the XML markup are done consistently with certain set of the tag name (either some data as content or attribute value), conversion to another XML is trivial task using <a class="ulink" href="http://en.wikipedia.org/wiki/XSL_Transformations">Extensible Stylesheet Language Transformations (XSLT)</a>.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_xml_processing"/>11.2.2. XML processing</h3>
              </div>
            </div>
          </div>
          <p>There are many tools available to process XML files such as <a class="ulink" href="http://en.wikipedia.org/wiki/Extensible_Stylesheet_Language">the Extensible Stylesheet Language (XSL)</a>.</p>
          <p>Basically, once you create well formed XML file, you can convert it to any format using <a class="ulink" href="http://en.wikipedia.org/wiki/XSL_Transformations">Extensible Stylesheet Language Transformations (XSLT)</a>.</p>
          <p>The <a class="ulink" href="http://en.wikipedia.org/wiki/XSL_Formatting_Objects">Extensible Stylesheet Language for Formatting Objects (XSL-FO)</a> is supposed to be solution for formatting. The <code class="literal">fop</code> package is new to the Debian <code class="literal">main</code> archive due to its dependence to the <a class="ulink" href="http://en.wikipedia.org/wiki/Java_(programming_language)">Java programing language</a>. So the LaTeX code is usually generated from XML using XSLT and the LaTeX system is used to create printable file such as DVI, PostScript, and PDF.</p>
          <div class="table">
            <a id="listofxmltools"/>
            <p class="title">
              <strong>Table 11.8. List of XML tools</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of XML tools" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/docbook-xml">
                  <code class="literal">docbook-xml</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=docbook-xml">I:529</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/docbook-xml.html">2131</a>
                    </td>
                    <td style="text-align: left">
    xml
    </td>
                    <td style="text-align: left">
    XML document type definition (DTD) for DocBook
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/xsltproc">
                  <code class="literal">xsltproc</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=xsltproc">V:16, I:113</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/x/xsltproc.html">149</a>
                    </td>
                    <td style="text-align: left">
    xslt
    </td>
                    <td style="text-align: left">
    XSLT command line processor (XML→ XML, HTML, plain text, etc.)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/docbook-xsl">
                  <code class="literal">docbook-xsl</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=docbook-xsl">V:14, I:222</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/docbook-xsl.html">14998</a>
                    </td>
                    <td style="text-align: left">
    xml/xslt
    </td>
                    <td style="text-align: left">
    XSL stylesheets for processing DocBook XML to various output formats with XSLT
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/xmlto">
                  <code class="literal">xmlto</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=xmlto">V:2, I:32</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/x/xmlto.html">126</a>
                    </td>
                    <td style="text-align: left">
    xml/xslt
    </td>
                    <td style="text-align: left">
    XML-to-any converter with XSLT
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/dbtoepub">
                  <code class="literal">dbtoepub</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=dbtoepub">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/dbtoepub.html">71</a>
                    </td>
                    <td style="text-align: left">
    xml/xslt
    </td>
                    <td style="text-align: left">
    DocBook XML to .epub converter
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/dblatex">
                  <code class="literal">dblatex</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=dblatex">V:6, I:21</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/dblatex.html">4648</a>
                    </td>
                    <td style="text-align: left">
    xml/xslt
    </td>
                    <td style="text-align: left">
    convert Docbook files to DVI, PostScript, PDF documents with XSLT
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/fop">
                  <code class="literal">fop</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=fop">V:2, I:47</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/f/fop.html">64</a>
                    </td>
                    <td style="text-align: left">
    xml/xsl-fo
    </td>
                    <td style="text-align: left">
    convert Docbook XML files to PDF
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <p>Since XML is subset of <a class="ulink" href="http://en.wikipedia.org/wiki/SGML">Standard Generalized Markup Language (SGML)</a>, it can be processed by the extensive tools available for SGML, such as <a class="ulink" href="http://en.wikipedia.org/wiki/Document_Style_Semantics_and_Specification_Language">Document Style Semantics and Specification Language (DSSSL)</a>.</p>
          <div class="table">
            <a id="listofdsssltools"/>
            <p class="title">
              <strong>Table 11.9. List of DSSSL tools</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of DSSSL tools" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/openjade">
                  <code class="literal">openjade</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=openjade">V:3, I:44</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/o/openjade.html">988</a>
                    </td>
                    <td style="text-align: left">
    dsssl
    </td>
                    <td style="text-align: left">
    ISO/IEC 10179:1996 standard DSSSL processor (latest)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/docbook-dsssl">
                  <code class="literal">docbook-dsssl</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=docbook-dsssl">V:2, I:33</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/docbook-dsssl.html">2604</a>
                    </td>
                    <td style="text-align: left">
    xml/dsssl
    </td>
                    <td style="text-align: left">
    DSSSL stylesheets for processing DocBook XML to various output formats with DSSSL
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/docbook-utils">
                  <code class="literal">docbook-utils</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=docbook-utils">V:1, I:22</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/docbook-utils.html">281</a>
                    </td>
                    <td style="text-align: left">
    xml/dsssl
    </td>
                    <td style="text-align: left">
    utilities for DocBook files including conversion to other formats (HTML, RTF, PS, man, PDF) with <code class="literal">docbook2*</code> commands with DSSSL
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/sgml2x">
                  <code class="literal">sgml2x</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=sgml2x">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/s/sgml2x.html">90</a>
                    </td>
                    <td style="text-align: left">
    SGML/dsssl
    </td>
                    <td style="text-align: left">
    converter from SGML and XML using DSSSL stylesheets
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p><a class="ulink" href="http://en.wikipedia.org/wiki/GNOME">GNOME</a>'s <code class="literal">yelp</code> is sometimes handy to read <a class="ulink" href="http://en.wikipedia.org/wiki/DocBook">DocBook</a> XML files directly since it renders decently on X.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_the_xml_data_extraction"/>11.2.3. The XML data extraction</h3>
              </div>
            </div>
          </div>
          <p>You can extract HTML or XML data from other formats using followings.</p>
          <div class="table">
            <a id="listofxmldataextractiontools"/>
            <p class="title">
              <strong>Table 11.10. List of XML data extraction tools</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of XML data extraction tools" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/wv">
                  <code class="literal">wv</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=wv">V:5, I:8</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/w/wv.html">717</a>
                    </td>
                    <td style="text-align: left">
    MSWord→any
    </td>
                    <td style="text-align: left">
    document converter from Microsoft Word to HTML, LaTeX, etc.
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/texi2html">
                  <code class="literal">texi2html</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=texi2html">V:0, I:9</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/texi2html.html">1832</a>
                    </td>
                    <td style="text-align: left">
    texi→html
    </td>
                    <td style="text-align: left">
    converter from Texinfo to HTML
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/man2html">
                  <code class="literal">man2html</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=man2html">V:0, I:3</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/m/man2html.html">141</a>
                    </td>
                    <td style="text-align: left">
    manpage→html
    </td>
                    <td style="text-align: left">
    converter from manpage to HTML (CGI support)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/unrtf">
                  <code class="literal">unrtf</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=unrtf">V:1, I:4</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/u/unrtf.html">145</a>
                    </td>
                    <td style="text-align: left">
    rtf→html
    </td>
                    <td style="text-align: left">
    document converter from RTF to HTML, etc
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/info2www">
                  <code class="literal">info2www</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=info2www">V:2, I:4</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/i/info2www.html">156</a>
                    </td>
                    <td style="text-align: left">
    info→html
    </td>
                    <td style="text-align: left">
    converter from GNU info to HTML (CGI support)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/ooo2dbk">
                  <code class="literal">ooo2dbk</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=ooo2dbk">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/o/ooo2dbk.html">217</a>
                    </td>
                    <td style="text-align: left">
    sxw→xml
    </td>
                    <td style="text-align: left">
    converter from OpenOffice.org SXW documents to DocBook XML
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/wp2x">
                  <code class="literal">wp2x</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=wp2x">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/w/wp2x.html">215</a>
                    </td>
                    <td style="text-align: left">
    WordPerfect→any
    </td>
                    <td style="text-align: left">
    WordPerfect 5.0 and 5.1 files to TeX, LaTeX, troff, GML and HTML
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/doclifter">
                  <code class="literal">doclifter</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=doclifter">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/doclifter.html">457</a>
                    </td>
                    <td style="text-align: left">
    troff→xml
    </td>
                    <td style="text-align: left">
    converter from troff to DocBook XML
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <p>For non-XML HTML files, you can convert them to XHTML which is an instance of well formed XML.  XHTML can be processed by XML tools.</p>
          <div class="table">
            <a id="listofxmlprettyprinttools"/>
            <p class="title">
              <strong>Table 11.11. List of XML pretty print tools</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of XML pretty print tools" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/libxml2-utils">
                  <code class="literal">libxml2-utils</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=libxml2-utils">V:23, I:306</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/libx/libxml2-utils.html">167</a>
                    </td>
                    <td style="text-align: left">
    xml↔html↔xhtml
    </td>
                    <td style="text-align: left">
    command line XML tool with <span class="citerefentry"><span class="refentrytitle">xmllint</span>(1)</span> (syntax check, reformat, lint, …)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/tidy">
                  <code class="literal">tidy</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=tidy">V:2, I:17</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/tidy.html">83</a>
                    </td>
                    <td style="text-align: left">
    xml↔html↔xhtml
    </td>
                    <td style="text-align: left">
    HTML syntax checker and reformatter
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <p>Once proper XML is generated, you can use XSLT technology to extract data based on the mark-up context etc.</p>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_type_setting"/>11.3. Type setting</h2>
            </div>
          </div>
        </div>
        <p>The Unix <a class="ulink" href="http://en.wikipedia.org/wiki/Troff">troff</a> program originally developed by AT&amp;T can be used for simple typesetting.  It is usually used to create manpages.</p>
        <p><a class="ulink" href="http://en.wikipedia.org/wiki/TeX">TeX</a> created by Donald Knuth is a very powerful type setting tool and is the de facto standard. <a class="ulink" href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a> originally written by Leslie Lamport enables a high-level access to the power of TeX.</p>
        <div class="table">
          <a id="listoftypesettingtools"/>
          <p class="title">
            <strong>Table 11.12. List of type setting tools</strong>
          </p>
          <div class="table-contents">
            <table class="table" summary="List of type setting tools" border="1">
              <colgroup>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
              </colgroup>
              <thead>
                <tr>
                  <th style="text-align: left">
    package
    </th>
                  <th style="text-align: left">
    popcon
    </th>
                  <th style="text-align: left">
    size
    </th>
                  <th style="text-align: left">
    keyword
    </th>
                  <th style="text-align: left">
    description
    </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/texlive">
                <code class="literal">texlive</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=texlive">V:6, I:63</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/texlive.html">69</a>
                  </td>
                  <td style="text-align: left">
    (La)TeX
    </td>
                  <td style="text-align: left">
    TeX system for typesetting, previewing and printing
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/groff">
                <code class="literal">groff</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=groff">V:5, I:116</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/groff.html">9389</a>
                  </td>
                  <td style="text-align: left">
    troff
    </td>
                  <td style="text-align: left">
    GNU troff text-formatting system
    </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <br class="table-break"/>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_roff_typesetting"/>11.3.1. roff typesetting</h3>
              </div>
            </div>
          </div>
          <p>Traditionally, <a class="ulink" href="http://en.wikipedia.org/wiki/Roff">roff</a> is the main Unix text processing system.  See <span class="citerefentry"><span class="refentrytitle">roff</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">grotty</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">troff</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">groff_mdoc</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff_man</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff_ms</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff_me</span>(7)</span>, <span class="citerefentry"><span class="refentrytitle">groff_mm</span>(7)</span>, and "<code class="literal">info groff</code>".</p>
          <p>You can read or print a good tutorial and reference on "<code class="literal">-me</code>" <a class="ulink" href="http://en.wikipedia.org/wiki/Macro_(computer_science)">macro</a> in "<code class="literal">/usr/share/doc/groff/</code>" by installing the <code class="literal">groff</code> package.</p>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>"<code class="literal">groff -Tascii -me -</code>" produces plain text output with <a class="ulink" href="http://en.wikipedia.org/wiki/ANSI_escape_code">ANSI escape code</a>.  If you wish to get manpage like output with many "^H" and "_", use "<code class="literal">GROFF_NO_SGR=1 groff -Tascii -me -</code>" instead.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>To remove "^H" and "_" from a text file generated by <code class="literal">groff</code>, filter it by "<code class="literal">col -b -x</code>".</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_tex_latex"/>11.3.2. TeX/LaTeX</h3>
              </div>
            </div>
          </div>
          <p>The <a class="ulink" href="http://en.wikipedia.org/wiki/TeX_Live">TeX Live</a> software distribution offers a complete TeX system.  The <code class="literal">texlive</code> metapackage provides a decent selection of the <a class="ulink" href="http://en.wikipedia.org/wiki/TeX_Live">TeX Live</a> packages which should suffice for the most common tasks.</p>
          <p>There are many references available for <a class="ulink" href="http://en.wikipedia.org/wiki/TeX">TeX</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a>.</p>
          <div class="itemizedlist">
            <ul class="itemizedlist">
              <li class="listitem">
                <p>
              <a class="ulink" href="http://www.tldp.org/HOWTO/TeTeX-HOWTO.html">The teTeX HOWTO: The Linux-teTeX Local Guide</a>
            </p>
              </li>
              <li class="listitem">
                <p><span class="citerefentry"><span class="refentrytitle">tex</span>(1)</span>
</p>
              </li>
              <li class="listitem">
                <p><span class="citerefentry"><span class="refentrytitle">latex</span>(1)</span>
</p>
              </li>
              <li class="listitem">
                <p><span class="citerefentry"><span class="refentrytitle">texdoc</span>(1)</span>
</p>
              </li>
              <li class="listitem">
                <p><span class="citerefentry"><span class="refentrytitle">texdoctk</span>(1)</span>
</p>
              </li>
              <li class="listitem">
                <p>
"The TeXbook", by Donald E. Knuth, (Addison-Wesley)
</p>
              </li>
              <li class="listitem">
                <p>
"LaTeX - A Document Preparation System", by Leslie Lamport, (Addison-Wesley)
</p>
              </li>
              <li class="listitem">
                <p>
"The LaTeX Companion", by Goossens, Mittelbach, Samarin, (Addison-Wesley)
</p>
              </li>
            </ul>
          </div>
          <p>This is the most powerful typesetting environment.  Many <a class="ulink" href="http://en.wikipedia.org/wiki/Standard_Generalized_Markup_Language">SGML</a> processors use this as their back end text processor.  <a class="ulink" href="http://en.wikipedia.org/wiki/Lyx">Lyx</a> provided by the <code class="literal">lyx</code> package and <a class="ulink" href="http://en.wikipedia.org/wiki/GNU_TeXmacs">GNU TeXmacs</a> provided by the <code class="literal">texmacs</code> package offer nice <a class="ulink" href="http://en.wikipedia.org/wiki/WYSIWYG">WYSIWYG</a> editing environment for <a class="ulink" href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a> while many use <a class="ulink" href="http://en.wikipedia.org/wiki/Emacs">Emacs</a> and <a class="ulink" href="http://en.wikipedia.org/wiki/Vim_(text_editor)">Vim</a> as the choice for the source editor.</p>
          <p>There are many online resources available.</p>
          <div class="itemizedlist">
            <ul class="itemizedlist">
              <li class="listitem">
                <p>
The TEX Live Guide - TEX Live 2007 ("<code class="literal">/usr/share/doc/texlive-doc-base/english/texlive-en/live.html</code>") (<code class="literal">texlive-doc-base</code> package)
</p>
              </li>
              <li class="listitem">
                <p>
              <a class="ulink" href="http://www.stat.rice.edu/~helpdesk/howto/lyxguide.html">A Simple Guide to Latex/Lyx</a>
            </p>
              </li>
              <li class="listitem">
                <p>
              <a class="ulink" href="http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/latex_basic/latex_basic.html">Word Processing Using LaTeX</a>
            </p>
              </li>
              <li class="listitem">
                <p>
              <a class="ulink" href="http://supportweb.cs.bham.ac.uk/documentation/LaTeX/lguide/local-guide/local-guide.html">Local User Guide to teTeX/LaTeX</a>
            </p>
              </li>
            </ul>
          </div>
          <p>When documents become bigger, sometimes TeX may cause errors.  You must increase pool size in "<code class="literal">/etc/texmf/texmf.cnf</code>" (or more appropriately edit "<code class="literal">/etc/texmf/texmf.d/95NonPath</code>" and run <span class="citerefentry"><span class="refentrytitle">update-texmf</span>(8)</span>) to fix this.</p>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>The TeX source of "The TeXbook" is available at <a class="ulink" href="http://tug.ctan.org/tex-archive/systems/knuth/dist/tex/texbook.tex">http://tug.ctan.org/tex-archive/systems/knuth/dist/tex/texbook.tex</a>. This file contains most of the required macros.  I heard that you can process this document with <span class="citerefentry"><span class="refentrytitle">tex</span>(1)</span> after commenting lines 7 to 10 and adding "<code class="literal">\input manmac \proofmodefalse</code>". It's strongly recommended to buy this book (and all other books from Donald E. Knuth) instead of using the online version but the source is a great example of TeX input!</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_pretty_print_a_manual_page"/>11.3.3. Pretty print a manual page</h3>
              </div>
            </div>
          </div>
          <p>You can print a manual page in PostScript nicely by one of the following commands.</p>
          <pre class="screen">$ man -Tps some_manpage | lpr</pre>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_creating_a_manual_page"/>11.3.4. Creating a manual page</h3>
              </div>
            </div>
          </div>
          <p>Although writing a manual page (manpage) in the plain <a class="ulink" href="http://en.wikipedia.org/wiki/Troff">troff</a> format is possible, there are few helper packages to create it.</p>
          <div class="table">
            <a id="listofpackagestoeatingthemanpage"/>
            <p class="title">
              <strong>Table 11.13. List of packages to help creating the manpage</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of packages to help creating the manpage" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/docbook-to-man">
                  <code class="literal">docbook-to-man</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=docbook-to-man">V:1, I:16</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/d/docbook-to-man.html">187</a>
                    </td>
                    <td style="text-align: left">
    SGML→manpage
    </td>
                    <td style="text-align: left">
    converter from DocBook SGML into roff man macros
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/help2man">
                  <code class="literal">help2man</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=help2man">V:0, I:9</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/h/help2man.html">464</a>
                    </td>
                    <td style="text-align: left">
    text→manpage
    </td>
                    <td style="text-align: left">
    automatic manpage generator from --help
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/info2man">
                  <code class="literal">info2man</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=info2man">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/i/info2man.html">134</a>
                    </td>
                    <td style="text-align: left">
    info→manpage
    </td>
                    <td style="text-align: left">
    converter from GNU info to POD or man pages
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/txt2man">
                  <code class="literal">txt2man</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=txt2man">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/txt2man.html">65</a>
                    </td>
                    <td style="text-align: left">
    text→manpage
    </td>
                    <td style="text-align: left">
    convert flat ASCII text to man page format
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_printable_data"/>11.4. Printable data</h2>
            </div>
          </div>
        </div>
        <p>Printable data is expressed in the <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript">PostScript</a> format on the Debian system.   <a class="ulink" href="http://en.wikipedia.org/wiki/Common_Unix_Printing_System">Common Unix Printing System (CUPS)</a> uses Ghostscript as its rasterizer backend program for non-PostScript printers.</p>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_ghostscript"/>11.4.1. Ghostscript</h3>
              </div>
            </div>
          </div>
          <p>The core of printable data manipulation is the <a class="ulink" href="http://en.wikipedia.org/wiki/Ghostscript">Ghostscript</a> <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript">PostScript (PS)</a> interpreter which generates raster image.</p>
          <p>The latest upstream Ghostscript from Artifex was re-licensed from AFPL to GPL and merged all the latest ESP version changes such as CUPS related ones at 8.60 release as unified release.</p>
          <div class="table">
            <a id="listofghostscripriptinterpreters"/>
            <p class="title">
              <strong>Table 11.14. List of Ghostscript PostScript interpreters</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of Ghostscript PostScript interpreters" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/ghostscript">
                  <code class="literal">ghostscript</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=ghostscript">V:149, I:681</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/g/ghostscript.html">219</a>
                    </td>
                    <td style="text-align: left">
                  <a class="ulink" href="http://en.wikipedia.org/wiki/Ghostscript">The GPL Ghostscript PostScript/PDF interpreter</a>
                </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/ghostscript-x">
                  <code class="literal">ghostscript-x</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=ghostscript-x">V:29, I:72</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/g/ghostscript-x.html">211</a>
                    </td>
                    <td style="text-align: left">
    GPL Ghostscript PostScript/PDF interpreter - X display support
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/libpoppler72">
                  <code class="literal">libpoppler72</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=libpoppler72">I:61</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/libp/libpoppler72.html">3268</a>
                    </td>
                    <td style="text-align: left">
    PDF rendering library forked from the xpdf PDF viewer
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/libpoppler-glib8">
                  <code class="literal">libpoppler-glib8</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=libpoppler-glib8">V:209, I:532</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/libp/libpoppler-glib8.html">446</a>
                    </td>
                    <td style="text-align: left">
    PDF rendering library (GLib-based shared library)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/poppler-data">
                  <code class="literal">poppler-data</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=poppler-data">V:103, I:674</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/poppler-data.html">12219</a>
                    </td>
                    <td style="text-align: left">
    CMaps for PDF rendering library (for <a class="ulink" href="http://en.wikipedia.org/wiki/CJK_characters">CJK</a> support: Adobe-*)
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>"<code class="literal">gs -h</code>" can display the configuration of Ghostscript.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_merge_two_ps_or_pdf_files"/>11.4.2. Merge two PS or PDF files</h3>
              </div>
            </div>
          </div>
          <p>You can merge two <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript">PostScript (PS)</a> or <a class="ulink" href="http://en.wikipedia.org/wiki/Portable_Document_Format">Portable Document Format (PDF)</a> files using <span class="citerefentry"><span class="refentrytitle">gs</span>(1)</span> of Ghostscript.</p>
          <pre class="screen">$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=bla.ps -f foo1.ps foo2.ps
$ gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=bla.pdf -f foo1.pdf foo2.pdf</pre>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>The <a class="ulink" href="http://en.wikipedia.org/wiki/Portable_Document_Format">PDF</a>, which is a widely used cross-platform printable data format, is essentially the compressed  <a class="ulink" href="http://en.wikipedia.org/wiki/PostScript">PS</a> format with few additional features and extensions.</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Tip">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Tip]" src="images/tip.png"/>
                </td>
                <th align="left">Tip</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>For command line, <span class="citerefentry"><span class="refentrytitle">psmerge</span>(1)</span> and other commands from the <code class="literal">psutils</code> package are useful for manipulating PostScript documents.  <span class="citerefentry"><span class="refentrytitle">pdftk</span>(1)</span> from the <code class="literal">pdftk</code> package is useful for manipulating PDF documents, too.</p>
                </td>
              </tr>
            </table>
          </div>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_printable_data_utilities"/>11.4.3. Printable data utilities</h3>
              </div>
            </div>
          </div>
          <p>The following packages for the printable data utilities caught my eyes.</p>
          <div class="table">
            <a id="listofprintabledatautilities"/>
            <p class="title">
              <strong>Table 11.15. List of printable data utilities</strong>
            </p>
            <div class="table-contents">
              <table class="table" summary="List of printable data utilities" border="1">
                <colgroup>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                  <col style="text-align: left"/>
                </colgroup>
                <thead>
                  <tr>
                    <th style="text-align: left">
    package
    </th>
                    <th style="text-align: left">
    popcon
    </th>
                    <th style="text-align: left">
    size
    </th>
                    <th style="text-align: left">
    keyword
    </th>
                    <th style="text-align: left">
    description
    </th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/poppler-utils">
                  <code class="literal">poppler-utils</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=poppler-utils">V:49, I:485</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/poppler-utils.html">592</a>
                    </td>
                    <td style="text-align: left">
    pdf→ps,text,…
    </td>
                    <td style="text-align: left">
    PDF utilities: <code class="literal">pdftops</code>, <code class="literal">pdfinfo</code>, <code class="literal">pdfimages</code>, <code class="literal">pdftotext</code>, <code class="literal">pdffonts</code>
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/psutils">
                  <code class="literal">psutils</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=psutils">V:9, I:164</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/psutils.html">219</a>
                    </td>
                    <td style="text-align: left">
    ps→ps
    </td>
                    <td style="text-align: left">
    PostScript document conversion tools
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/poster">
                  <code class="literal">poster</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=poster">V:0, I:6</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/poster.html">49</a>
                    </td>
                    <td style="text-align: left">
    ps→ps
    </td>
                    <td style="text-align: left">
    create large posters out of PostScript pages
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/enscript">
                  <code class="literal">enscript</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=enscript">V:2, I:24</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/e/enscript.html">2111</a>
                    </td>
                    <td style="text-align: left">
    text→ps, html, rtf
    </td>
                    <td style="text-align: left">
    convert ASCII text to PostScript, HTML, RTF or Pretty-Print
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/a2ps">
                  <code class="literal">a2ps</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=a2ps">V:2, I:22</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/a/a2ps.html">3620</a>
                    </td>
                    <td style="text-align: left">
    text→ps
    </td>
                    <td style="text-align: left">
    'Anything to PostScript' converter and pretty-printer
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/pdftk">
                  <code class="literal">pdftk</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=pdftk">V:8, I:57</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/pdftk.html">3873</a>
                    </td>
                    <td style="text-align: left">
    pdf→pdf
    </td>
                    <td style="text-align: left">
    PDF document conversion tool: <code class="literal">pdftk</code>
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/html2ps">
                  <code class="literal">html2ps</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=html2ps">V:0, I:5</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/h/html2ps.html">249</a>
                    </td>
                    <td style="text-align: left">
    html→ps
    </td>
                    <td style="text-align: left">
    converter from HTML to PostScript
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/gnuhtml2latex">
                  <code class="literal">gnuhtml2latex</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=gnuhtml2latex">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/g/gnuhtml2latex.html">27</a>
                    </td>
                    <td style="text-align: left">
    html→latex
    </td>
                    <td style="text-align: left">
    converter from html to latex
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/latex2rtf">
                  <code class="literal">latex2rtf</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=latex2rtf">V:0, I:6</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/l/latex2rtf.html">478</a>
                    </td>
                    <td style="text-align: left">
    latex→rtf
    </td>
                    <td style="text-align: left">
    convert documents from LaTeX to RTF which can be read by MS Word
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/ps2eps">
                  <code class="literal">ps2eps</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=ps2eps">V:6, I:105</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/ps2eps.html">94</a>
                    </td>
                    <td style="text-align: left">
    ps→eps
    </td>
                    <td style="text-align: left">
    converter from PostScript to EPS (Encapsulated PostScript)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/e2ps">
                  <code class="literal">e2ps</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=e2ps">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/e/e2ps.html">112</a>
                    </td>
                    <td style="text-align: left">
    text→ps
    </td>
                    <td style="text-align: left">
    Text to PostScript converter with Japanese encoding support
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/impose+">
                  <code class="literal">impose+</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=impose+">V:0, I:1</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/i/impose+.html">180</a>
                    </td>
                    <td style="text-align: left">
    ps→ps
    </td>
                    <td style="text-align: left">
    PostScript utilities
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/trueprint">
                  <code class="literal">trueprint</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=trueprint">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/t/trueprint.html">138</a>
                    </td>
                    <td style="text-align: left">
    text→ps
    </td>
                    <td style="text-align: left">
    pretty print many source codes (C, C++, Java, Pascal, Perl, Pike, Sh, and Verilog) to PostScript. (C language)
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/pdf2svg">
                  <code class="literal">pdf2svg</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=pdf2svg">V:0, I:4</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/pdf2svg.html">26</a>
                    </td>
                    <td style="text-align: left">
    ps→svg
    </td>
                    <td style="text-align: left">
    converter from PDF to <a class="ulink" href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics">Scalable vector graphics</a> format
    </td>
                  </tr>
                  <tr>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.debian.org/sid/pdftoipe">
                  <code class="literal">pdftoipe</code>
                </a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://qa.debian.org/popcon.php?package=pdftoipe">V:0, I:0</a>
                    </td>
                    <td style="text-align: left">
                      <a class="ulink" href="http://packages.qa.debian.org/p/pdftoipe.html">62</a>
                    </td>
                    <td style="text-align: left">
    ps→ipe
    </td>
                    <td style="text-align: left">
    converter from PDF to IPE's XML format
    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
          <br class="table-break"/>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_printing_with_cups"/>11.4.4. Printing with CUPS</h3>
              </div>
            </div>
          </div>
          <p>Both <span class="citerefentry"><span class="refentrytitle">lp</span>(1)</span> and <span class="citerefentry"><span class="refentrytitle">lpr</span>(1)</span> commands offered by <a class="ulink" href="http://en.wikipedia.org/wiki/Common_Unix_Printing_System">Common Unix Printing System (CUPS)</a> provides options for customized printing the printable data.</p>
          <p>You can print  3 copies of a file collated using one of the following commands.</p>
          <pre class="screen">$ lp -n 3 -o Collate=True filename</pre>
          <pre class="screen">$ lpr -#3 -o Collate=True filename</pre>
          <p>You can further customize printer operation by using printer option such as "<code class="literal">-o number-up=2</code>", "<code class="literal">-o page-set=even</code>", "<code class="literal">-o page-set=odd</code>", "<code class="literal">-o scaling=200</code>", "<code class="literal">-o natural-scaling=200</code>", etc., documented at <a class="ulink" href="http://localhost:631/help/options.html">Command-Line Printing and Options</a>.</p>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_the_mail_data_conversion"/>11.5. The mail data conversion</h2>
            </div>
          </div>
        </div>
        <p>The following packages for the mail data conversion caught my eyes.</p>
        <div class="table">
          <a id="listofpackagestoildataconversion"/>
          <p class="title">
            <strong>Table 11.16. List of packages to help mail data conversion</strong>
          </p>
          <div class="table-contents">
            <table class="table" summary="List of packages to help mail data conversion" border="1">
              <colgroup>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
              </colgroup>
              <thead>
                <tr>
                  <th style="text-align: left">
    package
    </th>
                  <th style="text-align: left">
    popcon
    </th>
                  <th style="text-align: left">
    size
    </th>
                  <th style="text-align: left">
    keyword
    </th>
                  <th style="text-align: left">
    description
    </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/sharutils">
                <code class="literal">sharutils</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=sharutils">V:7, I:90</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/s/sharutils.html">1385</a>
                  </td>
                  <td style="text-align: left">
    mail
    </td>
                  <td style="text-align: left"><span class="citerefentry"><span class="refentrytitle">shar</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">unshar</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">uuencode</span>(1)</span>, <span class="citerefentry"><span class="refentrytitle">uudecode</span>(1)</span>
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/mpack">
                <code class="literal">mpack</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=mpack">V:2, I:23</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/m/mpack.html">91</a>
                  </td>
                  <td style="text-align: left">
    MIME
    </td>
                  <td style="text-align: left">
    encoding and decoding of <a class="ulink" href="http://en.wikipedia.org/wiki/MIME">MIME</a> messages: <span class="citerefentry"><span class="refentrytitle">mpack</span>(1)</span> and <span class="citerefentry"><span class="refentrytitle">munpack</span>(1)</span>
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/tnef">
                <code class="literal">tnef</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=tnef">V:5, I:10</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/tnef.html">98</a>
                  </td>
                  <td style="text-align: left">
    ms-tnef
    </td>
                  <td style="text-align: left">
    unpacking <a class="ulink" href="http://en.wikipedia.org/wiki/MIME">MIME</a> attachments of type "application/ms-tnef" which is a Microsoft only format
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/uudeview">
                <code class="literal">uudeview</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=uudeview">V:0, I:5</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/u/uudeview.html">101</a>
                  </td>
                  <td style="text-align: left">
    mail
    </td>
                  <td style="text-align: left">
    encoder and decoder for the following formats: <a class="ulink" href="http://en.wikipedia.org/wiki/Uuencoding">uuencode</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/Xxencode">xxencode</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/Base64">BASE64</a>, <a class="ulink" href="http://en.wikipedia.org/wiki/Quoted-printable">quoted printable</a>, and <a class="ulink" href="http://en.wikipedia.org/wiki/BinHex">BinHex</a>
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/readpst">
                <code class="literal">readpst</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=readpst">I:1</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/r/readpst.html">21</a>
                  </td>
                  <td style="text-align: left">
    PST
    </td>
                  <td style="text-align: left">
    convert Microsoft <a class="ulink" href="http://en.wikipedia.org/wiki/Personal_Folders_(.pst)_file">Outlook PST files</a> to <a class="ulink" href="http://en.wikipedia.org/wiki/Mbox">mbox</a> format
    </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <br class="table-break"/>
        <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Tip">
            <tr>
              <td rowspan="2" align="center" valign="top">
                <img alt="[Tip]" src="images/tip.png"/>
              </td>
              <th align="left">Tip</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>The <a class="ulink" href="http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol">Internet Message Access Protocol</a> version 4 (IMAP4) server (see <a class="xref" href="ch06.en.html#_pop3_imap4_server" title="6.7. POP3/IMAP4 server">Section 6.7, “POP3/IMAP4 server”</a>) may be used to move mails out from proprietary mail systems if the mail client software can be configured to use IMAP4 server too.</p>
              </td>
            </tr>
          </table>
        </div>
        <div class="section">
          <div class="titlepage">
            <div>
              <div>
                <h3 class="title"><a id="_mail_data_basics"/>11.5.1. Mail data basics</h3>
              </div>
            </div>
          </div>
          <p>Mail (<a class="ulink" href="http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol">SMTP</a>) data should be limited to series of 7 bit data.  So binary data and 8 bit text data are encoded into 7 bit format with the <a class="ulink" href="http://en.wikipedia.org/wiki/MIME">Multipurpose Internet Mail Extensions (MIME)</a> and the selection of the charset (see <a class="xref" href="ch08.en.html#_basics_of_encoding" title="8.4.1. Basics of encoding">Section 8.4.1, “Basics of encoding”</a>).</p>
          <p>The standard mail storage format is mbox formatted according to <a class="ulink" href="http://tools.ietf.org/html/rfc2822">RFC2822 (updated RFC822)</a>.  See <span class="citerefentry"><span class="refentrytitle">mbox</span>(5)</span> (provided by the <code class="literal">mutt</code> package).</p>
          <p>For European languages, "<code class="literal">Content-Transfer-Encoding: quoted-printable</code>" with the ISO-8859-1 charset is usually used for mail since there are not much 8 bit characters. If European text is encoded in UTF-8, "<code class="literal">Content-Transfer-Encoding: quoted-printable</code>" is likely to be used since it is mostly 7 bit data.</p>
          <p>For Japanese, traditionally "<code class="literal">Content-Type: text/plain; charset=ISO-2022-JP</code>" is usually used for mail to keep text in 7 bits.  But older Microsoft systems may send mail data in Shift-JIS without proper declaration.  If Japanese text is encoded in UTF-8,  <a class="ulink" href="http://en.wikipedia.org/wiki/Base64">Base64</a> is likely to be used since it contains many 8 bit data.  The situation of other Asian languages is similar.</p>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>If your non-Unix mail data is accessible by a non-Debian client software which can talk to the IMAP4 server, you may be able to move them out by running your own IMAP4 server (see <a class="xref" href="ch06.en.html#_pop3_imap4_server" title="6.7. POP3/IMAP4 server">Section 6.7, “POP3/IMAP4 server”</a>).</p>
                </td>
              </tr>
            </table>
          </div>
          <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
            <table border="0" summary="Note">
              <tr>
                <td rowspan="2" align="center" valign="top">
                  <img alt="[Note]" src="images/note.png"/>
                </td>
                <th align="left">Note</th>
              </tr>
              <tr>
                <td align="left" valign="top">
                  <p>If you use other mail storage formats, moving them to mbox format is the good first step.  The versatile client program such as <span class="citerefentry"><span class="refentrytitle">mutt</span>(1)</span> may be handy for this.</p>
                </td>
              </tr>
            </table>
          </div>
          <p>You can split mailbox contents to each message using <span class="citerefentry"><span class="refentrytitle">procmail</span>(1)</span> and <span class="citerefentry"><span class="refentrytitle">formail</span>(1)</span>.</p>
          <p>Each mail message can be unpacked using <span class="citerefentry"><span class="refentrytitle">munpack</span>(1)</span> from the <code class="literal">mpack</code> package (or other specialized tools) to obtain the MIME encoded contents.</p>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_graphic_data_tools"/>11.6. Graphic data tools</h2>
            </div>
          </div>
        </div>
        <p>The following packages for the graphic data conversion, editing, and organization tools caught my eyes.</p>
        <div class="table">
          <a id="listofgraphicdatatools"/>
          <p class="title">
            <strong>Table 11.17. List of graphic data tools</strong>
          </p>
          <div class="table-contents">
            <table class="table" summary="List of graphic data tools" border="1">
              <colgroup>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
              </colgroup>
              <thead>
                <tr>
                  <th style="text-align: left">
    package
    </th>
                  <th style="text-align: left">
    popcon
    </th>
                  <th style="text-align: left">
    size
    </th>
                  <th style="text-align: left">
    keyword
    </th>
                  <th style="text-align: left">
    description
    </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gimp">
                <code class="literal">gimp</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gimp">V:84, I:506</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gimp.html">16413</a>
                  </td>
                  <td style="text-align: left">
    image(bitmap)
    </td>
                  <td style="text-align: left">
    GNU Image Manipulation Program
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/imagemagick">
                <code class="literal">imagemagick</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=imagemagick">V:64, I:560</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/i/imagemagick.html">205</a>
                  </td>
                  <td style="text-align: left">
    image(bitmap)
    </td>
                  <td style="text-align: left">
    image manipulation programs
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/graphicsmagick">
                <code class="literal">graphicsmagick</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=graphicsmagick">V:6, I:15</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/graphicsmagick.html">4970</a>
                  </td>
                  <td style="text-align: left">
    image(bitmap)
    </td>
                  <td style="text-align: left">
    image manipulation programs (fork of <code class="literal">imagemagick</code>)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/xsane">
                <code class="literal">xsane</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=xsane">V:21, I:195</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/x/xsane.html">909</a>
                  </td>
                  <td style="text-align: left">
    image(bitmap)
    </td>
                  <td style="text-align: left">
    GTK+-based X11 frontend for SANE (Scanner Access Now Easy)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/netpbm">
                <code class="literal">netpbm</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=netpbm">V:29, I:563</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/n/netpbm.html">4302</a>
                  </td>
                  <td style="text-align: left">
    image(bitmap)
    </td>
                  <td style="text-align: left">
    graphics conversion tools
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/icoutils">
                <code class="literal">icoutils</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=icoutils">V:11, I:142</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/i/icoutils.html">192</a>
                  </td>
                  <td style="text-align: left">
    png↔ico(bitmap)
    </td>
                  <td style="text-align: left">
    convert <a class="ulink" href="http://en.wikipedia.org/wiki/ICO_(icon_image_file_format)">MS Windows icons and cursors to and from PNG formats</a> (<a class="ulink" href="http://en.wikipedia.org/wiki/Favicon">favicon.ico</a>)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/scribus">
                <code class="literal">scribus</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=scribus">V:5, I:27</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/s/scribus.html">19061</a>
                  </td>
                  <td style="text-align: left">
    ps/pdf/SVG/…
    </td>
                  <td style="text-align: left"><a class="ulink" href="http://en.wikipedia.org/wiki/Scribus">Scribus</a> DTP editor
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/libreoffice-draw">
                <code class="literal">libreoffice-draw</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=libreoffice-draw">V:307, I:481</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/libr/libreoffice-draw.html">9881</a>
                  </td>
                  <td style="text-align: left">
    image(vector)
    </td>
                  <td style="text-align: left">
    LibreOffice office suite - drawing
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/inkscape">
                <code class="literal">inkscape</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=inkscape">V:153, I:346</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/i/inkscape.html">130049</a>
                  </td>
                  <td style="text-align: left">
    image(vector)
    </td>
                  <td style="text-align: left"><a class="ulink" href="http://en.wikipedia.org/wiki/Scalable_Vector_Graphics">SVG (Scalable Vector Graphics)</a> editor
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/dia">
                <code class="literal">dia</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=dia">V:21, I:38</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/d/dia.html">3916</a>
                  </td>
                  <td style="text-align: left">
    image(vector)
    </td>
                  <td style="text-align: left">
    diagram editor (Gtk)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/xfig">
                <code class="literal">xfig</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=xfig">V:10, I:17</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/x/xfig.html">1792</a>
                  </td>
                  <td style="text-align: left">
    image(vector)
    </td>
                  <td style="text-align: left">
    Facility for Interactive Generation of figures under X11
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/pstoedit">
                <code class="literal">pstoedit</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=pstoedit">V:7, I:213</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/p/pstoedit.html">667</a>
                  </td>
                  <td style="text-align: left">
    ps/pdf→image(vector)
    </td>
                  <td style="text-align: left">
    PostScript and PDF files to editable vector graphics converter (SVG)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/libwmf-bin">
                <code class="literal">libwmf-bin</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=libwmf-bin">V:13, I:352</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/libw/libwmf-bin.html">104</a>
                  </td>
                  <td style="text-align: left">
    Windows/image(vector)
    </td>
                  <td style="text-align: left">
    Windows metafile (vector graphic data) conversion tools
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/fig2sxd">
                <code class="literal">fig2sxd</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=fig2sxd">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/f/fig2sxd.html">149</a>
                  </td>
                  <td style="text-align: left">
    fig→sxd(vector)
    </td>
                  <td style="text-align: left">
    convert XFig files to OpenOffice.org Draw format
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/unpaper">
                <code class="literal">unpaper</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=unpaper">V:2, I:16</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/u/unpaper.html">453</a>
                  </td>
                  <td style="text-align: left">
    image→image
    </td>
                  <td style="text-align: left">
    post-processing tool for scanned pages for <a class="ulink" href="http://en.wikipedia.org/wiki/Optical_character_recognition">OCR</a>
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/tesseract-ocr">
                <code class="literal">tesseract-ocr</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=tesseract-ocr">V:4, I:30</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/tesseract-ocr.html">1020</a>
                  </td>
                  <td style="text-align: left">
    image→text
    </td>
                  <td style="text-align: left">
    free <a class="ulink" href="http://en.wikipedia.org/wiki/Optical_character_recognition">OCR</a> software based on the HP's commercial OCR engine
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/tesseract-ocr-eng">
                <code class="literal">tesseract-ocr-eng</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=tesseract-ocr-eng">I:30</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/t/tesseract-ocr-eng.html">4032</a>
                  </td>
                  <td style="text-align: left">
    image→text
    </td>
                  <td style="text-align: left">
    OCR engine data: tesseract-ocr language files for English text
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gocr">
                <code class="literal">gocr</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gocr">V:1, I:21</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gocr.html">477</a>
                  </td>
                  <td style="text-align: left">
    image→text
    </td>
                  <td style="text-align: left">
    free OCR software
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/ocrad">
                <code class="literal">ocrad</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=ocrad">V:1, I:6</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/o/ocrad.html">299</a>
                  </td>
                  <td style="text-align: left">
    image→text
    </td>
                  <td style="text-align: left">
    free OCR software
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/eog">
                <code class="literal">eog</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=eog">V:92, I:319</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/eog.html">11324</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    Eye of GNOME graphics viewer program
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gthumb">
                <code class="literal">gthumb</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gthumb">V:14, I:25</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gthumb.html">3359</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    image viewer and browser (GNOME)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/geeqie">
                <code class="literal">geeqie</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=geeqie">V:14, I:23</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/geeqie.html">1989</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    image viewer using GTK+
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/shotwell">
                <code class="literal">shotwell</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=shotwell">V:20, I:207</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/s/shotwell.html">6635</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    digital photo organizer (GNOME)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gtkam">
                <code class="literal">gtkam</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gtkam">V:0, I:7</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gtkam.html">1154</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    application for retrieving media from digital cameras (GTK+)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gphoto2">
                <code class="literal">gphoto2</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gphoto2">V:1, I:13</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gphoto2.html">967</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    The gphoto2 digital camera command-line client
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/gwenview">
                <code class="literal">gwenview</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=gwenview">V:32, I:105</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/g/gwenview.html">10871</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    image viewer (KDE)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/kamera">
                <code class="literal">kamera</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=kamera">I:105</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/k/kamera.html">748</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    digital camera support for KDE applications
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/digikam">
                <code class="literal">digikam</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=digikam">V:3, I:16</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/d/digikam.html">1832</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    digital photo management application for KDE
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/exiv2">
                <code class="literal">exiv2</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=exiv2">V:4, I:61</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/exiv2.html">246</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    EXIF/IPTC metadata manipulation tool
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/exiftran">
                <code class="literal">exiftran</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=exiftran">V:2, I:25</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/exiftran.html">71</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    transform digital camera jpeg images
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/jhead">
                <code class="literal">jhead</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=jhead">V:1, I:12</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/j/jhead.html">105</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    manipulate the non-image part of Exif compliant JPEG (digital camera photo) files
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/exif">
                <code class="literal">exif</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=exif">V:1, I:11</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/exif.html">238</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    command-line utility to show EXIF information in JPEG files
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/exiftags">
                <code class="literal">exiftags</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=exiftags">V:0, I:4</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/exiftags.html">288</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    utility to read Exif tags from a digital camera JPEG file
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/exifprobe">
                <code class="literal">exifprobe</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=exifprobe">V:0, I:3</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/e/exifprobe.html">490</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)
    </td>
                  <td style="text-align: left">
    read metadata from digital pictures
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/dcraw">
                <code class="literal">dcraw</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=dcraw">V:3, I:23</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/d/dcraw.html">384</a>
                  </td>
                  <td style="text-align: left">
    image(Raw)→ppm
    </td>
                  <td style="text-align: left">
    decode raw digital camera images
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/findimagedupes">
                <code class="literal">findimagedupes</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=findimagedupes">V:0, I:1</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/f/findimagedupes.html">79</a>
                  </td>
                  <td style="text-align: left">
    image→fingerprint
    </td>
                  <td style="text-align: left">
    find visually similar or duplicate images
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/ale">
                <code class="literal">ale</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=ale">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/a/ale.html">753</a>
                  </td>
                  <td style="text-align: left">
    image→image
    </td>
                  <td style="text-align: left">
    merge images to increase fidelity or create mosaics
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/imageindex">
                <code class="literal">imageindex</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=imageindex">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/i/imageindex.html">144</a>
                  </td>
                  <td style="text-align: left">
    image(Exif)→html
    </td>
                  <td style="text-align: left">
    generate static HTML galleries from images
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/outguess">
                <code class="literal">outguess</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=outguess">V:0, I:2</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/o/outguess.html">216</a>
                  </td>
                  <td style="text-align: left">
    jpeg,png
    </td>
                  <td style="text-align: left">
    universal <a class="ulink" href="http://en.wikipedia.org/wiki/Steganography">Steganographic</a> tool
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/librecad">
                <code class="literal">librecad</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=librecad">V:10, I:18</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/libr/librecad.html">8039</a>
                  </td>
                  <td style="text-align: left">
    DXF
    </td>
                  <td style="text-align: left">
    CAD data editor (KDE)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/blender">
                <code class="literal">blender</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=blender">V:4, I:33</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/b/blender.html">106780</a>
                  </td>
                  <td style="text-align: left">
    blend, TIFF, VRML, …
    </td>
                  <td style="text-align: left">
    3D content editor for animation etc
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/mm3d">
                <code class="literal">mm3d</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=mm3d">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/m/mm3d.html">4047</a>
                  </td>
                  <td style="text-align: left">
    ms3d, obj, dxf, …
    </td>
                  <td style="text-align: left">
    OpenGL based 3D model editor
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/open-font-design-toolkit">
                <code class="literal">open-font-design-toolkit</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=open-font-design-toolkit">I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/o/open-font-design-toolkit.html">10</a>
                  </td>
                  <td style="text-align: left">
    ttf, ps, …
    </td>
                  <td style="text-align: left">
    metapackage for open font design
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/fontforge">
                <code class="literal">fontforge</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=fontforge">V:1, I:9</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/f/fontforge.html">91</a>
                  </td>
                  <td style="text-align: left">
    ttf, ps, …
    </td>
                  <td style="text-align: left">
    font editor for PS, TrueType and OpenType fonts
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/xgridfit">
                <code class="literal">xgridfit</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=xgridfit">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/x/xgridfit.html">876</a>
                  </td>
                  <td style="text-align: left">
    ttf
    </td>
                  <td style="text-align: left">
    program for <a class="ulink" href="http://en.wikipedia.org/wiki/Hinting">gridfitting and hinting</a> TrueType fonts
    </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <br class="table-break"/>
        <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Tip">
            <tr>
              <td rowspan="2" align="center" valign="top">
                <img alt="[Tip]" src="images/tip.png"/>
              </td>
              <th align="left">Tip</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>Search more image tools using regex "<code class="literal">~Gworks-with::image</code>" in <span class="citerefentry"><span class="refentrytitle">aptitude</span>(8)</span> (see <a class="xref" href="ch02.en.html#_search_method_options_with_aptitude" title="2.2.6. Search method options with aptitude">Section 2.2.6, “Search method options with aptitude”</a>).</p>
              </td>
            </tr>
          </table>
        </div>
        <p>Although GUI programs such as <span class="citerefentry"><span class="refentrytitle">gimp</span>(1)</span> are very powerful, command line tools such as <span class="citerefentry"><span class="refentrytitle">imagemagick</span>(1)</span> are quite useful for automating image manipulation via scripts.</p>
        <p>The de facto image file format of the digital camera is the <a class="ulink" href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format">Exchangeable Image File Format</a> (EXIF) which is the <a class="ulink" href="http://en.wikipedia.org/wiki/JPEG">JPEG</a> image file format with additional metadata tags.  It can hold information such as date, time, and camera settings.</p>
        <p><a class="ulink" href="http://en.wikipedia.org/wiki/Lempel-Ziv-Welch">The Lempel-Ziv-Welch (LZW) lossless data compression</a> patent has been expired.  <a class="ulink" href="http://en.wikipedia.org/wiki/Graphics_Interchange_Format">Graphics Interchange Format (GIF)</a> utilities which use the LZW compression method are now freely available on the Debian system.</p>
        <div class="tip" style="margin-left: 0.5in; margin-right: 0.5in;">
          <table border="0" summary="Tip">
            <tr>
              <td rowspan="2" align="center" valign="top">
                <img alt="[Tip]" src="images/tip.png"/>
              </td>
              <th align="left">Tip</th>
            </tr>
            <tr>
              <td align="left" valign="top">
                <p>Any digital camera or scanner with removable recording media works with Linux through <a class="ulink" href="http://en.wikipedia.org/wiki/USB_flash_drive">USB storage</a> readers since it follows the <a class="ulink" href="http://en.wikipedia.org/wiki/Design_rule_for_Camera_File_system">Design rule for Camera Filesystem</a> and uses <a class="ulink" href="http://en.wikipedia.org/wiki/File_Allocation_Table">FAT</a> filesystem. See <a class="xref" href="ch10.en.html#_removable_storage_device" title="10.1.7. Removable storage device">Section 10.1.7, “Removable storage device”</a>.</p>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="section">
        <div class="titlepage">
          <div>
            <div>
              <h2 class="title"><a id="_miscellaneous_data_conversion"/>11.7. Miscellaneous data conversion</h2>
            </div>
          </div>
        </div>
        <p>There are many other programs for converting data. Following packages caught my eyes using regex "<code class="literal">~Guse::converting</code>" in <span class="citerefentry"><span class="refentrytitle">aptitude</span>(8)</span> (see <a class="xref" href="ch02.en.html#_search_method_options_with_aptitude" title="2.2.6. Search method options with aptitude">Section 2.2.6, “Search method options with aptitude”</a>).</p>
        <div class="table">
          <a id="listofmiscellaneaconversiontools"/>
          <p class="title">
            <strong>Table 11.18. List of miscellaneous data conversion tools</strong>
          </p>
          <div class="table-contents">
            <table class="table" summary="List of miscellaneous data conversion tools" border="1">
              <colgroup>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
                <col style="text-align: left"/>
              </colgroup>
              <thead>
                <tr>
                  <th style="text-align: left">
    package
    </th>
                  <th style="text-align: left">
    popcon
    </th>
                  <th style="text-align: left">
    size
    </th>
                  <th style="text-align: left">
    keyword
    </th>
                  <th style="text-align: left">
    description
    </th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/alien">
                <code class="literal">alien</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=alien">V:4, I:52</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/a/alien.html">166</a>
                  </td>
                  <td style="text-align: left">
    rpm/tgz→deb
    </td>
                  <td style="text-align: left">
    converter for the foreign package into the Debian package
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/freepwing">
                <code class="literal">freepwing</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=freepwing">V:0, I:0</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/f/freepwing.html">421</a>
                  </td>
                  <td style="text-align: left">
    EB→EPWING
    </td>
                  <td style="text-align: left">
    converter from "Electric Book" (popular in Japan) to a single <a class="ulink" href="http://ja.wikipedia.org/wiki/JIS_X_4081">JIS X 4081</a> format (a subset of the <a class="ulink" href="http://ja.wikipedia.org/wiki/EPWING">EPWING</a> V1)
    </td>
                </tr>
                <tr>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.debian.org/sid/calibre">
                <code class="literal">calibre</code>
              </a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://qa.debian.org/popcon.php?package=calibre">V:7, I:38</a>
                  </td>
                  <td style="text-align: left">
                    <a class="ulink" href="http://packages.qa.debian.org/c/calibre.html">51018</a>
                  </td>
                  <td style="text-align: left">
    any→EPUB
    </td>
                  <td style="text-align: left">
    e-book converter and library management
    </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <br class="table-break"/>
        <p>You can also extract data from RPM format with the following.</p>
        <pre class="screen">$ rpm2cpio file.src.rpm | cpio --extract</pre>
      </div>
    </div>
    <div class="navfooter">
      <hr/>
      <table width="100%" summary="Navigation footer">
        <tr>
          <td align="left"><a accesskey="p" href="ch10.en.html"><img src="images/prev.png" alt="Prev"/></a> </td>
          <td align="center"> </td>
          <td align="right"> <a accesskey="n" href="ch12.en.html"><img src="images/next.png" alt="Next"/></a></td>
        </tr>
        <tr>
          <td align="left" valign="top">Chapter 10. Data management </td>
          <td align="center">
            <a accesskey="h" href="index.en.html">
              <img src="images/home.png" alt="Home"/>
            </a>
          </td>
          <td align="right" valign="top"> Chapter 12. Programming</td>
        </tr>
      </table>
    </div>
  </body>
</html>