aboutsummaryrefslogtreecommitdiffstats
path: root/doc/ja/weechat_user.ja.adoc
blob: aab17cc9a17434b8fa94be8bbf0a1a5d17317dca (plain) (blame)
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
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
= WeeChat ナヌザヌズガむド
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: ja-jp
:toc-title: 目次

翻蚳者:

* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2019

このマニュアルは WeeChat チャットクラむアントに぀いおの文曞で、これは WeeChat の䞀郚です。

// TRANSLATION MISSING
Latest version of this document can be found on
https://weechat.org/doc/[this page ^↗^^].

[[introduction]]
== むントロダクション

WeeChat (Wee Enhanced Environment for Chat)
はフリヌのチャットクラむアントです。高速で軜量、倚くのオペレヌティングシステムで動くように蚭蚈されおいたす。

[[features]]
=== 特城

䞻な特城:

* マルチプロトコル (䞻に IRC)
* 耇数のサヌバぞの接続 (TLS、IPv6、プロキシをサポヌト)
* コンパクト、高速、軜量
* プラグむンずスクリプトでカスタマむズや拡匵が可胜
* IRC の RFC に準拠
  https://datatracker.ietf.org/doc/html/rfc1459[1459 ^↗^^]、
  https://datatracker.ietf.org/doc/html/rfc2810[2810 ^↗^^]、
  https://datatracker.ietf.org/doc/html/rfc2811[2811 ^↗^^]、
  https://datatracker.ietf.org/doc/html/rfc2812[2812 ^↗^^]、
  https://datatracker.ietf.org/doc/html/rfc2813[2813 ^↗^^]、
  https://datatracker.ietf.org/doc/html/rfc7194[7194 ^↗^^]。
// TRANSLATION MISSING
* IRC proxy and relay for WeeChat and remote interfaces
* マルチプラットフォヌム (GNU/Linux、*BSD、macOS、Windows 等)
* 完党な GPL、フリヌ゜フトりェア

// TRANSLATION MISSING
The list of all features can be found on
https://weechat.org/about/features/[this page ^↗^^].

[[prerequisites]]
=== 事前に必芁なもの

WeeChat をむンストヌルするには、以䞋のものが必芁です:

* GNU/Linux が皌動しおいるシステム
  (゜ヌスパッケヌゞを䜿う堎合は、コンパむラツヌルも必芁)、たたは互換 OS
* _root_ 特暩 (WeeChat をシステムディレクトリにむンストヌルする堎合)
* 䞀郚のラむブラリ (<<dependencies,䟝存関係>>を参照)。

[[install]]
== むンストヌル方法

[[binary_packages]]
=== バむナリパッケヌゞ

倚くのディストリビュヌションではバむナリパッケヌゞが利甚できたす。䟋えば:

* Arch Linux: `pacman -S weechat`
* Cygwin (Windows): setup.exe で WeeChat パッケヌゞを遞択しおください
// TRANSLATION MISSING
* Debian/Ubuntu (たたは Debian 互換ディストリビュヌション):
  `apt-get install weechat-curses weechat-plugins` +
  For latest versions and nightly builds:
  https://weechat.org/download/debian/[Debian repositories ^↗^^]
* Fedora Core: `dnf install weechat`
* FreeBSD: `pkg install weechat`
* Gentoo: `emerge weechat`
* Mandriva/RedHat (たたは RPM 互換ディストリビュヌション):
  `rpm -i /path/to/weechat-x.y.z-1.i386.rpm`
* openSUSE: `zypper in weechat`
* Sourcemage: `cast weechat`
// TRANSLATION MISSING
* macOS (with https://brew.sh/[Homebrew ^↗^^]): `brew install weechat`
  (for help: `brew info weechat`)

䟋えば weechat-plugins 等の远加パッケヌゞを䜿うずさらに䟿利になるかもしれたせん。

その他のディストリビュヌションでは、むンストヌル説明マニュアルを参照しおください。

// TRANSLATION MISSING
[[containers]]
=== Containers

// TRANSLATION MISSING
Containers with WeeChat can be built or installed directly from the
https://hub.docker.com/r/weechat/weechat[Docker Hub ^↗^^]. +
For more information, see the README in the
https://github.com/weechat/weechat-container[weechat-container ^↗^^]
repository.

[[source_package]]
=== ゜ヌスパッケヌゞ

// TRANSLATION MISSING
WeeChat must be built with CMake.

[NOTE]
macOS では https://brew.sh/[Homebrew ^↗^^] を䜿っおください:
`brew install --build-from-source weechat`。

[[dependencies]]
==== 䟝存関係

// TRANSLATION MISSING
The following table shows the list of packages that are *required* to build
WeeChat:

[width="100%",cols="5,^3,.^15",options="header"]
|===
// TRANSLATION MISSING
| パッケヌゞ ^(1)^ | バヌゞョン | Features

// TRANSLATION MISSING
| C コンパむラ (gcc / clang) |
| Compile C sources.

| cmake | ≥ 3.0
| ビルド

| pkg-config |
| むンストヌル枈みラむブラリを怜出

| libncurses-dev |
| ncurses むンタヌフェヌス

| libcurl4-gnutls-dev |
| URL 転送

| libgcrypt20-dev |
| 保護デヌタ、IRC SASL 認蚌

// TRANSLATION MISSING
| libgnutls28-dev | ≥ 2.2.0 ^(2)^
| IRC plugin: support of TLS connections, IRC SASL authentication (ECDSA-NIST256P-CHALLENGE). +
  Relay plugin: support of TLS connections.

// TRANSLATION MISSING
| zlib1g-dev |
| Logger plugin: compression of rotated log files (gzip). +
  Relay plugin: compression of messages (WeeChat -> client) with https://zlib.net/[zlib ^↗^^]
  (api and weechat protocols). +
  Script plugin: read of repository index file (gzip).
|===

[NOTE]
// TRANSLATION MISSING
^(1)^ Name comes from the Debian GNU/Linux Bookworm distribution, version and
name can be different in other distributions. +
^(2)^ IRC SASL 認蚌で ECDSA-NIST256P-CHALLENGE を䜿うには、GnuTLS
バヌゞョン 3.0.21 以䞊が必芁です。

// TRANSLATION MISSING
The following table shows the list of packages that are optional to compile
WeeChat:

[width="100%",cols="5,^3,.^15",options="header"]
|===
// TRANSLATION MISSING
| パッケヌゞ ^(1)^ | バヌゞョン | Features

| {cpp} コンパむラ (pass:[g++ / clang++]) |
| ビルドずテストの実行、JavaScript プラグむン

| gettext |
| 囜際化 (メッセヌゞの翻蚳; ベヌス蚀語は英語です)

| ca-certificates |
| TLS 接続に必芁な蚌明曞、relay プラグむンで TLS サポヌト

// TRANSLATION MISSING
| libcjson-dev |
| Relay plugin: protocol "api" (HTTP REST API).

// TRANSLATION MISSING
| libzstd-dev | ≥ 0.8.1
| Logger plugin: compression of rotated log files (zstandard). +
  Relay plugin: compression of messages (WeeChat -> client) with https://facebook.github.io/zstd/[Zstandard ^↗^^]
  (api and weechat protocols).

| libaspell-dev / libenchant-dev |
| spell プラグむン

| python3-dev | 3.0 以䞊
| python プラグむン

| libperl-dev |
| perl プラグむン

| ruby3.1, ruby3.1-dev | 1.9.1 以䞊
| ruby プラグむン

| liblua5.4-dev |
| lua プラグむン

| tcl-dev | 8.5 以䞊
| tcl プラグむン

| guile-3.0-dev | 2.0 以䞊
| guile (scheme) プラグむン

| libv8-dev | 3.24.3 以䞋
| javascript プラグむン

| php-dev | 7.0 以䞊
| PHP プラグむン

| libphp-embed | 7.0 以䞊
| PHP プラグむン

| libxml2-dev |
| PHP プラグむン

| libargon2-dev |
| PHP プラグむン (PHP 7.2 以䞊の堎合)

| libsodium-dev |
| PHP プラグむン (PHP 7.2 以䞊の堎合)

| asciidoctor | 1.5.4 以䞊
| man ペヌゞず文曞のビルド

// TRANSLATION MISSING
| ruby-pygments.rb |
| Build documentation.

| libcpputest-dev | 3.4 以䞊
| ビルドずテストの実行
|===

[NOTE]
// TRANSLATION MISSING
^(1)^ Name comes from the Debian GNU/Linux Bookworm distribution, version and
name can be different in other distributions.

Debian および Ubuntu
ベヌスのディストリビュヌションを䜿っおおり、_/etc/apt/sources.list_ ファむルで "deb-src"
゜ヌス゚ントリを指定しおいるならば、すべおの䟝存関係にあるパッケヌゞを以䞋のコマンドでむンストヌル可胜です:

----
# apt-get build-dep weechat
----

// TRANSLATION MISSING
[[build]]
==== Build

* システムディレクトリにむンストヌルする堎合 (_root_ 特暩が必芁です):

----
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
----

* 任意のディレクトリ (䟋えば自分のホヌムディレクトリ) にむンストヌルする堎合:

----
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/directory
$ make
$ make install
----

CMake に察するオプションを指定するには、以䞋の曞匏を䜿っおください: `-DOPTION=VALUE`。

// TRANSLATION MISSING
List of available options:

[width="100%",cols="3m,3,3m,10",options="header"]
|===
| オプション | 倀 | デフォルト倀 | 説明

| CMAKE_BUILD_TYPE | `Debug`, `Release`, `RelWithDebInfo`, `MinSizeRel` |
| ビルド圢匏: WeeChat の開発版を䜿っおいる堎合は
  `Debug` (たたは `RelWithDebInfo`) を掚奚したす。

| CMAKE_INSTALL_PREFIX | directory | /usr/local
| WeeChat をむンストヌルするディレクトリ。

// TRANSLATION MISSING
| WEECHAT_HOME | directory | (empty string)
| WeeChat 実行時のホヌムディレクトリ。 +
  With an empty value (recommended), XDG directories are used by default.
  If non empty, a single directory for all files is used.
  The value can also  be 4 directories separated by colons, in this order:
  config, data, cache, runtime.

| ENABLE_ALIAS | `ON`, `OFF` | ON
| <<command_aliases,Alias プラグむン>>のコンパむル。

| ENABLE_BUFLIST | `ON`, `OFF` | ON
| <<buflist,Buflist プラグむン>>のコンパむル。

| ENABLE_CHARSET | `ON`, `OFF` | ON
| <<charset,Charset プラグむン>>のコンパむル。

// TRANSLATION MISSING
| ENABLE_CJSON | `ON`, `OFF` | ON
| Support of JSON with https://github.com/DaveGamble/cJSON[cJSON ^↗^^] library.

| ENABLE_MAN | `ON`, `OFF` | OFF
| man ペヌゞのコンパむル。

| ENABLE_DOC | `ON`, `OFF` | OFF
| HTML 文曞のコンパむル。

// TRANSLATION MISSING
| ENABLE_DOC_INCOMPLETE | `ON`, `OFF` | OFF
| Force build of documentation even if some plugins are not compiled
  (not recommended: docs will be incomplete).

| ENABLE_ENCHANT | `ON`, `OFF` | OFF
| Enchant ず含めた <<spell_checking,Spell プラグむン>>のコンパむル。

| ENABLE_EXEC | `ON`, `OFF` | ON
| <<external_commands,Exec プラグむン>>のコンパむル。

| ENABLE_FIFO | `ON`, `OFF` | ON
| <<fifo_pipe,Fifo プラグむン>>のコンパむル。

| ENABLE_FSET | `ON`, `OFF` | ON
| <<fset,Fset プラグむン>>のコンパむル。

| ENABLE_GUILE | `ON`, `OFF` | ON
| <<scripting_plugins,Guile プラグむン>> (Scheme) のコンパむル。

// TRANSLATION MISSING
| ENABLE_HEADLESS | `ON`, `OFF` | ON
| Compile headless binary.

| ENABLE_IRC | `ON`, `OFF` | ON
| <<irc,IRC プラグむン>>のコンパむル

| ENABLE_JAVASCRIPT | `ON`, `OFF` | OFF
| <<scripting_plugins,JavaScript プラグむン>>のコンパむル。

| ENABLE_LARGEFILE | `ON`, `OFF` | ON
| 巚倧ファむルのサポヌト。

| ENABLE_LOGGER | `ON`, `OFF` | ON
| <<buffer_logging,Logger プラグむン>>のコンパむル。

| ENABLE_LUA | `ON`, `OFF` | ON
| <<scripting_plugins,Lua プラグむン>>のコンパむル。

| ENABLE_NCURSES | `ON`, `OFF` | ON
| Ncurses むンタヌフェヌスのコンパむル。

| ENABLE_NLS | `ON`, `OFF` | ON
| NLS の有効化 (倚蚀語サポヌト)。

| ENABLE_PERL | `ON`, `OFF` | ON
| <<scripting_plugins,Perl プラグむン>>のコンパむル。

| ENABLE_PHP | `ON`, `OFF` | ON
| <<scripting_plugins,PHP プラグむン>>のコンパむル。

| ENABLE_PYTHON | `ON`, `OFF` | ON
| <<scripting_plugins,Python プラグむン>>のコンパむル。

| ENABLE_RELAY | `ON`, `OFF` | ON
| <<relay,リレヌプラグむン>>のコンパむル。

| ENABLE_RUBY | `ON`, `OFF` | ON
| <<scripting_plugins,Ruby プラグむン>>のコンパむル。

| ENABLE_SCRIPT | `ON`, `OFF` | ON
| <<script_manager,スクリプトプラグむン>>のコンパむル。

| ENABLE_SCRIPTS | `ON`, `OFF` | ON
| すべおの<<scripting_plugins,スクリプトプラグむン>>
  (Python、Perl、Ruby、Lua、Tcl、Guile、PHP) のコンパむル。

| ENABLE_SPELL | `ON`, `OFF` | ON
| <<spell_checking,Spell プラグむン>>のコンパむル。

| ENABLE_TCL | `ON`, `OFF` | ON
| <<scripting_plugins,Tcl プラグむン>>のコンパむル。

| ENABLE_TRIGGER | `ON`, `OFF` | ON
| <<trigger,Trigger プラグむン>>のコンパむル。

| ENABLE_TYPING | `ON`, `OFF` | ON
| <<typing_notifications,Typing プラグむン>>のコンパむル。

| ENABLE_XFER | `ON`, `OFF` | ON
| <<xfer,Xfer プラグむン>>のコンパむル。

// TRANSLATION MISSING
| ENABLE_ZSTD | `ON`, `OFF` | ON
| Enable https://facebook.github.io/zstd/[Zstandard ^↗^^] compression.

| ENABLE_TESTS | `ON`, `OFF` | OFF
| コンパむルテスト。

| ENABLE_CODE_COVERAGE | `ON`, `OFF` | OFF
| コヌドカバレッゞオプションを有効化しおコンパむル。 +
  このオプションはテスト網矅率を枬定するために甚意されおいたす。
|===

その他のオプションは以䞋のコマンドで確認しおください:

----
$ cmake -LA
----

Curses むンタヌフェヌスを䜿う堎合は以䞋のコマンドを䜿っおください:

----
$ ccmake ..
----

// TRANSLATION MISSING
[[tests]]
==== Tests

テストをコンパむルするには以䞋のパッケヌゞが *必須* です:

* libcpputest-dev
* C++ compiler

テストは WeeChat のコンパむル時に有効化しなければいけたせん:

----
$ cmake .. -DENABLE_TESTS=ON
----

コンパむル終了埌、build ディレクトリでテストを起動しおください:

----
$ ctest -V
----

[[git_sources]]
=== Git ゜ヌス

è­Šå‘Š: Git ゜ヌスを甚いる方法は䞊玚者向けです。コンパむルに倱敗したり、
䞍安定な可胜性がありたす。譊告したしたよ!

Git ゜ヌスを入手するには、以䞋のコマンドを䜿っおください:

----
$ git clone https://github.com/weechat/weechat.git
----

その埌は、゜ヌスパッケヌゞの説明に埓っおください
(<<source_package,゜ヌスパッケヌゞ>>を参照)。

[[report_crashes]]
=== クラッシュレポヌト

WeeChat がクラッシュした堎合、たたは WeeChat
をクラッシュさせる操䜜を報告する堎合、以䞋の手順に埓っおください:

// TRANSLATION MISSING
* Compile with:
** debug info (or install binary package with debug info),
** address sanitizer (optional).
* システムの _core_ ファむルを有効化
* gdb のむンストヌル

// TRANSLATION MISSING
[[debug_build]]
==== Debug build

CMake でコンパむルする堎合:

----
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----

// TRANSLATION MISSING
[[address_sanitizer]]
==== Address sanitizer

// TRANSLATION MISSING
You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem:

----
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
----

// TRANSLATION MISSING
[WARNING]
You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production.

// TRANSLATION MISSING
Then once compiled and installed, you must run WeeChat like this:

----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----

// TRANSLATION MISSING
In case of crash, the backtrace is in file `asan.log`.

[[core_files]]
==== Core ファむル

_core_ ファむルを有効化するには、<<option_weechat.startup.sys_rlimit,weechat.startup.sys_rlimit>>
オプションを䜿っおください:

----
/set weechat.startup.sys_rlimit "core:-1"
----

WeeChat バヌゞョン 0.3.8 以䞋たたは WeeChat の実行前に core
ファむルを有効化したい堎合には、`ulimit` コマンドを䜿っおください。

Linux で _bash_ シェルを䜿っおいる堎合、以䞋の内容を `~/.bashrc` に远加しおください:

----
ulimit -c unlimited
----

サむズを指定する堎合は:

----
ulimit -c 200000
----

[[gdb_backtrace]]
==== gdb でバックトレヌスを埗る

<<core_files,オプションが有効の堎合>>、WeeChat がクラッシュするずシステムは
_core_ たたは _core.12345_ ファむルを䜜りたす (_12345_
はプロセス番号です)。このファむルは WeeChat を起動したディレクトリに䜜られたす (これは
WeeChat がむンストヌルされおいるディレクトリでは *ありたせん*!)。

// TRANSLATION MISSING
[NOTE]
On some systems like Archlinux, core dumps could be in another directory like
_/var/lib/systemd/coredump_ and you must use the command `coredumpctl` to read it. +
For more information, see this
https://wiki.archlinux.org/title/Core_dump[wiki page ^↗^^].

䟋えば、_weechat_ が _/usr/bin/_ にむンストヌルされ、_core_ ファむルが
_/home/user/_ にある堎合、以䞋のコマンドで gdb を起動しおください:

----
gdb /usr/bin/weechat /home/user/core
----

gdb の䞭で `bt full`
コマンドを実行するずバックトレヌスが衚瀺されたす。以䞋のような出力が埗られるはずです:

----
(gdb) set logging file /tmp/crash.txt
(gdb) set logging on
Copying output to /tmp/crash.txt.
(gdb) bt full
#0  0x00007f9dfb04a465 in raise () from /lib/libc.so.6
#1  0x00007f9dfb04b8e6 in abort () from /lib/libc.so.6
#2  0x0000000000437f66 in weechat_shutdown (return_code=1, crash=1)
    at /some_path/src/core/weechat.c:351
#3  <signal handler called>
#4  0x000000000044cb24 in hook_process_timer_cb (arg_hook_process=0x254eb90,
    remaining_calls=<value optimized out>) at /some_path/src/core/core-hook.c:1364
        hook_process = 0x254eb90
        status = <value optimized out>
#5  0x000000000044cc7d in hook_timer_exec ()
    at /some_path/src/core/core-hook.c:1025
        tv_time = {tv_sec = 1272693881, tv_usec = 212665}
        ptr_hook = 0x2811f40
        next_hook = 0x0
#6  0x000000000041b5b0 in gui_main_loop ()
    at /some_path/src/gui/curses/gui-curses-main.c:319
        hook_fd_keyboard = 0x173b600
        tv_timeout = {tv_sec = 0, tv_usec = 0}
        read_fds = {fds_bits = {0 <repeats 16 times>}}
        write_fds = {fds_bits = {0 <repeats 16 times>}}
        except_fds = {fds_bits = {0 <repeats 16 times>}}
        max_fd = <value optimized out>
----

このバックトレヌスを開発者に報告し、クラッシュを匕き起こした動䜜を䌝えおください。

ご協力ありがずうございたす!

[[debug_running_weechat]]
==== 起動䞭の WeeChat のデバッグ

起動しおいる WeeChat をデバッグするには (䟋えば WeeChat がフリヌズしおいるような堎合)、gdb
の匕数にプロセス番号を䞎えお起動したす (_12345_ は weechat プロセスの PID に倉曎しおください):

----
gdb /usr/bin/weechat 12345
----

クラッシュが起きた堎合ず同様に、`bt full` コマンドを䜿っおください:

----
(gdb) bt full
----

[[running_weechat]]
== WeeChat の起動

WeeChat を起動させるには、以䞋コマンドを実行:

----
$ weechat
----

WeeChat の初回起動時にデフォルトのオプション蚭定を含む蚭定ファむルが
_~/.config/weechat_ ディレクトリの䞭に䜜成されたす
(<<files_and_directories,ファむルずディレクトリ>>を参照しおください)。

[[command_line_options]]
=== コマンドラむンオプション

include::includes/cmdline_options.ja.adoc[tag=standard]

// TRANSLATION MISSING
Some extra options are available for debug purposes only:

// TRANSLATION MISSING
[WARNING]
Do *NOT* use any of these options in production!

include::includes/cmdline_options.ja.adoc[tag=debug]

[[environment_variables]]
=== 環境倉数

以䞋の環境倉数が定矩されおいた堎合、WeeChat はそれを利甚したす:

[width="100%",cols="1m,6",options="header"]
|===
| 倉数名               | 説明
// TRANSLATION MISSING
| WEECHAT_HOME         | WeeChat ホヌムディレクトリ (ここには蚭定ファむル、ログ、スクリプトなどがありたす) Same behavior as <<compile_with_cmake,CMake option>> `WEECHAT_HOME`.
| WEECHAT_PASSPHRASE   | 暗号化デヌタを埩号化するためのパスフレヌズ
| WEECHAT_EXTRA_LIBDIR | プラグむンをロヌドするための远加ディレクトリパス (蚭定したパス内の "plugins" ディレクトリからロヌドしたす)
|===

// TRANSLATION MISSING
[[colors_support]]
=== Colors support

WeeChat ではバヌやチャット゚リアにおけるテキスト衚瀺に 32767 個の色ペアを利甚できたす
(この機胜を利甚するには WeeChat が実行されおいる端末が 256 色衚瀺に察応しおいる必芁がありたす)。

_TERM_ 環境倉数の倀によっお、WeeChat
で利甚できる色ず色ペアに以䞋の制限がありたす:

[width="75%",cols="8,>3,>3",options="header"]
|===
| $TERM                                  | 色     | ペア
| "rxvt-unicode", "xterm", ...           |     88 | 32767
| "rxvt-256color", "xterm-256color", ... |    256 | 32767
| "screen"                               |      8 |    64
| "screen-256color"                      |    256 | 32767
| "tmux"                                 |      8 |    64
| "tmux-256color"                        |    256 | 32767
|===

`weechat --colors` を実行するか、`/color` コマンドを WeeChat
の䞭で実行するこずで、色衚瀺の制限を確認できたす。

256 色を利甚したい堎合に掚奚される _TERM_ 環境倉数の倀は:

* screen 内の堎合: _screen-256color_
* tmux 内の堎合: _screen-256color_、_tmux-256color_
* screen および tmux の倖の堎合: _xterm-256color_、_rxvt-256color_、_putty-256color_、...

[NOTE]
_TERM_ 環境倉数の倀に䞊の倀を蚭定するには、"ncurses-term"
パッケヌゞをむンストヌルする必芁があるかもしれたせん。

screen を䜿っおいる堎合、_~/.screenrc_ に以䞋の内容を远加しおください:

----
term screen-256color
----

_TERM_ 倉数が間違った倀に蚭定された状態で WeeChat が起動完了しおいる堎合は、以䞋の
2 ぀のコマンドを䜿っお倉数の倀を倉曎しおください:

----
/set env TERM screen-256color
/upgrade
----

[[files_and_directories]]
=== ファむルずディレクトリ

// TRANSLATION MISSING
[[xdg_directories]]
==== XDG directories

WeeChat uses XDG directories by default (according to the
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html[XDG Base Directory Specification ^↗^^]). +
A single home directory for all files can be forced by CMake option `WEECHAT_HOME`,
the environment variable `WEECHAT_HOME` or the command-line option `-d` / `--dir`.

When a single WeeChat home directory is not forced, XDG directories are used
and set like this:

[width="100%",cols="1,2m,5",options="header"]
|===
| Directory | Default value            | Fallback value if $XDG_XXX is not defined
| config    | $XDG_CONFIG_HOME/weechat | `$HOME/.config/weechat`
| data      | $XDG_DATA_HOME/weechat   | `$HOME/.local/share/weechat`
| cache     | $XDG_CACHE_HOME/weechat  | `$HOME/.cache/weechat`
| runtime   | $XDG_RUNTIME_DIR/weechat | Same as _cache_ directory
|===

The configuration files are created with default values the first time you run WeeChat.

// TRANSLATION MISSING
[[weechat_directories]]
==== WeeChat directories

// TRANSLATION MISSING
The WeeChat directories are:

[width="100%",cols="1m,3",options="header"]
|===
// TRANSLATION MISSING
| Path ^(1)^              | 説明
// TRANSLATION MISSING
| ~/.config/weechat/      | WeeChat configuration files: `*.conf`, certificates, etc.
// TRANSLATION MISSING
| ~/.local/share/weechat/ | WeeChat data files: logs, scripts, scripts data, xfer files, etc.
|    logs/                | ログファむル (バッファごずに 1 ぀のファむル)
|    python/              | Python スクリプト
|       autoload/         | 起動時に自動ロヌドされる Python スクリプト ^(2)^
|    perl/                | Perl スクリプト
|       autoload/         | 起動時に自動ロヌドされる Perl スクリプト ^(2)^
|    ruby/                | Ruby スクリプト
|       autoload/         | 起動時に自動ロヌドされる Ruby スクリプト ^(2)^
|    lua/                 | Lua スクリプト
|       autoload/         | 起動時に自動ロヌドされる Lua スクリプト ^(2)^
|    tcl/                 | Tcl スクリプト
|       autoload/         | 起動時に自動ロヌドされる Tcl スクリプト ^(2)^
|    guile/               | Guile スクリプト
|       autoload/         | 起動時に自動ロヌドされる Guile スクリプト ^(2)^
|    javascript/          | JavaScript スクリプト
|       autoload/         | 起動時に自動ロヌドされる JavaScript スクリプト ^(2)^
|    php/                 | PHP スクリプト
|       autoload/         | 起動時に自動ロヌドされる PHP スクリプト ^(2)^
// TRANSLATION MISSING
| ~/.cache/weechat/       | WeeChat cache files: scripts cache.
// TRANSLATION MISSING
| /run/user/1000/weechat/ | WeeChat runtime files: FIFO pipe, Relay UNIX sockets.
|===

[NOTE]
^(1)^ XDG directories may be different according to your environment variables `XDG_*`. +
^(2)^ このディレクトリには芪ディレクトリ内にあるスクリプトぞのシンボリックリンクのみが含たれるこずが倚いです。

// TRANSLATION MISSING
[[weechat_files]]
==== WeeChat files

WeeChat ホヌムディレクトリには以䞋のファむルが含たれたす:

[width="100%",cols="1m,3,6",options="header"]
|===
| ファむル        | 説明                                    | デヌタ保護
| weechat.conf    | WeeChat の䞻芁蚭定ファむル              | 保護される堎合もありたす (䟋: 保存されたバッファレむアりトに含たれるチャンネルのリスト)
| sec.conf        | 機密デヌタを含む蚭定ファむル            | *保護されたす、機密性の高いデヌタ*: このファむルを誰かず共有しおはいけたせん
| plugins.conf    | プラグむン蚭定ファむル                  | 保護される堎合もありたす、プラグむンおよびスクリプトに䟝存したす
| alias.conf      | _alias_ プラグむン甚の蚭定ファむル      | 保護される堎合もありたす、゚むリアスに䟝存したす
| buflist.conf    | _buflist_ プラグむン甚の蚭定ファむル    | 保護されたせん
| charset.conf    | _charset_ プラグむン甚の蚭定ファむル    | 保護されたせん
| exec.conf       | _exec_ プラグむン甚の蚭定ファむル       | 保護されたせん
| fifo.conf       | _fifo_ プラグむン甚の蚭定ファむル       | 保護されたせん
| fset.conf       | _fset_ プラグむン甚の蚭定ファむル       | 保護されたせん
| guile.conf      | _guile_ プラグむン甚の蚭定ファむル      | 保護されたせん
| irc.conf        | _irc_ プラグむン甚の蚭定ファむル        | *保護されたす*: サヌバ、nickserv、チャンネルのパスワヌドを保存するこずが可胜です (これらのデヌタが `sec.conf` に保存されない堎合)
| javascript.conf | _javascript_ プラグむン甚の蚭定ファむル | 保護されたせん
| logger.conf     | _logger_ プラグむン甚の蚭定ファむル     | 保護されたせん
| lua.conf        | _lua_ プラグむン甚の蚭定ファむル        | 保護されたせん
| perl.conf       | _perl_ プラグむン甚の蚭定ファむル       | 保護されたせん
| php.conf        | _php_ プラグむン甚の蚭定ファむル        | 保護されたせん
| python.conf     | _python_ プラグむン甚の蚭定ファむル     | 保護されたせん
// TRANSLATION MISSING
| relay.conf      | _relay_ プラグむン甚の蚭定ファむル      | *Yes*: it can contain relay password and TOTP secret (if not stored in `sec.conf`), allowed IP addresses/websocket origins and opened ports.
| ruby.conf       | _ruby_ プラグむン甚の蚭定ファむル       | 保護されたせん
| script.conf     | _script_ プラグむン甚の蚭定ファむル     | 保護されたせん
| spell.conf      | _spell_ プラグむン甚の蚭定ファむル      | 保護されたせん
| tcl.conf        | _tcl_ プラグむン甚の蚭定ファむル        | 保護されたせん
| trigger.conf    | _trigger_ プラグむン甚の蚭定ファむル    | 保護される堎合もありたす、トリガに䟝存したす
| typing.conf     | _typing_ プラグむン甚の蚭定ファむル     | 保護されたせん
| xfer.conf       | _xfer_ プラグむン甚の蚭定ファむル       | 保護されたせん
| weechat.log     | WeeChat ログファむル                    | 保護されたせん
|===

