]> jfr.im git - irc/weechat/weechat.git/commitdiff
doc: add missing names for anchors in scripting guide
authorSébastien Helleu <redacted>
Fri, 14 May 2021 17:19:49 +0000 (19:19 +0200)
committerSébastien Helleu <redacted>
Fri, 14 May 2021 17:19:49 +0000 (19:19 +0200)
doc/de/weechat_scripting.de.adoc
doc/en/weechat_scripting.en.adoc
doc/fr/weechat_scripting.fr.adoc
doc/it/weechat_scripting.it.adoc
doc/ja/weechat_scripting.ja.adoc
doc/pl/weechat_scripting.pl.adoc

index ae9cb40aad8f5d3a88650b20538f4f3d764a3f15..a8d784c7595d83641bfed47800ee87c23a3ef738 100644 (file)
@@ -72,8 +72,10 @@ und die Dokumentation für die Funktion `+hook_process+` in link:weechat_plugin_
 [[languages_specificities]]
 === Besonderheiten der einzelnen Skriptsprachen
 
+[[language_python]]
 ==== Python
 
+[[python_module]]
 ===== Module
 
 WeeChat definiert ein `weechat` Module welches mittels `import weechat`
@@ -82,6 +84,7 @@ importiert werden muss. +
 A Python stub for WeeChat API is available in the repository:
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
+[[python_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...)+`.
@@ -89,6 +92,7 @@ Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...)+`.
 Die Funktionen `+print*+` werden bei python durch `+prnt*+` ersetzt
 (`print` war ein reserviertes Schlüsselwort unter Python 2).
 
+[[python_strings]]
 ===== In Callbacks empfangene Zeichen
 
 Mit Python 3 und WeeChat ≥ 2.7 sind die Zeichenketten in Callbacks
@@ -145,18 +149,23 @@ Mit Python 2, das mittlerweile veraltet ist und nicht mehr verwendet werden soll
 Zeichenkette die an die Callbacks gesendet wird immer vom Typ `str` und kann deshalb bei den
 oben genannten Fällen, ungültige UTF-8 Daten enthalten.
 
+[[language_perl]]
 ==== Perl
 
+[[perl_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
+[[ruby_init]]
 ===== Initialization
 
 Es muss _weechat_init_ definiert werden und darin dann _register_ ausgeführt werden.
 
+[[ruby_functions]]
 ===== Functions
 
 Funktionen werden aufgerufen mittels `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -181,20 +190,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
+[[lua_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
+[[tcl_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
+[[guile_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+(weechat:xxx arg1 arg2 ...)+`.
@@ -207,14 +222,18 @@ für andere Funktionen), da die Anzahl der Argumente die zulässige Anzahl in Gu
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
+[[javascript_functions]]
 ===== Funktionen
 
 Funktionen werden aufgerufen mittels `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
+[[php_functions]]
 ===== Functions
 
 Funktionen werden aufgerufen mittels `+weechat_xxx(arg1, arg2, ...);+`.
index 29be944f2c4eed4c63f53531fdec2ad0c3be50c2..59bf568ed3dcaea72e005156cce2ff2bc38752d5 100644 (file)
@@ -66,14 +66,17 @@ link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference].
 [[languages_specificities]]
 === Languages specificities
 
+[[language_python]]
 ==== Python
 
+[[python_module]]
 ===== Module
 
 WeeChat defines a `weechat` module which must be imported with `import weechat`. +
 A Python stub for WeeChat API is available in the repository:
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
+[[python_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
@@ -81,6 +84,7 @@ Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
 Functions `+print*+` are called `+prnt*+` in python (because `print` was a
 reserved keyword in Python 2).
 
+[[python_strings]]
 ===== Strings received in callbacks
 
 In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
@@ -134,18 +138,23 @@ In Python 2, which is now deprecated and should not be used any more, the
 strings sent to callbacks are always of type `str`, and may contain invalid
 UTF-8 data, in the cases mentioned above.
 
+[[language_perl]]
 ==== Perl
 
+[[perl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
+[[ruby_init]]
 ===== Initialization
 
 You have to define _weechat_init_ and call _register_ inside.
 
+[[ruby_functions]]
 ===== Functions
 
 Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -170,20 +179,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
+[[lua_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
+[[tcl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
+[[guile_functions]]
 ===== Functions
 
 Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
@@ -196,14 +211,18 @@ arguments in Guile:
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
+[[javascript_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
+[[php_functions]]
 ===== Functions
 
 Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
index a917400b1815c751267ff3ec2632f9e4d742ebbe..32367176b4191ef2268871479ea133139bcd9ec6 100644 (file)
@@ -72,14 +72,17 @@ link:weechat_plugin_api.en.html#_hook_process[Référence API extension WeeChat]
 [[languages_specificities]]
 === Spécificités des langages
 
+[[language_python]]
 ==== Python
 
+[[python_module]]
 ===== Module
 
 WeeChat définit un module `weechat` qui doit être importé avec `import weechat`. +
 Un "stub" Python pour l'API WeeChat est disponible dans le dépôt :
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
+[[python_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées avec `+weechat.xxx(arg1, arg2, ...)+`.
@@ -87,6 +90,7 @@ Les fonctions sont appelées avec `+weechat.xxx(arg1, arg2, ...)+`.
 Les fonctions `+print*+` se nomment `+prnt*+` en python (car `print` était un
 mot clé réservé en Python 2).
 
+[[python_strings]]
 ===== Chaînes reçues dans les fonctions de rappel
 
 En Python 3 et avec WeeChat ≥ 2.7, les chaînes reçues dans les fonctions de
@@ -143,18 +147,23 @@ En Python 2, qui est déconseillé et ne devrait plus être utilisé, les chaîn
 envoyées aux fonctions de rappel sont toujours de type `str`, et peuvent contenir
 des données invalides UTF-8, dans les cas mentionnés ci-dessus.
 
+[[language_perl]]
 ==== Perl
 
+[[perl_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
+[[ruby_init]]
 ===== Initialisation
 
 Vous devez définir _weechat_init_ et appeler _register_ dedans.
 
+[[ruby_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -180,20 +189,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
+[[lua_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
+[[tcl_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
+[[guile_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+(weechat:xxx arg1 arg2 ...)+`.
@@ -206,14 +221,18 @@ excède la limite de Guile :
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
+[[javascript_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
+[[php_functions]]
 ===== Fonctions
 
 Les fonctions sont appelées par `+weechat_xxx(arg1, arg2, ...);+`.
index e59c07618d84bb80a2143e69a6d006ed06c298be..edcc7fe25bd2fb458c8b547fc166ce88f37278ab 100644 (file)
@@ -75,9 +75,11 @@ link:weechat_plugin_api.it.html#_hook_process[WeeChat plugin API reference].
 [[languages_specificities]]
 === Specifiche per i linguaggi
 
+[[language_python]]
 ==== Python
 
 // TRANSLATION MISSING
+[[python_module]]
 ===== Module
 
 WeeChat defines a `weechat` module which must be imported with `import weechat`. +
@@ -85,6 +87,7 @@ A Python stub for WeeChat API is available in the repository:
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
 // TRANSLATION MISSING
+[[python_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
@@ -93,6 +96,7 @@ Functions `+print*+` are called `+prnt*+` in python (because `print` was a
 reserved keyword in Python 2).
 
 // TRANSLATION MISSING
+[[python_strings]]
 ===== Strings received in callbacks
 
 In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
@@ -146,21 +150,26 @@ In Python 2, which is now deprecated and should not be used any more, the
 strings sent to callbacks are always of type `str`, and may contain invalid
 UTF-8 data, in the cases mentioned above.
 
+[[language_perl]]
 ==== Perl
 
 // TRANSLATION MISSING
+[[perl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
 // TRANSLATION MISSING
+[[ruby_init]]
 ===== Initialization
 
 You have to define _weechat_init_ and call _register_ inside.
 
 // TRANSLATION MISSING
+[[ruby_functions]]
 ===== Functions
 
 Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -186,23 +195,29 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
 // TRANSLATION MISSING
+[[lua_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
 // TRANSLATION MISSING
+[[tcl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
 // TRANSLATION MISSING
+[[guile_functions]]
 ===== Functions
 
 Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
@@ -215,16 +230,20 @@ arguments in Guile:
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
 // TRANSLATION MISSING
+[[javascript_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
 // TRANSLATION MISSING
+[[php_functions]]
 ===== Functions
 
 Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
index b2c08693e427fe96fad201e95c9c70255bca4137..11c3fdccb5688b57c9e3ca15b856888130c210c4 100644 (file)
@@ -72,9 +72,11 @@ link:weechat_plugin_api.ja.html#_hook_process[WeeChat プラグイン API リフ
 [[languages_specificities]]
 === 言語仕様
 
+[[language_python]]
 ==== Python
 
 // TRANSLATION MISSING
+[[python_module]]
 ===== Module
 
 WeeChat defines a `weechat` module which must be imported with `import weechat`. +
@@ -82,6 +84,7 @@ A Python stub for WeeChat API is available in the repository:
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
 // TRANSLATION MISSING
+[[python_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
@@ -90,6 +93,7 @@ Functions `+print*+` are called `+prnt*+` in python (because `print` was a
 reserved keyword in Python 2).
 
 // TRANSLATION MISSING
+[[python_strings]]
 ===== Strings received in callbacks
 
 In Python 3 and with WeeChat ≥ 2.7, the strings received in callbacks have type
@@ -143,21 +147,26 @@ In Python 2, which is now deprecated and should not be used any more, the
 strings sent to callbacks are always of type `str`, and may contain invalid
 UTF-8 data, in the cases mentioned above.
 
+[[language_perl]]
 ==== Perl
 
 // TRANSLATION MISSING
+[[perl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
 // TRANSLATION MISSING
+[[ruby_init]]
 ===== Initialization
 
 You have to define _weechat_init_ and call _register_ inside.
 
 // TRANSLATION MISSING
+[[ruby_functions]]
 ===== Functions
 
 Functions are called with `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -183,23 +192,29 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
 // TRANSLATION MISSING
+[[lua_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
 // TRANSLATION MISSING
+[[tcl_functions]]
 ===== Functions
 
 Functions are called with `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
 // TRANSLATION MISSING
+[[guile_functions]]
 ===== Functions
 
 Functions are called with `+(weechat:xxx arg1 arg2 ...)+`.
@@ -212,16 +227,20 @@ arguments in Guile:
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
 // TRANSLATION MISSING
+[[javascript_functions]]
 ===== Functions
 
 Functions are called with `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
 // TRANSLATION MISSING
+[[php_functions]]
 ===== Functions
 
 Functions are called with `+weechat_xxx(arg1, arg2, ...);+`.
index e1548b05919223819ac48f98570fcfd86ad75fae..5e3666d8a5029f1e0de49ff2295ebf7c155b4215 100644 (file)
@@ -72,8 +72,10 @@ link:weechat_plugin_api.en.html#_hook_process[Opisu API wtyczek WeeChat] (Angiel
 [[languages_specificities]]
 === Specyfika języków
 
+[[language_python]]
 ==== Python
 
+[[python_module]]
 ===== Moduł
 
 WeeChat definiuje moduł `weechat`, który należy zaimportowac poprzez `import weechat`. +
@@ -81,6 +83,7 @@ WeeChat definiuje moduł `weechat`, który należy zaimportowac poprzez `import
 A Python stub for WeeChat API is available in the repository:
 https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi].
 
+[[python_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...)+`.
@@ -88,6 +91,7 @@ Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...)+`.
 Funkcje `+print*+` nzwyają się `+prnt*+` (ponieważ `print` był zarezerwowanym
 łowem kluczowym w Pythonie 2).
 
+[[python_strings]]
 ===== Ciągi otrzymywane w callbackach
 
 W Pythonie 3 i dla wersji WeeChat ≥ 2.7, ciągi te mają typ `str` jeśli ciąg
@@ -140,18 +144,23 @@ W Pytonie 2, który jest już nie wspierany i nie powinien być już używany,
 ciągi wysyłane do callbacków są zawsze typu `str` i mogą zawierać niepoprawne
 dane UTF-8 w przypadkach wspomnianych wyżej.
 
+[[language_perl]]
 ==== Perl
 
+[[perl_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat::xxx(arg1, arg2, ...);+`.
 
+[[language_ruby]]
 ==== Ruby
 
+[[ruby_init]]
 ===== Inicjalizacja
 
 Musisz zdefiniowac _weechat_init_ i wywołać wewnątrz _register_.
 
+[[ruby_functions]]
 ===== Funkcje
 
 Funkcje wywoływane są za pomocą `+Weechat.xxx(arg1, arg2, ...)+`.
@@ -176,20 +185,26 @@ Weechat.bar_new("name", "off", "0", "window", "", "left", "vertical", "vertical"
                 ["default", "default", "default", "default"], "0", "items")
 ----
 
+[[language_lua]]
 ==== Lua
 
+[[lua_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...)+`.
 
+[[language_tcl]]
 ==== Tcl
 
+[[tcl_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat::xxx arg1 arg2 ...+`.
 
+[[language_guile]]
 ==== Guile (Scheme)
 
+[[guile_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+(weechat:xxx arg1 arg2 ...)+`.
@@ -202,14 +217,18 @@ argumentów dozwolonych w Guile:
 * config_new_option
 * bar_new
 
+[[language_javascript]]
 ==== JavaScript
 
+[[javascript_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat.xxx(arg1, arg2, ...);+`.
 
+[[language_php]]
 ==== PHP
 
+[[php_functions]]
 ===== Funkcje
 
 Funkcje są wywoływane za pomocą `+weechat_xxx(arg1, arg2, ...);+`.