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
|
A. Shchepin
Process-One
M. Rose
Dover Beach Consulting, Inc.
S. Golovan
New Economic School
M. Litvak
Colocall Ltd.
K. Khomoutov
Service 007
June 8, 2008
Tkabber 0.11.0
Abstract
_Tkabber_ is an open source Jabber client, written in _Tcl/Tk_. This
memo describes the installation, configuration, and extension of
_Tkabber_.
Shchepin, et al. [Page 1]
Tkabber 0.11.0 June 2008
Table of Contents
1. Features . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Requirements . . . . . . . . . . . . . . . . . . . . . . . . . 7
3. Download, install and run . . . . . . . . . . . . . . . . . . 10
4. Upgrading from version 0.10.0 . . . . . . . . . . . . . . . . 12
4.1. Configuration options . . . . . . . . . . . . . . . . . . 12
4.1.1. Proxy servers . . . . . . . . . . . . . . . . . . . . 12
4.1.2. Resources to control fonts . . . . . . . . . . . . . . 13
4.1.3. Keep-alives and dead link detection . . . . . . . . . 13
4.1.4. Resources to control appearance of balloon windows . . 14
4.1.5. Support for external XML parser . . . . . . . . . . . 14
4.2. User interface . . . . . . . . . . . . . . . . . . . . . . 14
4.2.1. System tray icon mouse gestures . . . . . . . . . . . 15
4.2.2. New tab management widget . . . . . . . . . . . . . . 15
4.2.3. Window splitters . . . . . . . . . . . . . . . . . . . 15
5. Upgrading from version 0.9.9 . . . . . . . . . . . . . . . . . 16
6. Configuration . . . . . . . . . . . . . . . . . . . . . . . . 17
6.1. Pre-load . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.1.1. Tabbed Interface . . . . . . . . . . . . . . . . . . . 20
6.1.2. Fonts and colors . . . . . . . . . . . . . . . . . . . 20
6.1.3. Cryptography by default . . . . . . . . . . . . . . . 22
6.1.4. Using of external XML parser from tDOM . . . . . . . . 22
6.1.5. Debugging Output . . . . . . . . . . . . . . . . . . . 22
6.1.6. Splash window . . . . . . . . . . . . . . . . . . . . 23
6.1.7. I18n/L10n . . . . . . . . . . . . . . . . . . . . . . 23
6.1.8. Searching . . . . . . . . . . . . . . . . . . . . . . 23
6.2. Post-load . . . . . . . . . . . . . . . . . . . . . . . . 24
6.2.1. Look-and-Feel . . . . . . . . . . . . . . . . . . . . 27
6.2.2. The Autoaway Module . . . . . . . . . . . . . . . . . 28
6.2.3. The Avatar Module . . . . . . . . . . . . . . . . . . 29
6.2.4. The Chat Module . . . . . . . . . . . . . . . . . . . 29
6.2.5. The Clientinfo Module . . . . . . . . . . . . . . . . 29
6.2.6. The Conferenceinfo Module . . . . . . . . . . . . . . 29
6.2.7. The Cryptographic Module . . . . . . . . . . . . . . . 30
6.2.8. The Emoticons Module . . . . . . . . . . . . . . . . . 30
6.2.9. The File Transfer Module . . . . . . . . . . . . . . . 30
6.2.10. The Groupchat Module . . . . . . . . . . . . . . . . . 31
6.2.11. The Ispell Module . . . . . . . . . . . . . . . . . . 31
6.2.12. The Stream Initiation Module . . . . . . . . . . . . . 32
6.2.13. The Logger Module . . . . . . . . . . . . . . . . . . 32
6.2.14. The Login Module . . . . . . . . . . . . . . . . . . . 32
6.2.15. The Message Module . . . . . . . . . . . . . . . . . . 34
6.2.16. The Raw XML Input Module . . . . . . . . . . . . . . . 34
6.2.17. The Roster Module . . . . . . . . . . . . . . . . . . 34
6.2.18. The Sound Module . . . . . . . . . . . . . . . . . . . 34
6.3. Menu-load . . . . . . . . . . . . . . . . . . . . . . . . 36
6.3.1. The Avatar Module . . . . . . . . . . . . . . . . . . 37
Shchepin, et al. [Page 2]
Tkabber 0.11.0 June 2008
6.3.2. The Browser Module . . . . . . . . . . . . . . . . . . 37
6.3.3. The Groupchat Module . . . . . . . . . . . . . . . . . 37
6.3.4. The Login Module . . . . . . . . . . . . . . . . . . . 37
6.3.5. The Message Module . . . . . . . . . . . . . . . . . . 37
6.3.6. The Presence Module . . . . . . . . . . . . . . . . . 37
6.3.7. Miscellany . . . . . . . . . . . . . . . . . . . . . . 38
6.4. Final-Load . . . . . . . . . . . . . . . . . . . . . . . . 38
7. Extensibility . . . . . . . . . . . . . . . . . . . . . . . . 40
7.1. Chat Hooks . . . . . . . . . . . . . . . . . . . . . . . . 41
7.2. Login Hooks . . . . . . . . . . . . . . . . . . . . . . . 43
7.3. Presence Hooks . . . . . . . . . . . . . . . . . . . . . . 43
7.4. Roster Hooks . . . . . . . . . . . . . . . . . . . . . . . 44
7.5. Miscellaneous Hooks . . . . . . . . . . . . . . . . . . . 45
8. User Interface basics . . . . . . . . . . . . . . . . . . . . 46
8.1. Searching . . . . . . . . . . . . . . . . . . . . . . . . 46
Appendix A. Releases History . . . . . . . . . . . . . . . . . . 48
A.1. Main changes in 0.11.0 . . . . . . . . . . . . . . . . . . 48
A.2. Main changes in 0.10.0 . . . . . . . . . . . . . . . . . . 49
A.3. Main changes in 0.9.9 . . . . . . . . . . . . . . . . . . 49
A.4. Main changes in 0.9.8 . . . . . . . . . . . . . . . . . . 50
A.5. Main changes in 0.9.7beta . . . . . . . . . . . . . . . . 50
A.6. Main changes in 0.9.6beta . . . . . . . . . . . . . . . . 51
A.7. Main changes in 0.9.5beta . . . . . . . . . . . . . . . . 51
Appendix B. Tk option database resources . . . . . . . . . . . . 52
Appendix C. Documentation TODO . . . . . . . . . . . . . . . . . 56
Appendix D. Acknowledgements . . . . . . . . . . . . . . . . . . 57
Appendix E. Copyrights . . . . . . . . . . . . . . . . . . . . . 58
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 59
Shchepin, et al. [Page 3]
Tkabber 0.11.0 June 2008
1. Features
Tkabber [1] provides a _Tcl/Tk_ interface to the Jabber/XMPP [2]
instant messaging and presence service.
_Tcl/Tk_ is a graphical scripting language that runs on the Unix,
Windows, and Macintosh platforms. The choice of _Tcl/Tk_ for a
Jabber client is three-fold:
o it is portable: once you install a _Tcl/Tk_ interpreter on your
system, the _Tkabber_ script "just runs" -- without having to
compile anything;
o it is customizable: _Tkabber_ reads a configuration file when it
starts that tells it the settings of various parameters; and,
o it is extensible: the configuration file is actually a _Tcl_
script, so you can replace or augment entire portions of _Tkabber_
(if you're so inclined).
_Tkabber_ is fully-featured:
sessions:
* TCP and HTTP-polling session transports
* XMPP SRV and TXT DNS-records handling
* hashed passwords
* SASL authentication
* encrypted sessions (if you install an optional extension)
* compressed sessions (if you install an optional extension)
* login via SOCKS4a, SOCKS5 or HTTPS proxy
* user-defined hooks for connection establishment and release
* XMPP/Jabber MIME type
messages:
* privacy rules
* signed/encrypted messages (if you install an optional
extension)
Shchepin, et al. [Page 4]
Tkabber 0.11.0 June 2008
* file transfers (HTTP, SOCKS bytestream, DTCP and IBB
transports)
* groupchat (GroupChat-1.0 and Multi-User Chat conferencing
protocols)
* headline messages
* message events
* completions of nick and commands
* hyperlinks
* emoticons
* user-defined hooks for chat window events
presence:
* signed presence (if you install an optional extension)
* avatars
* browsing
* groupchat and roster invitations
* conference room bookmarks
* annotations about roster items
* vCards
* user-defined hooks for presence changes
windowing:
* configurable look-and-feel via a resources database
* unicode
* tabbed/non-tabbed interface
* sound notifications
* nested roster groups
Shchepin, et al. [Page 5]
Tkabber 0.11.0 June 2008
* for Unix: auto-away, spell checking, KDE or freedesktop
docking, and WMaker icons
* for Windows: auto-away, and taskbar icons
Shchepin, et al. [Page 6]
Tkabber 0.11.0 June 2008
2. Requirements
You should already have installed:
o Tcl/Tk version 8.3.3 [3] (or later, Tcl/Tk 8.4.9 or later is
recommended)
o tcllib version 1.2 [4] (or later, tcllib 1.8 or later is required
for SRV and TXT DNS-records support).
o BWidget 1.3 [4] (or later)
Most systems already come with these packages pre-installed. If not,
various Unix systems have them available as ready-made packages.
Otherwise, go to the URLs above and click on the appropriate download
link for your system. Both _tcllib_ and _BWidget_ are script
libraries -- no compiling is necessary. In the case of _Tcl/Tk_,
there are many ready-made binary packages available on the download
site.
The ActiveTcl [5] distribution contains all three packages (along
with the _Img_ package mentioned next); so, you may want to use that
instead of three separate downloads.
At your discretion, there are several optional packages that you may
also install. _Tkabber_ will run just fine without them, but if
they're available _Tkabber_ will make additional features available
to you. So, here's the list:
o _Tcl/Tk_ supports only a small number of image formats (i.e.,
bitmaps, GIFs and portable pixmaps). If presence information
contains avatars, these may be in other formats (e.g., PNGs or
JPGs).
Accordingly, you may want to install Img version 1.2 [6] (or
later). This package works on both Unix and Windows.
o By default, Tkabber uses pure-Tcl XML parser. If its performance
is insufficient, you may want to install tDOM version 0.8.0 [7]
(or later) and use expat based XML parser.
o By default, communications between the server and client take
place over a plaintext connection. While this may not be a
problem in some local, wired environments, if your server is
distant or your client is wireless, then you may want to encrypt
all the client/server traffic.
Accordingly, you may to install tls version 1.4.1 [8] (or later).
This package works on both Unix and Windows. Note that if you're
Shchepin, et al. [Page 7]
Tkabber 0.11.0 June 2008
using Unix, then you'll also need to have _OpenSSL_ installed.
Fortunately, this comes preinstalled on many Unix systems. If
it's not on your system, check OpenSSL source page [9]. (The
Windows distribution of _tls_ comes with all the necessary DLLs.)
o Another option in Unix is to compress connection between client
and server (it currently disables encryption).
If you want to compress traffic you should install ZTcl version
1.0b4 [10] (or later) and Tclmore version 0.7b1 [10] (or later).
(At the time of 0.11.0 release _ZTcl_ and _Tclmore_ home page were
unavailable, so you may grab them from a mirror [11].)
o By default, end-to-end communications between two or more Jabber
clients is plaintext. Depending on your environment, this may not
be a problem for you. Alternatively, you may want to digitally-
sign all of your outgoing messages, and allow others to encrypt
their messages to you.
Accordingly, you may want to install the _gpgme_ package, which,
at present, works only on Unix. Depending on what's already
installed on your system, you may have to download upto three
files:
* Tcl GPGME version 1.0 [12] (or later);
* GPGME version 0.3.11 [13] (or later but only 0.3.x); and,
* GPG version 1.0.7 [14] (or later).
o If you're running Unix or Windows, then you may want _Tkabber_ to
automatically mark you as away after a priod of inactivity.
Accordingly (if you're using _Tcl/Tk_ 8.3 or 8.4), on Unix, you
may want to install Tk Xwin version 1.0 [15] (or later), whilst on
WIndows, you may want to install Tcl Winidle version 0.1 [16] (or
later).
o Users of _Tcl/Tk_ 8.5 don't have to use external packages to
measure their idle time.
o If you're running Unix, then you may want _Tkabber_ to use the
docking tray.
Accordingly, you may want to install Tk Theme version 1.20 [17]
(or later) for _KDE_ icon, or tktray version 1.1 [18] (or later)
for freedesktop icon (supported by modern _KDE_ and _GNOME_).
Shchepin, et al. [Page 8]
Tkabber 0.11.0 June 2008
o If you're running Windows, then you may want _Tkabber_ to use the
system tray.
Accordingly, you may want to install Winico version 0.6 [19] (or
later).
o If you're a Tcl/Tk guru, then you may want to access the Tk
console to debug things.
Accordingly, you may want to install tkcon version 2.3 [20] (or
later).
Please keep in mind that these are all "optional extras" -- if
they're not right for you or your environment, don't bother with
them!
Shchepin, et al. [Page 9]
Tkabber 0.11.0 June 2008
3. Download, install and run
Latest stable version is 0.11.0 and available at
http://tkabber.jabber.ru/download.
Older versions can be found at http://files.jabber.ru/tkabber/.
You can always find the latest development version via SVN. Execute
the following command:
svn co https://svn.xmpp.ru/repos/tkabber/trunk/tkabber
And if you want to test some plugins, then do
svn co https://svn.xmpp.ru/repos/tkabber/trunk/tkabber-plugins
If you use the Debian GNU/Linux distribution, you may want to get all
required packages by using _apt_. Just execute
apt-get install tk tcllib bwidget
or
apt-get install tkabber
to get the version included into Debian repository.
No real installation is required, simply copy the "tkabber/"
directory to a commonly-available area, and then either:
o put this directory in your search-path; or,
o make a calling script/shortcut to the file "tkabber.tcl" in that
directory.
Although _Tkabber_ comes with a Makefile, there's really not much to
do -- most folks prefer to simply copy the distribution directory to
somewhere in their home directory.
From the shell, you can invoke _Tkabber_ as:
% tkabber.tcl
whilst on a windowing system, simply double-click on that file or a
short-cut to it.
Shchepin, et al. [Page 10]
Tkabber 0.11.0 June 2008
If you're a Tcl/Tk guru and have installed _tkcon_, then you may want
to invoke _Tkabber_ as:
% tkcon.tcl -exec "" -root .tkconn -main "source tkabber.tcl"
_Tkabber_ will automatically know that it's running under _tkcon_ and
will start by hiding the _Tk_ console window. Look under the "Help"
menu to find the checkbutton to show the console.
Also you can setup _Tkabber_ as handler for XMPP/Jabber MIME
Type [21]. For this you need to set hanler for
"application/xmpp+xml" MIME type in your browser to something like
this:
tkabber -mime %s
Shchepin, et al. [Page 11]
Tkabber 0.11.0 June 2008
4. Upgrading from version 0.10.0
When upgrading _Tkabber_ from version 0.10.0 or earlier note that
several configuration options and user interface elements have been
changed.
4.1. Configuration options
There are notable changes in handling connection through proxy
servers, managing fonts and balloon colors, and detecting breaks in
underlying TCP connection to a server.
4.1.1. Proxy servers
Since SOCKS4 and SOCKS5 proxy types were implemented in addition to
HTTP proxy type, the whole set of connection options regarding proxy
servers has been changed. This means that after upgrade the old
values stored using the Customize mechanism will be lost and the same
values in "loginconf" arrays will not be recognized any longer.
If you do not use HTTP proxy, you can skip this section because these
changes will not affect you.
If your options are set using the _Customize_ interface, write down
values for options relevant to proxy server from the "Login" group of
_Customize_ settings, then after upgrade visit this group of
settings, select "HTTPS" for the option "::loginconf(proxy)" and then
fill in the rest of relevant settings with recorded values. As
usual, save each setting after you change them. Do not be surprised
with the word "HTTPS" (which stands for "HTTP over SSL"). It just
means that _Tkabber_ will use CONNECT method to tunnel TCP connection
through a proxy.
If you maintain "loginconf" arrays in config.tcl, you have to modify
each array using this scheme:
o Rename variable "useproxy", if present, to just "proxy" and change
its value to either "https" if "useproxy" was set to true or to
"none" (yes, the word "none", do not leave it empty) if it was set
to false.
o Modify existing variables in these arrays using this map:
* Rename "httpproxy" to "proxyhost".
* Rename "httpport" to "proxyport".
Shchepin, et al. [Page 12]
Tkabber 0.11.0 June 2008
* Rename "httplogin" to "proxyusername".
* Rename "httppassword" to "proxypassword".
4.1.2. Resources to control fonts
Fonts handling has been partially reworked: the global variable
"font" that controls chat and roster fonts has been removed and now
_Tkabber_ relies on _Tk_ option database to manage these settings.
You can override roster and chat fonts independently of each other.
To do that on systems not based on X Window use _Customize_ options
described below.
The main consequence of this change is that now the fonts are taken
from _Tk_ option database and if it contains sane values you don't
need to touch anything (until the update you had to tweak the "font"
variable because it was set to font "fixed" by default). The
variable "font" does not have any special meaning starting from
0.11.0 release.
The second consequence is that you are now able to set fonts for chat
and roster windows separately from each other using this list as a
reference:
o "*font" _Tk_ option database resource sets default font for all
widgets used in _Tkabber_.
o "*Chat*Text.font" _Tk_ option database resource can be used to
override font used for chat windows. This resource can be
overridden by the "::ifacetk::options(font)" option from the "Main
Interface" group of _Customize_ settings.
o "*Roster*font" _Tk_ option database resource can be used to
override font used for roster windows. This resource can be
overridden by the "::ifacetk::options(roster_font)" option from
the "Main Interface" group of _Customize_ settings.
4.1.3. Keep-alives and dead link detection
Keep-alive mechanism that was used to keep NATP devices from
disconnecting idle XMPP sessions was accompanied in 0.10.0 with "XMPP
ping" mechanism which also implemented dead link detection with
support for disconnecting upon detection of network outage.
In version 0.11.0, the old keep-alive mechanism has been dropped, so
the following two global options have no effect now:
Shchepin, et al. [Page 13]
Tkabber 0.11.0 June 2008
o "keep_alive"
o "keep_alive_interval"
In order to get the same functionality, enable XMPP ping using these
options in the "IQ" group of Customize settings:
o Enabling "::plugins::ping::options(ping)" will make _Tkabber_
periodically send xmpp:ping IQ request to the server.
o Set "::plugins::ping::options(timeout)" option to a number of
seconds _Tkabber_ should wait for either a xmpp:ping reply or an
error to arrive from the server; if there is no answer from the
server during this timeout, the socket for this connection will be
forcibly disconnected.
4.1.4. Resources to control appearance of balloon windows
Resources controlling the appearance of balloon windows have been
made more generic. If you use custom _Tk_ option database settings
for balloon windows, change the relevant resources using this map:
o Change references to "*Balloon.background" and
"*Balloon.foreground" resources to "*Balloon*background" and
"*Balloon*foreground", respectively.
o Change references to "*Balloon*padX" and "*Balloon*padY" resources
to "*Balloon.text.padX" and "*Balloon.text.padY", respectively.
4.1.5. Support for external XML parser
Support for _TclXML_ as an external XML parser has been removed
(since _TclXML_ has anyway been unable to support partial XML
processing) along with the global variable "use_external_tclxml"
which controlled the loading of _TclXML_.
Now expat-based _Tcl_ package _tDOM_ is supported as an external XML
parser. It can be enabled by loading it manually in config.tcl using
the Tcl package command, for example:
package require tdom
4.2. User interface
There are notable changes in systray mouse gestures, appearance of a
main tabbed window, and in behavior of paned window splitters.
Shchepin, et al. [Page 14]
Tkabber 0.11.0 June 2008
4.2.1. System tray icon mouse gestures
Mouse gestures bound to system tray (system notification area) icon
have been reworked:
o Single click on it with the left mouse button now unconditionally
brings the main _Tkabber_ window to front, possibly deiconifying
it first.
o Single click with the middle mouse button now unconditionally
iconifies the main _Tkabber_ window.
This differs from the previois behaviour where single click with the
left mouse button on _Tkabber_'s system tray icon toggled the
iconified/visible state of the main _Tkabber_ window.
4.2.2. New tab management widget
The _notebook_ widget which was used to render tabs in tabbed
interface mode has been replaced with a new custom widget providing
the ability for multi-row placement of tabs and docking them to the
left or right sides of the chat window (in addition to top or bottom
docking available in 0.10.0 version and earlier).
If you adjusted any specific _Tk_ option database resources
pertaining to that _notebook_ widget, you have to change them keeping
in mind that the new widget is just a bunch of _Tk_ buttons (class
"Button") placed in a frame (called ".nb" as before). The class name
for the new widget is "ButtonBar".
So if you explicitly set, say "*Notebook*font" option, you have to
change it to "*ButtonBar*font" and so on.
4.2.3. Window splitters
Window splitters (thin vertical and horizontal windows used to change
relative sizes of windows between which a splitter is placed) have
been changed to "Windows" style. This differs from previous "Motif"
style which implemented explicit "grip box" on each splitter which
was the only "active point" of a splitter.
Shchepin, et al. [Page 15]
Tkabber 0.11.0 June 2008
5. Upgrading from version 0.9.9
When upgrading _Tkabber_ from version 0.9.9 or earlier note the
following:
o On Macintosh or Microsoft Windows _Tkabber_ will copy it's
configuration directory to a new location (see the next section
(Section 6) for details). If the transfer of the config directory
goes smoothly you may delete old ""~/.tkabber"" directory and
replace its name in your config file by "$::configdir".
o Also, _Tkabber_ will convert chatlogs directory to a new format.
o Also, _Tkabber_ changed the way it works with emoticons. Instead
of loading them in config file you may put you faivorite emoticons
directory into "$::configdir/plugins" directory, restart Tkabber
and then choose emoticons set using Customize GUI.
Shchepin, et al. [Page 16]
Tkabber 0.11.0 June 2008
6. Configuration
_Tkabber_ maintains its configuration using a set of files placed in
a special configuration directory which location depends on the
operating system _Tkabber_ runs on. These locations are:
o Unix systems: ""~/.tkabber"";
o Macintosh: ""~/Library/Application Support/Tkabber"";
o Under Microsoft Windows this location is governed by the policy of
the particular flavor of this OS, but the general rule is that the
_Tkabber_ configuration directory is named ""Tkabber"" and is
located in the special system folder for storing application-
specific data. For example, under Windows XP this will be
something like ""C:\Documents and Settings\USERNAME\Application
Data\Tkabber"", where ""USERNAME"" is the login name of a
particular operating system's user.
_Tkabber_ also honors the value of the ""TKABBER_HOME"" environment
variable -- if it exists the whole OS-based guessing of the
configuration directory location is cancelled and the value of this
environment variable is used instead.
Once the pathname of the _Tkabber_ configuration directory is known,
its value is assigned to the ""configdir"" global Tcl variable which
can be accessed from within the main _Tkabber_ configuration file
(see below).
One of the first things that _Tkabber_ does when it's starting up is
reading a file located in its configuration directory under the name
""config.tcl"". This is a _Tcl_ source file, so obviously, it's a
lot easier to maintain this file if you know the Tcl programming
language. If you're not familiar with it, that's okay -- most things
you'll need to do are pretty simple! (In fact, if you don't have
your own configuration file, you'll get the vanilla _Tkabber_, which
hopefully you'll find quite usable.)
Note that almost all _Tkabber_ options can be cofigured using
graphical interface (menu Tkabber->Customize), so editing
configuration file is not strictly necessary.
_Tkabber_ is configured in four stages:
o in the pre-load stage, configuration options which guide the
loading process are set;
Shchepin, et al. [Page 17]
Tkabber 0.11.0 June 2008
o in the post-load stage, configuration options for each module are
set;
o in the menu-load stage, the user is given an option to re-arrange
_Tkabber's_ menu bar; and,
o the final-load stage allows any last changes to be made before the
"login" dialog window is displayed to the user.
Let's look at each, in turn.
Shchepin, et al. [Page 18]
Tkabber 0.11.0 June 2008
6.1. Pre-load
There are a few things that you may let _Tkabber_ know immediately.
These are:
# tabbed interface
set ifacetk::options(use_tabbar) 1
# primary look-and-feel
set load_default_xrdb 1
option add *font \
"-monotype-arial-medium-r-normal-*-13-*-*-*-*-*-iso10646-1" \
userDefault
# cryptography by default
set ssj::options(sign-traffic) 0
set ssj::options(encrypt-traffic) 0
# using of external XML parser
package require tdom 0.8
# debugging output
set debug_lvls {jlib warning}
# splash window
set show_splash_window 0
# force english labels instead of native language
::msgcat::mclocale en
Shchepin, et al. [Page 19]
Tkabber 0.11.0 June 2008
6.1.1. Tabbed Interface
The first of these options, "ifacetk::options(use_tabbar)", tells
_Tkabber_ whether you want a tabbed interface or not. If not, here's
what to put in your configuration file:
set ifacetk::options(use_tabbar) 0
Although _Tkabber_ immediately applies most of its configuration
changes, in order to apply changed option
"ifacetk::options(use_tabbar)" you have to restart _Tkabber_. So,
basically you have two options: set "ifacetk::options(use_tabbar)" at
the beginning of your configuration file, or using graphical
interface save the option and restart _Tkabber_.
6.1.2. Fonts and colors
Many aspects of the _Tkabber_'s visual appearance such as fonts,
colors and geometry of windows can be configured using the Tk option
database. [22]
The corresponding _Tk_'s option [23] command can be used in the
_Tkabber_'s configuration file in any acceptable way: from small
tweaks to reading files containing elaborate sets of configuration
commands; ready-to-use examples of such files are included in the
distribution and are located under the "examples/xrdb" directory.
The _Tk_ toolkit is able to initialize its option database from the
_XRDB_ (X Resource Database) if its availability is detected at run
time. This means that any settings described here can be tuned via
the standard XRDB mechanism (see "man xrdb").
Beware though that the _Tk_'s semantics of matching option
specifications against the option database differ in some subtle
details from that of the _Xt_ toolkit. The most notable one is the
priority of options: _Tk_ prefers the latest option it sees, while
_Xt_ prefers "the most specific" one.
When specifying _Tkabber_-specific options in your _XRDB_ file use
the "Tkabber" class as the root element of the options.
See Appendix B for a list of all the resources that you can set to
control _Tkabber's_ look-and-feel.
Shchepin, et al. [Page 20]
Tkabber 0.11.0 June 2008
Probably the most commonly used way to configure _Tkabber_'s visual
appearance (especially on Windows platforms which lack _XRDB_
mechanism) is to put all the necessary settings in some file and then
ask _Tk_ to update its option database from it, like this:
set load_default_xrdb 0
option readfile $::configdir/newlook.xrdb userDefault
The first line tells _Tkabber_ not to load its default "xrdb" file,
whilst the second line tells _Tkabber_ which file to load instead.
Look at the provided example "xrdb" files to get the idea about how
they are organised. Of course, you can use any of that files as a
template. And of course, you can simply specify any of the example
files instead of your own to the "option readfile" command to get the
provided "theme".
Alternatively, if you're a Tcl "old timer", you can always do:
set load_default_xrdb 0
tk_bisque
to set the palette to a pleasing color scheme. Read more about this
in "man palette".
You can also customize the fonts _Tkabber_ uses to render its user
interface:
option add *font \
"-monotype-arial-medium-r-normal-*-13-*-*-*-*-*-iso10646-1" \
userDefault
The above setting (operating on the Tk option database) selects the
font used for all UI elements like buttons and labels and roster and
conversation windows. Obviously, you should choose fonts that suit
your taste.
If you want to specify another font for roster labels use the
following option:
option add *Roster*font \
"-misc-fixed-medium-r-normal-*-12-*-*-*-*-*-iso10646-1" \
userDefault
When picking fonts, observe these rules:
o Under X, encoding (charset) of fonts must match that of your
locale.
Shchepin, et al. [Page 21]
Tkabber 0.11.0 June 2008
o Ensure that the specified font exists, since if it's not, _Tk_
will try hard to pick the most suitable one which often yields not
what you want. (The best bet is to first pick the font using some
tool like "xfontsel".)
Note that when specifying settings using the _Tkabber_'s
configuration files (i.e. not using _XRDB_ directly) you are not
forced to use "X-style" (XLFD) font descriptions and may instead
specify fonts using sometimes more convenient _Tk_ features described
in Tk font manual page.
6.1.3. Cryptography by default
Next, you may want to _Tkabber_ to use cryptography by default.
There are two options:
o whether the traffic you send should be digitally-signed; and,
o if you have cryptographic information for someone, should the
default action be to encipher your traffic for them.
(By defining these options early on, _Tkabber_ will complain
immediately if it isn't able to load its cryptographic module;
otherwise, the default behavior is to proceed without any
cryptographic buttons, menus, and so on.)
6.1.4. Using of external XML parser from tDOM
By default for parsing XML _Tkabber_ uses (modified) _TclXML_ library
that comes with it distribution. This parser is pure-Tcl, and it
performance can be not suitable. Then you can install _tDOM_ with
built-in _expat_ support and require it in the config file:
package require tdom 0.8
6.1.5. Debugging Output
_Tkabber_ has a lot of debugging output. By default, it gets printed
to the standard output by a Tcl procedure called "debugmsg".
However, only information about those modules listed in a variable
called "debug_lvls" will be printed.
Shchepin, et al. [Page 22]
Tkabber 0.11.0 June 2008
If you know how to program Tcl, then this will seem rather obvious:
set debug_lvls [list message presence ssj warning]
# if you want a different behavior,
# define your own...
proc debugmsg {module msg} {
# ...
}
Most users won't care about "debugmsg" because they're running
_Tkabber_ under an application launcher so the standard output is
never seen. However, if this isn't the case for you, and you just
don't want to see any of this stuff, put this one line in your
configuration file:
set debug_lvls {}
6.1.6. Splash window
By default, when _Tkabber_ startup, it show loading process in splash
window. To disable this feature, put this in your configuration
file:
set show_splash_window 0
6.1.7. I18n/L10n
_Tkabber_ can show all messages in user's native language. This is
done by using Tcl's built-in _msgcat_ package which looks for a
directory called "msgs/" wherever you installed _Tkabber_, and then
uses the "LC_MESSAGES" environment variable (or "LANG" if
"LC_MESSAGES" not set) to select the appropriate file. If you wish,
you can force use of a particular language by putting a line like
this in your configuration file:
::msgcat::mclocale en
6.1.8. Searching
_Tkabber_ allows the user to perform textual searching in certain
classes of its windows. This searching is controlled by several
settings which can be specified in this section.
These settings are described in detail in Section 8.1.
Shchepin, et al. [Page 23]
Tkabber 0.11.0 June 2008
6.2. Post-load
After _Tkabber_ reads your configuration file, it loads all of its
own modules, it then invokes a procedure called "postload". This
procedure is supposed to perform module-specific configuration.
The default version of this procedure doesn't do anything. If you
want to configure one more module modules, then you need to define
the procedure in your configuration file, e.g.,
proc postload {} {
# look-and-feel
set pixmaps::options(pixmaps_theme) Default
global alert colors alert_lvls
set alert_lvls(error) 1
set alert_lvls(server) 1
set alert_lvls(message) 2
set alert_lvls(mesg_to_user) 3
set alert_colors {Black DarkBlue Blue Red}
set ifacetk::options(raise_new_tab) 1
# the autoaway module
set plugins::autoaway::options(awaytime) 5
set plugins::autoaway::options(xatime) 15
set plugins::autoaway::options(status) "Automatically away due to idle"
set plugins::autoaway::options(drop_priority) 1
# the avatar module
set avatar::options(announce) 0
set avatar::options(share) 0
# the chat module
set chat::options(default_message_type) chat
set chat::options(stop_scroll) 0
set plugins::options(timestamp_format) {[%R]}
# the clientinfo module
Shchepin, et al. [Page 24]
Tkabber 0.11.0 June 2008
set plugins::clientinfo::options(autoask) 0
# the conferenceinfo module
set plugins::conferenceinfo::options(autoask) 0
set plugins::conferenceinfo::options(interval) 1
set plugins::conferenceinfo::options(err_interval) 60
# the cryptographic module
set ssj::options(encrypt,fred@example.com) 1
# the emoticon module
set plugins::emoticons::options(theme) \
$::configdir/emoticons/rythmbox
# the file transfer module
set ft::options(download_dir) "/tmp"
# the groupchat module
global gra_group gra_server
global gr_nick gr_group gr_server
global defaultnick
set defaultnick(adhoc@conference.example.com) publius
set defaultnick(*@conference.example.com) cicerone
# the ispell module
set plugins::ispell::options(enable) 1
set plugins::ispell::options(executable) /usr/bin/ispell
set plugins::ispell::options(command_line) -C -d russian
set plugins::ispell::options(dictionary_encoding) koi8-r
set plugins::ispell::options(check_every_symbol) 1
# the stream initiation module
set si::transport(allowed,http://jabber.org/protocol/bytestreams) 0
set si::transport(allowed,http://jabber.org/protocol/ibb) 1
Shchepin, et al. [Page 25]
Tkabber 0.11.0 June 2008
# the logger module
set logger::options(logdir) [file join $::configdir logs]
set logger::options(log_chat) 1
set logger::options(log_groupchat) 1
# the login module
global loginconf loginconf1 loginconf2 autologin
set loginconf(user) ""
set loginconf(password) ""
set loginconf(server) example.com
set loginconf(resource) tkabber
set loginconf(priority) 16
set loginconf(usealtserver) 0
set loginconf(altserver) ""
set loginconf(altport) 5422
set loginconf(stream_options) plaintext
set loginconf(proxy) https
set loginconf(usesasl) 1
set loginconf(allowauthplain) 0
set loginconf(proxyhost) localhost
set loginconf(proxyport) 3128
set loginconf(proxyusername) ""
set loginconf(proxypassword) ""
# The following variables are useful when your jabber-server
# (example.com) does not have SRV or A-record in DNS
set loginconf(usealtserver) 1
set loginconf(altserver) "jabber.example.com"
set loginconf1(profile) "Default Account"
set loginconf1(user) mrose
set loginconf2(profile) "Test Account"
set loginconf2(user) test
array set loginconf [array get loginconf1]
set autologin 0
# the message module
set message::options(headlines,cache) 1
set message::options(headlines,multiple) 1
Shchepin, et al. [Page 26]
Tkabber 0.11.0 June 2008
# the raw xml input module
set plugins::rawxml::set options(pretty_print) 0
set plugins::rawxml::set options(indent) 2
# the roster module
set roster::show_only_online 1
set roster::roster(collapsed,RSS) 1
set roster::roster(collapsed,Undefined) 1
set roster::aliases(friend@some.host) \
{friend@other.host friend@another.host}
set roster::use_aliases 1
# the sound module
set sound::options(mute) 0
set sound::options(mute_if_focus) 0
set sound::options(notify_online) 0
set sound::options(mute_groupchat_delayed) 1
set sound::options(mute_chat_delayed) 0
set sound::options(external_play_program) /usr/bin/aplay
set sound::options(external_play_program_options) -q
set sound::options(delay)
set sound::options(connected_sound) ""
set sound::options(presence_available_sound) ""
set sound::options(presence_unavailable_sound) ""
set sound::options(groupchat_server_message_sound) ""
set sound::options(groupchat_their_message_to_me_sound) ""
}
This isn't nearly as complicated as it seems. Let's break it down by
individual module
6.2.1. Look-and-Feel
_Tkabber_ is shameless in borrowing icons from other Jabber clients.
By setting "pixmaps::options(pixmaps_theme)", you can select a family
of related icons. Besides ""Default"", you can choose one of
""Gabber"", ""JAJC"", ""Jarl"", ""Psi"", ""ICQ"", or a few other
themes.
If you want, you can have _Tkabber_ use a different theme by putting
custom theme subdirectory to "$::configdir/pixmaps/" directory (tilde
Shchepin, et al. [Page 27]
Tkabber 0.11.0 June 2008
means home directory). _Tkabber_ knows that it is a theme directory
by looking for "icondef.xml" file in the directory. To find out the
structure of icon definition file, look through _XEP-0038_ and go to
where you installed _Tkabber_ and take a look at the directory called
""pixmaps/default/"".
If you're using the tabbed window interface, _Tkabber_ needs a way of
telling you that something has changed in a window that's not on top.
This is where the an array called _alert_lvls_ and a list called
_alert_colors_ come in. The array maps an incoming message to a
priority number from zero to three. The list, which is indexed
starting at _zero_, indicates what color the tab should use to let
you know that something's changed. So, the way to read the example
is that receiving:
o an error or server message will cause the tab of a lowered window
to go dark blue;
o a groupchat or headline message will cause the tab to go blue;
and,
o a chat message addressed directly to you will cause the tab to go
red.
By default, whenever a new tab is created, it is automatically
raised. If you don't like this behavior, add this line:
set ifacetk::options(raise_new_tab) 0
6.2.2. The Autoaway Module
This module is presently available only if either:
o on UNIX, if you have the _Tk Xwin_ extension installed; or,
o On Windows, if you have the _Tcl Winidle_ extension installed.
There are two variables that control when _Tkabber_ automatically
marks you as away: "plugins::autoaway::options(awaytime)" and
"plugins::autoaway::options(xatime)". Both define the idle threshold
in minutes (the number does not have to be integer).
If variable "plugins::autoaway::options(drop_priority)" is set in 1
then _Tkabber_ will set priority to 0 when moving in extended away
state.
Variable "plugins::autoaway::options(status)" allows to specify text
status, which is set when _Tkabber_ is moving in away state.
Shchepin, et al. [Page 28]
Tkabber 0.11.0 June 2008
6.2.3. The Avatar Module
There are two variables that you can set to control whether _Tkabber_
will allow others to see your avatar:
o "avatar::options(announce)" determines whether your presence
information indicates that you have an avatar; and,
o "avatar::options(share)" determines whether requests for your
avatar will be honored.
6.2.4. The Chat Module
Most instant messaging users prefer to see all the back-and-forth
communication in a single window. If you prefer to see each line
sent back-and-forth in a separate window, here's what to put in your
"postload":
set chat::options(default_message_type) normal
The variable named "chat::options(stop_scroll)" determines whether a
chat window should automatically scroll down to the bottom whenever
something new comes in.
You can also set format of time stamp that displayed in beginning of
each chat message. Refer to _Tcl_ documentation for description of
format. E.g., to display it in ""dd:mm:ss"" format, add this line:
set plugins::options(timestamp_format) {[%T]}
6.2.5. The Clientinfo Module
This module shows in popup balloons information of used by this user
client name, version, and OS. You can allow or deny automatic asking
of this info from users by setting this variable to 1 or 0:
set plugins::clientinfo::options(autoask) 1
6.2.6. The Conferenceinfo Module
After you join a conference that's listed in your roster, then
whenever you mouse over that roster entry, you'll see a popup listing
the conference's participants. If you want to see this popup,
regardless of whether you are currently joined with the conference,
add this line to your post-load:
set plugins::conferenceinfo::options(autoask) 1
Shchepin, et al. [Page 29]
Tkabber 0.11.0 June 2008
You can also set interval between these requests with these two
variables:
set plugins::conferenceinfo::options(interval) 1
set plugins::conferenceinfo::options(err_interval) 60
The second variable defines how many minutes to wait after receiving
an error reply before trying again. (Usually an error reply
indicates that the server hosting the conference doesn't support
browsing, so it makes sense not to try that often.
6.2.7. The Cryptographic Module
Earlier (Section 6.1) we saw an example where the "ssj::options"
array from the cryptographic module was set during the preload.
In addition to "signed-traffic" and "encrypt-traffic", you can also
tell _Tkabber_ whether to encrypt for a particular JID, e.g.,
set ssj::options(encrypt,fred@example.com) 1
6.2.8. The Emoticons Module
The procedure called _plugins::emoticons::load_dir_ is used to load
emoticon definitions from a directory. The directory contains a file
called ""icondef.xml"", which defines the mapping between each image
and its textual emoticon (To find out what this file looks like, go
to where you installed _Tkabber_ and take a look at the file called
""emoticons/default/icondef.xml"" or read XEP-0038 [24].)
If you have just a few icons, and you don't want to create a
directory and a textual mapping, you can use the procedure called
"plugins::emoticons::add", e.g.,
plugins::emoticons::add ":beer:" \
[image create photo -file $::configdir/emoticons/beer.gif]
If you want to disable all emoticons, you can simply load empty
directory. Put in postload function
plugins::emoticons::load_dir ""
6.2.9. The File Transfer Module
You can set directory in which files will be saved by default:
set ft::options(download_dir) "/tmp"
Shchepin, et al. [Page 30]
Tkabber 0.11.0 June 2008
6.2.10. The Groupchat Module
There are several variables that set the dialog window defaults for
adding a groupchat to your roster, or joining a groupchat:
add to roster dialog window: "gra_group" and "gra_server" specify the
default room and conference server, repectively; and,
join dialog window: "gr_nick", "gr_group" and "gr_server" specify the
default nickname, room, and conference server, respectively.
Note that variables "gra_server", "gr_nick" and "gr_server" overriden
in login procedure, so better place for changing them is in
"connected_hook" (see below).
You may want to have different nicknames for different groupchats.
Accordingly, the array called _defaultnick_ is used to set the
default nickname for when you enter a conference. The array is
indexed by the JID of the room, e.g.,
set defaultnick(adhoc@conference.example.com) publius
Another possibility is to put pattern in parentheses. The following
example shows how to specify default nickname for all conferences at
_conference.example.com_:
set defaultnick(*@conference.example.com) ciceroni
Exact JID's take the higher precedence than patterns.
6.2.11. The Ispell Module
On Unix, _Tkabber_ can check spelling of what you entered by calling
an external program _ispell_. To enable this feature, add following
lines to postload function:
set plugins::ispell::options(enable) 1
If you enabled this module, then you can also define:
o the path to the _ispell_ executable by setting
"plugins::ispell::options(executable)"
o the _ispell_ command line options by setting
"plugins::ispell::options(command_line)"; and,
o the encoding of the output by setting
"plugins::ispell::options(dictionary_encoding)".
Shchepin, et al. [Page 31]
Tkabber 0.11.0 June 2008
If you don't care about putting a large load on your process, then
you can also set "plugins::ispell::options(check_every_symbol)" to 1
to check correctness of current word after every entered symbol.
(Usually you don't need to set this option.)
6.2.12. The Stream Initiation Module
Stream initiation profile is defined in _XEP-0095_ with two
transports (_XEP-0047_ - IBB, _XEP-0065_ - SOCKS5 bytestreams). With
it you can specify what transports you can use, and via negotiation
choose more appropriate one. _Tkabber_ comes with two transport
implementations:
bytestreams: that allows you to connect to any node that supports
"bytestreams" transport (mediated connection is not supported
yet);
ibb: that uses your "Jabber" connection to transmit the data (which
may slowdown other traffic to you).
If your machine is behind a NAT, then you can't use the "bytestreams"
transport, so you should disable it:
set si::transport(allowed,http://jabber.org/protocol/bytestreams) 0
6.2.13. The Logger Module
You can set directory to store logs:
set logger::options(logdir) [file join $::configdir logs]
Also you can allow or disallow storing of private and group chats
logs:
set logger::options(log_chat) 1
set logger::options(log_groupchat) 1
6.2.14. The Login Module
The first task is to initialize the configuration defaults for the
_login_ module. As you can see above, the global array "loginconf"
has a whole bunch of elements, e.g., "user", "password", and so on.
Elements "loginconf(user)" and "loginconf(password)"specify username
and password to authenticate at your _Jabber_ server.
Element "loginconf(server)" must be set to _Jabber_ server name (the
part of you _JID_ after "@".
Shchepin, et al. [Page 32]
Tkabber 0.11.0 June 2008
Element "loginconf(stream_options)" is set to one of the following
values:
o plaintext -- use plaintext connection;
o encrypted -- use encrypted (via STARTTLS mechanism) connection
(this option requires tls extension to be installed);
o ssl -- use encrypted (via legacy SSL mechanism) connection (this
option requires tls extension to be installed);
o compressed -- use compressed connection (this option requires Ztcl
extension to be installed).
_Tkabber_ tries to resolve _Jabber_ server name using _SRV_ first and
usual _A_ records in _DNS_. If the resolution fails (for example if
you are in LAN environment without _DNS_) you can force _Tkabber_ to
connect to the server using "loginconf(altserver)" and
"loginconf(altport)" options (do not forget to set
"loginconf(usealtserver)" to "1").
Another option is to use _HTTP_-polling connect method (if your
server supports it) and tunnel _XMPP_ traffic through _HTTP_. To
enable _HTTP_-polling set "loginconf(usehttppoll)" to "1". _Tkabber_
then tries to find connect _URL_ using _TXT_ record in _DNS_ (see
XEP-0156). You can specify _URL_ manually by setting
"loginconf(pollurl)".
This collection of elements, which is termed a login profile, is what
populates the dialog window you'll see when _Tkabber_ wants to
connect to the server.
It turns out that _Tkabber_ lets you have as many different login
profiles as you want. If you want more than just one, they're named
"loginconf1", "loginconf2", and so on.
What the example above shows is the default values for all profiles
being set in "loginconf", and then two profiles, one called ""Default
Account"" and the other called ""Test Account"" being created.
If you want to automatically login to server, then you can set the
"autologin" variable to "1".
If you set the "autologin" variable to "-1", then _Tkabber_ will not
automatically login and will not show login dialog.
Default value for "autologin" is "0". In this case _Tkabber_ shows
login dialog.
Shchepin, et al. [Page 33]
Tkabber 0.11.0 June 2008
6.2.15. The Message Module
By default, when you restart _Tkabber_ it won't remember the
headlines you received. If you want _Tkabber_ to remember headlines
whenever you run it, set "message::options(headlines,cache)" to "1".
By default, _Tkabber_ will put all headline messages into a single
window. If you want _Tkabber_ to use a seperate window for each
headline source, set "message::options(headlines,multiple)" to "1".
6.2.16. The Raw XML Input Module
With this module you can monitor incoming/outgoing traffic from
connection to server and send custom XML stanzas. Also you can
switch on "pretty print" option to see incoming and outgoing XML
stanzas pretty printed. Note, that with this option they may be
drawed incorrectly, e.g. for XHTML tags. Also you can set
indentation level via "indent" option.
6.2.17. The Roster Module
By default, your entire roster is shown, even those items that aren't
online. The variable called "roster::show_only_online" controls
this.
Similarly by default, each item in every category is shown in the
roster. If you want to hide the items in a given category, the array
called "roster::roster" lets you do this. In the example, we see
that two groups (""RSS"" and ""Undefined"") start with their items
hidden.
Some peoples use several JIDs. _Tkabber_ lets you specify an alias
for people like these, so it will show only one entry in the roster.
In the example, we see that user "friend@some.host" have aliases
"friend@other.host" and "friend@another.host". You can also disable
all aliases by setting "roster::use_aliases" to "0".
6.2.18. The Sound Module
_Tkabber_ can play sounds on some events. It can use for this
_snack_ library or external program that can play _WAV_ files. Sound
notifications is enabled when _Tkabber_ starts.
If you want to start _Tkabber_ with sound muted add the following
line:
set sound::options(mute) 1
Shchepin, et al. [Page 34]
Tkabber 0.11.0 June 2008
If you want _Tkabber_ to stop notifying you when you are not online
(in away or dnd state) add the following line:
set sound::options(notify_online) 1
If you want _Tkabber_ to mute sound when it is focued (and you are
paying enough attention to it) add the following line:
set sound::options(mute_if_focus) 1
You can also mute sounds of delayed groupchat messages and delayed
personal chat messages:
set sound::options(mute_groupchat_delayed) 1
set sound::options(mute_chat_delayed) 0
If you want to use external program for playing sounds and possibly
this program's options, then also add something like this (these
options are suitable for Linux users with ALSA installed):
set sound::options(external_play_program) /usr/bin/aplay
set sound::options(external_play_program_options) -q
You can also set minimal interval (in milliseconds) between playing
different sounds.
set sound::options(delay) 200
_Tkabber_ allows you to specify the filename it will play notifying
about some more or less important events. These are:
o "sound::options(connected_sound)" -- sound playing when _Tkabber_
is connected to the server;
o "sound::options(presence_available_sound)" -- sound playing when
available presence is coming;
o "sound::options(presence_unavailable_sound)" -- sound playing when
unavailable presence is coming;
o "sound::options(chat_my_message_sound)" -- sound playing when you
send one-to-one chat message;
o "sound::options(chat_their_message_sound)" -- sound playing when
you receive one-to-one chat message;
o "sound::options(groupchat_server_message_sound)" -- sound playing
when you receive groupchat message from server;
o "sound::options(groupchat_my_message_sound)" -- sound playing when
you receive groupchat message from server;
Shchepin, et al. [Page 35]
Tkabber 0.11.0 June 2008
o "sound::options(groupchat_their_message_sound)" -- sound playing
when you receive groupchat message from another user;
o "sound::options(groupchat_their_message_to_me_sound)" -- sound
playing when you receive highlighted (usually personally
addressed) groupchat message from another user.
If you want to disable sound notification for some of the events,
then you can add line like this:
set sound::options(connected_sound) ""
set sound::options(presence_available_sound) ""
set sound::options(presence_unavailable_sound) ""
set sound::options(groupchat_server_message_sound) ""
set sound::options(groupchat_their_message_to_me_sound) ""
6.3. Menu-load
After _Tkabber_ invokes your "postload" procedure, it starts building
the GUI. One of the most important things it does is build up a list
that specifies its menu bar. It then invokes a procedure called
"menuload", which is allowed to modify that specification before
_Tkabber_ uses it.
The default version of this procedure is the identity function,
i.e..,
proc menuload {description} { return $description }
If you _really_ want to change the menubar specification, then here's
how to get started:
1. Go to where you installed the _BWidget_ library and take a look
at the file called ""BWman/MainFrame.html"". The documentation
for the ""-menu"" option explains the syntax of the
specification.
2. Go to where you installed _Tkabber_ and take a look at the file
called ""iface.tcl"". Look for the line that starts with ""set
descmenu"". This will show you the specification given to your
"menuload" procedure.
3. Go to where you installed _Tkabber_ and take a look at the file
called ""examples/mtr-config.tcl"". Look at the "menuload"
procedure defined there. It lays out _Tkabber's_ menu bar
similar to _Gabber's_.
Shchepin, et al. [Page 36]
Tkabber 0.11.0 June 2008
4. Finally, study the procedures listed here.
6.3.1. The Avatar Module
The procedure called "avatar::store_on_server" stores your avatar on
the server.
6.3.2. The Browser Module
The procedure called "browser::open" opens a new browser window.
6.3.3. The Groupchat Module
The procedure called "add_group_dialog" displays a dialog window when
you want to add a groupchat to your roster. Similarly, the procedure
called "join_group_dialog" displays a dialog window when you want to
join a groupchat.
6.3.4. The Login Module
The procedure called "show_login_dialog" displays a dialog window
when you want to login to the server. (Prior to attempting to login,
if necessary it will logout). Naturally, the procedure called
"logout" does just that; however, if you want get a dialog window for
confirmation, use "show_logout_dialog" instead.
6.3.5. The Message Module
If you want to send a message to someone, the procedure called
"message::send_dialog" will put up a dialog window. It takes upto
three optional arguments: the recipient JID, the subject, and the
thread.
If you want to get added to someone's roster, the procedure called
"message::send_subscribe_dialog" will put up a dialog window. It
takes one optional argument: the recipient JID.
If you want to adjust your message filters, the procecure called
"filters::open" will put up a dialog window.
6.3.6. The Presence Module
If you want to display information about a user, the procecure called
"userinfo::open" will put up a dialog window. It takes two optional
arguments: the user's JID; and, whether or not the dialog window
should be editable.
Shchepin, et al. [Page 37]
Tkabber 0.11.0 June 2008
Obviously, the second argument makes sense only if it's your own
information, i.e.,
global loginconf
userinfo::open \
${loginconf(user)}@$loginconf(server)/$loginconf(resource) 1
There are also two variables that you can use to set your own
presence: "userstatus" and "textstatus". The first variable takes
one of five values:
o available;
o chat;
o away;
o xa;
o dnd; or,
o invisible.
The second variable takes any textual value.
Changes to your presence information are propagated only when
"userstatus" is changed. Accordingly, if you make a change to
"textstatus", be sure to write "userstatus" immediately afterwards,
even if it's a no-op, e.g.,
global userstatus textstatus
set textstatus "Out to lunch"
set userstatus $userstatus
6.3.7. Miscellany
Finally, you can use the procedure named "help_window" to display
some textual help. This procedure takes two arguments: the title for
the window; and, the text to display.
Also, instead of calling "exit" to terminate _Tkabber_, please use
the "quit" procedure instead.
6.4. Final-Load
Finally, right before _Tkabber_ goes to display the login dialog, it
Shchepin, et al. [Page 38]
Tkabber 0.11.0 June 2008
invokes a procedure called "finload", which does whatever you want it
to.
Shchepin, et al. [Page 39]
Tkabber 0.11.0 June 2008
7. Extensibility
In addition to various configuration mechanisms, _Tkabber_ lets you
define procedures, termed "hooks" that get run when certain events
happen.
Here's an example. When _Tkabber_ receives a chat message, how does
it know what to process and what to draw? The short answer is that
it doesn't need to know anything, all it does is:
hook::run draw_message_hook $chatid $from $type $body $extras
The "hook::run" procedure invokes whatever hooks have been defined
for "draw_message_hook". In fact, more than ten procedures may get
invoked to satisfy this hook!
Here's how it works: _Tkabber_ comes with a number of plugins, which
get loaded automatically. Each plugin makes one or more calls that
look like this:
hook::add draw_message_hook [namespace current]::my_draw_hook $prio
where the last two parameters are: the name of a procedure to run;
and, a relative integer priority.
When "hook::run" is invoked for "draw_message_hook", each of these
procedures is called, in the priority order (from smallest to
largest). If one of the procedures wants to prevent the later
procedures from being called, it returns the string ""stop"".
Shchepin, et al. [Page 40]
Tkabber 0.11.0 June 2008
To continue with the example, in between the pre-load and post-load
stages of configuration, the following calls get made by different
plugins:
hook::add draw_message_hook [list ...::events::process_x 0] 0
hook::add draw_message_hook ...::chatstate::process_x 1
hook::add draw_message_hook ...::check_draw_empty_body 4
hook::add draw_message_hook ...::chat_open_window 5
hook::add draw_message_hook [list ...::events::process_x 1] 6
hook::add draw_message_hook ...::draw_signed 6
hook::add draw_message_hook ...::draw_encrypted 7
hook::add draw_message_hook ...::handle_error 10
hook::add draw_message_hook ...::handle_info 10
hook::add draw_message_hook ...::draw_timestamp 15
hook::add draw_message_hook ::logger::log_message 15
hook::add draw_message_hook muc::set_message_timestamp 15
hook::add draw_message_hook ...::add_number_of_messages_to_title 18
hook::add draw_message_hook ...::chat_message_notify19
hook::add draw_message_hook ...::handle_server_message 20
hook::add draw_message_hook ...::roster::update_chat_activity 50
hook::add draw_message_hook ...::check_nick 60
hook::add draw_message_hook ::wmdock::msg_recv 70
hook::add draw_message_hook ...::handle_last_nick 79
hook::add draw_message_hook ...::::add_bookmark 80
hook::add draw_message_hook ...::handle_me 83
hook::add draw_message_hook ...::xhtml::draw_xhtml_message 85
hook::add draw_message_hook ...::draw_normal_message 87
Many of these procedures look at the incoming chat message and
operate on only certain kinds of messages. Some of these procedures
may return ""stop"", e.g., "handle_me" which handles chat bodies that
start with ""/me"" and draw_xhtml_message which visualizes _XHTML_
formatted messages. (In this example, the actual namespaces were
replaced with ""...:"" to make it more readable).
Now let's look at the different kind of hooks that _Tkabber_ knows
about.
7.1. Chat Hooks
When _Tkabber_ decides that it needs to open a (tabbed) window for a
chat or groupchat, two hooks are run:
open_chat_pre_hook $chatid $type
open_chat_post_hook $chatid $type
Both hooks are given two parameters: the chatid (ID of the chat or
conference room window, you always can obtain JID using
Shchepin, et al. [Page 41]
Tkabber 0.11.0 June 2008
"chat::get_jid" and connection ID using "chat::get_connid" routines);
and, and the type of chat (either ""chat"" or ""groupchat"").
Similarly, when _Tkabber_ encounters activity on a tabbed window, a
hook is run:
raise_chat_tab_hook $path $chatid
The hook is given two parameters: the path of the _Tk_ widget for the
tabbed window; and, the chatid of the chat or conference room window.
When you want to send a chat message, a hook is run:
chat_send_message_hook $chatid $user $body $type
The hook is given four parameters: the chatid of the recipient; the
localpart of your login identity; the body of the message; and, the
type of chat.
draw_message_hook $chatid $from $type $body $extras
The hook is given five parameters: the chatid of the sender window
(JID includes a resource); the JID of the sender (without the
resource); the type of chat; the body of the message; and, a nested-
list of additional payload elements. (This last parameter isn't
documented in this version of the documentation.)
Chat windows have menubuttons, and two hooks are used to add items in
menu:
chat_create_user_menu_hook $path $connid $jid
chat_create_conference_menu_hook $path $connid $jid
The first is used in user chat windows, and second in groupchat ones.
Hooks are given three parameters: the path of the _Tk_ menu widget;
connection ID; and, the JID of user or conference.
In groupchat windows it is possible to complete participants' nicks
or commands by pressing TAB key. List of completions is generated by
running this hook:
generate_completions_hook $chatid $compsvar $wordstart $line
The hook is given four parameters: the chatid of conference window;
name of global variable, in which current list of possible
completions is stored; index of position where completion must be
inserted; and content of text widget where completion is requested.
Shchepin, et al. [Page 42]
Tkabber 0.11.0 June 2008
When someone enters/exits conference, the following hooks are called:
chat_user_enter $group $nick
chat_user_exit $group $nick
The hooks are given two parameters: chatid of conference and nick of
participant.
7.2. Login Hooks
Two hooks are invoked whenever a session is connected or
disconnected:
connected_hook $connid
disconnected_hook $connid
Both hooks are given one parameter: connection ID (_Tkabber_ allows
several connections at once).
7.3. Presence Hooks
When our presence status changes, a hook is run:
change_our_presence_post_hook $status
The hook is given one parameter: the new presence status value, i.e.,
one of:
o available;
o chat;
o away;
o xa;
o dnd; or
o unavailable.
Similarly, when someone else's presence changes, a hook is run:
on_change_user_presence_hook $label $status
The hook is given two parameters: the label associated with the JID
(e.g., "fred") or the JID itself (e.g., "fred@example.com") if no
label exists in the roster; and, the user's new status.
Shchepin, et al. [Page 43]
Tkabber 0.11.0 June 2008
And for all received presence packets, a hook is run:
client_presence_hook $connid $from $type $x $args
The hook is given four parameters: connection ID, who send this
presence, type of presence (e.g., "error", "unavailable"), list of
extended subtags and parameters of this presence (e.g., "-show xa
-status online").
7.4. Roster Hooks
When an item is added to the roster window, one of the four hooks is
run to add stuff to the menu associated with that item:
roster_conference_popup_menu_hook $path $connid $jid
roster_service_popup_menu_hook $path $connid $jid
roster_jid_popup_menu_hook $path $connid $jid
roster_group_popup_menu_hook $path $connid $name
When run, each hook is given three parameters: the path of the _Tk_
menu widget; the connection ID; and, a JID of the roster item (or the
name of the roster group for the last one).
Also the following hook is run to add stuff to the menu in
groupchats:
roster_create_groupchat_user_menu_hook $path $connid $jid
The hook is given three parameters: the path of the _Tk_ menu widget;
the connection ID; and, a JID of user.
The following hook is run to add stuff to the popup balloon for each
roster item:
roster_user_popup_info_hook $varname $connid $jid
The hook is given three parameters: the variable name in which
current popup text is stored, the connection ID, and the JID of the
roster item.
Shchepin, et al. [Page 44]
Tkabber 0.11.0 June 2008
7.5. Miscellaneous Hooks
There are three "obvious" hooks:
postload_hook
finload_hook
quit_hook
The first two, by default, run the "postload" and "finload"
procedures, respectively. _postload_hook_ is run after all code has
been loaded and before initializing main _Tkabber_ window. After
that _finload_hook_ is run. The final hook is called just before
_Tkabber_ terminates (cf., Section 6.3.7).
You can add custom pages to userinfo window using
userinfo_hook $path $connid $jid $editable
Shchepin, et al. [Page 45]
Tkabber 0.11.0 June 2008
8. User Interface basics
8.1. Searching
Search panel may be invoked in certain classes of _Tkabber_ windows
using the "<<OpenSearchPanel>>" Tk virtual event which is bound by
default to the "<Control-S>" keyboard command.
Search panel can be dismissed by pressing the "<Escape>" key and the
default search action ("search down") is activated by pressing the
"<Return>" key while entering the search pattern.
Search panel is currenlty available in:
o Chat and groupchat windows;
o Service discovery window;
o Chat history logs;
o All windows of the "Chats history" tool.
Searching may be customized using the settings located under the
_Plugins --> Search_ group of the _Customize_ window. These setings
are:
o "::plugins::search::options(case)": perform case-sensitive
searching (_off_ by default);
o "::plugins::search::options(mode)": selects searching mode which
can be one of:
* _substring_ -- use simple substring search: the typed search
string is taken verbatim and then the attempt to locate it is
performed. This is the default mode.
* _glob_ -- uses "glob-style" (or "shell-style") matching:
special symbols are recognized and they provide for
"wildcarding":
+ _*_ matches zero or more characters;
+ _?_ matches exactly one character;
+ _[_ and _]_ define character classes, e.g., "[A-Z]" will
match any character in the series "A", "B", ... "Z".
The full syntax is described in Tcl string manual page. That
Shchepin, et al. [Page 46]
Tkabber 0.11.0 June 2008
is, this search mode can be convenient for those who want more
general yet simple approach to searching and is familiar with
the "shell globbing" concept found in Unix shells.
* _regexp_ -- provides for searching using full-blown regular
expressions engine. The full syntax is described in Tcl
re_syntax manual page [25].
Shchepin, et al. [Page 47]
Tkabber 0.11.0 June 2008
Appendix A. Releases History
A.1. Main changes in 0.11.0
o New tabbed user interface. Tab headers now occupy several rows
and tab bar can be docked to the left and right sides of chat
window
o Roster filter
o Added support for pixmaps (in particular emoticons) JISP archives
(XEP-0038)
o Added support for SOCKS4a and SOCKS5 proxy for the main connection
o Added user location support (XEP-0080)
o Added user mood support (XEP-0107)
o Added user activity support (XEP-0108)
o Added user tune support (XEP-0118)
o Added entity capabilities (XEP-0115 v.1.5, only reporting) support
o Added basic robot challenges support (XEP-0158, v.0.9)
o Added partial data forms media element support (XEP-0221, v.0.2,
URIs and images only)
o Roster is now exported to XML instead of Tcl list
o Added support for entity time (XEP-0202)
o Tkabber version is now reported in disco#info (XEP-0232)
o Moved deprecated Jabber Browser (XEP-0011) to an external plugin
o Moved Jidlink file transfer to an external plugin
o Added several new plugins: attline, ctcomp, custom-urls,
floatinglog, gmail, openurl, presencecmd, receipts
o Many fixes and enhancements
Shchepin, et al. [Page 48]
Tkabber 0.11.0 June 2008
A.2. Main changes in 0.10.0
o New artwork by Artem Bannikov
o Mediated SOCKS5 connection support for file transfer (XEP-0065)
o Blocking communicaation with users not in roster (using XEP-0016
via simple interface)
o Translatable outgoing error messages support (based on recipient's
xml:lang)
o Remote controlling clients support (XEP-0146)
o Extended stanza addressing support (XEP-0033)
o New chats history tool with search over the all chatlog files
o Roster item icons are chosen based on Disco queries to item server
o Search in Disco, Browser, Headlines, RawXML, and Customize windows
o New internal plugins: abbrev allows to abbreviate words in chat
input windows, postpone stores/restores current input window
content
o New external plugins (aniemoticons, latex, tkabber-khim, traffic,
renju)
o Emoticons theme now can be loaded using GUI
o Most Tkabber's tabs can now be stored on exit and restored on
start
o XMPP ping support (XEP-0199). Reconnecting based on XMPP ping
replies
o Delayed delivery now recognizes XEP-0203 timestamps
o Added optional 'My Resources' roster group, which contains other
connected resources of the same JID
o Many fixes and enhancements
A.3. Main changes in 0.9.9
Shchepin, et al. [Page 49]
Tkabber 0.11.0 June 2008
o Improved privacy lists interface
o Support for stream compression (XEP-0138)
o Support for SRV DNS-records
o Support for TXT DNS-records (XEP-0156)
o Support for ad-hoc commands (XEP-0050)
o Improved headlines support
o Chat state notification support (XEP-0085)
o Many fixes and enhancements
A.4. Main changes in 0.9.8
o Support for STARTTLS
o Reorganized menu
o Support for searching in chat window
o Support for annotations about roster items (XEP-0145)
o Support for conference rooms bookmarks (XEP-0048)
o Added multilogin support for GPGME
o Better support for xml:lang
o Support for service discovery extensions (XEP-0128)
o Support for NTLM authentication
o Many fixes and enhancements
A.5. Main changes in 0.9.7beta
o Updated support for file transfer (XEP-0095, XEP-0096, XEP-0047,
XEP-0065)
o Support for colored nicks and messages in conference
o Better multiple logins support
Shchepin, et al. [Page 50]
Tkabber 0.11.0 June 2008
o Updated support for xml:lang
o Support for IDNA (RFC3490)
o Many fixes and enhancements
A.6. Main changes in 0.9.6beta
o Multiple logins support
o History now splitted by month
o Animated emoticons support
o Many user interface improvements
o More XMPP support
o More translations
o Bugfixes
A.7. Main changes in 0.9.5beta
o Nested roster groups
o Messages emphasizing
o User interface improvements
o Support for XMPP/Jabber MIME Type
o Bugfixes
Shchepin, et al. [Page 51]
Tkabber 0.11.0 June 2008
Appendix B. Tk option database resources
Here is list of the most essential _Tkabber_-specific _Tk option
database_ resources that you need to change look:
Tkabber.geometry Geometry of main window.
*Chat.chatgeometry
*Chat.groupchatgeometry
*Customize.geometry
*RawXML.geometry
*Stats.geometry
*Messages.geometry
*JDisco.geometry Geometry of various windows (when not using tabs).
*mainRosterWidth The width of the main roster window.
*Chat.inputheight
*RawXML.inputheight Height of input windows in chat and raw XML
windows.
*Balloon.background
*Balloon.foreground Background and foreground colors of popup
balloon.
*Balloon.style Behaviour of popup balloon: can be "delay" (balloon
appeared after some time) and "follow" (balloon appeared
immediately and follows mouse).
*JDisco.fill Color of service discovery browser item name.
*JDisco.identitycolor Color of service discovery browser item
identity.
*JDisco.featurecolor Color of service discovery browser entity
feature.
Shchepin, et al. [Page 52]
Tkabber 0.11.0 June 2008
*JDisco*Tree*background Background of service discovery browser.
*Chat.meforeground Color of user's messages in chat windows.
*Chat.theyforeground Color of other peoples messages in chat windows.
*Chat.serverlabelforeground Color of label before server message.
*Chat.serverforeground Color of server messages in chat windows.
*Chat.errforeground Color of error messages in chat windows.
*Chat.urlforeground Color of URLs in chat windows.
*Chat.urlactiveforeground Color of mouse highlighted URLs in chat
windows.
*JDisco.fill Default color of items in Service Discovery Browser.
*JDisco.featurecolor Default color of feature items in Service
Discovery Browser.
*JDisco.identitycolor Default color of identity items in Service
Discovery Browser.
*JDisco.optioncolor Default color of option items in Service
Discovery Browser.
*JDisco*Tree*background Default color of background in Service
Discovery Browser.
*NoteBook.alertColor0
*NoteBook.alertColor1
*NoteBook.alertColor2
*NoteBook.alertColor3 Tabs alert colors.
*Roster.cbackground Roster background color.
*Roster.groupindent Indentation for group title.
*Roster.groupiconindent Indentation for group icon.
Shchepin, et al. [Page 53]
Tkabber 0.11.0 June 2008
*Roster.jidindent Indentation for item name.
*Roster.jidmultindent Indentation for item with multiple resources.
*Roster.subjidindent Indentation for item resource.
*Roster.iconindent Indentation for item icon.
*Roster.subitemtype
*Roster.subiconindent Indentation for resource icon.
*Roster.textuppad Top pad for item's names.
*Roster.textdownpad Bottom pad for item's names.
*Roster.linepad Vertical distance between items.
*Roster.foreground Color of item's names.
*Roster.jidfill Background of roster item.
*Roster.jidhlfill Background of roster item when mouse is over.
*Roster.jidborder Color of item's border.
*Roster.groupfill
*Roster.grouphlfill
*Roster.groupborder The same to roster groups.
*Roster.groupcfill Background color of collapsed group.
*Roster.stalkerforeground
*Roster.unavailableforeground
*Roster.dndforeground
*Roster.xaforeground
*Roster.awayforeground
*Roster.availableforeground
Shchepin, et al. [Page 54]
Tkabber 0.11.0 June 2008
*Roster.chatforeground Colors of item name for different presences.
Shchepin, et al. [Page 55]
Tkabber 0.11.0 June 2008
Appendix C. Documentation TODO
The next revision of this documentation should discuss:
o Pre-load:
* "browseurl"
o Post-load:
* "chat_height" and "chat_width" (appear to be no-ops).
o Menu-load:
* "change_password_dialog"
* "conference::create_room_dialog"
* "disco::browser::open_win"
* "message::send_msg"
* "privacy::request_lists"
* "rawxml::open_window"
* "userinfo::show_info_dialog"
o Hooks: the additional payload format.
Shchepin, et al. [Page 56]
Tkabber 0.11.0 June 2008
Appendix D. Acknowledgements
Rebecca Malamud was kind enough to design the "enlightened feather"
motif used in the _Tkabber_ look-and-feel.
The "new look" appeared in the 0.10.0 release ("golden feather" and
"blue feather" pixmap themes and the "Earth bulb" logo) was designed
by Artem Bannikov.
Shchepin, et al. [Page 57]
Tkabber 0.11.0 June 2008
Appendix E. Copyrights
Copyright (c) 2002-2008 Alexey Shchepin
_Tkabber_ is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
_Tkabber_ is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
Shchepin, et al. [Page 58]
Tkabber 0.11.0 June 2008
Authors' Addresses
Alexey Yurievich Shchepin
Process-One
Email: alexey@process-one.net
Marshall T. Rose
Dover Beach Consulting, Inc.
POB 255268
Sacramento, CA 95865-5268
US
Phone: +1 916 483 8878
Fax: +1 916 483 8848
Email: mrose@dbc.mtview.ca.us
Sergei Golovan
New Economic School
Email: sgolovan@nes.ru
Michail Yurievich Litvak
Colocall Ltd.
Email: mci@shadow.in.ua
Konstantin Khomoutov
Service 007
Email: khomoutov@gmail.com
Shchepin, et al. [Page 59]
|