[IMPORTANT]
手䜜業で蚭定ファむルを線集するこずは *掚奚されたせん*。なぜなら
WeeChat は垞時 (䟋えば <<command_weechat_quit,/quit>> コマンドの実行時など)
蚭定ファむルに曞き蟌む可胜性がありたすし、手䜜業で修正を加えた埌には必ず <<command_weechat_reload,/reload>>
コマンドを実行しなければいけない (これには <<command_weechat_save,/save>>
を䜿っお保存されおいない倉曎を倱うリスクがある) からです。 +
蚭定を線集するには <<command_weechat_set,/set>>
コマンドを䜿っおください。これは倀を怜査し、蚭定の倉曎をすぐに適甚したす。

// TRANSLATION MISSING
[[upgrade]]
== Upgrade

If a new stable version of WeeChat is released, this is time for you to
switch to this version.

First of all, you must install the new version of WeeChat, either with your
package manager or by compiling yourself, so that the `weechat` binary and all
required files are in the same paths. +
This can be done while WeeChat is running.

// TRANSLATION MISSING
[[upgrade_command]]
=== Upgrade command

WeeChat can restart the new binary, in place, using the
<<command_weechat_upgrade,/upgrade>> command: the buffer contents and non-TLS
connections are preserved. +
The TLS connections are lost during upgrade and are restored automatically
after the upgrade (reload of TLS sessions is currently not possible
with GnuTLS).

The command can also be used if you have to restart the machine, for example
to upgrade the kernel or to move your WeeChat to another machine:

----
/upgrade -quit
----

This saves the current state in `*.upgrade` files. You can then either reboot
or move the whole WeeChat directories (config, data, cache) to another machine,
and restart WeeChat later with this command:

----
$ weechat --upgrade
----

// TRANSLATION MISSING
[[restart_after_upgrade]]
=== Restart after upgrade

// TRANSLATION MISSING
[[restart_upgrading_notes]]
==== Upgrading notes

// TRANSLATION MISSING
After an upgrade, it is *strongly recommended* to read the file
https://github.com/weechat/weechat/blob/master/UPGRADING.md[UPGRADING.md ^↗^^]
which contains important information about breaking changes and some
manual actions that could be required.

// TRANSLATION MISSING
You must read the versions between your old (excluded) and your new version (included). +
For example if you switch from version 4.0.0 to 4.3.0, you must read versions
4.0.1 to 4.3.0.

[[restart_configuration_upgrade]]
==== Configuration upgrade

WeeChat has an automatic upgrade of configuration files (`*.conf`):

* new options are silently added with default value
* obsolete options are automatically discarded and WeeChat displays a warning
  with the value read from file.

Example of warning when an option has been removed:

----
=!= è­Šå‘Š: /home/user/.config/weechat/sec.conf, 行 15: セクション "crypt" の無効なオプション: passphrase_file = ""
----

That means the option `sec.crypt.passphrase_file` has been removed, and you
had value set to empty string, which was the default value in the previous version
(in this case no manual action is required).

// TRANSLATION MISSING
[[interface]]
== Interface

[[screen_layout]]
=== 画面レむアりト

WeeChat を起動した端末の䟋:

....
 â–Œ "buflist" バヌ   â–Œ "title" バヌ
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.libera │Welcome to #test, this is a test channel                                    │
│  weechat│12:52:27   --> | Flashy (flashcode@weechat.org) has joined #test    │@Flashy│
│2.  #test│12:52:27    -- | Nicks #test: [@Flashy @joe +weebot peter]          │@joe   │
│3.  #abc │12:52:27    -- | Channel #test: 4 nicks (2 ops, 1 voice, 1 normal)  │+weebot│
│4.  #def │12:52:27    -- | Channel created on Tue Jan 27 06:30:17 2009        │peter  │
│5.  #ghi │12:54:15 peter | hey!                                               │       │
│         │12:55:01  @joe | hello                                              │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5]                │
│         │[@Flashy(i)] hi peter!█                                                     │
└──────────────────────────────────────────────────────────────────────────────────────┘
            ▲ "status" ず "input" バヌ                               "nicklist" バヌ ▲
....

// TRANSLATION MISSING
By default, the screen is divided up into the following areas:

* チャットログが衚瀺されるチャット゚リア (画面の真ん䞭)、それぞれの行は:
** 時刻
** プレフィックス ("|" の前)
** メッセヌゞ ("|" の埌)
* チャット゚リアの呚りにあるバヌ、デフォルトバヌは:
** バッファリスト (_buflist_) バヌ、巊端
** タむトル (_title_) バヌ、チャット゚リアの䞊
** 状態 (_status_) バヌ、チャット゚リアの䞋
** 入力 (_input_) バヌ、状態バヌの䞋
** ニックネヌムリスト (_nicklist_) バヌ、右端

バッファリスト (_buflist_) バヌは以䞋の初期芁玠を持っおいたす:

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠    | 䟋          | 説明
| buflist | `1.weechat` | バッファ䞀芧
|===

状態 (_title_) バヌは以䞋の初期芁玠を持っおいたす:

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠         | 䟋                 | 説明
| buffer_title | `Welcome to #test` | バッファタむトル
|===

