doc: update German auto-generated file

This commit is contained in:
Sébastien Helleu 2021-08-10 20:37:50 +02:00
parent 964d3e54d1
commit da8b7a85bb

View File

@ -1334,83 +1334,83 @@ infolists: zeigt Information über die Infolists an
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d] <expression>
[-n] [-d [-d]] -c <expression1> <operator> <expression2> [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: display result without sending it to buffer (debug mode) -n: gibt das Ergebnis aus, ohne dass dieses in den Buffer gesendet wird (debug Modus)
-s: split expression before evaluating it (many commands can be separated by semicolons) -s: teilt Ausdrücke, bevor sie evaluiert werden (mehrere Befehle können durch Semikolon getrennt werden)
-d: display debug output after evaluation (with two -d: more verbose debug) -d: eine Debug-Ausgabe nach Auswertung anzeigen (Nutzung von zwei -d: ausführliche Debug-Ausgabe)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1") -c: Auswertung als Bedingung: nutzt Operatoren und runde Klammern, Rückgabewert als Boolean-Wert ("0" oder "1")
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons expression: Ausdruck welcher verarbeitet werden soll. Variablen im Format ${variable} werden ersetzt (siehe unten); mehrere Befehle werden durch ein Semikolon voneinander getrennt
operator: a logical or comparison operator: operator: ein logischer oder vergleichender Operand:
- logical operators: - logische Operanden:
&& boolean "and" && boolean "und"
|| boolean "or" || boolean "oder"
- comparison operators: - vergleichende Operanden:
== equal == gleich
!= not equal != ungleich
<= less or equal <= kleiner oder gleich
< less < kleiner
>= greater or equal >= größer oder gleich
> greater > größer
=~ is matching POSIX extended regex =~ stimmt mit regulärem POSIX Ausdruck überein
!~ is NOT matching POSIX extended regex !~ stimmt NICHT mit regulärem POSIX Ausdruck überein
==* is matching mask, case sensitive (wildcard "*" is allowed) ==* stimmt mit Maske überein (Platzhalter "*" ist erlaubt)
!!* is NOT matching mask, case sensitive (wildcard "*" is allowed) !!* stimmt mit Maske NICHT überein (Platzhalter "*" ist erlaubt)
=* is matching mask, case insensitive (wildcard "*" is allowed) =* stimmt mit Maske überein, Groß- und Kleinschreibung wird nicht beachtet (Platzhalter "*" ist erlaubt)
!* is NOT matching mask, case insensitive (wildcard "*" is allowed) !* stimmt mit Maske NICHT überein, Groß- und Kleinschreibung wird nicht beachtet (Platzhalter "*" ist erlaubt)
==- is included, case sensitive ==- ist enthalten, Groß- und Kleinschreibung wird beachtet
!!- is NOT included, case sensitive !!- ist NICHT enthalten, Groß- und Kleinschreibung wird beachtet
=- is included, case insensitive =- ist enthalten, Groß- und Kleinschreibung wird nicht beachtet
!- is NOT included, case insensitive !- ist NICHT enthalten, Groß- und Kleinschreibung wird nicht beachtet
An expression is considered as "true" if it is not NULL, not empty, and different from "0". Ein Ausdruck gilt als "wahr" sofern das Ergebnis weder NULL, nicht leer und von "0" abweichend ist.
The comparison is made using floating point numbers if the two expressions are valid numbers, with one of the following formats: Für einen Vergleich werden Fließkommazahlen genutzt, insofern es sich bei beiden Ausdrücken um gültige Zahlen handelt, folgende Formate werden unterstützt:
- integer (examples: 5, -7) - Integer (Beispiele: 5, -7)
- floating point number (examples: 5.2, -7.5, 2.83e-2) - Fließkommazahl (Beispiele: 5.2, -7.5, 2.83e-2)
- hexadecimal number (examples: 0xA3, -0xA3) - hexadezimale Zahl (Beispiele: 0xA3, -0xA3)
To force a string comparison, you can add double quotes around each expression, for example: Um einen Vergleich zwischen zwei Zeichenketten zu erzwingen, müssen die Ausdrücke in Anführungszeichen gesetzt werden, zum Beispiel:
50 > 100 ==> 0 50 > 100 ==> 0
"50" > "100" ==> 1 "50" > "100" ==> 1
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority: Einige Variablen werden im Ausdruck mittels der Formatierung ${variable} ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität:
1. the string itself without evaluation (format: "raw:xxx") 1. die Zeichenfolge selbst ohne Auswertung (Format: "raw:xxx")\n
2. an evaluated sub-string (format: "eval:xxx") 2. eine evaluierte Teilzeichenkette (Format: "eval:xxx")
3. an evaluated condition (format: "eval_cond:xxx") 3. eine evaluierte Bedingung (Format: "eval_cond:xxx")
4. a string with escaped chars (format: "esc:xxx" or "\xxx") 4. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
5. a string with chars to hide (format: "hide:char,string") 5. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette")
6. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") 6. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: "cut:max,suffix,string" oder "cut:+max,suffix,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string") oder maximale Anzahl an Zeichen die auf dem Bildschirm angezeigt werden sollen (Format: "cutscr:Max,Suffix,Zeichenkette oder "cutscr:+Max,Suffix,Zeichenkette")
7. a reversed string (format: "rev:xxx" or "revscr:xxx") 7. eine Zeichenkette umkehren (Format: "rev:xxx" oder "revscr:xxx")
8. a repeated string (format: "repeat:count,string") 8. eine Zeichenkette wiederholen (Format: "repeat:Anzahl,Zeichenkette")
9. length of a string (format: "length:xxx" or "lengthscr:xxx") 9. Länge einer Zeichenkette (Format: "length:xxx" oder "lengthscr:xxx")
10. a color (format: "color:xxx", see "Plugin API reference", function "color") 10. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color")
11. a modifier (format: "modifier:name,data,string") 11. zum modifizieren (Format: "modifier:name,data,string")
12. an info (format: "info:name,arguments", arguments are optional) 12. eine Info (Format: "Info:Name,Argumente", Argumente sind optional)
13. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") 13. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "base_encode:base,xxx" oder "base_decode:base,xxx")
14. current date/time (format: "date" or "date:format") 14. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
15. an environment variable (format: "env:XXX") 15. eine Umgebungsvariable (Format: "env:XXX")
16. a ternary operator (format: "if:condition?value_if_true:value_if_false") 16. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr")
17. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") 17. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** (Format: "calc:xxx")
18. a random integer number (format: "random:min,max") 19. eine übersetzte Zeichenkette (Format: "translate:xxx")
19. a translated string (format: "translate:xxx") 18. eine zufällige ganze Zahl (Format: "random:min,max")
20. an option (format: "file.section.option") 20. eine Option (Format: "file.section.option")
21. a local variable in buffer 21. eine lokale Variable eines Buffers
22. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. 22. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet.
Format for hdata can be one of following: Das Format für hdata kann wie folgt aufgebaut sein:
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) hdata.var1.var2...: startet mit hdata (der Pointer muss bekannt sein) und fragt eine Variable nach der anderen ab (weitere hdata können folgen)
hdata[list].var1.var2...: start with a hdata using a list/pointer/pointer name, for example: hdata[list].var1.var2...: startet hdata mittels einer Liste, zum Beispiel:
${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers ${buffer[gui_buffers].full_name}: der vollständige Name des ersten Buffers, in der verknüpften Liste aller Buffer
${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins ${plugin[weechat_plugins].name}: Name der ersten Erweiterung, in der verknüpften Liste aller Erweiterungen
hdata[pointer].var1.var2...: start with a hdata using a pointer, for example: hdata[pointer].var1.var2...: startet hdata mittels einem Pointer, zum Beispiel:
${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers) ${buffer[0x1234abcd].full_name}: vollständiger Name eines Buffers und des dazugehörigen Pointers (kann in triggern benutzt werden)
${buffer[my_pointer].full_name}: full name of the buffer with this pointer name (can be used in triggers) ${buffer[my_pointer].full_name}: vollständiger Name des Buffers mit dem entsprechenden Pointernamen (kann in Triggern verwendet werden)
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". Die vorhandenen Namen für hdata und Variablen sind in der "Anleitung für API Erweiterung", Bereich "weechat_hdata_get". beschrieben
Examples (simple strings): Beispiele (einfache Zeichenketten):
/eval -n ${raw:${info:version}} ==> ${info:version} /eval -n ${raw:${info:version}} ==> ${info:version}
/eval -n ${eval_cond:${window.win_width}>100} ==> 1 /eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${sec.data.password} ==> secret /eval -n ${sec.data.password} ==> geheim
/eval -n ${window} ==> 0x2549aa0 /eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320 /eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat /eval -n ${window.buffer.full_name} ==> core.weechat
@ -1428,19 +1428,19 @@ Examples (simple strings):
/eval -n ${random:0,10} ==> 3 /eval -n ${random:0,10} ==> 3
/eval -n ${base_encode:64,test} ==> dGVzdA== /eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test /eval -n ${base_decode:64,dGVzdA==} ==> test
/eval -n ${translate:Plugin} ==> Extension /eval -n ${translate:Plugin} ==> Erweiterung
Examples (conditions): Beispiele (Bedingungen):
/eval -n -c ${window.buffer.number} > 2 ==> 0 /eval -n -c ${window.buffer.number} > 2 ==> 0
/eval -n -c ${window.win_width} > 100 ==> 1 /eval -n -c ${window.win_width} > 100 ==> 1
/eval -n -c (8 > 12) || (5 > 2) ==> 1 /eval -n -c (8 > 12) || (5 > 2) ==> 1
/eval -n -c (8 > 12) && (5 > 2) ==> 0 /eval -n -c (8 > 12) && (5 > 2) ==> 0
/eval -n -c abcd =~ ^ABC ==> 1 /eval -n -c abcd =~ ^ABC ==> 1
/eval -n -c abcd =~ (?-i)^ABC ==> 0 /eval -n -c abcd =~ (?-i)^ABC ==> 0
/eval -n -c abcd =~ (?-i)^abc ==> 1 /eval -n -c abcd =~ (?-i)^abc ==> 1
/eval -n -c abcd !~ abc ==> 0 /eval -n -c abcd !~ abc ==> 0
/eval -n -c abcd =* a*d ==> 1 /eval -n -c abcd =* a*d ==> 1
/eval -n -c abcd =- bc ==> 1 /eval -n -c abcd =- bc ==> 1
---- ----
[[command_weechat_filter]] [[command_weechat_filter]]