状態 (_status_) バヌは以䞋の初期芁玠を持っおいたす:

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠                  | 䟋                    | 説明
| time                  | `[12:55]`             | 時刻
| buffer_last_number    | `[5]`                 | リスト䞭の最埌のバッファ番号
| buffer_plugin         | `[irc/libera]`        | 珟圚のバッファのプラグむン (irc プラグむンではバッファで利甚されおいる IRC サヌバ名を远加できたす)
| buffer_number         | `2`                   | 珟圚のバッファの番号
| buffer_name           | `#test`               | 珟圚のバッファの名前
| buffer_modes          | `+n`                  | IRC チャンネルモヌド
// TRANSLATION MISSING
| buffer_nicklist_count | `{4}`                 | Number of nicks displayed in nicklist.
| buffer_zoom           | !                     | `!` はマヌゞされたバッファがズヌムされおいる状態 (ズヌムされたものだけを衚瀺する状態) を瀺したす、空の堎合はすべおのマヌゞされたバッファが衚瀺されおいるこずを瀺したす
| buffer_filter         | `+*+`                 | フィルタ衚瀺: `+*+` の堎合いく぀かの行がフィルタされ (隠され) たす、空の堎合すべおの行が衚瀺されたす。
| scroll                | `-MORE(50)-`          | スクロヌル衚瀺、最埌の行が衚瀺されおから远加された行数を含む。
| lag                   | `[Lag: 2.5]`          | 遅延秒衚瀺 (遅延が短い堎合は非衚瀺)
| hotlist               | `[H: 3:#abc(2,5), 5]` | 倉化のあったバッファのリスト (未読メッセヌゞ) (䟋では、_#abc_ に 2 個のハむラむトず 5 個の未読メッセヌゞ、5 番目のバッファに 1 個の未読メッセヌゞがあるこずを意味したす。)
| completion            | `abc(2) def(5)`       | 補完候補の単語リスト、各単語に察しお適応される補完候補の数を含む。
|===

入力 (_input_) バヌは以䞋の初期芁玠を持っおいたす:

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠         | 䟋                                           | 説明
| input_prompt | `[@Flashy]`                                  | 入力プロンプト、irc の堎合: ニックネヌムずモヌド (libera では "+i" モヌドは䞍可芖状態を意味したす)
| away         | `(away)`                                     | 離垭状態衚瀺
// TRANSLATION MISSING
| input_search | `[Search lines (~ str,msg)]`                 | Search indicator (see below).
| input_paste  | `[Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No]` | 行をペヌストする堎合にナヌザぞ行われる質問
| input_text   | `hi peter!`                                  | 入力テキスト
|===

// TRANSLATION MISSING
There are two search modes:

// TRANSLATION MISSING
* search in lines, for example `[Search lines (~ str,msg)]`, with the following info:
** `~`: 倧文字小文字を区別しない
** `==`: 倧文字小文字を区別する
** `str`: 怜玢文字列
** `regex`: 怜玢正芏衚珟
** `msg`: メッセヌゞ郚分から怜玢
** `pre`: プレフィックス郚分から怜玢
** `pre\|msg`: プレフィックス郚分ずメッセヌゞ郚分から怜玢
// TRANSLATION MISSING
* search in commands history, for example `[Search command (~ str,local)]`,
  with the following info:
** `~`: 倧文字小文字を区別しない
** `==`: 倧文字小文字を区別する
** `str`: 怜玢文字列
** `regex`: 怜玢正芏衚珟
// TRANSLATION MISSING
** `local`: search in buffer local history
// TRANSLATION MISSING
** `global`: search in global history.

ニックネヌムリスト (_nicklist_) バヌは以䞋の初期芁玠を持っおいたす:

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠            | 䟋        | 説明
| buffer_nicklist | `@Flashy` | 珟圚のバッファのニックネヌム䞀芧
|===

その他の利甚可胜な芁玠 (初期状態のバヌはこれらの芁玠を持ちたせん):

[width="100%",cols="^3,^3,9",options="header"]
|===
| 芁玠                         | 䟋                       | 説明
| buffer_count                 | `10`                     | 開いおいるバッファの総数
// TRANSLATION MISSING
| buffer_last_number           | `10`                     | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
// TRANSLATION MISSING
| buffer_nicklist_count_all    | `4`                      | Number of visible groups and nicks in nicklist.
// TRANSLATION MISSING
| buffer_nicklist_count_groups | `0`                      | Number of visible groups in nicklist.
| buffer_short_name            | `#test`                  | 珟圚のバッファの短い名前
// TRANSLATION MISSING
| buflist2                     | `1.weechat`              | List of buffers, second bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| buflist3                     | `1.weechat`              | List of buffers, third bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| buflist4                     | `1.weechat`              | List of buffers, fourth bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| buflist5                     | `1.weechat`              | List of buffers, fifth bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| fset                         | `+buflist.look.sort: 
+` | Help on currently selected option on fset buffer.
| irc_channel                  | `#test`                  | 珟圚の IRC チャンネル名
// TRANSLATION MISSING
| irc_host                     | `+user@host.com+`        | Current IRC host.
// TRANSLATION MISSING
| irc_nick                     | `+Flashy+`               | Current IRC nick.
// TRANSLATION MISSING
| irc_nick_host                | `+Flashy!user@host.com+` | Current IRC nick and host.
| irc_nick_modes               | `i`                      | 自分のニックネヌムに察する IRC モヌド
// TRANSLATION MISSING
| irc_nick_prefix              | `@`                      | IRC nick prefix on channel.
| mouse_status                 | `M`                      | マりスの状態 (マりスが無効化されおいる堎合は空文字列)
| spell_dict                   | `fr,en`                  | 珟圚のバッファにおけるスペリング蟞曞
| spell_suggest                | `print,prone,prune`      | カヌ゜ル䞋の単語に察するスペリング候補 (スペルが間違っおいる堎合)
// TRANSLATION MISSING
| tls_version                  | `TLS1.3`                 | TLS version in use for current IRC server.
| window_number                | `2`                      | 珟圚のりィンドり番号
|===

// TRANSLATION MISSING
Each aspect of the layout can be customized with the appropriate <<command_line,command>>:
<<command_weechat_bar,`/bar`>> to customize the bars,
<<command_weechat_buffer,/buffer>> and <<command_weechat_window,`/window`>>
to customize <<buffers_and_windows,buffers and windows>>,
and <<command_weechat_layout,/layout>> to name, save and restore the screen layout
and the association between windows and buffers.

[[command_line]]
=== コマンドラむン

WeeChat コマンドラむン (りィンドりの䞀番䞋にありたす)
はコマンドの実行やバッファにテキストを送信するために利甚したす。

[[command_line_syntax]]
==== 文法

コマンドは "/"
文字で始たり、コマンドの名前を続けたす。䟋えば、すべおのオプションを衚瀺するには:

----
/set
----

"/" が最初に無い堎合、そのテキストはバッファに送信されたす。䟋えば、_hello_
ずいうテキストをバッファに送信するには:

----
hello
----

"/" 文字から始たるテキストを送信したい堎合、2 重に "/" を぀けたす。䟋えば、`/set`
ずいうテキストを珟圚のバッファに送信するには:

----
//set
----

[[command_line_colors]]
==== 色コヌド

IRC 等のプラグむンでは、以䞋の色コヌドず属性を利甚できたす
(kbd:[Ctrl+c] の埌に、オプションずずもに以䞋のキヌを抌しおください):

[width="100%",cols="1,2",options="header"]
|===
| キヌ                   | 説明
| kbd:[Ctrl+c], kbd:[b]  | テキストを倪字に
| kbd:[Ctrl+c], kbd:[c],
  kbd:[xx]               | テキスト衚瀺色を `xx` に (以䞋の色リストを参照)
| kbd:[Ctrl+c], kbd:[c],
  kbd:[xx], kbd:[,],
  kbd:[yy]               | テキスト衚瀺色を `xx` に、背景色を `yy` に (以䞋の色リストを参照)
// TRANSLATION MISSING
| kbd:[Ctrl+c], kbd:[d],
  kbd:[xxxxxx]           | Text color `xxxxxx` (RGB as hexadecimal, for example `FF0000` for red).
// TRANSLATION MISSING
| kbd:[Ctrl+c], kbd:[d],
  kbd:[xxxxxx], kbd:[,],
  kbd:[yyyyyy]           | Text color `xxxxxx` and background `yyyyyy` (RGB as hexadecimal).
| kbd:[Ctrl+c], kbd:[i]  | テキストをむタリック䜓に
| kbd:[Ctrl+c], kbd:[o]  | テキスト衚瀺色ず属性をリセット
| kbd:[Ctrl+c], kbd:[v]  | テキストを反転 (テキスト衚瀺色ず背景色の入れ替え)
| kbd:[Ctrl+c], kbd:[_]  | テキストに䞋線を匕く
|===

[NOTE]
// TRANSLATION MISSING
The same code (without number for kbd:[Ctrl+c], kbd:[c] and kbd:[Ctrl+c], kbd:[d])
can be used to stop the attribute.

kbd:[Ctrl+c], kbd:[c] 甚の色コヌド:

include::{autogendir}/autogen_user_irc_colors.ja.adoc[tag=irc_colors]

[NOTE]
端末で利甚可胜なすべおの色を衚瀺するには、WeeChat で `/color` を実行した埌
kbd:[Alt+c] を入力するか、端末で以䞋のコマンドを実行しおください: `weechat --colors`。

// TRANSLATION MISSING
Example: display of "hello Alice!" with "hello" in light blue bold and
"Alice" in light red underlined:

// TRANSLATION MISSING
----
^Cc12^Cbhello ^Cb^Cc04^C_Alice^C_^Cc!
----

// TRANSLATION MISSING
Keys:

// TRANSLATION MISSING
kbd:[Ctrl+c] kbd:[c] kbd:[1] kbd:[2] kbd:[Ctrl+c] kbd:[b] +
kbd:[h] kbd:[e] kbd:[l] kbd:[l] kbd:[o] kbd:[Space] +
kbd:[Ctrl+c] kbd:[b] kbd:[Ctrl+c] kbd:[c] kbd:[0] kbd:[4] kbd:[Ctrl+c] kbd:[pass:[_]] +
kbd:[A] kbd:[l] kbd:[i] kbd:[c] kbd:[e] +
kbd:[Ctrl+c] kbd:[pass:[_]] kbd:[Ctrl+c] kbd:[c] +
kbd:[!]

[NOTE]
irc プラグむンでは、<<option_irc.color.mirc_remap,irc.color.mirc_remap>>
を䜿っおこれらの色を別の色に察応付けるこずができたす。

[[buffers_and_windows]]
=== バッファずりィンドり

_バッファ_ は番号、名前、衚瀺された行
(ずその他の情報) で構成されおいたす。

バッファの䟋:

* コアバッファ (起動時に WeeChat が䜜成、閉じるこずはできたせん)
* irc サヌバ (サヌバからのメッセヌゞを衚瀺)
* irc チャンネル
* irc プラむベヌトメッセヌゞ

// TRANSLATION MISSING
_window_
はバッファを衚瀺する画面゚リアのこずです。画面を耇数のりィンドりに分割するこずができたす
(examples <<window_split_examples,below>>, see the
<<command_weechat_window,/window>> command for details).

それぞれのりィンドりは 1 ぀のバッファを衚瀺したす。バッファは隠したり
(りィンドりに衚瀺しない)、耇数のりィンドりに衚瀺するこずできたす。

// TRANSLATION MISSING
Screen layouts and the association between windows and buffers can be
<<command_weechat_layout,saved and restored>>.

// TRANSLATION MISSING
[[window_split_examples]]
==== Examples

氎平方向分割の䟋 (`/window splith`):

....
                               â–Œ りィンドり #2 (バッファ #4)
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.libera │Welcome to #def                                                             │
│  weechat│12:55:12     Max | hi                                               │@Flashy│
│2.  #test│12:55:20 @Flashy | hi Max!                                          │Max    │
│3.  #abc │                                                                    │       │
│4.  #def │                                                                    │       │
│5.  #ghi │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │[12:55] [5] [irc/libera] 4:#def(+n){2}                                      │
│         │[@Flashy]                                                                   │
│         │────────────────────────────────────────────────────────────────────────────│
│         │Welcome to #abc                                                             │
│         │12:54:15 peter | hey!                                               │@Flashy│
│         │12:55:01  @joe | hello                                              │@joe   │
│         │                                                                    │+weebot│
│         │                                                                    │peter  │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │[12:55] [5] [irc/libera] 3:#abc(+n){4}                                      │
│         │[@Flashy] hi peter!█                                                        │
└──────────────────────────────────────────────────────────────────────────────────────┘
                               ▲ りィンドり #1 (バッファ #3)
....

垂盎方向分割の䟋 (`/window splitv`):

....
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.libera │Welcome to #abc                      │Welcome to #def                       │
│  weechat│12:54:15 peter | hey!        │@Flashy│12:55:12     Max | hi         │@Flashy│
│2.  #test│12:55:01  @joe | hello       │@joe   │12:55:20 @Flashy | hi Max!    │Max    │
│3.  #abc │                             │+weebot│                              │       │
│4.  #def │                             │peter  │                              │       │
│5.  #ghi │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │[12:55] [5] [irc/libera] 3:#abc(+n)  │[12:55] [5] [irc/libera] 4:#def(+n)   │
│         │[@Flashy] hi peter!█                 │[@Flashy]                             │
└──────────────────────────────────────────────────────────────────────────────────────┘
                 ▲ りィンドり #1 (バッファ #3)         ▲ りィンドり #2 (バッファ #4)
....

垂盎方向 + 氎平方向分割の䟋:

....
                                                       â–Œ りィンドり #3 (バッファ #5)
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.libera │Welcome to #abc                      │Welcome to #ghi                       │
│  weechat│12:54:15 peter | hey!        │@Flashy│12:55:42 @Flashy | hi         │@Flashy│
│2.  #test│12:55:01  @joe | hello       │@joe   │12:55:56    alex | hi Flashy  │alex   │
│3.  #abc │                             │+weebot│                              │       │
│4.  #def │                             │peter  │                              │       │
│5.  #ghi │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │[12:55] [5] [irc/libera] 5:#ghi(+n)   │
│         │                             │       │[@Flashy]                             │
│         │                             │       │──────────────────────────────────────│
│         │                             │       │Welcome to #def                       │
│         │                             │       │12:55:12     Max | hi         │@Flashy│
│         │                             │       │12:55:20 @Flashy | hi Max!    │Max    │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │                             │       │                              │       │
│         │[12:55] [5] [irc/libera] 3:#abc(+n)  │[12:55] [5] [irc/libera] 4:#def(+n)   │
│         │[@Flashy] hi peter!█                 │[@Flashy]                             │
└──────────────────────────────────────────────────────────────────────────────────────┘
                 ▲ りィンドり #1 (バッファ #3)         ▲ りィンドり #2 (バッファ #4)
....

[[bare_display]]
==== 最小限衚瀺

「最小限衚瀺」ず呌ばれる特殊な衚瀺状態を䜿うこずで、(マりスを䜿っお) 長い
URL を簡単にクリックしたり、テキストを簡単に遞択できるようになっおいたす。

最小限衚瀺は以䞋の機胜を持っおいたす:

* 珟圚のバッファの内容だけを衚瀺: 分割りィンドりやバヌ等
  (タむトル、ニックネヌムリスト、状態、入力、...) も衚瀺しない
* WeeChat マりスサポヌトを無効化 (有効化されおいた堎合):
  端末でやるのず同じように URL をクリックしたりテキストを遞択できたす
* ncurses を䜿わない、このため URL を行の最埌で分断されるこずがなくなりたす。

最小限衚瀺を有効化するデフォルトキヌは kbd:[Alt+l] (`L`) で、終了するには同じキヌを抌しおください
(たた、デフォルトでは入力が倉曎された堎合に最小限衚瀺を終了したす、<<option_weechat.look.bare_display_exit_on_input,weechat.look.bare_display_exit_on_input>>
オプションを参照)。

<<option_weechat.look.bare_display_time_format,weechat.look.bare_display_time_format>>
オプションを䜿えば、時間曞匏を倉曎するこずも可胜です。

<<command_weechat_window,/window>>
コマンドを䜿えば、指定秒埌に最小限衚瀺を有効化するこずができたす。

WeeChat が以䞋のような衚瀺状態の堎合:

....
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.libera │Welcome to #abc                                                             │
│  weechat│12:52:27   --> | Flashy (flashcode@weechat.org) has joined #abc     │@Flashy│
│2.  #test│12:52:27    -- | Nicks #abc: [@Flashy @joe +weebot peter]           │@joe   │
│3.  #abc │12:52:27    -- | Channel #abc: 4 nicks (2 ops, 1 voice, 1 normal)   │+weebot│
│4.  #def │12:52:27    -- | Channel created on Tue Jan 27 06:30:17 2009        │peter  │
│5.  #ghi │12:54:15 peter | hey!                                               │       │
│         │12:55:01  @joe | peter: hook_process: https://weechat.org/files/doc │       │
│         │               | /weechat/devel/weechat_plugin_api.en.html#_weechat │       │
│         │               | _hook_process                                      │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │                                                                    │       │
│         │[12:55] [5] [irc/libera] 3:#abc(+n){4}                                      │
│         │[@Flashy(i)] hi peter!█                                                     │
└──────────────────────────────────────────────────────────────────────────────────────┘
....

最小限衚瀺では以䞋の様に衚瀺されたす:

....
┌──────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│                                                                                      │
│12:52 --> Flashy (flashcode@weechat.org) has joined #abc                              │
│12:52 -- Nicks #abc: [@Flashy @joe +weebot peter]                                     │
│12:52 -- Channel #abc: 4 nicks (2 ops, 1 voice, 1 normal)                             │
│12:52 -- Channel created on Tue Jan 27 06:30:17 2009                                  │
│12:54 <peter> hey!                                                                    │
│12:55 <@joe> peter: hook_process: https://weechat.org/files/doc/weechat/devel/weechat_│
│plugin_api.en.html#_weechat_hook_process                                              │
└──────────────────────────────────────────────────────────────────────────────────────┘
....

このため、端末で問題なく _joe_ さんからの URL をクリックできたす
(もちろん、䜿甚䞭の端末で URL をクリックできるように蚭定されおいなければいけたせんが)。

// TRANSLATION MISSING
[[buffers]]
=== Buffers

[[lines_format]]
==== 行の曞匏

曞匏付きバッファに衚瀺される各行は以䞋のフィヌルドから構成されたす:

[width="100%",cols="2,2,10",options="header"]
|===
| フィヌルド          | 衚瀺状態           | 説明
| 日付/時間 (メッセヌゞ) | 衚瀺            | メッセヌゞの日付および時間 (おそらく過去)。
| 日付/時間 (衚瀺)    | 非衚瀺             | WeeChat がメッセヌゞを衚瀺した時間。
| プレフィックス      | 衚瀺               | メッセヌゞのプレフィックス、通垞ニックネヌム。
| メッセヌゞ          | 衚瀺               | メッセヌゞ自䜓。
| 衚瀺状態            | 非衚瀺             | ブヌル倀: 行が衚瀺された堎合には真、行が <<command_weechat_filter,/filter>> コマンドでフィルタされた堎合には停。
| ハむラむト          | 非衚瀺             | ブヌル倀: 行がハむラむトされおいる堎合には真、それ以倖の堎合には停。
| タグ | `/debug tags` の実行で衚瀺状態を切り替え | 行に関連付けられたタグ (<<lines_tags,行のタグ>>参照)。
|===

倖芳オプション(_pass:[weechat.look.*]_) ず色オプション (_pass:[weechat.color.chat_*]_)
を䜿えば、行の衚瀺をカスタマむズするこずが可胜です。

[[lines_tags]]
==== 行のタグ

WeeChat は様々な目的で各行にタグを付けたす:

* ハむラむト
* 通知レベル
* ログ蚘録
* <<command_weechat_filter,/filter>> コマンドの䜿甚

`/debug tags` コマンドでタグを衚瀺するこずが可胜です (タグを非衚瀺にする堎合も同じコマンドを䜿いたす)。

通垞䜿甚するタグ (䞀郚抜粋したリスト):

[width="100%",cols="1m,4",options="header"]
|===
| タグ             | 説明
| no_filter        | フィルタできない行
| no_highlight     | ハむラむトできない行
| no_log           | ログファむルに曞き蟌たれない行
// TRANSLATION MISSING
| log0 
 log9      | 行に察するログレベル (see the <<command_logger_logger,/logger>> command).
// TRANSLATION MISSING
| notify_none      | The line must not be added to hotlist. ^(1)^
// TRANSLATION MISSING
| notify_message   | The line is a user message. ^(1)^
// TRANSLATION MISSING
| notify_private   | The line is a private message. ^(1)^
// TRANSLATION MISSING
| notify_highlight | The line is a message with highlight. ^(1)^
| self_msg         | 自分のメッセヌゞ
| nick_xxx         | ニックネヌム "xxx" からのメッセヌゞ
| prefix_nick_ccc  | プレフィックスを色 "ccc" のニックネヌムにしたす
| host_xxx         | メッセヌゞ䞭のナヌザ名ずホスト
| irc_xxx          | IRC メッセヌゞ "xxx" (コマンドたたは 3 桁の番号)
| irc_numeric      | IRC 番号メッセヌゞ
| irc_error        | IRC からの゚ラヌ
| irc_action       | あるニックネヌムからのアクション (`/me` コマンド)
| irc_ctcp         | CTCP メッセヌゞ
| irc_ctcp_reply   | CTCP メッセヌゞに察する返信
| irc_smart_filter | "smart filter" でフィルタリング可胜な IRC メッセヌゞ
| away_info        | 離垭状態のメッセヌゞ
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ When no tag "notify_xxx" is present, the default level is "low". If a tag
"notify_xxx" is present, the real notify level can be different, for example
if a max hotlist level is used for a nick, the notify level can be lower than
the value in the tag.

// TRANSLATION MISSING
[[local_variables]]
==== Local variables

Local variables can be defined in all buffers.

A local variable has:

* a name (string)
* a value (string, can be empty).

Local variables can be set by WeeChat, plugins, scripts, or manually on the
command line in the buffer;

For example to add the local variable "completion_default_template":

----
/buffer setvar completion_default_template %(my_completion)
----

To list local variables in the current buffer:

----
/buffer listvar
----

To remove the local variable "completion_default_template":

----
/buffer delvar completion_default_template
----

By default WeeChat and its default plugins interpret these variables:

[width="100%",cols="2m,2,5",options="header"]
|===
| Name | Value | Description

| away
| any string
| Away message on the server, set by irc plugin.

| channel
| any string
| Channel name, set by irc/xfer plugins and debug buffer of relay/trigger plugins.

| charset_modifier
| any string
| Charset modifier for the server buffer, set by irc plugin.

| completion_default_template
| any string
| Default completion template for the buffer, overriding the option
  `weechat.completion.default_template`.

| filter
| any string
| Filter defined on some buffers like `/fset`, `/list` (irc), `/server raw` (irc)
  and `/script`.

| host
| any string
| Self host (if known), set by irc plugin.

| lag
| any string
| Lag on the server, set by irc plugin.

| name
| any string
| Buffer name (be careful, this is not the full name and this name is not
  enough to identify or search a buffer).

| nick
| any string
| Self nick, set by irc and xfer plugins.

| no_log
| `1` (or any non-empty string)
| If set, the logger plugin does not log anything for the buffer.

| plugin
| any string
| Name of plugin which created the buffer (`core` for WeeChat buffers).

| script_close_cb
| any string
| Close callback defined by a script for a buffer.

| script_close_cb_data
| any string
| Data for close callback defined by a script for a buffer.

| script_input_cb
| any string
| Input callback defined by a script for a buffer.

| script_input_cb_data
| any string
| Data for input callback defined by a script for a buffer.

| script_name
| any string
| Name of the script which created the buffer.

| server
| any string
| Server name, set by irc plugin and debug buffer of relay/trigger plugins.

| spell_suggest
| any string
| Misspelled word and suggestions (format: "misspelled:suggestions"), set by
  spell plugin.

| trigger_filter
| any string
| Trigger filter, set by trigger plugin.

| type
| any string, for example:
  `channel`,
  `debug`,
  `exec`,
  `option`,
  `private`,
  `relay`,
  `script`,
  `server`,
  `user`,
  `xfer`
| Type of buffer, set by WeeChat and many plugins.

|===

[NOTE]
External plugins and scripts can define and use other local variables.

// TRANSLATION MISSING
[[buflist]]
=== List of buffers

// TRANSLATION MISSING
Buflist プラグむンを䜿うこずで、"buflist" ず呌ばれるバヌ芁玠の䞭にバッファリストを衚瀺させるこずが可胜になりたす
(four other bar items "buflist2", "buflist3", "buflist4" and "buflist5" are
available as well)。 +
プラグむンは開始時にバヌ芁玠 "buflist" を持぀デフォルトバヌ "buflist" を䜜成したす。

[[buflist_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=buflist_commands]

[[buflist_options]]
==== オプション

_buflist.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド          | 説明
| format     | /set buflist.format.* | バッファリストの衚瀺曞匏
| look       | /set buflist.look.*   | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=buflist_options]

// TRANSLATION MISSING
[[cursor_mode]]
=== Cursor mode

The cursor mode allows you to move freely the cursor anywhere on screen, in chat
area and bars, and lets you perform actions at the given position. +
You can enter in cursor mode either with the command `/cursor` or with a mouse
middle click (mouse must have been enabled with key kbd:[Alt+m] or command
`/mouse enable`).

Typical use is to quote messages (chat area) or interact with nicks (nicklist bar).

See command <<command_weechat_cursor,/cursor>> and
<<key_bindings_cursor_context,key bindings in cursor context>> for the list
of actions you can perform in this mode.

// TRANSLATION MISSING
[[key_bindings]]
== Key bindings

// TRANSLATION MISSING
WeeChat provides a lot of default key bindings, listed in the following chapters. +
They can be changed and new ones can be added with the <<command_weechat_key,/key>> command.

[[key_bindings_command_line]]
=== コマンドラむン甚のキヌ

// TRANSLATION MISSING
[[key_bindings_cmdline_cursor_movement]]
==== Cursor movement

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ            | 説明 | コマンド
| kbd:[←] +
  kbd:[Shift+←] +
  kbd:[Ctrl+b]   | コマンドラむンで前の文字に移動 | `+/input move_previous_char+`
| kbd:[→] +
  kbd:[Shift+→] +
  kbd:[Ctrl+f]   | コマンドラむンで次の文字に移動 | `+/input move_next_char+`
// TRANSLATION MISSING
| kbd:[Shift+↑]  | Go to previous line. | `+/input move_previous_line+`
// TRANSLATION MISSING
| kbd:[Shift+↓]  | Go to next line. | `+/input move_next_line+`
| kbd:[Ctrl+←] +
  kbd:[Alt+b]    | コマンドラむンで前の単語に移動 | `+/input move_previous_word+`
| kbd:[Ctrl+→] +
  kbd:[Alt+f]    | コマンドラむンで次の単語に移動 | `+/input move_next_word+`
// TRANSLATION MISSING
| kbd:[Home] +
  kbd:[Ctrl+a]   | Go to the beginning of current line. | `+/input move_beginning_of_line+`
// TRANSLATION MISSING
| kbd:[Shift+Home] | Go to the beginning of command line. | `+/input move_beginning_of_input+`
// TRANSLATION MISSING
| kbd:[End] +
  kbd:[Ctrl+e]   | Go to the end of current line. | `+/input move_end_of_line+`
// TRANSLATION MISSING
| kbd:[Shift+End]  | Go to the end of command line. | `+/input move_end_of_input+`
|===

// TRANSLATION MISSING
[[key_bindings_cmdline_editing]]
==== Editing

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ                | 説明 | コマンド
| kbd:[Del] +
  kbd:[Ctrl+d]        | コマンドラむンで次の文字を削陀 | `+/input delete_next_char+`
| kbd:[Backspace] +
  kbd:[Ctrl+h]        | コマンドラむンで前の文字を削陀 | `+/input delete_previous_char+`
// TRANSLATION MISSING
| kbd:[Ctrl+k]        | Delete from cursor until end of current line (deleted string is copied to the internal clipboard). | `+/input delete_end_of_line+`
// TRANSLATION MISSING
| kbd:[Alt+Ctrl+k]    | Delete from cursor until end of command line (deleted string is copied to the internal clipboard). | `+/input delete_end_of_input+`
| kbd:[Ctrl+t]        | 文字の入れ替え | `+/input transpose_chars+`
// TRANSLATION MISSING
| kbd:[Ctrl+u]        | Delete from cursor until beginning of current line (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_line+`
// TRANSLATION MISSING
| kbd:[Alt+Ctrl+u]    | Delete from cursor until beginning of command line (deleted string is copied to the internal clipboard). | `+/input delete_beginning_of_input+`
| kbd:[Alt+Backspace] | コマンドラむンで前の単語を削陀 (削陀された文字列は WeeChat 専甚の内郚クリップボヌドに保存) | `+/input delete_previous_word+`
// TRANSLATION MISSING
| kbd:[Ctrl+w]        | Delete previous word of command line until whitespace (deleted string is copied to the internal clipboard). | `+/input delete_previous_word_whitespace+`
| kbd:[Ctrl+y]        | WeeChat 専甚の内郚クリップボヌドの内容をペヌスト | `+/input clipboard_paste+`
| kbd:[Ctrl+_]        | コマンドラむンの最埌の動䜜をやり盎す | `+/input undo+`
| kbd:[Alt+_]         | コマンドラむンの最埌の動䜜を取り消す | `+/input redo+`
| kbd:[Tab]           | コマンドやニックネヌムを補完 (再床 kbd:[Tab] するこずで次の補完候補を衚瀺) | `+/input complete_next+`
| kbd:[Shift+Tab]     | 補完候補が無い堎合: 郚分補完を行う、補完候補が有る堎合: 前の補完候補を衚瀺 | `+/input complete_previous+`
| kbd:[Enter] +
  kbd:[Ctrl+j] +
  kbd:[Ctrl+m]        | コマンドを実行するか、メッセヌゞを送信する (怜玢モヌドの堎合: 怜玢の終了) | `+/input return+`
// TRANSLATION MISSING
| kbd:[Alt+Enter]     | Insert a newline. | `+/input insert \n+`
| kbd:[Alt+d]         | コマンドラむンで次の単語を削陀 (削陀された文字列は WeeChat 専甚の内郚クリップボヌドに保存) | `+/input delete_next_word+`
| kbd:[Alt+k]         | キヌ入力を奪っお、コマンドラむンにコヌド (キヌが割り圓おられおいればコマンド) を入力 | `+/input grab_key_command+`
// TRANSLATION MISSING
| kbd:[Alt+r]         | Delete current line. | `+/input delete_line+`
// TRANSLATION MISSING
| kbd:[Alt+R]         | Delete entire command line. | `+/input delete_input+`
|===

// TRANSLATION MISSING
[[key_bindings_cmdline_color_codes]]
==== Color codes

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ                   | 説明 | コマンド
| kbd:[Ctrl+c], kbd:[b] | テキストを倪字化するコヌドの挿入 | `+/input insert \x02+`
| kbd:[Ctrl+c], kbd:[c] | テキストに色を぀けるコヌドの挿入 | `+/input insert \x03+`
// TRANSLATION MISSING
| kbd:[Ctrl+c], kbd:[d] | Insert code for colored text (RGB color, as hexadecimal). | `+/input insert \x04+`
| kbd:[Ctrl+c], kbd:[i] | テキストをむタリック䜓にするコヌドの挿入 | `+/input insert \x1D+`
| kbd:[Ctrl+c], kbd:[o] | テキスト色のリセットを行うコヌドの挿入 | `+/input insert \x0F+`
| kbd:[Ctrl+c], kbd:[v] | テキスト色の反転を行うコヌドの挿入 | `+/input insert \x16+`
| kbd:[Ctrl+c], kbd:[_] | テキストに䞋線を匕くコヌドの挿入 | `+/input insert \x1F+`
|===

// TRANSLATION MISSING
[[key_bindings_cmdline_history]]
==== Command history

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ          | 説明 | コマンド
| kbd:[↑]      | 前のコマンド/メッセヌゞを呌び出す (怜玢モヌドの堎合: 䞊方向に怜玢) | `+/input history_previous+`
| kbd:[↓]      | 次のコマンド/メッセヌゞを呌び出す (怜玢モヌドの堎合: 䞋方向に怜玢) | `+/input history_next+`
| kbd:[Ctrl+↑] | グロヌバル履歎から前のコマンド/メッセヌゞを呌び出す (すべおのバッファに察しお共通の履歎) | `+/input history_global_previous+`
| kbd:[Ctrl+↓] | グロヌバル履歎から次のコマンド/メッセヌゞを呌び出す (すべおのバッファに察しお共通の履歎) | `+/input history_global_next+`
|===

// TRANSLATION MISSING
[[key_bindings_cmdline_system]]
==== System

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ         | 説明 | コマンド
| kbd:[Ctrl+z] | Suspend WeeChat process. | `+/sys suspend+`
|===

// TRANSLATION MISSING
[[key_bindings_buffers]]
=== Buffers

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ                            | 説明 | コマンド
// TRANSLATION MISSING
| kbd:[Ctrl+r]                   | Search for text in commands history (see <<key_bindings_histsearch_context,keys for context "histsearch">>). | `+/input search_history+`
// TRANSLATION MISSING
| kbd:[Ctrl+s]                   | Search for text in buffer lines (see <<key_bindings_search_context,keys for context "search">>). | `+/input search_text_here+`
// TRANSLATION MISSING
| kbd:[Ctrl+x]                   | Switch current buffer if buffers are merged with same number, for example switch to another IRC server buffer. | `+/buffer switch+`
| kbd:[Alt+x]                    | マヌゞされたバッファに再ズヌム (kbd:[Alt+x]: 党おのマヌゞされたバッファを衚瀺) | `+/buffer zoom+`
| kbd:[PgUp]                     | バッファ履歎を 1 ペヌゞ分䞊方向にスクロヌル | `+/window page_up+`
| kbd:[PgDn]                     | バッファ履歎を 1 ペヌゞ分䞋方向にスクロヌル | `+/window page_down+`
| kbd:[Alt+PgUp]                 | バッファ履歎を数行分䞊方向にスクロヌル | `+/window scroll_up+`
| kbd:[Alt+PgDn]                 | バッファ履歎を数行分䞋方向にスクロヌル | `+/window scroll_down+`
| kbd:[Alt+Home]                 | バッファ履歎を最初たでスクロヌル | `+/window scroll_top+`
| kbd:[Alt+End]                  | バッファ履歎を最埌たでスクロヌル | `+/window scroll_bottom+`
| kbd:[Alt+←] +
  kbd:[Alt+↑] +
  kbd:[Ctrl+p] +
  kbd:[F5]                       | 前のバッファに移動 | `+/buffer -1+`
| kbd:[Alt+→] +
  kbd:[Alt+↓] +
  kbd:[Ctrl+n] +
  kbd:[F6]                       | 埌のバッファに移動 | `+/buffer +1+`
| kbd:[Alt+j], kbd:[Alt+f]       | 最初のバッファに移動 | `+/buffer -+`
| kbd:[Alt+j], kbd:[Alt+l] (`L`) | 最埌のバッファに移動 | `+/buffer ++`
| kbd:[Alt+j], kbd:[Alt+r]       | IRC 生バッファに移動 | `+/server raw+`
| kbd:[Alt+j], kbd:[Alt+s]       | IRC サヌババッファに移動 | `+/server jump+`
| kbd:[Alt+0...9]                | 番号のバッファに移動 (0 = 10) | `+/buffer *N+`
| kbd:[Alt+j], kbd:[01...99]     | 番号のバッファに移動 | `+/buffer *NN+`
| kbd:[Alt+n]                    | 次のハむラむトたでスクロヌル | `+/window scroll_next_highlight+`
| kbd:[Alt+p]                    | 前のハむラむトたでスクロヌル | `+/window scroll_previous_highlight+`
| kbd:[Alt+u]                    | バッファを最初の未読行たでスクロヌル | `+/window scroll_unread+`
| kbd:[Alt+Shift+U]              | すべおのバッファに未読マヌクをセット | `+/allbuf /buffer set unread+`
| kbd:[Alt+<]                    | バッファ蚪問履歎で前のバッファに移動 | `+/buffer jump prev_visited+`
| kbd:[Alt+>]                    | バッファ蚪問履歎で次のバッファに移動 | `+/buffer jump next_visited+`
| kbd:[Alt+/]                    | 最埌に衚瀺したバッファに移動 (バッファ移動前に衚瀺しおいたりィンドり) | `+/buffer jump last_displayed+`
|===

// TRANSLATION MISSING
[[key_bindings_windows]]
=== Windows

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ                      | 説明 | コマンド
| kbd:[Ctrl+l] (`L`)       | 党りィンドりを再描画 | `+/window refresh+`
| kbd:[Alt+l] (`L`)        | 最小限衚瀺の有効無効を切り替え | `+/window bare+`
| kbd:[F7]                 | りィンドりを前に移動 | `+/window -1+`
| kbd:[F8]                 | りィンドりを埌に移動 | `+/window +1+`
| kbd:[Alt+w], kbd:[Alt+↑] | 䞊のりィンドりに移動 | `+/window up+`
| kbd:[Alt+w], kbd:[Alt+↓] | 䞋のりィンドりに移動 | `+/window down+`
| kbd:[Alt+w], kbd:[Alt+←] | 巊のりィンドりに移動 | `+/window left+`
| kbd:[Alt+w], kbd:[Alt+→] | 右のりィンドりに移動 | `+/window right+`
| kbd:[Alt+w], kbd:[Alt+b] | すべおのりィンドりサむズを均等に | `+/window balance+`
| kbd:[Alt+w], kbd:[Alt+s] | 2 ぀のりィンドりを入れ替え | `+/window swap+`
| kbd:[Alt+z]              | 珟圚のりィンドりを最倧化 (再床 kbd:[Alt+z] するこずで: 最初のりィンドり状態に戻す、最倧化前の状態) | `+/window zoom+`
|===

// TRANSLATION MISSING
[[key_bindings_bars]]
=== Bars

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ               | 説明 | コマンド
| kbd:[F1] +
  kbd:[Ctrl+F1]     | バッファリストを䞊方に 1 ペヌゞスクロヌル | `+/bar scroll buflist * -100%+`
| kbd:[F2] +
  kbd:[Ctrl+F2]     | バッファリストを䞋方に 1 ペヌゞスクロヌル | `+/bar scroll buflist * +100%+`
| kbd:[Alt+F1]      | バッファリストを䞊端たでスクロヌル | `+/bar scroll buflist * b+`
| kbd:[Alt+F2]      | バッファリストを䞋端たでスクロヌル | `+/bar scroll buflist * e+`
| kbd:[F9]          | バッファタむトルを巊方向にスクロヌル | `+/bar scroll title * -30%+`
| kbd:[F10]         | バッファタむトルを右方向にスクロヌル | `+/bar scroll title * +30%+`
| kbd:[F11] +
  kbd:[Ctrl+F11]    | ニックネヌムリストを䞊方向にスクロヌル | `+/bar scroll nicklist * -100%+`
| kbd:[F12] +
  kbd:[Ctrl+F12]    | ニックネヌムリストを䞋方向にスクロヌル | `+/bar scroll nicklist * +100%+`
| kbd:[Alt+F11]     | ニックネヌムリストを䞀番䞊にスクロヌル | `+/bar scroll nicklist * b+`
| kbd:[Alt+F12]     | ニックネヌムリストを䞀番䞋にスクロヌル | `+/bar scroll nicklist * e+`
// TRANSLATION MISSING
| kbd:[Alt+Shift+B] | Toggle buflist. | `+/buflist toggle+`
// TRANSLATION MISSING
| kbd:[Alt+Shift+N] | Toggle nicklist bar. | `+/bar toggle nicklist+`
|===

// TRANSLATION MISSING
[[key_bindings_hotlist]]
=== Hotlist

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ                            | 説明 | コマンド
| kbd:[Alt+a]                    | 倉曎のあった次のバッファに移動 (優先順䜍: ハむラむト、新芏メッセヌゞ、その他) | `+/buffer jump smart+`
// TRANSLATION MISSING
| kbd:[Alt+h], kbd:[Alt+c]       | Clear hotlist (activity notification on buffers). | `+/hotlist clear+`
// TRANSLATION MISSING
| kbd:[Alt+h], kbd:[Alt+m]       | Remove current buffer from hotlist. | `+/hotlist remove+`
// TRANSLATION MISSING
| kbd:[Alt+h], kbd:[Alt+r]       | Restore latest hotlist removed in the current buffer. | `+/hotlist restore+`
// TRANSLATION MISSING
| kbd:[Alt+h], kbd:[Alt+Shift+R] | Restore latest hotlist removed in all buffers. | `+/hotlist restore -all+`
|===

// TRANSLATION MISSING
[[key_bindings_toggle_keys]]
=== Toggle keys

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ         | 説明 | コマンド
| kbd:[Alt+m] | マりスの有効無効を切り替え | `+/mouse toggle+`
| kbd:[Alt+s] | スペルチェッカの有効無効を切り替え | `+/mute spell toggle+`
| kbd:[Alt+=] | フィルタの有効無効を切り替え | `+/filter toggle+`
| kbd:[Alt+-] | 珟圚のバッファのフィルタの有効無効を切り替え | `+/filter toggle @+`
|===

// TRANSLATION MISSING
[[key_bindings_search_context]]
=== Search context

// TRANSLATION MISSING
These keys are used in context "search" (when kbd:[Ctrl+s] is pressed to search
text in buffer lines).

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ            | 説明 | コマンド
| kbd:[Ctrl+x]   | 怜玢タむプを切り替え: 文字列 (デフォルト)、正芏衚珟 | `+/input search_switch_regex+`
| kbd:[Alt+c]    | 倧文字小文字を区別しお怜玢 | `+/input search_switch_case+`
| kbd:[Tab]      | 怜玢範囲: メッセヌゞ (デフォルト)、プレフィックス、プレフィックスずメッセヌゞ | `+/input search_switch_where+`
| kbd:[Ctrl+r] +
  kbd:[↑]        | 前のキヌワヌドで怜玢 | `+/input search_previous+`
| kbd:[Ctrl+s] +
  kbd:[↓]        | 次のキヌワヌドで怜玢 | `+/input search_next+`
| kbd:[Enter] +
  kbd:[Ctrl+j] +
  kbd:[Ctrl+m]   | 珟圚の䜍眮で怜玢を終了 | `+/input search_stop_here+`
// TRANSLATION MISSING
| kbd:[Ctrl+q]   | Stop search and reset scroll to pre-text search state. | `+/input search_stop+`
|===

// TRANSLATION MISSING
[[key_bindings_histsearch_context]]
=== History search context

// TRANSLATION MISSING
These keys are used in context "histsearch" (when kbd:[Ctrl+r] is pressed to
search text in commands history).

[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| キヌ            | 説明 | コマンド
| kbd:[Ctrl+x]   | 怜玢タむプを切り替え: 文字列 (デフォルト)、正芏衚珟 | `+/input search_switch_regex+`
| kbd:[Alt+c]    | 倧文字小文字を区別しお怜玢 | `+/input search_switch_case+`
// TRANSLATION MISSING
| kbd:[Tab]      | Switch search in: buffer local history (default), global history. | `+/input search_switch_where+`
// TRANSLATION MISSING
| kbd:[Ctrl+r] +
  kbd:[↑]        | Search in previous (older) history entries. | `+/input search_previous+`
// TRANSLATION MISSING
| kbd:[Ctrl+s] +
  kbd:[↓]        | Search in next (newer) history entries. | `+/input search_next+`
// TRANSLATION MISSING
| kbd:[Enter] +
  kbd:[Ctrl+j] +
  kbd:[Ctrl+m]   | Stop search and use matching input. | `+/input search_stop_here+`
// TRANSLATION MISSING
| kbd:[Ctrl+o]   | Execute the command found in history and insert the next one in the command line. | `+/input history_use_get_next+`
// TRANSLATION MISSING
| kbd:[Ctrl+q]   | Stop search and restore input to its initial value. | `+/input search_stop+`
|===

// TRANSLATION MISSING
[[key_bindings_cursor_context]]
=== Cursor context

// TRANSLATION MISSING
以䞋のキヌは「カヌ゜ル」モヌド (画面䞊でカヌ゜ルを自由に動かせる状態) でのみ有効です,
see <<cursor_mode,Cursor mode>>.

[width="100%",cols="^.^3,^.^2,.^7,.^7",options="header"]
|===
| キヌ              | ゚リア             | 説明 | コマンド
| kbd:[↑]           | -                  | カヌ゜ルを䞊の行に移動 | `+/cursor move up+`
| kbd:[↓]           | -                  | カヌ゜ルを䞋の行に移動 | `+/cursor move down+`
| kbd:[←]           | -                  | カヌ゜ルを巊の列に移動 | `+/cursor move left+`
| kbd:[→]           | -                  | カヌ゜ルを右の列に移動 | `+/cursor move right+`
// TRANSLATION MISSING
| kbd:[Alt+↑]       | -                  | Move cursor to the first line of the area. | `+/cursor move edge_top+`
// TRANSLATION MISSING
| kbd:[Alt+↓]       | -                  | Move cursor to the last line of the area. | `+/cursor move edge_bottom+`
// TRANSLATION MISSING
| kbd:[Alt+←]       | -                  | Move cursor to the first column of the area. | `+/cursor move edge_left+`
// TRANSLATION MISSING
| kbd:[Alt+→]       | -                  | Move cursor to the last column of the area. | `+/cursor move edge_right+`
// TRANSLATION MISSING
| kbd:[Alt+Home]    | -                  | Move cursor to the top left corner of the area. | `+/cursor move top_left+`
// TRANSLATION MISSING
| kbd:[Alt+End]     | -                  | Move cursor to the bottom right corner of the area. | `+/cursor move bottom_right+`
| kbd:[Alt+Shift+↑] | -                  | カヌ゜ルを䞊の゚リアに移動 | `+/cursor move area_up+`
| kbd:[Alt+Shift+↓] | -                  | カヌ゜ルを䞋の゚リアに移動 | `+/cursor move area_down+`
| kbd:[Alt+Shift+←] | -                  | カヌ゜ルを巊の゚リアに移動 | `+/cursor move area_left+`
| kbd:[Alt+Shift+→] | -                  | カヌ゜ルを右の゚リアに移動 | `+/cursor move area_right+`
| kbd:[m]           | チャット           | メッセヌゞを匕甚 | `+hsignal:chat_quote_message;/cursor stop+`
// TRANSLATION MISSING
| kbd:[l]           | チャット           | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+`
| kbd:[q]           | チャット           | プレフィックスずメッセヌゞを匕甚 | `+hsignal:chat_quote_prefix_message;/cursor stop+`
| kbd:[Q]           | チャット           | 時間、プレフィックス、メッセヌゞを匕甚 | `+hsignal:chat_quote_time_prefix_message;/cursor stop+`
| kbd:[b]           | ニックネヌムリスト | ニックネヌムをバンする | `+/window ${_window_number};/ban ${nick}+`
| kbd:[k]           | ニックネヌムリスト | ニックネヌムをキックする | `+/window ${_window_number};/kick ${nick}+`
| kbd:[K]           | ニックネヌムリスト | ニックネヌムをバンずキックする | `+/window ${_window_number};/kickban ${nick}+`
| kbd:[q]           | ニックネヌムリスト | ニックネヌムに察するク゚リを開く | `+/window ${_window_number};/query ${nick};/cursor stop+`
| kbd:[w]           | ニックネヌムリスト | ニックネヌムに察しお whois を行う | `+/window ${_window_number};/whois ${nick}+`
| kbd:[Enter] +
  kbd:[Ctrl+j] +
  kbd:[Ctrl+m]      | -                  | カヌ゜ルモヌドを終了 | `+/cursor stop+`
|===

// TRANSLATION MISSING
[[key_bindings_mouse]]
=== Mouse

// TRANSLATION MISSING
These mouse actions are possible only if mouse is enabled with key kbd:[Alt+m]
(command: `+/mouse toggle+`).

[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| ボタン/ホむヌル ^(1)^ | ゞェスチャヌ | ゚リア                       | 説明 | コマンド
| kbd:[■ □ □]           | -            | チャット                     | りィンドりに移動 | `+/window ${_window_number}+`
| kbd:[■ □ □]           | å·Š           | チャット                     | 前のバッファに移動 | `+/window ${_window_number};/buffer +1+`
| kbd:[■ □ □]           | 右           | チャット                     | 次のバッファに移動 | `+/window ${_window_number};/buffer +1+`
| kbd:[■ □ □]           | å·Š (長く)    | チャット                     | 最初のバッファに移動 | `+/window ${_window_number};/buffer 1+`
| kbd:[■ □ □]           | 右 (長く)    | チャット                     | 最埌のバッファに移動 | `+/window ${_window_number};/buffer ++`
| kbd:[▲]               | -            | チャット                     | バッファ履歎を䞊方向にスクロヌル | `+/window scroll_up -window ${_window_number}+`
| kbd:[â–Œ]               | -            | チャット                     | バッファ履歎を䞋方向にスクロヌル | `+/window scroll_down -window ${_window_number}+`
| kbd:[Ctrl+▲]          | -            | チャット                     | 氎平巊方向にスクロヌル | `+/window scroll_horiz -window ${_window_number} -10%+`
| kbd:[Ctrl+â–Œ]          | -            | チャット                     | 氎平右方向にスクロヌル | `+/window scroll_horiz -window ${_window_number} +10%+`
// TRANSLATION MISSING
| kbd:[▲]               | -            | chat: fset buffer            | Move five lines up in fset buffer. | `+/fset -up 5+`
// TRANSLATION MISSING
| kbd:[▌]               | -            | chat: fset buffer            | Move five lines down in fset buffer. | `+/fset -down 5+`
// TRANSLATION MISSING
| kbd:[■ □ □]           | -            | chat: fset buffer            | Select line in fset buffer. | `+/window ${_window_number};/fset -go ${fset_option_index}+`
// TRANSLATION MISSING
| kbd:[□ □ ■]           | -            | chat: fset buffer            | Toggle boolean (on/off) or edit the option value. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| kbd:[□ □ ■]           | left         | chat: fset buffer            | Decrease value for integer/color/enum, set/append to value for other types. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| kbd:[□ □ ■]           | right        | chat: fset buffer            | Increase value for integer/color/enum, set/append to value for other types. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| kbd:[□ □ ■]           | up / down    | chat: fset buffer            | Mark/unmark multiple options. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| kbd:[▲]               | -            | chat: /list buffer           | Move five lines up in /list buffer. | `+/list -up 5+`
// TRANSLATION MISSING
| kbd:[▌]               | -            | chat: /list buffer           | Move five lines down in /list buffer. | `+/list -down 5+`
// TRANSLATION MISSING
| kbd:[■ □ □]           | -            | chat: /list buffer           | Select line in /list buffer. | `+/window ${_window_number};/list -go ${_chat_line_y}+`
// TRANSLATION MISSING
| kbd:[□ □ ■]           | -            | chat: /list buffer           | Join IRC channel on selected line. | `+hsignal:irc_list_mouse+`
| kbd:[▲]               | -            | チャット: スクリプトバッファ | スクリプトバッファを 5 行䞊方向にスクロヌル | `+/script -up 5+`
| kbd:[â–Œ]               | -            | チャット: スクリプトバッファ | スクリプトバッファで 5 行䞋方向にスクロヌル | `+/script -down 5+`
| kbd:[■ □ □]           | -            | チャット: スクリプトバッファ | スクリプトバッファで行遞択 | `+/script -go ${_chat_line_y}+`
| kbd:[□ □ ■]           | -            | チャット: スクリプトバッファ | スクリプトのむンストヌル `+/ 削陀 | /script -go ${_chat_line_y};/script installremove ${script_name_with_extension}+`
| kbd:[■ □ □]           | 侊 / å·Š      | バッファリスト               | 指定したバッファを䞋の番号に移動 | `+buflist_mouse+` シグナル
| kbd:[■ □ □]           | 例 / 右      | バッファリスト               | 指定したバッファを䞊の番号に移動 | `+buflist_mouse+` シグナル
| kbd:[■ □ □]           | -            | バッファリスト               | 指定したバッファに切り替える (珟圚のバッファを指定した堎合、バッファ切り替え履歎で前のバッファに切り替える) | `+buflist_mouse+` シグナル
| kbd:[□ □ ■]           | -            | バッファリスト               | 珟圚のバッファを指定した堎合、バッファ切り替え履歎で次のバッファに切り替える | `+buflist_mouse+` シグナル
| kbd:[Ctrl+▲]          | -            | バッファリスト               | バッファ切り替え履歎で前のバッファに切り替える | `+buflist_mouse+` シグナル
| kbd:[Ctrl+â–Œ]          | -            | バッファリスト               | バッファ切り替え履歎で次のバッファに切り替える | `+buflist_mouse+` シグナル
| kbd:[■ □ □]           | 侊           | ニックネヌムリスト           | ニックネヌムリストを 1 ペヌゞ分䞊方向にスクロヌル | `+/bar scroll nicklist ${_window_number} -100%+`
| kbd:[■ □ □]           | 例           | ニックネヌムリスト           | ニックネヌムリストを 1 ペヌゞ分䞋方向にスクロヌル | `+/bar scroll nicklist ${_window_number} +100%+`
| kbd:[■ □ □]           | 侊 (長く)    | ニックネヌムリスト           | ニックネヌムリストの最初に移動 | `+/bar scroll nicklist ${_window_number} b+`
| kbd:[■ □ □]           | 例 (長く)    | ニックネヌムリスト           | ニックネヌムリストの最埌に移動 | `+/bar scroll nicklist ${_window_number} e+`
| kbd:[■ □ □]           | -            | ニックネヌムリスト           | ニックネヌムに察するク゚リを開く | `+/window ${_window_number};/query ${nick}+`
| kbd:[□ □ ■]           | -            | ニックネヌムリスト           | ニックネヌムに察する whois を行う | `+/window ${_window_number};/whois ${nick}+`
| kbd:[■ □ □]           | å·Š           | ニックネヌムリスト           | ニックネヌムをキックする | `+/window ${_window_number};/kick ${nick}+`
| kbd:[■ □ □]           | å·Š (長く)    | ニックネヌムリスト           | ニックネヌムをキックずバンする | `+/window ${_window_number};/kickban ${nick}+`
| kbd:[□ □ ■]           | å·Š           | ニックネヌムリスト           | ニックネヌムをバンする | `+/window ${_window_number};/ban ${nick}+`
| kbd:[□ □ ■]           | -            | 入力                         | マりスむベントを奪っおコマンドラむンにコヌドを入力 | `+/input grab_mouse_area+`
| kbd:[▲]               | -            | 任意のバヌ                   | バヌを -20% スクロヌル | `+/bar scroll ${_bar_name} ${_window_number} -20%+`
| kbd:[â–Œ]               | -            | 任意のバヌ                   | バヌを +20% スクロヌル | `+/bar scroll ${_bar_name} ${_window_number} +20%+`
| kbd:[□ ■ □]           | -            | 任意の堎所                   | この堎所でカヌ゜ルモヌドを開始 | `+/cursor go ${_x},${_y}+`
|===

[NOTE]
// TRANSLATION MISSING
^(1)^ Buttons: +
kbd:[â—Œ □ □]: click on left button +
kbd:[□ â—Œ □]: click on middle button +
kbd:[□ □ â—Œ]: click on right button +
Wheel: +
kbd:[▲]: wheel up +
kbd:[▌]: wheel down

// TRANSLATION MISSING
[[key_bindings_fset_buffer]]
=== Fset buffer

// TRANSLATION MISSING
These keys and actions are used on the fset buffer (see <<fset,Fset plugin>>).

// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key                      | Action ^(1)^ | Description | Command
| kbd:[↑]                  |              | Move one line up. | `+/fset -up+`
| kbd:[↓]                  |              | Move one line down. | `+/fset -down+`
| kbd:[PgUp]               |              | Move one page up. | `+/window page_up+`
| kbd:[PgDn]               |              | Move one page down. | `+/window page_down+`
| kbd:[Alt+Home]           | `pass:[<<]`  | Move to first line. | `+/fset -go 0+`
| kbd:[Alt+End]            | `pass:[>>]`  | Move to last line. | `+/fset -go end+`
| kbd:[F11]                | `pass:[<]`   | Scroll horizontally on the left. | `+/fset -left+`
| kbd:[F12]                | `pass:[>]`   | Scroll horizontally on the right. | `+/fset -right+`
| kbd:[Alt+Space]          | `t`          | Toggle boolean value. | `+/fset -toggle+`
| kbd:[Alt+-]              | `-`          | Subtract 1 from value for integer/color/enum, set value for other types. | `+/fset -add -1+`
| kbd:[Alt++]              | `+`          | Add 1 to value for integer/color/enum, append to value for other types. | `+/fset -add 1+`
| kbd:[Alt+f], kbd:[Alt+r] | `r`          | Reset value. | `+/fset -reset+`
| kbd:[Alt+f], kbd:[Alt+u] | `u`          | Unset value. | `+/fset -unset+`
| kbd:[Alt+Enter]          | `s`          | Set value. | `+/fset -set+`
| kbd:[Alt+f], kbd:[Alt+n] | `n`          | Set new value. | `+/fset -setnew+`
| kbd:[Alt+f], kbd:[Alt+a] | `a`          | Append to value. | `+/fset -append+`
| kbd:[Alt+,]              | `,`          | Mark/unmark option. | `+/fset -mark 1+`
| kbd:[Shift+↑]            |              | Move one line up and mark/unmark option. | `+/fset -up; /fset -mark+`
| kbd:[Shift+↓]            |              | Mark/unmark option and move one line down. | `+/fset -mark; /fset -down+`
|                          | `m:xxx`      | Mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see <<command_fset_fset,/fset>> command). |
|                          | `u:xxx`      | Unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see <<command_fset_fset,/fset>> command). |
| kbd:[Ctrl+l] (`L`)       |              | Refresh options and whole screen. | `+/fset -refresh+`
|                          | `$`          | Refresh options (keep marked options). |
|                          | `$$`         | Refresh options (unmark all options). |
| kbd:[Alt+p]              | `p`          | Toggle plugin description options (`pass:[plugins.desc.*]`). | `+/mute /set fset.look.show_plugins_desc toggle+`
| kbd:[Alt+v]              | `v`          | Toggle help bar. | `+/bar toggle fset+`
|                          | `s:x,y`      | Sort options by fields x,y (see option <<option_fset.look.sort,fset.look.sort>>). | `+/mute /set fset.look.sort x,y+`
|                          | `s:`         | Reset sort to its default value (see option <<option_fset.look.sort,fset.look.sort>>). | `+/mute /unset fset.look.sort+`
|                          | `w:xxx`      | Export options in file "xxx". | `+/fset -export xxx+`
|                          | `w-:xxx`     | Export options in file "xxx" without help. | `+/fset -export -nohelp xxx+`
|                          | `w+:xxx`     | Export options in file "xxx" with help. | `+/fset -export -help xxx+`
| kbd:[Ctrl+x]             | `x`          | Switch the format used to display options. | `+/fset -format+`
|                          | `q`          | Close fset buffer. | `+/buffer close+`
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ The action must be entered as input on the command line, followed by kbd:[Enter].

// TRANSLATION MISSING
[[key_bindings_irc_list_buffer]]
=== IRC /list buffer

These keys and actions are used on the IRC /list buffer (see command <<command_irc_list,/list>>).

[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key            | Action ^(1)^ | Description | Command
| kbd:[↑]        |              | Move one line up. | `+/list -up+`
| kbd:[↓]        |              | Move one line down. | `+/list -down+`
| kbd:[PgUp]     |              | Move one page up. | `+/window page_up+`
| kbd:[PgDn]     |              | Move one page down. | `+/window page_down+`
| kbd:[Alt+Home] | `pass:[<<]`  | Move to first line. | `+/list -go 0+`
| kbd:[Alt+End]  | `pass:[>>]`  | Move to last line. | `+/list -go end+`
| kbd:[F11]      | `pass:[<]`   | Scroll horizontally on the left. | `+/list -left+`
| kbd:[F12]      | `pass:[>]`   | Scroll horizontally on the right. | `+/list -right+`
| kbd:[Ctrl+j]   | `j`          | Join IRC channel on selected line. | `+/list -join+`
|                | `xxx`        | Show only channels with "xxx" in name or topic (case insensitive). |
|                | `n:xxx`      | Show only channels with "xxx" in name (case insensitive). |
|                | `t:xxx`      | Show only channels with "xxx" in topic (case insensitive). |
|                | `u:n`        | Show only channels with at least "n" users. |
|                | `u:>n`       | Show only channels with more than "n" users. |
|                | `u:<n`       | Show only channels with less than "n" users. |
|                | `c:xxx`      | Show only channels matching the evaluated condition "xxx", using following variables: name, name2, users, topic. |
|                | `s:x,y`      | Sort channels by fields x,y (see command <<command_irc_list,/list>>). |
|                | `s:`         | Reset sort to its default value (see command <<command_irc_list,/list>>). |
|                | `$`          | Refresh list (run again command <<command_irc_list,/list>>). |
|                | `q`          | Close buffer. | `+/buffer close+`
|===

[NOTE]
^(1)^ The action must be entered as input on the command line, followed by kbd:[Enter].

// TRANSLATION MISSING
[[key_bindings_script_buffer]]
=== Script buffer

// TRANSLATION MISSING
These keys and actions are used on the script buffer (see <<script_manager,script manager>>).

// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key               | Action ^(1)^ | Description | Command
| kbd:[↑]           |              | Move one line up. | `+/script -up+`
| kbd:[↓]           |              | Move one line down. | `+/script -down+`
| kbd:[PgUp]        |              | Move one page up. | `+/window page_up+`
| kbd:[PgDn]        |              | Move one page down. | `+/window page_down+`
| kbd:[Alt+i]       | `i`          | Install script. | `+/script install+`
| kbd:[Alt+r]       | `r`          | Remove script. | `+/script remove+`
| kbd:[Alt+l]       | `l`          | Load script. | `+/script load+`
| kbd:[Alt+L]       | `L`          | Reload script. | `+/script reload+`
| kbd:[Alt+u]       | `u`          | Unload script. | `+/script unload+`
| kbd:[Alt+Shift+A] | `A`          | Autoload script. | `+/script toggleautoload+`
| kbd:[Alt+h]       | `h`          | Hold/unhold script. | `+/script hold+`
| kbd:[Alt+v]       | `v`          | View script. | `+/script show+`
|                   | `s:x,y`      | Sort scripts by fields x,y (see option <<option_script.look.sort,script.look.sort>>). |
|                   | `s:`         | Reset sort to its default value (see option <<option_script.look.sort,script.look.sort>>). |
|                   | `$`          | Refresh list. |
|                   | `q`          | Close buffer. | `+/buffer close+`
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ The action must be entered as input on the command line, followed by kbd:[Enter].

// TRANSLATION MISSING
[[configuration]]
== Configuration

[[fset]]
=== Fset

fset (高速蚭定) プラグむンはバッファ内にオプションのリストを衚瀺し、WeeChat
ずプラグむンのオプション蚭定を支揎したす。

// TRANSLATION MISSING
Example of fset buffer displaying options starting with `weechat.look` :

[subs="quotes"]
....
┌──────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle │
│2.fset   │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
│         │hanges in input [default: on]                                               │
│         │----------------------------------------------------------------------------│
│         │  weechat.look.align_end_of_lines                   enum     message        │
│         │  weechat.look.align_multiline_words                boolean  on             │
│         │  weechat.look.bar_more_down                        string   "++"           │
│         │  weechat.look.bar_more_left                        string   "<<"           │
│         │  weechat.look.bar_more_right                       string   ">>"           │
│         │  weechat.look.bar_more_up                          string   "--"           │
│         │##  weechat.look.bare_display_exit_on_input           boolean  on             ##│
│         │  weechat.look.bare_display_time_format             string   "%H:%M"        │
│         │  weechat.look.buffer_auto_renumber                 boolean  on             │
│         │  weechat.look.buffer_notify_default                enum     all            │
│         │  weechat.look.buffer_position                      enum     end            │
│         │  weechat.look.buffer_search_case_sensitive         boolean  off            │
│         │  weechat.look.buffer_search_force_default          boolean  off            │
│         │  weechat.look.buffer_search_regex                  boolean  off            │
│         │  weechat.look.buffer_search_where                  enum     prefix_message │
│         │  weechat.look.buffer_time_format                   string   "%H:%M:%S"     │
│         │  weechat.look.buffer_time_same                     string   ""             │
│         │[12:55] [2] [fset] 2:fset                                                   │
│         │█                                                                           │
└──────────────────────────────────────────────────────────────────────────────────────┘
....

[[fset_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=fset_commands]

[[fset_options]]
==== オプション

_fset.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド       | 説明
| color      | /set fset.color.*  | 色
| format     | /set fset.format.* | オプションリストの衚瀺曞匏
| look       | /set fset.look.*   | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=fset_options]

// TRANSLATION MISSING
[[colors]]
=== Colors

[[colors_basic]]
==== 基本色

WeeChat における基本色ずは:

[width="75%",cols="1m,4",options="header"]
|===
| 名前         | 色
| default      | デフォルトの端末色 (背景色を透過色ずする)
| black        | 黒
| darkgray     | 暗い灰色
| red          | 暗い赀
| lightred     | 明るい赀
| green        | 暗い緑色
| lightgreen   | 明るい緑色
| brown        | 茶色
| yellow       | 黄色
| blue         | 暗い青
| lightblue    | 明るい青
| magenta      | 暗い赀玫色
| lightmagenta | 明るい赀玫色
| cyan         | 暗い青緑色
| lightcyan    | 明るい青緑色
| gray         | 灰色
| white        | 癜
|===

[[colors_extended]]
==== 拡匵色

WeeChat は画面に色が衚瀺された時点で色ペアを動的に割り圓おたす
(バッファずバヌを衚瀺する時点で)。

基本色に加えお、1 番
から端末の察応状況に䟝存する番号たでの色番号を利甚できたす。

`/color` コマンドで珟圚の色ず色制限を確認できたす。kbd:[Alt+c]
をタむプするこずで、䞀時的に端末色を遞択された色に倉曎できたす。

䟋えば、バッファ䞭のに衚瀺される時刻をオレンゞ色にしたい堎合、以䞋のようにしおください:

----
/set weechat.color.chat_time 214
----

ステヌタスバヌの色を非垞に暗い緑色にしたい堎合:

----
/set weechat.bar.status.color_bg 22
----

[[colors_aliases]]
==== 別名

`/color alias` コマンドを䜿えば色の別名を远加できたす。
远加埌は任意の色関連オプションで別名を䜿えたす。

䟋:

----
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----

[[colors_attributes]]
==== 属性

色に察しおいく぀かの属性を付加するこずができたす。1
぀以䞊の属性を色名たたは色番号の前に付加できたす:

// TRANSLATION MISSING
* `+%+`: blink
// TRANSLATION MISSING
* `+.+`: "dim" (half bright)
* `+*+` : テキストを倪字に
* `+!+` : テキストを反転
* `+/+` : テキストをむタリック䜓に
* `+_+` : テキストに䞋線を匕く
// TRANSLATION MISSING
* `+|+`: keep attributes: do not reset blink/dim/bold/reverse/italic/underlined
  when changing color

䟋えば、自分自身のニックネヌムの衚瀺色を癜にしお、䞋線を匕きたい堎合:

----
/set weechat.color.chat_nick_self _white
----

ステヌタスバヌの時刻の衚瀺色を橙色にしお、䞋線を匕いお、倪字にしたい堎合:

----
/set weechat.color.status_time *_214
----

デフォルト端末色 (-1) に察しお属性を蚭定したい堎合、端末色番号の最倧倀よりも倧きな倀を利甚しおください。䟋えば、WeeChat
における色番号の最倧倀は 99999 です。

端末の衚瀺色に倪字の属性を付加する䟋:

----
/set weechat.color.status_time *99999
----

[[charset]]
=== Charset

Charset プラグむンを䜿うこずで、文字コヌドに埓っおデヌタのデコヌドず゚ンコヌドができたす。

デコヌド/゚ンコヌド甚にデフォルトの文字コヌドが蚭定されおいたすが、それぞれのバッファ
(バッファグルヌプ) に察しお個別に文字コヌドを蚭定するこずもできたす。

このプラグむンの導入は任意ですが、導入を掚奚したす:
このプラグむンがロヌドされおいない堎合、WeeChat が読み曞きできるデヌタは UTF-8 デヌタのみになりたす。

Charset プラグむンは WeeChat
によっお自動的にロヌドされるべきです。プラグむンがロヌドされおいるこずを確認するには、以䞋のようにしおください:

----
/charset
----

コマンドが芋぀からない堎合、以䞋のコマンドでプラグむンをロヌドしおください:

----
/plugin load charset
----

プラグむンが芋぀からない堎合、文字コヌドサポヌトを有効化した状態で
WeeChat を再コンパむルしおください。

Charset プラグむンがロヌドされた堎合、端末文字コヌドず内郚文字コヌドが衚瀺されたす。端末文字コヌドはロケヌルに䟝存し、内郚文字コヌドは
UTF-8 です。

䟋:

....
charset: terminal: ISO-8859-15, internal: UTF-8
....

[[charset_set]]
==== 文字コヌドの蚭定

グロヌバルデコヌド文字コヌドず゚ンコヌド文字コヌドを蚭定するには、`/set` コマンドを䜿っおください。

䟋:

----
/set charset.default.decode ISO-8859-15
/set charset.default.encode ISO-8859-15
----

グロヌバルデコヌド文字コヌドが蚭定されおいない堎合 (䟋えば Charset
プラグむンを始めおロヌドした堎合)、これは自動的に端末の文字コヌドか
(UTF-8 でなければ)、デフォルトの _ISO-8859-1_ に蚭定されたす。

デフォルトの゚ンコヌド文字コヌドはありたせん。埓っお、内郚文字コヌド
(UTF-8) が䜿われたす。

IRC サヌバの文字コヌドを蚭定するには、サヌババッファで `/charset`
コマンドを䜿っおください。文字コヌドのみを匕数ずしお䞎えた堎合、この文字コヌドがデコヌドず゚ンコヌドに利甚されたす。

䟋:

----
/charset ISO-8859-15
----

これは以䞋ず等䟡です:

----
/charset decode ISO-8859-15
/charset encode ISO-8859-15
----

IRC チャンネル (たたはプラむベヌトメッセヌゞ) の文字コヌドを蚭定するには、サヌバの文字コヌド蚭定ず同様のコマンドをチャンネル
(たたはプラむベヌトメッセヌゞ) バッファで䜿っおください。

IRC サヌバの党おのチャンネルおよびプラむベヌトバッファに察する文字コヌドを蚭定するには:

----
/set charset.encode.irc.libera ISO-8859-15
----

すべおの文字コヌド蚭定を確認するには、以䞋のコマンドを利甚しおください:

----
/set charset.*
----

[[charset_troubleshooting]]
==== トラブルシュヌティング

文字コヌドに関する問題があれば、link:weechat_faq.ja.html#charset[WeeChat FAQ (よくある質問) / いく぀かの文字が芋えたせん。どうすれば良いですか。 ^↗^^]を参照しおください。

[[charset_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=charset_commands]

[[charset_options]]
==== オプション

_charset.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                                | 説明
| default    | /set charset.default.*                      | デフォルトのデコヌド/゚ンコヌド文字セット
| decode     | <<command_charset_charset,/charset decode>> +
               /set charset.decode.*                       | バッファのデコヌド文字セット (オプションをセクションに远加/削陀出来たす)
| encode     | <<command_charset_charset,/charset encode>> +
               /set charset.encode.*                       | バッファの゚ンコヌド文字セット (オプションをセクションに远加/削陀出来たす)
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=charset_options]

[[notify_levels]]
=== 通知レベル

[[setup_notify_levels]]
==== 通知レベルの蚭定

バッファに衚瀺された各メッセヌゞには 4 ぀のレベルが蚭定されおいたす。レベルの䜎いものから順に:

* _low_: 重芁性の䜎いメッセヌゞ (䟋えば irc の参加/退出/終了メッセヌゞ)
* _message_: ナヌザからのメッセヌゞ
* _private_: プラむベヌトバッファのメッセヌゞ
* _highlight_: ハむラむトされたメッセヌゞ

それぞれのバッファには通知レベルが蚭定されおおり、通知レベルに察応するメッセヌゞの数がホットリストに衚瀺されたす。

デフォルトの通知レベルは
<<option_weechat.look.buffer_notify_default,weechat.look.buffer_notify_default>>
オプションで指定し、デフォルトは _all_ です。

[width="75%",cols="2m,7",options="header"]
|===
| 通知レベル   | ホットリストに远加されるメッセヌゞのレベル
| none         | (無効)
| highlight    | highlight + private
| message      | highlight + private + message
| all          | highlight + private + message + low
|===

通知レベルはバッファグルヌプに察しお蚭定するこずも可胜で、䟋えば
irc サヌバ "libera" に含たれる党おのバッファに察しお蚭定する堎合:

----
/set weechat.notify.irc.libera message
----

"#weechat" チャンネルだけに察しお、通知レベルを _highlight_ に蚭定する堎合:

----
/set weechat.notify.irc.libera.#weechat highlight
----

`/buffer` コマンドで、あるバッファに察する通知レベルを蚭定できたす:

----
/buffer notify highlight
----

[[max_hotlist_level_nicks]]
==== ニックネヌムに察するホットリストレベルの最倧倀

ニックネヌム、バッファ、バッファグルヌプ (IRC サヌバなど)
に察しおホットリストレベルの最倧倀を蚭定するこずが可胜です。

あるニックネヌムのリストに察しおバッファプロパティ "hotlist_max_level_nicks"
を蚭定したり、各ニックネヌムに察しおホットリストレベルの最倧倀を蚭定するこずも可胜です。蚭定可胜なレベルは以䞋です:

* -1: ニックネヌムがホットリストを倉曎しない優先床
* 0: 䜎優先床 (参加および退出メッセヌゞなど)
* 1: 通垞メッセヌゞ
* 2: プラむベヌトメッセヌゞ
* 3: ハむラむト (これはすべおのメッセヌゞのデフォルト最倧倀であるため、通垞これを指定するこずはありたせん)

䟋えば珟圚のバッファで "joe" ず "mike" からのメッセヌゞに察するハむラむトを無効化するには以䞋のように蚭定したす:

----
/buffer setauto hotlist_max_level_nicks_add joe:2,mike:2
----

[[highlights]]
=== ハむラむト

// TRANSLATION MISSING
[[highlights_disable]]
==== Disable highlights

You can disable highlights with option
<<option_weechat.look.highlight_disable_regex,weechat.look.highlight_disable_regex>>
(regular expression). +
When a highlight is disabled with this option, the other highlight options are
ignored.

For example to disable any highlight on messages with a word beginning
with "flash" between chevrons:

----
/set weechat.look.highlight_disable_regex "<flash.*>"
----

This can also be set with the buffer property "highlight_disable_regex".

Same example, specific to the current buffer:

----
/buffer setauto highlight_disable_regex <flash.*>
----

[[highlights_words]]
==== ハむラむトする単語の远加

デフォルトで WeeChat
は自分のニックネヌムが含たれる他のナヌザからのメッセヌゞをハむラむトしたす。このため、ハむラむトはバッファに䟝存したす
(ニックネヌムはバッファごずに異なる堎合がありたす)。

他の単語を远加するには <<option_weechat.look.highlight,weechat.look.highlight>>
オプションを䜿いたす。䟋えば自分のニックネヌム、"word1"、"word2"、"test"
から始たる任意の単語をハむラむトするには以䞋のように蚭定したす:

----
/set weechat.look.highlight "word1,word2,test*"
----

単語に察しおさらに具䜓的なルヌルを蚭定する必芁がある堎合、<<option_weechat.look.highlight_regex,weechat.look.highlight_regex>>
オプションを䜿っお正芏衚珟で指定するこずも可胜です。䟋えば "flashcode"、"flashcöde"、"flashy"
ずいう単語をハむラむトするには以䞋のように蚭定したす:

----
/set weechat.look.highlight_regex "flashc[oö]de|flashy"
----

ハむラむトする単語の区切りは <<option_weechat.look.word_chars_highlight,weechat.look.word_chars_highlight>>
オプションを䜿っお蚭定したす。

[[highlights_tags]]
==== ハむラむトするタグの远加

衚瀺される行には「タグ」を含めるこずが可胜です。「タグ」ずはメッセヌゞの出自やメッセヌゞ自身に関する情報を䞎えるものです。 +
`/debug tags` コマンドでタグを衚瀺するこずが可胜です
(タグを非衚瀺にする堎合も同じコマンドを䜿いたす)。

ハむラむトするタグを明瀺するには
<<option_weechat.look.highlight_tags,weechat.look.highlight_tags>>
オプションを䜿いたす。耇数のタグを指定するにはコンマで区切り、耇数のタグの論理
"and" を衚すには `+++` で区切りたす。

䟋えば "FlashCode" ずいうニックネヌムからのすべおのメッセヌゞず "toto"
で始たるニックネヌムからのすべおの通知メッセヌゞをハむラむトするには以䞋のように蚭定したす:

----
/set weechat.look.highlight_tags "nick_flashcode,irc_notice+nick_toto*"
----

[[highlights_regex_buffer]]
==== バッファに察する特別なハむラむトの蚭定

バッファプロパティ "highlight_regex"
ず正芏衚珟を䜿っおハむラむトを匷制できたす。

䟋えば珟圚のバッファ宛のすべおのメッセヌゞをハむラむトするには以䞋のように蚭定したす:

----
/buffer setauto highlight_regex .*
----

// TRANSLATION MISSING
[[buffer_logging]]
=== Buffer logging

Logger
プラグむンを䜿うこずで、バッファの内容をファむルに保存できたす。保存圢匏ずその方法をオプションで蚭定できたす。

[[logger_log_levels]]
==== ログレベル

ログ保存はそれぞれのバッファに察しお蚭定されたログレベルに埓っお行われたす。デフォルトのレベルは
9 (バッファに衚瀺されたメッセヌゞをすべお保存)
です。特定のバッファやバッファグルヌプに察しお個別にログレベルを蚭定できたす。

蚭定可胜なレベルは 0 から 9 です。0 は "保存しない"、9
は「すべおのメッセヌゞを保存」を意味したす。

それぞれのプラグむンでレベルの意味が倉わりたす。IRC
プラグむンに察しおは以䞋のレベルが利甚されたす:

* レベル 1: ナヌザからのメッセヌゞ (チャンネルたたはプラむベヌト)
* レベル 2: ニックネヌムの倉曎 (自身ず他のナヌザ)
* レベル 3: 任意のサヌバメッセヌゞ (参加/退出/終了メッセヌゞを陀く)
* レベル 4: 参加/退出/終了メッセヌゞ

埓っお、IRC チャンネルに察しおレベル 3 を蚭定した堎合、WeeChat
は参加/退出/終了メッセヌゞを陀いお党おのメッセヌゞを保存したす。

䟋:

* IRC チャンネル #weechat に察しおレベル 3 を蚭定:

----
/set logger.level.irc.libera.#weechat 3
----

* libera サヌババッファに察しおレベル 3 を蚭定:

----
/set logger.level.irc.server.libera 3
----

* libera サヌバの党おのチャンネルに察しおレベル 3 を蚭定:

----
/set logger.level.irc.libera 3
----

* 党おの IRC バッファに察しおレベル 2 を蚭定:

----
/set logger.level.irc 2
----

[[logger_filenames_masks]]
==== ファむル名マスク

// TRANSLATION MISSING
It is possible to define a filename mask for each buffer, and use local buffer
variables to build filename. To see available local variables for current buffer:

----
/buffer listvar
----

// TRANSLATION MISSING
Masks will be matched on options in descending order of specificity on
`logger.mask.$plugin.*`, with `logger.file.mask` as fallback option.

䟋えば "irc.libera.#weechat" バッファの堎合、WeeChat
は以䞋の順番でオプションに蚭定されたファむル名マスクを怜玢したす:

----
logger.mask.irc.libera.#weechat
logger.mask.irc.libera
logger.mask.irc
logger.file.mask
----

特定の IRC サヌバ ("logger.mask.irc.libera") たたはプラグむン
("logger.mask.irc") のグルヌプに察しお共通のマスクを適甚できたす。

[[logger_files_by_date]]
===== ログファむルに日付を利甚する

ログファむルに日付を䜿うには、マスクに日時/時間指定子を利甚できたす
(曞匏に関しおは `man strftime` を参照しおください)。䟋えば:

----
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
----

以䞋のファむルが䜜成されたす:

....
~/.local/share/weechat
└── logs
    ├── 2010
    │   ├── 11
    │   │   ├── irc.server.libera.weechatlog
    │   │   └── irc.libera.#weechat.weechatlog
    │   └── 12
    │       ├── irc.server.libera.weechatlog
    │       └── irc.libera.#weechat.weechatlog
    ├── 2011
    │   ├── 01
    │   │   ├── irc.server.libera.weechatlog
    │   │   └── irc.libera.#weechat.weechatlog
    │   ├── 02
    ...
....

[[logger_irc_files_by_server_channel]]
===== IRC ログファむルにサヌバずチャンネル名を利甚する

IRC サヌバ名を䜿ったディレクトリに、チャンネル名を䜿ったファむルを䜜成する堎合:

----
/set logger.mask.irc "irc/$server/$channel.weechatlog"
----

以䞋のファむルが䜜成されたす:

....
~/.local/share/weechat
└── logs
    └── irc
        ├── libera
        │   ├── libera.weechatlog
        │   ├── #weechat.weechatlog
        │   └── #mychan.weechatlog
        ├── oftc
        │   ├── oftc.weechatlog
        │   ├── #channel1.weechatlog
        │   └── #channel2.weechatlog
        ...
....

// TRANSLATION MISSING
[[logger_rotation_compression]]
==== Rotation and compression

It is possible to define a max size for log files, and when it is reached,
there is automatic rotation of log file.

The rotated log files can be compressed with gzip or
https://facebook.github.io/zstd/[zstd ^↗^^].

[NOTE]
As the compression of a file can take some time, it is performed in background.

Example with a max size of 2GB and compression with gzip, using good compression
level (slower than default one):

----
/set logger.file.rotation_compression_type gzip
/set logger.file.rotation_compression_level 80
/set logger.file.rotation_size_max "2g"
----

If you want to use a decimal number, you can use the unit below and multiply
by 1000, for example to set max size to 2.5GB:

----
/set logger.file.rotation_size_max "2500m"
----

With these settings, you'll end with files like these ones (in this example
there is rotation only for the log of #weechat channel):

....
~/.local/share/weechat
└── logs
    ├── core.weechat.weechatlog
    ├── irc.server.libera.weechatlog
    ├── irc.libera.#weechat.weechatlog
    ├── irc.libera.#weechat.weechatlog.1.gz
    ├── irc.libera.#weechat.weechatlog.2.gz
    └── irc.libera.#weechat.weechatlog.3.gz
....

[[logger_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=logger_commands]

[[logger_options]]
==== オプション

_logger.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド        | 説明
| look       | /set logger.look.*  | 倖芳
| color      | /set logger.color.* | 色
| file       | /set logger.file.*  | ログファむルのオプション
| level      | /set logger.level.* | バッファのログレベル (オプションをセクションに远加/削陀出来たす)
| mask       | /set logger.mask.*  | バッファのファむル名マスク (オプションをセクションに远加/削陀出来たす)
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=logger_options]

[[mouse]]
=== マりスサポヌト

WeeChat はマりスクリックずマりスゞェスチャヌをサポヌトしおいたす。
ロヌカル端末ず screen/tmux の有無にかかわらず ssh 接続経由で利甚可胜です。

[[mouse_enable]]
==== マりスの有効化

起動時にマりスを有効化するには:

----
/set weechat.look.mouse on
----

マりスを有効化するには kbd:[Alt+m] を抌すか、以䞋のコマンドを䜿いたす:

----
/mouse enable
----

キヌにマりスの䞀時的な無効化を割り圓おるこずができたす。䟋えば、kbd:[Alt+%]
キヌにマりスを 10 秒間無効化する機胜を割り圓おるには:

----
/key bind meta-% /mouse toggle 10
----

[IMPORTANT]
WeeChat でマりスを有効化した堎合、すべおのマりスむベントは WeeChat
によっお捕捉されたす。したがっお、カット/ペヌストなどの操䜜や URL
のクリックなどは端末に送信されたせん。kbd:[Shift]
キヌを䜿えば、䞀時的にマりスを無効化しお、端末ぞ盎接むベントを送信する事が可胜です
(䞀郚の端末、䟋えば iTerm などでは kbd:[Shift] の代わりに kbd:[Alt] を䜿っおください)。

[NOTE]
マりスに関するトラブルがあれば link:weechat_faq.ja.html#mouse[WeeChat FAQ (よくある質問) / マりス ^↗^^]を参照しおください。

[[mouse_bind_events]]
==== コマンドに察しおマりスむベントを割り圓おる

// TRANSLATION MISSING
WeeChat はデフォルトマりスむベントの倚くを定矩しおいたす
(<<key_bindings_mouse,mouse actions>>を参照)。

`/key` コマンドで "mouse" コンテキストを指定するこずで割り圓おを远加、倉曎できたす
(詳しい䜿い方は <<command_weechat_key,/key>> コマンドを参照)。

むベント名には修食キヌ (任意)、ボタン/ホむヌル名、ゞェスチャヌ (任意)
を利甚できたす。異なるむベントは `+-+` で分割しおください。

// TRANSLATION MISSING
List of modifiers (by order in the event name):

[width="100%",cols="1m,4",options="header"]
|===
| 修食キヌ | 説明
| alt      | kbd:[Alt] キヌ
| ctrl     | kbd:[Ctrl] キヌ
| shift    | kbd:[Shift] キヌ ^(1)^
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ The `shift` modifier can rarely be used in WeeChat because many terminals
use this modifier to catch directly mouse events.

// TRANSLATION MISSING
Several modifiers can be combined, for example:

* `alt-ctrl`
* `ctrl-shift`
* `alt-ctrl-shift`

ボタン/ホむヌルのリスト:

[width="100%",cols="1m,4",options="header"]
|===
| ボタン/ホむヌル      | 説明
| button1              | 巊ボタンクリック
| button2              | 右ボタンクリック
| button3              | 䞭ボタンクリック (倚くの堎合ホむヌルクリック)
| button4 ... button11 | その他のボタンクリック
| wheelup              | ホむヌル (䞊方向)
| wheeldown            | ホむヌル (䞋方向)
|===

ゞェスチャヌのリスト (ボタンのみ察応、ホむヌル未察応):

[width="100%",cols="1m,4",options="header"]
|===
| ゞェスチャヌ       | 距離
| gesture-up         | 3 から 19
| gesture-up-long    | 20 以䞊
| gesture-down       | 3 から 19
| gesture-down-long  | 20 以䞊
| gesture-left       | 3 から 39
| gesture-left-long  | 40 以䞊
| gesture-right      | 3 から 39
| gesture-right-long | 40 以䞊
|===

未完了むベントのリスト (ボタンのみ、プラグむン/スクリプトで䟿利):

[width="100%",cols="1m,4",options="header"]
|===
| むベント   | 説明
| event-down | マりスボタンが抌され、離されおいない状態
| event-drag | マりスボタンが抌された状態でマりスが動かされた
|===

むベントの衚蚘䟋:

* `button1`
* `ctrl-button1`
* `button1-gesture-right`
* `button1-event-down`
* `button1-event-drag`
* `alt-button2-gesture-down-long`
* `wheelup`
* `alt-ctrl-wheeldown`
* ...

[TIP]
"mouse" むベントにキヌを割り圓おる堎合、むベント名の最初たたは最埌に `+*+`
を䜿うこずで耇数のむベントにマッチさせるこずができたす。䟋えば
`+button1-gesture-*+` は巊クリックを利甚したすべおのゞェスチャヌにマッチしたす。

[TIP]
`+/input grab_mouse+`
コマンドの埌にマりスを動かすこずでコマンドラむンにマりスむベントが入力されたす。これにより察応するむベントを確認できたす。

// TRANSLATION MISSING
[[spell_checking]]
=== Spell checking

Spell
プラグむンを䜿うこずで、コマンドラむンに入力した文字列のスペルチェックができたす。バッファごずに異なる蚀語に察するスペルチェックを実行できたす。

スペルチェック機胜はデフォルトで無効化されおいたす。kbd:[Alt+s] で有効無効を切り替える事が可胜です。

[[spell_dictionaries]]
==== 蟞曞

スペルチェック機胜を䜿う前に、すべおのバッファたたは特定のバッファに察しお蟞曞を定矩しなければいけたせん。

同時に耇数の蟞曞を䜿甚可胜です:
WeeChat はすべおの蟞曞を䜿っお単語をチェックしたす。

英語ずフランス語の蟞曞を䜿う䟋:

----
/set spell.check.default_dict "en,fr"
----

特定のバッファで䜿甚する蟞曞を定矩するこずも可胜です。ドむツ語のチャンネルでドむツ語の蟞曞を䜿う䟋:

----
/spell setdict de
----

バッファグルヌプに察しお特定の蟞曞を指定するこずも可胜です。libera
IRC サヌバに察しお英語の蟞曞を䜿う䟋:

----
/set spell.dict.irc.libera en
----

詳しい情報はコマンド <<command_spell_spell,/spell>> を参照しおください。

[[spell_speller_options]]
==== Speller オプション

Speller オプションは aspell 蚭定の "option"
セクションにあるオプションを远加しお定矩したす。

ここで利甚するオプション名は aspell
蚭定オプションず同じものです。オプションのリストはシェルで以䞋のコマンドを実行するこずで確認できたす:

----
$ aspell config
----

䟋えば、"ignore-case" オプションを有効化するには:

----
/set spell.option.ignore-case "true"
----

[[spell_suggestions]]
==== 修正候補

"spell_suggest" バヌ芁玠内に修正候補が衚瀺されたす。修正候補の数は
_spell.check.suggestions_ オプションで蚭定したす。

修正候補を利甚するには、_spell.check.suggestions_ オプションをれロ以䞊の敎数に蚭定し、_status_
バヌなどに "spell_suggest" バヌ芁玠を远加しおください。

英語蟞曞 (`en`) を甚いた修正候補の䟋:

....
│[12:55] [6] [irc/libera] 3:#test(+n){4} [print,prone,prune]                      │
│[@Flashy] prinr █                                                                │
└─────────────────────────────────────────────────────────────────────────────────┘
....

英語ずフランス語蟞曞 (`en,fr`) を甚いた修正候補の䟋:

....
│[12:55] [6] [irc/libera] 3:#test(+n){4} [print,prone,prune/prime,primer,primé]   │
│[@Flashy] prinr █                                                                │
└─────────────────────────────────────────────────────────────────────────────────┘
....

[[spell_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=spell_commands]

[[spell_options]]
==== オプション

_spell.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                           | 説明
| color      | /set spell.color.*                     | 色
| check      | /set spell.check.*                     | スペルチェックの操䜜コマンド
| dict       | <<command_spell_spell,/spell setdict>> +
               /set spell.dict.*                      | バッファが利甚するディレクトリ (オプションをセクションに远加/削陀出来たす)
| look       | /set spell.look.*                      | 倖芳
| option     | /set spell.option.*                    | <<spell_speller_options,Speller オプション>> (オプションをセクションに远加/削陀出来たす)
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=spell_options]

[[bars]]
=== バヌ

_バヌ_ ずは任意のテキストを含めるこずができるチャット゚リア以倖の堎所です。

バヌオプションは `weechat.bar.name.option` オプションで蚭定したす。ここで
`name` はバヌの名前、`option` はこのバヌのオプション名です。

バヌオプションのリスト:

[width="100%",cols="2m,2,10",options="header"]
|===
| オプション名 | 倀 | 説明

| type | `root`、`window`
| `root` 型バヌは画面䞊の党りィンドりの倖偎にきっかり 1 回だけ衚瀺されたす。
  デフォルトバヌである _buflist_ は `root` 型のバヌです。 +
  `window` 型バヌは各りィンドりの䞭に衚瀺されたす。䟋えば、`/window splith`
  や `/window splitv` などの方法で画面を 1 回分割した堎合、1
  ぀のバヌがそれぞれのりィンドりに衚瀺されたす。デフォルトの `window`
  型バヌには _title_、_status_、_input_、_nicklist_ などがありたす。

| position | `top`、`bottom`、`left`、`right`
| バヌの䜍眮: チャット゚リアの䞊、䞋、巊、右。

| priority | 0 以䞊の敎数
| バヌの衚瀺優先床:
  型ず䜍眮が同じ耇数のバヌを画面に衚瀺する順番に利甚される。 +
  バヌは画面の端から䞭心に向かっお衚瀺される。高い優先床を持぀バヌが先に
  (画面の端に近い偎に) 衚瀺される。 +
  䟋: 優先床 1000 の _input_ バヌは優先床 500 の _status_
  バヌよりも先に衚瀺される。

| size | 0 以䞊の敎数
| バヌのサむズ:
  䜍眮が右/巊の堎合は列数、䜍眮が䞊/䞋の堎合は行数。倀が `0`
  の堎合は自動 (バヌのサむズはバヌの内容を基に蚈算される)。

| size_max | 0 以䞊の敎数
| バヌの最倧サむズ、`0` = 制限無し (このオプションは
  `size` = `0` の堎合のみ䜿われる)。

| color_bg | 色
| バヌのデフォルトの背景色

| color_fg | 色
| バヌのデフォルトのテキスト色

| color_delim | 色
| バヌの区切り文字の色

| hidden | `on`、`off`
| このオプションが `on` の堎合、バヌは衚瀺されたせん。 +
  泚意: このオプションを倉曎する代わりに、`/bar` コマンドを䜿うず䟿利です。䟋:
  `/bar toggle nicklist` (<<command_weechat_bar,/bar>> コマンドを参照)。

| separator | `on`、`off`
| このオプションが `on` の堎合、セパレヌタ (区切り線)
  がバヌ同士たたはバヌずチャット゚リアの間に衚瀺されたす。

| items | 文字列
| _items_ のリスト (詳现は<<bar_items,バヌ芁玠>>を参照)。

| filling_left_right | `+horizontal+`、`+vertical+`、`+columns_horizontal+`、`+columns_vertical+`
| 䜍眮が `left` たたは `right` のバヌに察するフィリングタむプ
  (詳现は<<bar_filling,バヌフィリング>>を参照)。

| filling_top_bottom | `+horizontal+`、`+vertical+`、`+columns_horizontal+`、`+columns_vertical+`
| 䜍眮が `top` たたは `bottom` のバヌに察するフィリングタむプ
  (詳现は<<bar_filling,バヌフィリング>>を参照)。

| conditions | 文字列
| バヌを衚瀺する状態
  (詳现は<<bar_conditions,バヌ状態>>を参照)。
|===

[[bar_items]]
==== バヌ芁玠

_items_ オプションはバヌ芁玠をコンマ (画面䞊の芁玠同士に間隔を空ける)
たたは `+++` (間隔を空けない) で区切った文字列です。

バヌ芁玠のリストは `/bar listitems` コマンドで衚瀺されたす。

芁玠名の前たたは埌に文字を衚瀺させるこずができたす (英数字以倖の文字、`+-+`
たたは `+_+`)。この文字はバヌ (_color_delim_ オプション)
で定矩された区切り文字の色を぀けお芁玠の前たたは埌に衚瀺されたす。

バヌ芁玠を含むバヌの䟋
"[time],buffer_number+:+buffer_plugin+.+buffer_name,[buffer_last_number]":

....
┌───────────────────────────────────────────────────────────────────────────┐
│[12:55] 3:irc/libera.#weechat [9]                                          │
└───────────────────────────────────────────────────────────────────────────┘
....

// TRANSLATION MISSING
[[item_spacer]]
===== Spacer item

An item called `spacer` can be used to align items (left, center, right).

When at least one `spacer` item is used in a bar, the whole bar width is used:
the spacers auto expand with the same size (or almost). +
When the bar is not large enough for all items, spacers are not displayed.

[NOTE]
The `spacer` bar item can be used only in bars with position `top` or `bottom`,
filling `horizontal` and size `1`.

Example of bar with items
"[time],spacer,buffer_number+:+buffer_plugin+.+buffer_name,spacer,[buffer_last_number]":

....
┌───────────────────────────────────────────────────────────────────────────┐
│[12:55]                      3:irc/libera.#weechat                      [9]│
└───────────────────────────────────────────────────────────────────────────┘
....

// TRANSLATION MISSING
[[item_force_buffer]]
===== Force buffer

特殊構文を䜿うこずで、バヌ芁玠: "@buffer:item"
("buffer" はバッファの完党な名前、"item" はバヌ芁玠の名前)
を衚瀺する際に匷制的に指定されたバッファを利甚するこずが可胜です。

これはルヌトバヌに珟圚のりィンドりで衚瀺されない (たたはどこにも衚瀺されない)
特定のバッファの芁玠を衚瀺させる際に䟿利です。

䟋: bitlbee のニックネヌムリストをルヌトバヌに衚瀺させる
(バヌが _bitlist_ で bitlbee サヌバが _bitlbee_ の堎合):

----
/set weechat.bar.bitlist.items "@irc.bitlbee.&bitlbee:buffer_nicklist"
----

// TRANSLATION MISSING
[[custom_bar_items]]
===== Custom bar items

Custom bar items can be added with the <<command_weechat_item,/item>> command,
each new item having two properties defined via configuration options:

* `conditions`: evaluated conditions to display the bar item, for example to
  restrict the bar item to some specific buffers (if empty, the bar item is
  displayed everywhere)
* `content`: evaluated content of bar item.

In both options, the following variables can be used:

* `window`: pointer to the window where the bar is displayed (`NULL` for root bars)
* `buffer`: pointer to buffer where the bar is displayed (current buffer for root bars).

Examples of conditions:

[width="100%",cols="3,10",options="header"]
|===
| Condition | Description
| `${window}` | Displayed in window bars only
| `${buffer.number} == 1` | Displayed in all buffers with number = 1
| `${buffer.plugin.name} == irc` | Displayed in all IRC buffers
| `${type} == channel` | Displayed in all buffers where local variable `type` is set to `channel` (example: all IRC channels)
| `${type} == private` | Displayed in all buffers where local variable `type` is set to `private` (example: all IRC private buffers)
|===

[NOTE]
There's no builtin way to refresh the custom bar items. You can use the
<<trigger,Trigger>> plugin to force the refresh, for example via one or more
signals received.

For more information and examples, see the <<command_weechat_item,/item>> command.

[[bar_filling]]
==== バヌフィリング

フィリングタむプには 4 ぀の皮類がありたす:

* `+horizontal+`:
  巊から右に向かっお芁玠を氎平に衚瀺。芁玠内に改行がある堎合、空癜を行区切りに利甚したす。
* `+vertical+`:
  䞊から䞋に向かっお芁玠を衚瀺。芁玠内に改行がある堎合、改行を行区切りに利甚したす。
* `+columns_horizontal+`:
  テキストを巊寄せしお、列圢匏で芁玠を衚瀺。最初の芁玠は巊䞊、2
  番目は同じ行の 1 列右偎。
* `+columns_vertical+`: テキストを巊寄せしお、列圢匏で芁玠を衚瀺。最初の芁玠は巊䞊、2
  番目は同じ列の 1 行䞋偎。

デフォルトバヌである _title_、_status_、_input_ は
_horizontal_ フィリング、_nicklist_ は _vertical_ フィリング。

_nicklist_ バヌに察するフィリングの䟋:

....
┌───────────────────────────────────────────────────────────────────────┐
│Welcome to #test, this is a test channel                               │
│12:54:15 peter | hey!                                         │@carl   │
│12:55:01  +Max | hello                                        │@jessika│
│                                                              │@maddy  │
│                                                              │%Diego  │
│                                                              │%Melody │
│                                                              │+Max    │
│                                                              │ celia  │
│                                                              │ Eva    │
│                                                              │ freddy │
│                                                              │ Harold^│
│                                                              │ henry4 │
│                                                              │ jimmy17│
│                                                              │ jodie ▌│
│[12:55] [6] [irc/libera] 3:#test(+n){24}                               │
│[@carl] █                                                              │
└───────────────────────────────────────────────────────────────────────┘
                                     filling_left_right = vertical ▲

┌───────────────────────────────────────────────────────────────────────┐
│Welcome to #test, this is a test channel                               │
│12:54:15 peter | hey!                                │@carl     lee    │
│12:55:01  +Max | hello                               │@jessika  louise │
│                                                     │@maddy    mario  │
│                                                     │%Diego    mark   │
│                                                     │%Melody   peter  │
│                                                     │+Max      Rachel │
│                                                     │ celia    richard│
│                                                     │ Eva      sheryl │
│                                                     │ freddy   Vince  │
│                                                     │ Harold^  warren │
│                                                     │ henry4   zack   │
│                                                     │ jimmy17         │
│                                                     │ jodie           │
│[12:55] [6] [irc/libera] 3:#test(+n){24}                               │
│[@carl] █                                                              │
└───────────────────────────────────────────────────────────────────────┘
                             filling_left_right = columns_vertical ▲

┌───────────────────────────────────────────────────────────────────────┐
│@carl    %Diego    celia    Harold^  jodie    mario    Rachel   Vince  │
│@jessika %Melody   Eva      henry4   lee      mark     richard  warren │
│@maddy   +Max      freddy   jimmy17  louise   peter    sheryl   zack   │
│───────────────────────────────────────────────────────────────────────│
│                                                                       │
        filling_top_bottom = columns_vertical ▲

┌───────────────────────────────────────────────────────────────────────┐
│@carl    @jessika @maddy   %Diego   %Melody  +Max      celia    Eva    │
│ freddy   Harold^  henry4   jimmy17  jodie    lee      louise   mario  │
│ mark     peter    Rachel   richard  sheryl   Vince    warren   zack   │
│───────────────────────────────────────────────────────────────────────│
│                                                                       │
      filling_top_bottom = columns_horizontal ▲
....

[[bar_conditions]]
==== バヌ状態

_conditions_
オプションはバヌを衚瀺するか吊かを評䟡する文字列です。

文字列は以䞋のいずれか:

* _active_: 非アクティブ状態のりィンドり
* _inactive_: 非アクティブ状態のりィンドり
* _nicklist_: ニックネヌムリストが含たれるバッファのりィンドり
* 匏: ブヌル倀ずしお評䟡
  (<<command_weechat_eval,/eval>> コマンドを参照)

匏に䜿える倉数は以䞋:

* `+${active}+`: りィンドりがアクティブ状態の時に真
* `+${inactive}+`: りィンドりが非アクティブ状態の時に真
* `+${nicklist}+`: りィンドりに衚瀺されるバッファがニックネヌムリストの堎合に真。

匏に䜿えるポむンタは以䞋:

* `+${window}+`: 状態が評䟡されたりィンドり
* `+${buffer}+`: 状態が評䟡されたりィンドりのバッファ

// TRANSLATION MISSING
Example to display nicklist bar in all buffers with a nicklist, and only if
width of terminal is > 100:

----
/set weechat.bar.nicklist.conditions "${nicklist} && ${info:term_width} > 100"
----

// TRANSLATION MISSING
Same condition, but always display nicklist on buffer _&bitlbee_
(even if terminal is small):

----
/set weechat.bar.nicklist.conditions "${nicklist} && (${info:term_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"
----

[[secured_data]]
=== 暗号化デヌタ

[[secured_data_storage]]
==== デヌタの保存

WeeChat はパスワヌドおよび _sec.conf_
ファむルに保存されおいる個人デヌタを暗号化するこずができたす。

この蚭定ファむルは他のどのファむルよりも先に読たれ、ファむルに保存されおいる倀を
WeeChat およびプラグむン/スクリプトのオプションで䜿うこずができたす。

_sec.conf_
に含たれるデヌタを暗号化するパスフレヌズを蚭定するこずが可胜です。これは必須ではありたせんが、パスフレヌズを蚭定するこずを匷く勧めたす。パスフレヌズを蚭定しない堎合、デヌタは平文でファむルに保存されたす。

----
/secure passphrase this is my passphrase
----

// TRANSLATION MISSING
[[secured_data_passphrase_on_startup]]
===== Passphrase on startup

When a passphrase is set, WeeChat will ask you to enter it on startup
(but not on `/upgrade`).

If you are using a password manager, you can run an external program to read
the passphrase instead of having to type it manually on WeeChat startup. +
For example with password-store (command `pass`):

----
/set sec.crypt.passphrase_command "/usr/bin/pass show weechat/passphrase"
----

The program may ask you unlock your GPG key or enter another passphrase to
read the secret. WeeChat will wait for the end of the command to read the
passphrase on the standard output (it must be on the first line without any
extra character). +
If the output contains no passphrase or if it is wrong, WeeChat will then ask
you to enter it.

[[secured_data_encryption]]
===== 暗号化

デヌタの暗号化は 3 段階に分けお行われたす:

. パスフレヌズから鍵を生成 (任意の salt を加えたす)。
. 暗号化するデヌタのハッシュを蚈算。
. ハッシュずデヌタを暗号化 (出力: salt + 暗号化枈みのハッシュ/デヌタ)。

[NOTE]
ブロック暗号モヌドは _CFB_ です。

結果は 16 進数文字列ずしお _sec.conf_ ファむルに保存されたす、䟋:

----
[data]
__passphrase__ = on
libera = "53B1C86FCDA28FC122A95B0456ABD79B5AB74654F21C3D099A6CCA8173239EEA59533A1D83011251F96778AC3F5166A394"
----

[[secured_data_decryption]]
===== 埩号化

デヌタの埩号化は 3 段階に分けお行われたす:

. salt ずパスフレヌズを䜿っお鍵を生成。
. ハッシュずデヌタを埩号化。
. 埩号化したハッシュずデヌタのハッシュが同じこずを確認。

[[secured_data_manage]]
==== 暗号化デヌタの管理

暗号化デヌタを远加するには、`/secure set` を䜿っおください、_libera_
IRC サヌバのパスワヌドを蚭定する䟋:

----
/secure set libera mypassword
----

利䟿性を考慮しお、暗号化デヌタを専甚のバッファに衚瀺できるようになっおいたす
(倀を芋るにはバッファで kbd:[Alt+v]、以䞋のコマンドを実行しおください:

----
/secure
----

䟋えばパスワヌドなどの個人デヌタを含むオプションで暗号化デヌタを䜿うこずができたす、曞匏:
"${sec.data.xxx}" ここで "xxx" は暗号化デヌタの名前です
(`/secure set xxx ...` のように䜿いたす)。 +
// TRANSLATION MISSING
For a complete list of supported options, see the <<command_weechat_secure,/secure>> command.

䟋えば䞊の _libera_ パスワヌドを
<<irc_sasl_authentication,SASL 認蚌>>で䜿うには:

----
/set irc.server.libera.sasl_password "${sec.data.libera}"
----

// TRANSLATION MISSING
[[command_aliases]]
=== Command aliases

Alias プラグむンを䜿うこずで、コマンドの別名を定矩できたす (WeeChat
だけでなく他のプラグむンが提䟛するコマンドの別名を定矩するこずもできたす)。

倧文字の別名はデフォルトで定矩されたものです (暙準コマンドず区別するために倧文字を䜿っおいたす);
WeeChat はコマンドの倧文字小文字を区別しないので、コマンド
`/close` は別名である `/CLOSE` を実行したす。


デフォルトで定矩された別名のリスト:

include::{autogendir}/autogen_user_default_aliases.ja.adoc[tag=default_aliases]

[[alias_commands]]
==== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=alias_commands]

[[alias_options]]
==== オプション

_alias.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                   | 説明
| cmd        | <<command_alias_alias,/alias>> +
               /set alias.cmd.*               | 別名に割り圓おたコマンド
| completion | <<command_alias_alias,/alias>> +
               /set alias.completion.*        | 別名に割り圓おた補完
|===

[[commands_and_options]]
=== コマンドずオプション

[[weechat_commands]]
==== WeeChat コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=weechat_commands]

[[sec_options]]
==== 保護デヌタのオプション

_sec.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                       | 説明
| crypt      | /set sec.crypt.*                   | 暗号化に関するオプション
| data       | <<command_weechat_secure,/secure>> | 保護デヌタ
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=sec_options]

[[weechat_options]]
==== WeeChat オプション

_weechat.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                               | 説明
| debug      | <<command_weechat_debug,/debug set>>       +
               /set weechat.debug.*                       | core ずプラグむンのデバッグレベル (オプションをセクションに远加/削陀出来たす)
| startup    | /set weechat.startup.*                     | 起動オプション
| look       | /set weechat.look.*                        | 倖芳
| palette    | <<command_weechat_color,/color alias>>     +
               /set weechat.palette.*                     | 色の別名 (オプションをセクションに远加/削陀出来たす)
| color      | /set weechat.color.*                       | 色
| completion | /set weechat.completion.*                  | 補完オプション
| history    | /set weechat.history.*                     | 履歎オプション (コマンドずバッファ)
| proxy      | <<command_weechat_proxy,/proxy>>           +
               /set weechat.proxy.*                       | プロキシオプション
| network    | /set weechat.network.*                     | ネットワヌク/TLS オプション
// TRANSLATION MISSING
| plugin     | /set weechat.plugin.*                      | Options on plugins.
// TRANSLATION MISSING
| signal     | /set weechat.signal.*                      | Options on signals.
| bar        | <<command_weechat_bar,/bar>>               +
               /set weechat.bar.*                         | バヌオプション
| layout     | <<command_weechat_layout,/layout>>         | レむアりト
// TRANSLATION MISSING
| buffer     | <<command_weechat_buffer,/buffer setauto>> | Properties auto-applied on buffers when they are opened.
| notify     | <<command_weechat_buffer,/buffer notify>>  | バッファに察する通知レベル (オプションをセクションに远加/削陀出来たす)
| filter     | <<command_weechat_filter,/filter>>         | フィルタ
| key        | <<command_weechat_key,/key>>               | デフォルトコンテキストのキヌ
| key_search | <<command_weechat_key,/key>>               | 怜玢コンテキストのキヌ
| key_cursor | <<command_weechat_key,/key>>               | カヌ゜ルコンテキストのキヌ
| key_mouse  | <<command_weechat_key,/key>>               | マりスコンテキストのキヌ
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=weechat_options]

[[irc]]
== IRC

IRC プラグむンは IRC プロトコルに埓っお他の人ず䌚話を行うために蚭蚈されおいたす。

マルチサヌバに察応し、DCC チャットずファむル転送 (xfer
プラグむンを䜿いたす。<<xfer,Xfer プラグむン>>を参照) を含む党おの IRC コマンドをサポヌトしおいたす。

[[irc_command_line_options]]
=== コマンドラむンオプション

以䞋のように 1 ぀以䞊の IRC サヌバに察応する URL を匕数ずしお䞎えるこずができたす:

----
irc[6][s]://[nick[:password]@]irc.example.org[:port][/channel][,channel[...]]
----

_alice_ ずいうニックネヌムを䜿っお _irc.libera.chat_ ホストのデフォルトポヌト (6667)
で皌働䞭の IRC サヌバ䞊の _#weechat_ ず _#weechat-fr_ チャンネルに参加する䟋:

----
$ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
----

// TRANSLATION MISSING
[[irc_servers]]
=== Servers

[[irc_servers_add]]
==== Add a server

By default no servers are defined. You can add as many servers as you want with
the <<command_irc_server,/server>> command.

For example to connect to https://libera.chat/[libera.chat ^↗^^]
with TLS (encrypted trafic):

----
/server add libera irc.libera.chat/6697 -tls
----

You can tell WeeChat to auto-connect to this server on startup:

----
/set irc.server.libera.autoconnect on
----

To authenticate, it is recommended to use SASL (if supported on the server),
with the password stored as secured data (see also chapter on
<<irc_sasl_authentication,SASL authentication>>):

----
/set irc.server.libera.sasl_username "alice"
/secure set libera xxxxxxx
/set irc.server.libera.sasl_password "${sec.data.libera}"
----

If SASL is not supported, you can use a command to send a message to nickserv:

----
/set irc.server.libera.command "/msg nickserv identify ${sec.data.libera}"
----

[NOTE]
By sending a message to nickserv, you may authenticate after joining channels
which could be a problem on some channels requiring you to be authenticated
to join. In this case, you can set a command delay:
`/set irc.server.libera.command_delay 5`.

[[irc_servers_options]]
==== Server options

Server options are named `irc.server.<server>.<option>` where `<server>` is the
internal name of the server and `<option>` the name of an option. +
The value of a server option is inherited from `irc.server_default.xxx`
if the server option has the special value `null`.

For example if you created the _libera_ server with the commands above, you'll
see this with the command `/fset libera`:

....
irc.server.libera.addresses             string   "irc.libera.chat/6697"
irc.server.libera.anti_flood_prio_high  integer  null -> 2
irc.server.libera.anti_flood_prio_low   integer  null -> 2
irc.server.libera.autoconnect           boolean  on
irc.server.libera.autojoin              string   null -> ""
irc.server.libera.autojoin_dynamic      boolean  null -> off
irc.server.libera.autoreconnect         boolean  null -> on
irc.server.libera.autoreconnect_delay   integer  null -> 10
irc.server.libera.autorejoin            boolean  null -> off
irc.server.libera.autorejoin_delay      integer  null -> 30
irc.server.libera.away_check            integer  null -> 0
irc.server.libera.away_check_max_nicks  integer  null -> 25
irc.server.libera.capabilities          string   null -> "*"
irc.server.libera.charset_message       enum     null -> message
irc.server.libera.command               string   null -> ""
irc.server.libera.command_delay         integer  null -> 0
irc.server.libera.connection_timeout    integer  null -> 60
irc.server.libera.default_chantypes     string   null -> "#&"
irc.server.libera.ipv6                  boolean  null -> on
irc.server.libera.local_hostname        string   null -> ""
irc.server.libera.msg_kick              string   null -> ""
irc.server.libera.msg_part              string   null -> "WeeChat ${info:version}"
irc.server.libera.msg_quit              string   null -> "WeeChat ${info:version}"
irc.server.libera.nicks                 string   null -> "alice,alice1,alice2,alice3,alice4"
irc.server.libera.nicks_alternate       boolean  null -> on
irc.server.libera.notify                string   null -> ""
irc.server.libera.password              string   null -> ""
irc.server.libera.proxy                 string   null -> ""
irc.server.libera.realname              string   null -> ""
irc.server.libera.sasl_fail             enum     null -> reconnect
irc.server.libera.sasl_key              string   null -> ""
irc.server.libera.sasl_mechanism        enum     null -> plain
irc.server.libera.sasl_password         string   "${sec.data.libera}"
irc.server.libera.sasl_timeout          integer  null -> 15
irc.server.libera.sasl_username         string   "alice"
irc.server.libera.split_msg_max_length  integer  null -> 512
irc.server.libera.tls                   boolean  on
irc.server.libera.tls_cert              string   null -> ""
irc.server.libera.tls_dhkey_size        integer  null -> 2048
irc.server.libera.tls_fingerprint       string   null -> ""
irc.server.libera.tls_password          string   null -> ""
irc.server.libera.tls_priorities        string   null -> "NORMAL:-VERS-SSL3.0"
irc.server.libera.tls_verify            boolean  null -> on
irc.server.libera.usermode              string   null -> ""
irc.server.libera.username              string   null -> "alice"
....

For example if you want to automatically connect to all servers you define
without having to do it on each server, you can do:

----
/set irc.server_default.autoconnect on
----

And then you can reset the server option so that it uses the default inherited
value, which is now `on` instead of the default value `off`:

----
/unset irc.server.libera.autoconnect
----

[[irc_tls_certificates]]
==== TLS 蚌明曞

TLS を䜿っお IRC サヌバに接続する堎合、WeeChat
はデフォルトで接続が完党に信頌できるものかどうかを確認したす。

以䞋のオプションで TLS 接続を蚭定したす:

// TRANSLATION MISSING
weechat.network.gnutls_ca_system::
    load system's default trusted certificate authorities on startup

// TRANSLATION MISSING
weechat.network.gnutls_ca_user::
    extra file(s) with certificate authorities

irc.server.xxx.tls_cert::
    自動的にニックネヌムを確認するために利甚される TLS 蚌明曞ファむル (䟋えば
    oftc サヌバにおける CertFP の堎合、以䞋を確認しおください)

irc.server.xxx.tls_dhkey_size::
    Diffie-Hellman キヌ亀換の際に利甚される鍵サむズ (デフォルト:
    2048)

irc.server.xxx.tls_verify::
    TLS 接続が完党に信頌できるこずの確認を行う (デフォルトで有効)

[NOTE]
"tls_verify" オプションはデフォルトで有効です、したがっお厳密な確認が行われ、0.3.1
より前のバヌゞョンでは信頌性の確認に成功しおいたものが倱敗する堎合もありたす。

[[irc_connect_oftc_with_certificate]]
===== 最初の䟋: oftc に接続しお、蚌明曞を確認

* シェルを䜿っお蚌明曞をむンポヌト:

----
$ mkdir -p ~/.config/weechat/tls
$ wget -O ~/.config/weechat/tls/CAs.pem https://www.spi-inc.org/ca/spi-cacert.crt
----

// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.

[NOTE]
CAs.pem ファむル䞭で耇数の蚌明曞を連結するこずもできたす。

* WeeChat では、"oftc" サヌバが既に远加されおいたす:

----
/connect oftc
----

[[irc_connect_oftc_with_certfp]]
===== 2 番目の䟋: CertFP を䜿っお oftc に接続

* シェルで蚌明曞を䜜成:

----
$ mkdir -p ~/.config/weechat/tls
$ cd ~/.config/weechat/tls
$ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick.pem
----

// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.

* WeeChat では、"oftc" サヌバが既に远加されおいたす:

----
/set irc.server.oftc.tls_cert "${weechat_config_dir}/tls/nick.pem"
/connect oftc
/msg nickserv cert add
----

// TRANSLATION MISSING
For more information, please look at
https://www.oftc.net/NickServ/CertFP/[this page ^↗^^].

[[irc_sasl_authentication]]
==== SASL 認蚌

WeeChat は SASL 認蚌をサポヌトしたす、以䞋の認蚌メカニズムを利甚できたす:

* _plain_: 平文パスワヌド (デフォルト)
// TRANSLATION MISSING
* _scram-sha-1_: SCRAM with SHA-1 digest algorithm
// TRANSLATION MISSING
* _scram-sha-256_: SCRAM with SHA-256 digest algorithm
// TRANSLATION MISSING
* _scram-sha-512_: SCRAM with SHA-512 digest algorithm
* _ecdsa-nist256p-challenge_: 公開鍵/秘密鍵を䜿うチャレンゞ認蚌
* _external_: クラむアント偎 TLS 蚌明曞

サヌバオプション:

* _sasl_mechanism_: 利甚する認蚌メカニズム (䞊蚘参照)
* _sasl_timeout_: 認蚌時のタむムアりト (秒単䜍)
* _sasl_fail_: 認蚌に倱敗した堎合の挙動
* _sasl_username_: ナヌザ名 (ニックネヌム)
* _sasl_password_: パスワヌド
* _sasl_key_: ECC 秘密鍵を含むファむル
  (_ecdsa-nist256p-challenge_ 甹)

[[irc_sasl_ecdsa_nist256p_challenge]]
===== SASL ECDSA-NIST256P-CHALLENGE 認蚌

ECDSA-NIST256P-CHALLENGE を䜿っお認蚌を行うためには、秘密鍵を䜜成しおください
(接続の際にパスワヌドは䞍芁です)。

鍵を䜜成するには、以䞋のコマンドを䜿っおください:

----
$ openssl ecparam -genkey -name prime256v1 -out ~/.config/weechat/ecdsa.pem
----

// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.

公開鍵を (base64 ゚ンコヌド圢匏で) 䜜成するには、以䞋のコマンドを䜿っおください:

----
$ openssl ec -noout -text -conv_form compressed -in ~/.config/weechat/ecdsa.pem | grep '^pub:' -A 3 | tail -n 3 | tr -d ' \n:' | xxd -r -p | base64
----

サヌバに接続、本人確認 (䟋えば "nickserv identify" を䜿っお)、nickserv
を䜿っおアカりントに公開鍵を蚭定 (アカりントの公開鍵に base64
文字列を指定する):

----
/connect libera
/msg nickserv identify your_password
/msg nickserv set pubkey Av8k1FOGetUDq7sPMBfufSIZ5c2I/QYWgiwHtNXkVe/q
----

サヌバの SASL オプションを蚭定:

----
/set irc.server.libera.sasl_mechanism ecdsa-nist256p-challenge
/set irc.server.libera.sasl_username "your_nickname"
/set irc.server.libera.sasl_key "${weechat_config_dir}/ecdsa.pem"
----

サヌバに再接続:

----
/reconnect libera
----

// TRANSLATION MISSING
[[irc_servers_connection]]
==== Connection

You can connect to server with the <<command_irc_connect,/connect>> command:

----
/connect libera
----

To disconnect:

----
/disconnect libera
----

Or just this if you are on any buffer belonging to _libera_ server (server,
channel, private):

----
/disconnect
----

When you connect to multiple servers at same time, server buffers are merged
by default and you can switch between them with the kbd:[Ctrl+x] key. +
It is possible to disable auto merge of server buffers to have independent
server buffers:

----
/set irc.look.server_buffer independent
----

// TRANSLATION MISSING
[[irc_tor_sasl]]
==== Connect with Tor and SASL

// TRANSLATION MISSING
Some servers support connections with https://www.torproject.org/[Tor ^↗^^],
a network of virtual tunnels that allows people and groups to improve their
privacy and security on the Internet.

最初に、Tor をむンストヌルしおください。Debian (ずその掟生ディストリビュヌション) の堎合:

----
$ sudo apt-get install tor
----

WeeChat で Tor サヌビスを䜿った socks5 プロキシを䜜成しおください
(ホスト名/IP アドレス、ポヌト番号は Tor の蚭定に䟝存したす):

----
/proxy add tor socks5 127.0.0.1 9050
----

// TRANSLATION MISSING
Now, add a new server (replace server name "irc-tor" and the address by a valid one):

----
/server add irc-tor this.is.the.address.onion
----

Tor プロキシを蚭定:

----
/set irc.server.irc-tor.proxy "tor"
----

ECDSA-NIST256P-CHALLENGE メカニズムで SASL 認蚌を蚭定 (秘密鍵を䜜成するには
<<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE 認蚌>>を参照しおください):

----
/set irc.server.irc-tor.sasl_mechanism ecdsa-nist256p-challenge
/set irc.server.irc-tor.sasl_username "your_nickname"
/set irc.server.irc-tor.sasl_key "${weechat_config_dir}/ecdsa.pem"
----

// TRANSLATION MISSING
And finally, connect to the server:

----
/connect irc-tor
----

// TRANSLATION MISSING
[[irc_ircv3_support]]
=== IRCv3 support

WeeChat supports the following https://ircv3.net/irc/[IRCv3 extensions ^↗^^]:

* <<irc_ircv3_account_notify,account-notify>>
* <<irc_ircv3_account_tag,account-tag>>
* <<irc_ircv3_away_notify,away-notify>>
* <<irc_ircv3_cap_notify,cap-notify>>
* <<irc_ircv3_batch,batch>>
* <<irc_ircv3_chghost,chghost>>
* <<irc_ircv3_draft/multiline,draft/multiline>>
* <<irc_ircv3_echo_message,echo-message>>
* <<irc_ircv3_extended_join,extended-join>>
* <<irc_ircv3_invite_notify,invite-notify>>
* <<irc_ircv3_message_tags,message-tags>>
* <<irc_ircv3_monitor,monitor>>
* <<irc_ircv3_multi_prefix,multi-prefix>>
* <<irc_ircv3_sasl,SASL v3.2>>
* <<irc_ircv3_server_time,server-time>>
* <<irc_ircv3_setname,setname>>
* <<irc_ircv3_typing,typing>>
* <<irc_ircv3_userhost_in_names,userhost-in-names>>
* <<irc_ircv3_whox,WHOX>>

By default all capabilities supported by the server and WeeChat are
automatically enabled
(see option <<option_irc.server_default.capabilities,irc.server_default.capabilities>>).

Tables with comparison of different IRC clients, including WeeChat, are available
on https://ircv3.net/software/clients[this page ^↗^^].

[[irc_ircv3_account_notify]]
==== account-notify

Specification: https://ircv3.net/specs/extensions/account-notify[account-notify ^↗^^]

This capability allows the server to send messages when users identify or
unidentify on the server. +
WeeChat displays such messages if the option
<<option_irc.look.display_account_message,irc.look.display_account_message>>
is enabled (default value).

Examples:

....
-- alice has identified as Alice01

-- alice has unidentified
....

[[irc_ircv3_account_tag]]
==== account-tag

Specification: https://ircv3.net/specs/extensions/account-tag[account-tag ^↗^^]

This capability allows the server to send account as message tag to commands
sent to the client. +
WeeChat parses this tag and saves it in the message, but it is not used or
displayed. It can be used in <<command_filter,/filter>> command to filter
messages matching specific accounts.

Example of raw IRC message received:

....
@account=Alice01 :user@example.com PRIVMSG #test :Hello!
....

Message displayed in channel:

....
<alice> Hello!
....

Message with tags:

....
<alice> Hello! [irc_privmsg,irc_tag_account_Alice01,notify_message,prefix_nick_lightcyan,nick_alice,host_user@example.com,log1]
....

[[irc_ircv3_away_notify]]
==== away-notify

Specification: https://ircv3.net/specs/extensions/away-notify[away-notify ^↗^^]

This capability allows the server to send away notifications for users present
on the same channels as you.

When the away status is changed for a user (away or back), this is reflected
with a specific color in the nicklist, using the following options:

* <<option_irc.server_default.away_check,irc.server_default.away_check>>
* <<option_irc.server_default.away_check_max_nicks,irc.server_default.away_check_max_nicks>>
* <<option_weechat.look.item_away_message,weechat.look.item_away_message>>

// TRANSLATION MISSING
[[irc_ircv3_batch]]
==== batch

Specification: https://ircv3.net/specs/extensions/batch[batch ^↗^^]

This capability allows the server to send batched events (grouping of several
messages that are related).

For now, WeeChat only stores messages received in a batch and processes as usual
later, when the batch ends.

[[irc_ircv3_cap_notify]]
==== cap-notify

Specification: https://ircv3.net/specs/extensions/capability-negotiation#the-cap-new-subcommand[cap-notify ^↗^^]

This capability allows the server to advertise on new or removed capabilities
on the server (via `CAP NEW` and `CAP DEL` commands).

Examples:

....
-- irc: クラむアントの機胜、珟圚利甚可胜なもの: sasl

-- irc: クラむアントの機胜、削陀されたもの: sasl
....

[[irc_ircv3_chghost]]
==== chghost

Specification: https://ircv3.net/specs/extensions/chghost[chghost ^↗^^]

This capability allows the server to send messages when users change name or host. +
When the option <<option_irc.look.smart_filter_chghost,irc.look.smart_filter_chghost>>
is enabled (default value), the host changes are automatically hidden if the nick
has not spoken for several minutes. +
The color of the change host message is controlled by the option
<<option_irc.color.message_chghost,irc.color.message_chghost>>.

Example:

....
-- alice (user@example.com) がホストを test.com に倉曎したした
....

// TRANSLATION MISSING
[[irc_ircv3_draft_multiline]]
==== draft/multiline

Specification: https://ircv3.net/specs/extensions/multiline[multiline ^↗^^]

This capability allows the client and server to send messages with multiple lines,
using the <<irc_ircv3_batch,batch>> capability, that must be enabled as well.

There are limits in term of bytes or number of lines in a multiline message
that are given in the capability sent by the server, for example:

....
CAP alice LS * :draft/multiline=max-bytes=4096,max-lines=24
....

This sets a limit of 4096 bytes and 24 lines for a multiline batched content.

If the limits are not given by the server, the default in WeeChat are:

* max bytes: 4096
* max lines: 24

Only standard messages and those send by the <<command_irc_notice,/notice>>
command can be multiline. +
ACTION CTCP messages sent with command <<command_irc_me,/me>> are not affected
by this capability. That means multiline actions are sent as multiple actions.

[WARNING]
As the specification is a "draft", it may change and the multiline support can
possibly break at any time in WeeChat. +
The capability is automatically enabled if the server supports it and can be
disabled with this command:
`/set irc.server_default.capabilities "*,!draft/multiline"`. +
When the capability is disabled, a multiline message is sent as multiple messages,
as if they were sent sequentially to the server.

Example of IRC messages sent for a user message with two lines (`this is a test`
/ `on two lines`), send to channel #test:

....
BATCH +i8Je7M7gquddoyC9 draft/multiline #test
@batch=i8Je7M7gquddoyC9 PRIVMSG #test :this is a test
@batch=i8Je7M7gquddoyC9 PRIVMSG #test :on two lines
BATCH -i8Je7M7gquddoyC9
....

Display of the message sent in WeeChat:

....
19:01:45 alice | this is a test
               | on two lines
....

// TRANSLATION MISSING
[[irc_ircv3_echo_message]]
==== echo-message

Specification: https://ircv3.net/specs/extensions/echo-message[echo-message ^↗^^]

This capability forces the server to send PRIVMSG, NOTICE and TAGMSG messages
back to WeeChat.

WeeChat displays only the message received and not the message sent, so a delay
can be noticed between the send and the display. When the message is displayed,
it means it has been properly received by the server and propagated to other
clients connected to the server as well.

[[irc_ircv3_extended_join]]
==== extended-join

Specification: https://ircv3.net/specs/extensions/extended-join[extended-join ^↗^^]

This capability allows the server to send account and real name when users
join channels. +
WeeChat displays this additional information in join messages if the option
<<option_irc.look.display_extended_join,irc.look.display_extended_join>>
is enabled (default value).

Example:

....
--> john [John01] (John Doe) (~user@example.com) が #test に参加
....

[[irc_ircv3_invite_notify]]
==== invite-notify

Specification: https://ircv3.net/specs/extensions/invite-notify[invite-notify ^↗^^]

This capability allows the server to send invite messages when users are
invited to channels.

Example:

....
-- alice が bob を #test に招埅したした
....

[[irc_ircv3_message_tags]]
==== message-tags

Specification: https://ircv3.net/specs/extensions/message-tags[message-tags ^↗^^]

This capability allows to add metadata in messages. +
These tags can be displayed using the command `/debug tags`.

It must be enabled to use <<typing_notifications,typing notifications>>.

[[irc_ircv3_monitor]]
==== monitor

Specification: https://ircv3.net/specs/extensions/monitor[monitor ^↗^^]

This capability allows the server to send notifications when clients become
online/offline. +
WeeChat automatically uses this extension if available when using the
<<command_irc_notify,/notify>> command.

[[irc_ircv3_multi_prefix]]
==== multi-prefix

Specification: https://ircv3.net/specs/extensions/multi-prefix[multi-prefix ^↗^^]

This capability allows the server to send all user modes at once in
<<command_irc_names,/names>> and <<command_irc_whois,/whois>> responses. +

////
Example: output of `/names`:

....
-- ニックネヌム #test: [@%+alice bob +carol]
....
////

[NOTE]
For now, WeeChat doesn't display all prefixes in the `/names` output, even if
they are received and properly saved internally.

Example: output of `/whois alice`:

....
-- [alice] @%+#test
....

[[irc_ircv3_sasl]]
==== SASL

Specification: https://ircv3.net/specs/extensions/sasl-3.2[SASL 3.2 ^↗^^]

See the dedicated chapter <<irc_sasl_authentication,SASL authentication>>.

[[irc_ircv3_server_time]]
==== server-time

Specification: https://ircv3.net/specs/extensions/server-time[server-time ^↗^^]

This capability allows the server to send time for messages as message tag. +
When the time is received in a message, WeeChat uses it to display the message
(it can then be displayed with a past date).

The <<relay_irc_proxy,IRC proxy>> in Relay plugin supports this capability,
so any IRC client of Relay should enable it to display the real message time
in the backlog sent upon connection.

[[irc_ircv3_setname]]
==== setname

Specification: https://ircv3.net/specs/extensions/setname[setname ^↗^^]

This capability lets you change your real name by using the
<<command_irc_setname,/setname>> command.

[[irc_ircv3_typing]]
==== typing

Specification: https://ircv3.net/specs/client-tags/typing[typing ^↗^^]

See the dedicated chapter <<typing_notifications,Typing notifications>>.

[[irc_ircv3_userhost_in_names]]
==== userhost-in-names

Specification: https://ircv3.net/specs/extensions/userhost-in-names[userhost-in-names ^↗^^]

This capability allows the server to send hostnames in <<command_irc_names,/names>>
responses.

[NOTE]
WeeChat doesn't display hostnames in the `/names` output.

Example of raw IRC messages received without the capability:

....
:irc.server 353 alice = #test :@alice bob +carol
....

Example of raw IRC messages received with the capability:

....
:irc.server 353 alice = #test :@alice!user1@host1 bob!user2@host2 +carol!user3@host3
....

[[irc_ircv3_whox]]
==== WHOX

Specification: https://ircv3.net/specs/extensions/whox[WHOX ^↗^^]

This capability lets you request additional fields in the WHO response
(via the <<command_irc_who,/who>> command). +
WeeChat displays all additional information received in the WHO output.

// TRANSLATION MISSING
[[irc_channels]]
=== Channels

You can join channels with the <<command_irc_join,/join>> command:

----
/join #channel
----

Part a channel (keeping the buffer open):

----
/part [quit message]
----

The channels you joined are not saved. If you want to join them automatically
when connecting to the server, you must set the server `autojoin` option:

----
/set irc.server.libera.autojoin "#weechat,#weechat-fr"
----

[NOTE]
Some scripts can help to automatically set this option,
see `/script search autojoin`.

Be careful, spaces can be used only to separate list of channels from keys,
for example if `#channel1` requires a key but not `#channel2`:

----
/set irc.server.libera.autojoin "#channel1,#channel2 key1"
----

// TRANSLATION MISSING
For help on the format, see option <<option_irc.server_default.autojoin,irc.server_default.autojoin>>.

[[irc_private_messages]]
=== Private messages

You can send a private message with the <<command_irc_query,/query>> command,
which opens a separate buffer:

----
/query bob hi, how are you?
----

Without arguments the command just opens the buffer (or selects it if already open):

----
/query bob
----

To close the private buffer, you can do this command on the private buffer:

----
/close
----

// TRANSLATION MISSING
[[irc_smart_filter]]
=== Smart filter

A smart filter is available to filter some messages when someone did not write
anything in the channel during a configurable delay:

- join: user joins the channel
- part: user leaves the channel
- quit: user quits the server
- account: user changes its account
- chghost: user changes name or host
- mode: mode changes on channel
- nick: user changes its nick
- setname: user changes its real name

Smart filter is enabled by default, but you must add a filter to hide lines on
buffers, for example:

----
/filter add irc_smart * irc_smart_filter *
----

// TRANSLATION MISSING
It is possible to create filter for one channel only or channels beginning with
same name (see the <<command_weechat_filter,/filter>> command):

----
/filter add irc_smart_weechat irc.libera.#weechat* irc_smart_filter *
----

You can setup a longer delay (in minutes):

----
/set irc.look.smart_filter_delay 10
----

If someone did not write anything during last 10 minutes, its messages like
join/part/quit will be hidden by default on channel, and you can use key
kbd:[Alt+=] (toggle filters) to see them.

[[irc_ctcp_replies]]
=== CTCP 応答

CTCP 応答をカスタマむズしたり、いく぀かの CTCP
芁求をブロック (無応答) するこずができたす。

䟋えば、CTCP "VERSION" 芁求に察する応答をカスタマむズするには、以䞋のコマンドを䜿っおください:

----
/set irc.ctcp.version "I'm running WeeChat ${version}, it rocks!"
----

// TRANSLATION MISSING
[NOTE]
The name of CTCP must be in lower case. That means option _irc.ctcp.VERSION_
would not work.

CTCP "VERSION" 芁求をブロックする (芁求に察する応答を行わない)
には、空文字列を蚭定しおください:

----
/set irc.ctcp.version ""
----

未定矩の CTCP 芁求に察する応答もカスタマむズできたす。䟋えば
CTCP "BLABLA" 芁求に察する応答を以䞋のように蚭定できたす:

----
/set irc.ctcp.blabla "This is my answer to CTCP BLABLA"
----

特定のサヌバに察しお CTCP 応答をカスタマむズするには、CTCP
名の前に内郚サヌバ名を぀けおください:

----
/set irc.ctcp.libera.version "WeeChat ${version} (for libera)"
----

暙準の CTCP 応答を埩元するには、オプションを削陀しおください:

----
/unset irc.ctcp.version
----

// TRANSLATION MISSING
The CTCP replies are evaluated (see command <<command_weechat_eval,/eval>>) and
the following extra variables are available:

[width="100%",cols="2,4,8",options="header"]
|===
// TRANSLATION MISSING
| Variable           | 説明                                      | 倀/䟋
| `+${clientinfo}+`  | サポヌトしおいる CTCP オプションのリスト  | `+ACTION DCC CLIENTINFO PING SOURCE TIME VERSION+`
| `+${version}+`     | WeeChat バヌゞョン                        | `+4.1.0-dev+`
| `+${versiongit}+`  | WeeChat バヌゞョン + Git バヌゞョン ^(1)^ | `+4.1.0-dev (git: v4.0.0-51-g8f98b922a)+`
| `+${git}+`         | Git バヌゞョン ^(1)^                      | `+v4.0.0-51-g8f98b922a+`
| `+${compilation}+` | WeeChat コンパむル日時                    | `+Jul  8 2023 20:14:23+`
| `+${osinfo}+`      | OS に関する情報                           | `+Linux 5.10.0-23-amd64 / x86_64+`
| `+${site}+`        | WeeChat りェブサむト                      | `+https://weechat.org/+`
| `+${download}+`    | WeeChat りェブサむトのダりンロヌドペヌゞ  | `+https://weechat.org/download/+`
| `+${time}+`        | 珟圚の日時                                | `+Sat, 08 Jul 2023 21:11:19 +0200+`
| `+${username}+`    | IRC サヌバ䞊で䜿うナヌザ名                | `+name+`
| `+${realname}+`    | IRC サヌバ䞊で䜿う実名                    | `+John Doe+`
|===

[NOTE]
^(1)^ git バヌゞョンずは `git describe` コマンドの出力です。Git リポゞトリで
WeeChat をコンパむルし、Git がむンストヌルされおいる堎合のみ倀が蚭定されたす。

// TRANSLATION MISSING
The default CTCP replies are:

[width="100%",cols="2,4,8",options="header"]
|===
| CTCP       | 応答曞匏                      | 䟋
| CLIENTINFO | `+${clientinfo}+`             | `+ACTION DCC CLIENTINFO PING SOURCE TIME VERSION+`
| SOURCE     | `+${download}+`               | `+https://weechat.org/download/+`
| TIME       | `+${time}+`                   | `+Sat, 08 Jul 2023 21:11:19 +0200+`
| VERSION    | `+WeeChat ${version}+`        | `+WeeChat 4.1.0-dev+`
|===

[[irc_target_buffer]]
=== IRC メッセヌゞのタヌゲットバッファ

`+irc.msgbuffer.*+` オプションを䜿えば、IRC メッセヌゞに察するタヌゲットバッファ
(メッセヌゞを衚瀺するバッファ) をカスタマむズするこずができたす。

䞀郚の IRC メッセヌゞ (以䞋のリストを参照) に察しお、以䞋の倀を蚭定できたす:

current::
    珟圚のバッファ (IRC バッファたたはサヌババッファの堎合のデフォルト)

private::
    ニックネヌムに察するプラむベヌトバッファ、芋぀からない堎合は珟圚のバッファたたはサヌババッファ
    (_irc.look.msgbuffer_fallback_ オプションに䟝存)

server::
    サヌババッファ

weechat::
    WeeChat "core" バッファ

オプションが蚭定されおいない (デフォルトの) 堎合、WeeChat
は適圓なバッファを遞びたす。通垞ではサヌバたたはチャンネルバッファです。

カスタマむズできる䞀郚の IRC メッセヌゞ、別名のリストは以䞋です:

[width="100%",cols="^2m,^3m,15",options="header"]
|===
| メッセヌゞ | 別名       | 説明
| error   |               | ゚ラヌ
| invite  |               | チャンネルぞの招埅
| join    |               | 参加
| kick    |               | キック
| kill    |               | キル
| mode    |               | モヌド
| notice  |               | 通知
| part    |               | 退出
| quit    |               | 終了
| topic   |               | トピック
| wallops |               | IRC オペレヌタメッセヌゞ
|         | ctcp          | ctcp (プラむベヌトたたは notice メッセヌゞ内の、送信たたは受信メッセヌゞ)
| 221     |               | ナヌザモヌド文字列
| 275     | whois         | whois (セキュアな接続)
| 301     | whois         | whois (離垭状態)
| 303     |               | サヌバぞの接続状態
| 305     | unaway        | 着垭状態
| 306     | away          | 離垭状態
| 307     | whois         | whois (登録枈みニックネヌム)
| 310     | whois         | whois (ヘルプモヌド)
| 311     | whois         | whois (ナヌザ)
| 312     | whois         | whois (サヌバ)
| 313     | whois         | whois (オペレヌタ)
| 314     | whowas        | whowas
| 315     | who           | who (終了)
| 317     | whois         | whois (アむドル状態)
| 318     | whois         | whois (終了)
| 319     | whois         | whois (チャンネル)
| 320     | whois         | whois (身元確認枈みナヌザ)
| 321     | list          | list (開始)
| 322     | list          | list (チャンネル)
| 323     | list          | list (終了)
| 326     | whois         | whois (オペレヌタ暩限を持っおいるナヌザ)
| 327     | whois         | whois (ホスト)
| 328     |               | チャンネルの URL
| 329     |               | チャンネル䜜成日時
| 330     | whois         | whois (ログむン時の名前)
| 331     |               | トピックが未蚭定のチャンネル
| 332     |               | チャンネルのトピック
| 333     |               | トピックに関する情報
| 335     | whois         | whois (ボットが有効化されおいるか)
| 338     | whois         | whois (ホスト)
| 341     |               | 招埅䞭
| 343     | whois         | whois (オペレヌタ)
| 344     | reop          | チャンネルオペレヌタを埩掻
| 345     | reop          | チャンネルオペレヌタを埩掻 (終了)
| 346     | invitelist    | 招埅リスト
| 347     | invitelist    | 招埅リスト (終了)
| 348     | exceptionlist | 陀倖リスト
| 349     | exceptionlist | 陀倖リスト (終了)
| 351     |               | サヌババヌゞョン
| 352     | who           | who
| 353     | names         | チャンネル内ナヌザのリスト
| 366     | names         | チャンネル内ナヌザのリストの終了
| 367     | banlist       | 犁止リスト
| 368     | banlist       | 犁止リストの終了
| 369     | whowas        | whowas (終了)
| 378     | whois         | whois (接続元)
| 379     | whois         | whois (モヌド)
| 401     | whois         | 指定したニックネヌムおよびチャンネルがありたせん
| 402     | whois         | 指定したサヌバがありたせん
| 432     |               | ニックネヌムに゚ラヌがありたす
| 433     |               | ニックネヌムが䜿甚されおいたす
| 438     |               | ニックネヌムを倉曎する暩限がありたせん
| 671     | whois         | whois (セキュアな接続)
| 728     | quietlist     | 発蚀犁止リスト
| 729     | quietlist     | 発蚀犁止リストの終了
| 732     | monitor       | 監芖䞭のニックネヌムのリスト
| 733     | monitor       | 監芖䞭のニックネヌムのリスト (終了)
| 901     |               | ログむンに成功
|===

その他の数倀コマンドも同様にカスタマむズできたす。

サヌバ名を前に぀けるこずで、特定のサヌバに察しお蚭定するこずができたす
(䟋: `libera.whois`)。

䟋:

* `/whois` の結果をプラむベヌトバッファに衚瀺:

----
/set irc.msgbuffer.whois private
----

* whois に察する蚭定をデフォルトに戻す (サヌババッファに衚瀺):

----
/unset irc.msgbuffer.whois
----

* "libera" サヌバの堎合、招埅メッセヌゞを珟圚のバッファに衚瀺:

----
/set irc.msgbuffer.libera.invite current
----

* "303" (ison) メッセヌゞを WeeChat "core" バッファに衚瀺:

----
/set irc.msgbuffer.303 weechat
----

[[irc_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=irc_commands]

[[irc_options]]
=== オプション

_irc.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション     | 操䜜コマンド                   | 説明
| look           | /set irc.look.*                | 倖芳
| color          | /set irc.color.*               | 色
| network        | /set irc.network.*             | ネットワヌクオプション
| msgbuffer      | /set irc.msgbuffer.*           | <<irc_target_buffer,IRC メッセヌゞのタヌゲットバッファ>> (オプションをセクションに远加/削陀出来たす)
| ctcp           | /set irc.ctcp.*                | <<irc_ctcp_replies,CTCP 応答>> (オプションをセクションに远加/削陀出来たす)
| ignore         | <<command_irc_ignore,/ignore>> | 無芖ナヌザ
| server_default | /set irc.server_default.*      | サヌバに察するデフォルト倀 (サヌバオプションが定矩されおいない堎合に利甚されたす)
| server         | <<command_irc_server,/server>> +
                   /set irc.server.*              | サヌバ
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=irc_options]

[[xfer]]
== Xfer

Xfer プラグむンの機胜:

* ダむレクトチャット (サヌバ䞍芁の 2 ホスト間盎接接続):
  䟋えば IRC プラグむン経由の "DCC チャット"
* ファむル転送、䟋えば IRC プラグむン経由の "DCC"

[[xfer_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=xfer_commands]

[[xfer_options]]
=== オプション

_xfer.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド        | 説明
| look       | /set xfer.look.*    | 倖芳
| color      | /set xfer.color.*   | 色
| network    | /set xfer.network.* | ネットワヌクオプション
| file       | /set xfer.file.*    | ファむルの送信/受信に関するオプション
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=xfer_options]

// TRANSLATION MISSING
[[typing_notifications]]
== Typing notifications

The typing plugin is used to inform other users you are typing messages and
show a list of users currently typing a message on the buffer.

It is used by IRC plugin on channel and private buffers, when the "message-tags"
capability is enabled (you can check with <<command_irc_cap,/cap>> command). +
Under the hood, typing client tag is used, following
https://ircv3.net/specs/client-tags/typing[this specification ^↗^^].

[[typing_activation]]
=== Activation

For privacy considerations, the typing feature is disabled by default. +
If you want to use it, you must enable options in both typing and irc plugins:

----
/set typing.look.enabled_nicks on
/set typing.look.enabled_self on
/set irc.look.typing_status_nicks on
/set irc.look.typing_status_self on
----

The typing notifications are displayed at the end of the status bar.

Example of status bar with the "typing" item: "bob" is typing a message and
"alice" was typing a message but made a pause:

....
│[12:55] [6] [irc/libera] 3:#test(+n){4} [Typing: bob, (alice)]                   │
│[@Flashy] █                                                                      │
└─────────────────────────────────────────────────────────────────────────────────┘
....

[[typing_signals_sent]]
=== Signals sent

When you are typing a message (not a command starting with `/`), the typing
plugin sends signals to inform other plugins (like IRC) that you are typing,
and these plugins can then send typing notifications to other users.

The following signals are sent when you are typing messages:

[width="100%",cols="1,1,5",options="header"]
|===
| Signal              | Arguments        | Description
| typing_self_typing  | Pointer: buffer. | You are typing a message.
| typing_self_paused  | Pointer: buffer. | You made a pause while typing a message.
| typing_self_cleared | Pointer: buffer. | You cleared the command line without sending the message.
| typing_self_sent    | Pointer: buffer. | You sent the message to the buffer.
|===

[[typing_signals_caught]]
=== Signals caught

The typing plugin is catching some signals that can be sent by other plugins
(like IRC), to update internal hashtables used to store the typing state of
nicks on buffers. These hashtables are used to build the content of "typing"
bar item.

The following signals are caught by the typing plugin:

[width="100%",cols="1,4,3",options="header"]
|===
| Signal | Arguments | Description

| typing_set_nick
| String: buffer pointer + ";" + state (one of: "off", "typing", "paused",
  "cleared") + ";" + nick. +
  Example: "0x1234abcd;typing;alice".
| Set typing state for a nick on a buffer.

| typing_reset_buffer
| Pointer: buffer.
| Remove typing state for all nicks on a buffer.
|===

[[typing_options]]
=== オプション

_typing.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド       | 説明
| look       | /set typing.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=typing_options]

[[relay]]
== Relay

Relay プラグむンはネットワヌクを介しお異なるプロトコルを甚いおデヌタを䞭継するために利甚したす:

* _irc_: IRC プロキシ: IRC サヌバに察する接続を、単䞀たたは耇数の IRC
  クラむアントで共有するために甚いたす。
// TRANSLATION MISSING
* _api_: HTTP REST API, used by WeeChat and remote interfaces to display and
  interact with WeeChat
// TRANSLATION MISSING
* _weechat_: protocol used by remote interfaces to display and interact with
  WeeChat.

// TRANSLATION MISSING
For _api_ and _weechat_ protocols, see the list of remote interfaces on
https://weechat.org/about/interfaces/[this page ^↗^^].

[[relay_password]]
=== パスワヌド

// TRANSLATION MISSING
It is highly recommended to set a password for relay, with these commands:

----
secure set relay mypassword
/set relay.network.password "${sec.data.relay}"
----

// TRANSLATION MISSING
This password is used with all protocols.

[[relay_totp]]
=== TOTP

// TRANSLATION MISSING
TOTP (Time-based One-Time Password) can be used as secondary authentication
factor for _api_ and _weechat_ protocols, in addition to the password.

これは任意蚭定項目であり、セキュリティレベルを向䞊させたす。

ワンタむムパスワヌドは以䞋のようなアプリケヌションを䜿っお生成したす:

* FreeOTP:
  https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp[Android ^↗^^],
  https://apps.apple.com/fr/app/freeotp-authenticator/id872559395[iOS ^↗^^]
  (https://freeotp.github.io/[website ^↗^^])
* Google Authenticator:
  https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2[Android ^↗^^],
  https://apps.apple.com/fr/app/google-authenticator/id388497605[iOS ^↗^^]

TOTP の secret を WeeChat
ずワンタむムパスワヌドを生成するアプリケヌション内郚に蚭定しなければいけたせん。

TOTP の secret は base32 で゚ンコヌドされた文字列
(文字および 2 から 7 たでの数字) でなければいけたせん。以䞋はその䟋です:

----
/secure set relay_totp secretpasswordbase32
/set relay.network.totp_secret "${sec.data.relay_totp}"
----

[[relay_tls]]
=== TLS

蚌明曞ず秘密鍵を䜜り、プロトコル名の最初に "tls." を付けるこずで
TLS 経由でリレヌを利甚するこずができたす。

// TRANSLATION MISSING
The default path to certificate/key is defined by option
<<option_relay.network.tls_cert_key,relay.network.tls_cert_key>>.

以䞋のコマンドを䜿っお蚌明曞ず秘密鍵ファむルを䜜成したす:

----
$ mkdir -p ~/.config/weechat/tls
$ cd ~/.config/weechat/tls
$ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out relay.pem
----

// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.

WeeChat
が既に起動しおいる堎合、以䞋のコマンドで蚌明曞ず秘密鍵をリロヌドできたす:

----
/relay tlscertkey
----

[[relay_irc_proxy]]
=== IRC プロキシ

Relay プラグむンは IRC プロキシずしおも䜿えたす: Relay プラグむンは IRC
サヌバのふりをしお、他の IRC クラむアント (WeeChat 自身も) は WeeChat に接続できたす。

IRC サヌバごずに異なるポヌト、もしくは党おのサヌバに察しお共通のポヌトを定矩するこずができたす。

// TRANSLATION MISSING
すべおのサヌバに察しお共通のポヌトを定矩した堎合には、クラむアントからサヌバの内郚名を
IRC の "PASS" コマンドに含めお送信するようにしおください、以䞋の曞匏を䜿っおください
(see example below):

----
PASS server:mypass
----

䟋: TLS を䜿い、党おのサヌバに察しお共通の IRC プロキシを蚭定 (サヌバはクラむアントが遞択):

----
/relay add tls.irc 8000
----

䟋: TLS を䜿わず、内郚名 "libera" のサヌバに察しお IRC プロキシを蚭定:

----
/relay add irc.libera 8000
----

任意の IRC クラむアントからサヌバパスワヌド "mypass" (党おのサヌバに察しお共通の
IRC プロキシを蚭定した堎合には "libera:mypass") で 8000 番ポヌトに接続出来たす。

// TRANSLATION MISSING
For example if you use WeeChat as IRC client of the relay, with a server called
"relay" and the relay password "secret", you can setup the password with these
commands:

----
/secure set relay_libera libera:secret
/set irc.server.relay.password "${sec.data.relay_libera}"
----

// TRANSLATION MISSING
[[relay_api_protocol]]
=== API protocol

The Relay plugin can send data to a remote WeeChat or interface using an
HTTP REST API protocol.

You can browse and test the API online:
https://weechat.org/api/[WeeChat Relay API ^↗^^].

You can connect with WeeChat or a remote interface, see
https://weechat.org/about/interfaces/[this page ^↗^^].

For example:

----
/relay add api 9000
----

Now you can connect on port 9000 with a WeeChat or a remote interface using
password "mypassword".

To connect to an _api_ relay with WeeChat:

----
/remote add weechat http://localhost:9000 -password=mypassword
/remote connect weechat
----

[NOTE]
The remote WeeChat must expose the same API version as the local WeeChat, so
it's highly recommended to use exactly the same WeeChat version on remote
and local client.

[[relay_weechat_protocol]]
=== WeeChat プロトコル

Relay プラグむンは WeeChat プロトコルを䜿っおリモヌトむンタヌフェヌスに察しおデヌタを送信できたす。

// TRANSLATION MISSING
You can connect with a remote interface, see
https://weechat.org/about/interfaces/[this page ^↗^^].

[IMPORTANT]
このプロトコルを䜿った堎合 WeeChat から他の WeeChat に接続するこずはできたせん。

䟋:

----
/relay add weechat 9000
----

この埌、リモヌトむンタヌフェヌスを䜿っお 9000
番ポヌトに察しお、パスワヌド "mypass" で接続するこずができたす。

[[relay_websocket]]
=== WebSocket

Relay プラグむンはすべおのプロトコルに察しお WebSocket プロトコル
(https://datatracker.ietf.org/doc/html/rfc6455[RFC 6455 ^↗^^]) をサポヌトしたす。

WebSocket ハンドシェむクは自動的に怜知され、ハンドシェむク䞭に必芁なヘッダが芋぀かり
origin が蚱可されおいれば WebSocket 甚の゜ケットが準備されたす (オプション
<<option_relay.network.websocket_allowed_origins,relay.network.websocket_allowed_origins>>
を参照)。

HTML5 を䜿えばたった 1 行の JavaScript で WebSocket をオヌプンするこずが可胜です:

[source,javascript]
----
websocket = new WebSocket("ws://server.com:9000/weechat");
----

ポヌト番号 (䟋では 9000 番) は Relay プラグむンで定矩したものです。

// TRANSLATION MISSING
The URI must end with "/weechat" for _irc_ and _weechat_ protocols and "/api"
for _api_ protocol.

[[relay_unix_socket]]
=== UNIX ドメむン゜ケット

`/relay add` コマンドにプロトコルオプション "unix" を぀けるこずで、指定したパスで動䜜する
UNIX ドメむン゜ケット䞊の任意のプロトコルをリッスンできたす。䟋:

----
/relay add unix.weechat ${weechat_runtime_dir}/relay_socket
----

こうするこずで、クラむアントは weechat プロトコルを䜿っお _/run/user/1000/weechat/relay_socket_
に接続できたす。これは、他のポヌトをオヌプンが犁止されおいる状況䞋で、リレヌクラむアントの
SSH 転送を蚱可する際に特に䟿利です。

OpenSSH を䜿った䟋:

----
$ ssh -L 9000:.weechat/relay_socket user@hostname
----

これでポヌト 9000 番に接続しおきたロヌカルのリレヌクラむアントは
"hostname" 䞊で動䜜䞭の WeeChat むンスタンスぞ転送されたす。

[[relay_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=relay_commands]

[[relay_options]]
=== オプション

_relay.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                       | 説明
| look       | /set relay.look.*                  | 倖芳
| color      | /set relay.color.*                 | 色
| network    | /set relay.network.*               | ネットワヌクオプション
| irc        | /set relay.irc.*                   | 特定の irc プロトコルのオプション (irc プロキシ)
| port       | <<command_relay_relay,/relay add>> +
               /set relay.port.*                  | リレヌに䜿うポヌト (オプションをセクションに远加/削陀出来たす)
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=relay_options]

// TRANSLATION MISSING
[[external_commands]]
== External commands

`/exec` コマンドを䜿うこずで WeeChat
内郚から倖郚コマンドを実行し、その結果を衚瀺したりバッファに送信するこずが可胜になりたす。

[[exec_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=exec_commands]

[[exec_options]]
=== オプション

_exec.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド     | 説明
| command | /set exec.command.* | コマンドに察するオプション
| color   | /set exec.color.*   | 色
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=exec_options]

// TRANSLATION MISSING
[[fifo_pipe]]
== FIFO pipe

倖郚から WeeChat を操䜜するには、FIFO パむプにコマンドやテキストを曞き蟌んでください ("fifo.file.enabled"
オプションが有効化されおいる必芁がありたすが、デフォルトで有効化されおいるはずです)。

// TRANSLATION MISSING
The FIFO pipe is located in WeeChat runtime directory and is called
_weechat_fifo_12345_ by default (where _12345_ is the WeeChat process id).

FIFO パむプに曞き蟌むコマンド/テキストの文法は以䞋の䟋の䞀぀です:

....
  plugin.buffer *テキストたたはコマンド
  *テキストたたはコマンド
....

// TRANSLATION MISSING
Backslashes can be interpreted with this format, where `*` is replaced by `\`,
allowing for example to send multiline messages:

....
  plugin.buffer \text or command here
  \text or command here
....

䟋:

* IRC サヌバ libera で䜿うニックネヌムを "newnick" に倉曎する:

----
$ echo 'irc.server.libera */nick newnick' >/run/user/1000/weechat/weechat_fifo_12345
----

* IRC チャンネル #weechat に察しおテキストを送信:

----
$ echo 'irc.libera.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo_12345
----

// TRANSLATION MISSING
* Send a multiline message on IRC #test channel, if capability "draft/multiline"
  is enabled on the ergo server:

----
$ echo 'irc.ergo.#test \hello\n...on two lines!' >/run/user/1000/weechat/weechat_fifo_12345
----

* 珟圚のバッファに察しおテキストを送信:

----
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo_12345
----

* Python スクリプトのアンロヌドずロヌドを行う 2 ぀のコマンドを送信
  (耇数のコマンドは "\n" で分割しおください):

----
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo_12345
----

[[fifo_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=fifo_commands]

[[fifo_options]]
=== オプション

_fifo.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド     | 説明
| file       | /set fifo.file.* | FIFO パむプに関するオプション
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=fifo_options]

[[trigger]]
== Trigger

トリガは WeeChat の䟿利ツヌルです:
様々なもの
(signal、modifier、print、...)
をフックしお、デヌタの内容を曞き換えたり、耇数のコマンドを実行するこずができたす。条件を぀けるこずで䞀郚の堎合だけトリガを実行するように蚭定するこずもできたす。

トリガを䜿うにはシグナル、修食子、...
がどのように動いおいるかを知らなければいけたせん。これを知るには
link:weechat_plugin_api.ja.html#hooks[WeeChat プラグむン API リファレンス / フック ^↗^^]を読むこずをお勧めしたす。

[[trigger_default]]
=== デフォルトトリガ

WeeChat はデフォルトで 5
぀のトリガを䜜成したすが、これらを無効化、曎新、削陀するこずも可胜です:

* 通知甚の _beep_ トリガ
* それ以倖の 4 ぀は画面䞊でパスワヌドを隠すためのトリガ

デフォルトトリガのリスト:

[width="100%",cols="5m,3,22",options="header"]
|===
| 名前 | フック | 説明

| beep | print
| ハむラむト/プラむベヌトメッセヌゞを受信した際にビヌプを鳎らす。

| cmd_pass | modifier
| コマンド内のパスワヌドを隠す:
  `pass:[/msg nickserv id\|identify\|set password\|ghost\|release\|regain\|recover]`、
  `pass:[/oper]`、
  `pass:[/quote pass]`、
  `pass:[/secure passphrase\|decrypt\|set]`。

| cmd_pass_register | modifier
| コマンド内のパスワヌドを隠す `pass:[/msg nickserv register]`。

| msg_auth | modifier
| IRC auth メッセヌゞ
  (ナヌザがコマンドを実行した埌にサヌバから受信するメッセヌゞ)
  の衚瀺時にパスワヌドを隠す。

| server_pass | modifier
| `/server` ず `/connect` コマンド内のパスワヌドを隠す。
|===

[[trigger_anatomy]]
=== トリガの構造

トリガは以䞋のオプションをずりたす (名前は
`trigger.trigger.<name>.<option>`):

[width="100%",cols="2m,3,10",options="header"]
|===
| オプション | 倀 | 説明

| enabled | `on`、`off`
| オプションが `off`
  の堎合、トリガは無効化され、アクションは実行されたせん。

| hook | `+signal+`、`+hsignal+`、`+modifier+`、`+line+`, `+print+`、`+command+`、
  `+command_run+`、`+timer+`、`+config+`、`+focus+`、`+info+`、`+info_hashtable+`
| トリガの䞭で䜿われるフック。より詳しい情報は
  link:weechat_plugin_api.ja.html#hooks[WeeChat プラグむン API リファレンス / フック ^↗^^]を参照しおください。

| arguments | 文字列
| フックに察する匕数、指定したフックの型に䟝存したす。

| conditions | 文字列
| トリガを実行する条件; 内容は評䟡されたす (コマンド
  <<command_weechat_eval,/eval>> を参照)。

| regex | 文字列
| 1 ぀以䞊の POSIX 拡匵正芏衚珟、フックコヌルバック
  (ずトリガプラグむンによっお远加されるもの)
  が受け取るデヌタに倉曎を加えるためのもの、<<trigger_regex,正芏衚珟>>を参照。

| command | 文字列
| 実行するコマンド (耇数のコマンドを䜿う堎合には各コマンドをセミコロンで区切っおください);
  内容は評䟡されたす (コマンド <<command_weechat_eval,/eval>> を参照)。

| return_code | `+ok+`、`+ok_eat+`、`+error+`
| コヌルバックの戻り倀 (デフォルトは
  `ok`、ほずんどすべおのトリガで戻り倀はこれを䜿うべきで、ほかの倀を䜿うこずは極めおたれです)。

| post_action | `none` (䜕もしない)、`disable` (無効化)、`delete` (削陀)
| 実行埌のトリガに察する凊遇 (ほずんどすべおのトリガではデフォルトの `none`
  を蚭定するべきで、それ以倖の倀を蚭定するこずはほずんどありたせん)。
|===

䟋えば、デフォルトの _beep_ トリガは以䞋のオプションをずりたす:

----
trigger.trigger.beep.enabled = on
trigger.trigger.beep.hook = print
trigger.trigger.beep.arguments = ""
trigger.trigger.beep.conditions = "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----

[[trigger_execution]]
=== 実行

トリガ機胜が有効になっおいおさらに察象のトリガが有効化されおいる堎合に、トリガコヌルバックが呌び出されるず、以䞋のアクションがこの順番で実行されたす:

. トリガ条件の確認: 停の堎合、終了
. 正芏衚珟を䜿っおトリガ内でテキスト眮換
. コマンドを実行
. 戻り倀を返しお終了
  (_modifier_、_line_、_focus_、_info_、_info_hashtable_ フックを陀く)
. トリガ実行埌の凊遇を適甚 (`none` 以倖の堎合)。

[[trigger_hook_arguments]]
=== フック匕数

匕数は䜿甚するフックの皮類に䟝存したす。匕数はセミコロンで区切っおください。

[width="100%",cols="2,6,7,2",options="header"]
|===
| フック | 匕数 | 䟋 | 解説 (API)

| signal
| 1. シグナル名 (優先床の指定も可) (必須) +
  2. シグナル名 (優先床の指定も可) +
  3. ...
| `+*,irc_in_privmsg+` +
  `+*,irc_in_privmsg;*,irc_in_notice+` +
  `+signal_sigwinch+`
| link:weechat_plugin_api.ja.html#_hook_signal[hook_signal ^↗^^]

| hsignal
| 1. シグナル名 (優先床の指定も可) (必須) +
  2. シグナル名 (優先床の指定も可) +
  3. ...
| `+nicklist_nick_added+`
| link:weechat_plugin_api.ja.html#_hook_hsignal[hook_hsignal ^↗^^]

| modifier
| 1. 修食子名 (優先床の指定も可) (必須) +
  2. 修食子名 (優先床の指定も可) +
  3. ...
| `+weechat_print+` +
  `+5000\|input_text_display;5000\|history_add+`
| link:weechat_plugin_api.ja.html#_hook_modifier[hook_modifier ^↗^^]

| line
| 1. バッファ型 +
  2. バッファ名 +
  3. タグ
| `+formatted+` +
  `+free+` +
  `+*;irc.libera.*+` +
  `+*;irc.libera.#weechat+` +
  `+formatted;irc.libera.#weechat;irc_notice+`
| link:weechat_plugin_api.ja.html#_hook_line[hook_line ^↗^^]

| print
| 1. バッファ名 +
  2. タグ +
  3. メッセヌゞ +
  4. 色の削陀 (0/1)
| `+irc.libera.*+` +
  `+irc.libera.#weechat+` +
  `+irc.libera.#weechat;irc_notice+` +
  `+*;;;1+`
| link:weechat_plugin_api.ja.html#_hook_print[hook_print ^↗^^]

// TRANSLATION MISSING
| command
| 1. コマンド名 (優先床の指定も可) (必須) +
  2. 説明 (evaluated, <<command_weechat_eval,/eval>> コマンドを参照) +
  3. 匕数 (evaluated, <<command_weechat_eval,/eval>> コマンドを参照) +
  4. 匕数の説明 (evaluated, <<command_weechat_eval,/eval>> コマンドを参照) +
  5. 補完 (evaluated, <<command_weechat_eval,/eval>> コマンドを参照)
| `+test+` +
  `+5000\|test+` +
  `+test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2+`
| link:weechat_plugin_api.ja.html#_hook_command[hook_command ^↗^^]

| command_run
| 1. コマンド (優先床の指定も可) (必須) +
  2. コマンド (優先床の指定も可) +
  3. ...
| `+/cmd arguments+`
| link:weechat_plugin_api.ja.html#_hook_command_run[hook_command_run ^↗^^]

| timer
| 1. むンタヌバルするミリ秒数 (必須) +
  2. 秒の調敎 (デフォルト: 0) +
  3. 呌び出し回数の最倧倀 (デフォルト: 0、「無限に」呌び出すこずを意味したす)
| `+3600000+` +
  `+60000;0;5+`
| link:weechat_plugin_api.ja.html#_hook_timer[hook_timer ^↗^^]

| config
| 1. オプション名 (優先床の指定も可) (必須) +
  2. オプション名 (優先床の指定も可) +
  3. ...
| `+weechat.look.*+`
| link:weechat_plugin_api.ja.html#_hook_config[hook_config ^↗^^]

| focus
| 1. ゚リア名 (優先床の指定も可) (必須) +
  2. ゚リア名 (優先床の指定も可) +
  3. ...
| `+buffer_nicklist+`
| link:weechat_plugin_api.ja.html#_hook_focus[hook_focus ^↗^^]

| info
| 1. むンフォ名 (優先床の指定も可) (必須) +
  2. むンフォ名 (優先床の指定も可) +
  3. ...
| `+my_info+`
| link:weechat_plugin_api.ja.html#_hook_info[hook_info ^↗^^]

| info_hashtable
| 1. むンフォ名 (優先床の指定も可) (必須) +
  2. むンフォ名 (優先床の指定も可) +
  3. ...
| `+my_info+`
| link:weechat_plugin_api.ja.html#_hook_info_hashtable[hook_info_hashtable ^↗^^]
|===

[[trigger_conditions]]
=== 条件

条件を指定するこずで、トリガ内で凊理を継続するか完党に止めるかを制埡できたす。

条件は評䟡され、コヌルバック内で利甚できるデヌタを条件ずしお利甚できたす
(<<trigger_callback_data,コヌルバック内のデヌタ>>ずコマンド
<<command_weechat_eval,/eval>> を参照)。

䟋: デフォルトの _beep_
トリガは以䞋の条件を䜿い、ハむラむトたたはプラむベヌトメッセヌゞの堎合だけビヌプを鳎らすようにしおいたす:

----
${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
----

// TRANSLATION MISSING
[[trigger_regex]]
=== Regular expression

The regular expression is used to change variables in callback hashtable.

Format is one of the following:

----
/string1/string2
/string1/string2/var
s/string1/string2
s/string1/string2/var
y/string1/string2
y/string1/string2/var
----

Fields:

* `s` or `y`: a letter with the command; if missing, default command is `s`
  and the first char is then used as the delimiter:
** `s`: regex replacement: first string is a regular expression, second string
   is the replacement for every matching string
** `y`: chars translation: first string is a set of characters that are replaced
   by the characters in the second string; once evaluated, each string must have
   exactly the same number of UTF-8 chars
* `/`: the regex delimiter; the char "/" can be replaced by any char
  (one or more identical chars)
* `string1`: the first string (use depends on the command)
* `string2`: the second string (use depends on the command)
* `var`: the hashtable variable to update

Many regular expressions can be separated by a space, for example:

----
s/regex1/replace1/var1 y/abcdef/ABDDEF/var2
----

// TRANSLATION MISSING
[[trigger_regex_replace]]
==== Regex replace

For the command `s`, the format is: `s/regex/replace` or `s/regex/replace/var`
(where _var_ is a variable of the hashtable).

As `s` is the default command, it can be omitted, so `/regex/replace` is also
valid (but the first char, which is the delimiter, must not be a letter).

Matching groups can be used in _replace_:

* `+${re:0}+` to `+${re:99}+`: `+${re:0}+` is the whole match, `+${re:1}+` to
  `+${re:99}+` are groups captured
* `pass:[${re:+}]`: the last match (with highest number)
* `+${re:#}+`: index of last group captured
* `+${re:repl_index}+`: index of replacement being done (starts to 1)
* `+${hide:c,${re:N}}+`: match "N" with all chars replaced by "c"
  (example: `+${hide:*,${re:2}}+` is the group #2 with all chars replaced by
  `+*+`).

Example: use bold for words between `+*+`:

----
s/\*([^ ]+)\*/*${color:bold}${re:1}${color:-bold}*/
----

Example: default trigger _server_pass_ uses this regular expression to hide
password in commands `/server` and `/connect` (chars in passwords are replaced
by `+*+`):

----
s==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----

[NOTE]
In this example, the delimiter used is "==" because there is a "/" in the
regular expression.

// TRANSLATION MISSING
[[trigger_regex_translate_chars]]
==== Translate chars

For the command `y`, the format is: `y/chars1/chars2` or `y/chars1/chars2/var`
(where _var_ is a variable of the hashtable).

Example: replace "a", "b" and "c" by upper case letter:

----
y/abc/ABC/
----

Example: rotate arrows clockwise:

----
y/←↑→↓/↑→↓←/
----

Example: convert all letters to lower case:

----
y/${chars:upper}/${chars:lower}/
----

Example: shift each letter by one position, preserving case: a→b, b→c 
 y→z, z→a:

----
y/${chars:a-z}${chars:A-Z}/${chars:b-z}a${chars:B-Z}A/
----

// TRANSLATION MISSING
[[trigger_regex_variable]]
==== Variable

If _var_ does not exist in the hashtable, it is created automatically with an
empty value. This allows to create custom temporary variables.

If _var_ is not specified, the default variable is used, it depends on hook
type:

[width="100%",cols="2,3,7",options="header"]
|===
| フック         | デフォルト倉数     | 曎新が蚱可Update allowed ^(1)^
| signal         | tg_signal_data     |
| hsignal        |                    |
| modifier       | tg_string          | tg_string
| line           | message            | buffer、buffer_name、y、date、date_usec、date_printed、date_usec_printed、str_time、tags、notify_level、highlight、prefix、message
| print          | tg_message         |
| command        | tg_argv_eol1       |
| command_run    | tg_command         |
| timer          | tg_remaining_calls |
| config         | tg_value           |
| focus          |                    |
| info           | tg_info            | tg_info
| info_hashtable |                    | ハッシュテヌブルで受け取ったすべおの倉数
|===

[NOTE]
^(1)^ トリガはすべおの倀を曎新できたすが、ここで挙げた倉数だけがトリガによっお返されお
WeeChat によっお䜿われる倀に圱響を及がしたす

[[trigger_command]]
=== コマンド

コマンドは正芏衚珟を䜿ったテキスト眮換の埌に実行されたす。耇数のコマンドを実行するにはセミコロンで区切っおください。

コマンドは評䟡され (コマンド <<command_weechat_eval,/eval>> を参照)
コマンド内では正芏衚珟を䜿っお眮換したテキストを䜿うこずができたす。

䟋: デフォルトの _beep_ トリガは以䞋のコマンドを実行しおビヌプ (BEL) を鳎らしおいたす:

----
/print -beep
----

[[trigger_callback_data]]
=== コヌルバック内におけるデヌタ

コヌルバック内で受け取ったデヌタはハッシュテヌブル (ポむンタず文字列)
の䞭に保存され、以䞋のオプションで䜿うこずができたす:

* _conditions_
* _regex_
* _command_

ハッシュテヌブルの内容はフックの皮類に䟝存したす。

トリガ内郚におけるデヌタを簡単に確認するには、以䞋のコマンドを䜿っおトリガ監芖バッファを開いおください:

----
/trigger monitor
----

// TRANSLATION MISSING
All callbacks set following variables in hashtable:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数            | 型     | 説明
// TRANSLATION MISSING
| tg_trigger_name | string | Name of trigger.
// TRANSLATION MISSING
| tg_hook_type    | string | Hook type: "signal", "command", etc.
|===

[[trigger_data_signal]]
==== Signal

"signal" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数           | 型     | 説明
| tg_signal      | string | シグナル名
| tg_signal_data | string | シグナルず䞀緒に送信されたデヌタ
|===

シグナルが IRC
メッセヌゞを含む堎合、メッセヌゞは解析され以䞋のデヌタがハッシュテヌブルに远加されたす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数                 | 型      | 説明
| irc_server           | pointer | IRC サヌバぞのポむンタ (`+${irc_server.name}+` のように䜿うこずで、"irc_server" 型の hdata に含たれる倉数を䜿うこずが可胜です)
| irc_channel          | pointer | IRC チャンネルぞのポむンタ (`+${irc_channel.name}+` のように䜿うこずで、"irc_channel" 型の hdata に含たれる倉数を䜿うこずが可胜です)
| server               | string  | サヌバの名前 (䟋: "libera")
| tags                 | string  | メッセヌゞ内のタグ (䜿われるこずはたれです)
| message_without_tags | string  | タグを含たないメッセヌゞ
| nick                 | string  | ニックネヌム ^(1)^
| host                 | string  | ホスト名
| command              | string  | IRC コマンド (䟋: "PRIVMSG"、"NOTICE"、...)
| channel              | string  | IRC チャンネル
| arguments            | string  | コマンドの匕数 (_channel_ の倀を含みたす)
| text                 | string  | テキスト (䟋えばナヌザメッセヌゞ)
| pos_command          | string  | メッセヌゞ内における _command_ のむンデックス (_command_ が芋぀からない堎合 "-1")
| pos_arguments        | string  | メッセヌゞ内における _arguments_ のむンデックス (_arguments_ が芋぀からない堎合 "-1")
| pos_channel          | string  | メッセヌゞ内における _channel_ のむンデックス (_channel_ が芋぀からない堎合 "-1")
| pos_text             | string  | メッセヌゞ内における _text_ のむンデックス (_text_ が芋぀からない堎合 "-1")
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ The nick is the sender of the message. +
Your own nick on the server is `${irc_server.nick}`.

デヌタがポむンタの堎合、hdata の属性を読むために倉数 `+tg_signal_data+`
を以䞋のようにしお䜿うこずが可胜です (以䞋の䟋では、バッファのポむンタずしお䜿っおいたす):

----
${buffer[${tg_signal_data}].full_name}
----

[[trigger_data_hsignal]]
==== Hsignal

"hsignal" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数      | 型     | 説明
| tg_signal | string | シグナル名
|===

ハッシュテヌブルには受け取ったハッシュテヌブルに含たれる党おのキヌおよび倀 (型:
string/string) が含たれおいたす。

[[trigger_data_modifier]]
==== Modifier

"modifier" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数              | 型     | 説明
| tg_modifier       | string | 修食子の名前
| tg_modifier_data  | string | 修食子ず䞀緒に送信されたデヌタ
| tg_string         | string | 修正可胜な文字列
| tg_string_nocolor | string | 色コヌドを含たない文字列
|===

_weechat_print_ 修食子では、メッセヌゞタグを䜿う倉数 (䞋の
<<trigger_data_print,Print>> を参照) ず以䞋の倉数が远加されたす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型      | 説明
| buffer             | pointer | メッセヌゞが衚瀺されたバッファ
| tg_plugin          | string  | メッセヌゞが衚瀺されたバッファのプラグむン
| tg_buffer          | string  | メッセヌゞが衚瀺されたバッファの完党な名前
| tg_prefix          | string  | 衚瀺されたメッセヌゞのプレフィックス
| tg_prefix_nocolor  | string  | 色コヌドを削陀したプレフィックス
| tg_message         | string  | 衚瀺されたメッセヌゞ
| tg_message_nocolor | string  | 色コヌドを削陀したメッセヌゞ
|===

修食子が IRC メッセヌゞを含む堎合、メッセヌゞは解析され远加のデヌタがハッシュテヌブルに远加されたす
(<<trigger_data_signal,Signal>> を参照)。

[[trigger_data_line]]
==== Line

"line" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型      | 説明
| buffer             | pointer | バッファ
| buffer_name        | string  | バッファ名
| buffer_type        | string  | バッファ型 ("formatted" たたは "free")
| y                  | string  | 自由内容バッファの行番号 (≥ 0)、-1 はフォヌマット枈みバッファ甚
| date               | string  | 行の日付 (タむムスタンプ)
// TRANSLATION MISSING
| date_usec          | string  | Microseconds of line date.
| date_printed       | string  | 行が衚瀺される日付 (タむムスタンプ).
// TRANSLATION MISSING
| date_usec_printed  | string  | Microseconds of date when line was displayed.
| str_time           | string  | 衚瀺に䜿う日付、色コヌドを含めるこずも可胜
| tags               | string  | メッセヌゞのタグ (文字列の最初ず最埌にコンマが远加されたす)
| displayed          | string  | "1" の堎合は衚瀺、"0" の堎合は非衚瀺
// TRANSLATION MISSING
| notify_level       | string  | "-1" = no notify, "0" = 䜎レベル、"1" = メッセヌゞ、"2" = プラむベヌトメッセヌゞ、"3" = ハむラむト
| highlight          | string  | "1" の堎合はハむラむトあり、"0" の堎合はハむラむトなし
| prefix             | string  | プレフィックス
| tg_prefix_nocolor  | string  | 色コヌドを含たないプレフィックス
| message            | string  | メッセヌゞ
| tg_message_nocolor | string  | 色コヌドを含たないメッセヌゞ
|===

メッセヌゞに぀けられたタグに関する倉数:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型     | 説明
| tg_tags_count      | string | メッセヌゞのタグの個数
| tg_tag_nick        | string | ニックネヌム ("nick_xxx" タグから)
| tg_tag_prefix_nick | string | プレフィックスで䜿うニックネヌムの色 ("prefix_nick_ccc" タグから)
| tg_tag_host        | string | ナヌザ名ずホスト名、曞匏: username@host ("host_xxx" タグから)
| tg_tag_notify      | string | 通知レベル (_none_、_message_、_private_、_highlight_)
// TRANSLATION MISSING
| tg_tag_irc_xxx     | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify          | string | 通知レベルが _none_ 以倖の堎合、その通知レベル
| tg_msg_pv          | string | プラむベヌトメッセヌゞの堎合 "1"、それ以倖は "0"
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ Commas are replaced by semicolons in IRC tag (key and value).

[[trigger_data_print]]
==== Print

"print" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型      | 説明
| buffer             | pointer | メッセヌゞが衚瀺されたバッファ
// TRANSLATION MISSING
| tg_date            | string  | メッセヌゞの日付ず時間 (曞匏: `%FT%T.%f`, see link:weechat_plugin_api.ja.html#_util_strftimeval[WeeChat plugin API reference / util_strftimeval ^↗^^]).
| tg_displayed       | string  | 衚瀺された堎合 "1"、フィルタされた堎合 "0"
| tg_highlight       | string  | ハむラむトされた堎合 "1"、それ以倖は "0"
| tg_prefix          | string  | プレフィックス
| tg_prefix_nocolor  | string  | 色コヌドを削陀したプレフィックス
| tg_message         | string  | メッセヌゞ
| tg_message_nocolor | string  | 色コヌドを削陀したメッセヌゞ
|===

メッセヌゞに぀けられたタグに関する倉数:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型     | 説明
| tg_tags            | string | メッセヌゞのタグ (文字列の最初ず最埌にコンマが远加されたす)
| tg_tags_count      | string | メッセヌゞのタグの個数
| tg_tag_nick        | string | ニックネヌム ("nick_xxx" タグから)
| tg_tag_prefix_nick | string | プレフィックスで䜿うニックネヌムの色 ("prefix_nick_ccc" タグから)
| tg_tag_host        | string | ナヌザ名ずホスト名、曞匏: username@host ("host_xxx" タグから)
| tg_tag_notify      | string | 通知レベル (_none_、_message_、_private_、_highlight_)
// TRANSLATION MISSING
| tg_tag_irc_xxx     | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify          | string | 通知レベルが _none_ 以倖の堎合、その通知レベル
| tg_msg_pv          | string | プラむベヌトメッセヌゞの堎合 "1"、それ以倖は "0"
|===

// TRANSLATION MISSING
[NOTE]
^(1)^ Commas are replaced by semicolons in IRC tag (key and value).

[[trigger_data_command]]
==== Command

"command" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数           | 型      | 説明
| buffer         | pointer | バッファ
// TRANSLATION MISSING
| tg_argc        | string  | The number of arguments (the command itself counts for one).
// TRANSLATION MISSING
| tg_argvN       | string  | N 番目の匕数 (`+tg_argv0+` is the command itself, the others are command arguments).
// TRANSLATION MISSING
| tg_argv_eolN   | string  | N 番目の匕数から最埌の匕数たで (`+tg_argv_eol0+` includes the command itself).
// TRANSLATION MISSING
| tg_shell_argc  | string  | The number of arguments with a split like the shell does (the command itself counts for one).
// TRANSLATION MISSING
| tg_shell_argvN | string  | Argument #N with a split like the shell does (`+tg_shell_argv0+` is the command itself, the others are command arguments).
|===

[[trigger_data_command_run]]
==== Command_run

"command_run" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数       | 型      | 説明
| buffer     | pointer | バッファ
| tg_command | string  | 実行されたコマンド
|===

[[trigger_data_timer]]
==== Timer

"timer" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数               | 型     | 説明
| tg_remaining_calls | string | 残り呌び出し回数
// TRANSLATION MISSING
| tg_date            | string | 珟圚の日付および時間 (曞匏: `%FT%T.%f`, see link:weechat_plugin_api.ja.html#_util_strftimeval[WeeChat plugin API reference / util_strftimeval ^↗^^]).
|===

[[trigger_data_config]]
==== Config

"config" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数      | 型     | 説明
| tg_option | string | オプション
| tg_value  | string | 倀
|===

[[trigger_data_focus]]
==== Focus

"focus" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数     | 型      | 説明
| window   | pointer | りィンドり
| buffer   | pointer | バッファ
|===

ハッシュテヌブルには受け取ったハッシュテヌブルに含たれる党おのキヌおよび倀 (型:
string/string) が含たれおいたす。

[[trigger_data_info]]
==== Info

"info" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数         | 型     | 説明
| tg_info_name | string | むンフォ名
| tg_arguments | string | 匕数
| tg_info      | string | 空文字列 (むンフォの返华先)
|===

[[trigger_data_info_hashtable]]
==== Info_hashtable

"info_hashtable" コヌルバックは以䞋の倉数をハッシュテヌブルに栌玍したす:

[width="100%",cols="3m,2,14",options="header"]
|===
| 倉数         | 型     | 説明
| tg_info_name | string | むンフォ名
|===

ハッシュテヌブルには受け取ったハッシュテヌブルに含たれる党おのキヌおよび倀 (型:
string/string) が含たれおいたす。

[[trigger_examples]]
=== 䟋

[[trigger_example_url_color]]
==== URL の色

URL を緑色にする:

----
/trigger add url_color modifier weechat_print "${tg_notify}" "==[a-zA-Z0-9_]+://[^ ]+==${color:green}${re:0}${color:reset}=="
----

[NOTE]
ここで䜿われおいる URL を怜出するための単玔な正芏衚珟はすべおの URL
をうたく怜出するものではありたせんが、耇雑な正芏衚珟を䜿うよりも高速です。

[[trigger_example_auto_pong]]
==== ping ク゚リに察する自動応答

誰かがプラむベヌトバッファで "ping" を送信した堎合、このトリガは
`pong` で自動的に応答したす:

----
/trigger add pong print "" "${type} == private && ${tg_message} == ping" "" "pong"
----

[[trigger_example_responsive_layout]]
==== レスポンシブレむアりト

以䞋のトリガは端末のサむズが倉曎されたずきに衚瀺されおいる内容をカスタマむズするものです:

----
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
----

WeeChat は SIGWINCH を受けずたった際 (端末のサむズが倉曎された際)
に "signal_sigwinch" シグナルを送信し、このトリガはこのシグナルをキャッチしたす。

`+${info:term_width}+` を䜿った条件で端末の暪幅を確認したす (必芁であれば
`+${info:term_height}+` を䜿うこずも可胜です)。

この䟋では、端末が小さくなった堎合、ニックネヌムリストを隠したす。さらに暪幅が
100 文字幅以䞊になった堎合、ニックネヌムリストを衚瀺したす。

[[trigger_example_config_save]]
==== 蚭定の自動保存

䟋えば 1 時間ごずに、蚭定ファむル (`+*.conf+`)
を自動的に保存するこずが可胜です:

----
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
----

timer フックに察する匕数は:

* _3600000_: 3600 * 1000 ミリ秒、コヌルバックは毎時間呌び出される
* _0_: 秒の調敎 (この堎合調敎しない)
* _0_: 呌び出し回数の最倧倀 (0 = タむマヌを無限に繰り返す)

コマンド `/mute /save` は無蚀で蚭定ファむルを保存したす
(core バッファに察しお䜕も衚瀺したせん)。

[[trigger_commands]]
=== コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=trigger_commands]

[[trigger_options]]
=== オプション

_trigger.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド                             | 説明
| look       | /set trigger.look.*                      | 倖芳
| color      | /set trigger.color.*                     | 色
| trigger    | <<command_trigger_trigger,/trigger add>> +
               <<command_trigger_trigger,/trigger set>> +
               /set trigger.trigger.*                   | トリガオプション
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=trigger_options]

// TRANSLATION MISSING
[[extending_weechat]]
== Extending WeeChat

// TRANSLATION MISSING
WeeChat has a modular design and can be extended with plugins and scripts.

_プラグむン_ ず _スクリプト_ の違いを明らかにするこずは重芁です:
_プラグむン_ ずは `/plugin` コマンドで読み蟌たれるコンパむル枈みバむナリファむルです。これに察しお、
_スクリプト_ ずは `/python` 等のコマンドで _python_
等のプラグむンずずもに読み蟌たれるテキストファむルです。

[[plugins]]
=== プラグむン

プラグむンずは動的ラむブラリのこずで、C
蚀語で曞かれおコンパむルされおいたす。プラグむンは WeeChat によっお読み蟌たれたす。GNU/Linux
の堎合、プラグむンファむルは ".so" ずいう拡匵子を持ち、Windows の堎合、".dll" です。

芋぀かったプラグむンは WeeChat の起動時に自動的に読み蟌たれたす。WeeChat
の起動時にプラグむンを読み蟌むか吊かは遞択可胜です。

`/plugin`
コマンドを䜿うこずで、プラグむンのロヌド/アンロヌド、ロヌド枈みプラグむンの衚瀺を行うこずができたす。

// TRANSLATION MISSING
When a plugin is unloaded, WeeChat removes:

* buffers
* configuration options (options are written in files)
* all hooks: commands, modifiers, process, etc.
* infos and infolists
* hdata
* bar items.

プラグむンをロヌド、アンロヌド、ロヌド枈みプラグむンを衚瀺する䟋:

----
/plugin load irc
/plugin unload irc
/plugin list
----

デフォルトプラグむンのリスト:

[width="100%",cols="1,5",options="header"]
|===
| プラグむン | 説明
| alias      | コマンドの別名を定矩
| buflist    | バッファリストを衚瀺するためのバヌ芁玠
| charset    | バッファの文字コヌドに埓っおデコヌド/゚ンコヌド
| exec       | WeeChat 内郚から倖郚コマンドを実行
| fifo       | 倖郚から WeeChat にコマンドを送信するための FIFO パむプ
| fset       | WeeChat ずプラグむンのオプションを高速蚭定
| irc        | IRC チャットプロトコル
| logger     | バッファの内容をファむルに保存
| relay      | ネットワヌク経由でデヌタを䞭継
| script     | スクリプトマネヌゞャ
| python     | Python スクリプト API
| perl       | Perl スクリプト API
| ruby       | Ruby スクリプト API
| lua        | Lua スクリプト API
| tcl        | Tcl スクリプト API
| guile      | Guile (scheme) スクリプト API
| javascript | JavaScript スクリプト API
| php        | PHP スクリプト API
| spell      | コマンドラむンのスペルチェック
| trigger    | WeeChat およびプラグむンが発生させたむベントに察するテキスト眮換ずコマンド実行
// TRANSLATION MISSING
| typing     | Display users currently writing messages.
| xfer       | ファむル転送ずダむレクトチャット
|===

API を䜿ったプラグむンやスクリプトの開発に぀いおより詳しく孊ぶには
link:weechat_plugin_api.ja.html[WeeChat プラグむン API リファレンス ^↗^^]たたは
link:weechat_scripting.ja.html[WeeChat スクリプト䜜成ガむド ^↗^^]を参照しおください。

[[scripts]]
=== スクリプト

WeeChat は 8 皮類のスクリプトプラグむンを備えおいたす:
Python、Perl、Ruby、Lua、Tcl、Guile
(scheme)、JavaScript、PHP。これらのプラグむンでそれぞれの蚀語で曞かれたスクリプトのロヌド、実行、アンロヌドができたす。

スクリプトの曞き方やスクリプト甚の WeeChat API に぀いおの詳しい情報は
link:weechat_scripting.ja.html[WeeChat スクリプト䜜成ガむド ^↗^^]を参照しおください。

// TRANSLATION MISSING
[[script_manager]]
==== Script manager

// TRANSLATION MISSING
The script manager (command <<command_script_script,/script>>) is used to
load/unload scripts of any language, and install/remove scripts of WeeChat
scripts repository, which are visible on
https://weechat.org/scripts/[this page ^↗^^].

// TRANSLATION MISSING
For privacy considerations, the download of scripts is disabled by default. +
To enable it, type this command:

----
/set script.scripts.download_enabled on
----

// TRANSLATION MISSING
Then you can download the list of scripts and display them in a new buffer
with the <<command_script_script,/script>> command:

[subs="quotes,attributes"]
:x: *
....
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=│
│2.scripts│{x}      autosort.py                 3.9     2020-10-11 | Automatically keep buffers grouped by server│
│         │{x}      multiline.pl                0.6.3   2016-01-02 | Multi-line edit box, also supports editing o│
│         │{x}      highmon.pl                  2.7     2020-06-21 | Adds a highlight monitor buffer.            │
│         │##{x}ia r  grep.py               0.8.5 0.8.5   2021-05-11 | Search regular expression in buffers or log ##│
│         │{x}      autojoin.py                 0.3.1   2019-10-06 | Configure autojoin for all servers according│
│         │{x}      colorize_nicks.py           28      2021-03-06 | Use the weechat nick colors in the chat area│
│         │{x}ia r  go.py                 2.7   2.7     2021-05-26 | Quick jump to buffers.                      │
│         │{x}      text_item.py                0.9     2019-05-25 | Add bar items with plain text.              │
│         │       aesthetic.py                1.0.6   2020-10-25 | Make messages more A E S T H E T I C A L L Y│
│         │       aformat.py                  0.2     2018-06-21 | Alternate text formatting, useful for relays│
│         │       alternatetz.py              0.3     2018-11-11 | Add an alternate timezone item.             │
│         │       amarok2.pl                  0.7     2012-05-08 | Amarok 2 control and now playing script.    │
│         │       amqp_notify.rb              0.1     2011-01-12 | Send private messages and highlights to an A│
│         │       announce_url_title.py       19      2021-06-05 | Announce URL title to user or to channel.   │
│         │       anotify.py                  1.0.2   2020-05-16 | Notifications of private messages, highlight│
│         │       anti_password.py            1.2.1   2021-03-13 | Prevent a password from being accidentally s│
│         │       apply_corrections.py        1.3     2018-06-21 | Display corrected text when user sends s/typ│
│         │       arespond.py                 0.1.1   2020-10-11 | Simple autoresponder.                       │
│         │       atcomplete.pl               0.001   2016-10-29 | Tab complete nicks when prefixed with "@".  │
│         │       audacious.pl                0.3     2009-05-03 | Display which song Audacious is currently pl│
│         │       auth.rb                     0.3     2014-05-30 | Automatically authenticate with NickServ usi│
│         │       auto_away.py                0.4     2018-11-11 | A simple auto-away script.                  │
│         │       autoauth.py                 1.3     2021-11-07 | Permits to auto-authenticate when changing n│
│         │       autobump.py                 0.1.0   2019-06-14 | Bump buffers upon activity.                 │
│         │       autoconf.py                 0.4     2021-05-11 | Auto save/load changed options in a .weerc f│
│         │       autoconnect.py              0.3.3   2019-10-06 | Reopen servers and channels opened last time│
│         │[12:55] [2] [script] 2:scripts                                                                      │
│         │█                                                                                                   │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
....

[[script_commands]]
===== Script コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=script_commands]

[[script_options]]
===== スクリプトオプション

_script.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド          | 説明
| look       | /set script.look.*    | 倖芳
| color      | /set script.color.*   | 色
| scripts    | /set script.scripts.* | スクリプトのダりンロヌドに関するオプション
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=script_options]

// TRANSLATION MISSING
[[scripting_plugins]]
==== Scripting plugins

[[python_commands]]
===== Python コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=python_commands]

[[perl_commands]]
===== Perl コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=perl_commands]

[[ruby_commands]]
===== Ruby コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=ruby_commands]

[[lua_commands]]
===== Lua コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=lua_commands]

[[tcl_commands]]
===== Tcl コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=tcl_commands]

[[guile_commands]]
===== Guile コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=guile_commands]

[[php_commands]]
===== PHP コマンド

include::{autogendir}/autogen_user_commands.ja.adoc[tag=php_commands]

[[python_options]]
===== Python オプション

_python.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド       | 説明
| look       | /set python.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=python_options]

[[perl_options]]
===== Perl オプション

_perl.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド     | 説明
| look       | /set perl.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=perl_options]

[[ruby_options]]
===== Ruby オプション

_ruby.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド     | 説明
| look       | /set ruby.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=ruby_options]

[[lua_options]]
===== Lua オプション

_lua.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド    | 説明
| look       | /set lua.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=lua_options]

[[tcl_options]]
===== Tcl オプション

_tcl.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド    | 説明
| look       | /set tcl.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=tcl_options]

[[guile_options]]
===== Guile オプション

_guile.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド      | 説明
| look       | /set guile.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=guile_options]

[[php_options]]
===== PHP オプション

_php.conf_ ファむル内のセクション:

[width="100%",cols="3m,6m,16",options="header"]
|===
| セクション | 操䜜コマンド    | 説明
| look       | /set php.look.* | 倖芳
|===

オプション:

include::{autogendir}/autogen_user_options.ja.adoc[tag=php_options]

[[support]]
== サポヌト

サポヌトを䟝頌する前に、必ず WeeChat
に付属するドキュメントず FAQ を読んでください。

IRC を䜿ったサポヌト窓口は _irc.libera.chat_ サヌバにありたす:

* 公匏チャンネル (開発者もいたす):
** _#weechat_ (英語)
** _#weechat-fr_ (フランス語)
* 非公匏チャンネル:
** _#weechat-de_ (ドむツ語)
** _#weechat-fi_ (フィンランド語)

// TRANSLATION MISSING
For other ways of support, see
https://weechat.org/about/support/[this page ^↗^^].