1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

doc: add note about chars replaced in IRC tag key/value (user's guide)

This commit is contained in:
Sébastien Helleu
2021-12-30 21:49:51 +01:00
parent 532d46bb93
commit 08e0d3912a
7 changed files with 134 additions and 22 deletions
+20 -2
View File
@@ -4729,11 +4729,20 @@ Variablen die mittels Tags in der Nachricht gesetzt werden:
| tg_tag_host | string | Username und Host, Format: username@host (extrahiert aus Tag "host_xxx").
| tg_tag_notify | string | Benachrichtigungsstufe (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Benachrichtigungsstufe, falls von _none_ abweichend.
| tg_msg_pv | string | "1" für eine private Nachricht, andernfalls "0".
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4764,11 +4773,20 @@ Variablen die mittels Tags in der Nachricht gesetzt werden:
| tg_tag_host | string | Username und Host, Format: username@host (extrahiert aus Tag "host_xxx").
| tg_tag_notify | string | Benachrichtigungsstufe (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Benachrichtigungsstufe, falls von _none_ abweichend.
| tg_msg_pv | string | "1" für eine private Nachricht, andernfalls "0".
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Command
+18 -2
View File
@@ -4619,11 +4619,19 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4653,11 +4661,19 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Command
+18 -2
View File
@@ -4780,11 +4780,19 @@ Variables définies avec les étiquettes du message :
| tg_tag_prefix_nick | chaîne | Couleur du pseudo dans le préfixe (depuis l'étiquette "prefix_nick_ccc").
| tg_tag_host | chaîne | Nom d'utilisateur et hôte, format : utilisateur@hôte (depuis l'étiquette "host_xxx").
| tg_tag_notify | chaîne | Niveau de notification (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx").
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_notify | chaîne | Niveau de notification, si différent de _none_.
| tg_msg_pv | chaîne | "1" pour un message privé, sinon "0".
|===
[NOTE]
====
^(1)^ Des caractères spéciaux sont remplacés dans l'étiquette IRC :
* clé : `_` -> `-` et `,` -> `;`
* valeur : `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4815,11 +4823,19 @@ Variables définies avec les étiquettes du message :
| tg_tag_prefix_nick | chaîne | Couleur du pseudo dans le préfixe (depuis l'étiquette "prefix_nick_ccc").
| tg_tag_host | chaîne | Nom d'utilisateur et hôte, format : utilisateur@hôte (depuis l'étiquette "host_xxx").
| tg_tag_notify | chaîne | Niveau de notification (_none_, _message_, _private_, _highlight_).
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx").
| tg_tag_irc_xxx | chaîne | Étiquette de message IRC (clé "xxx"). ^(1)^
| tg_notify | chaîne | Niveau de notification, si différent de _none_.
| tg_msg_pv | chaîne | "1" pour un message privé, sinon "0".
|===
[NOTE]
====
^(1)^ Des caractères spéciaux sont remplacés dans l'étiquette IRC :
* clé : `_` -> `-` et `,` -> `;`
* valeur : `,` -> `;`
====
[[trigger_data_command]]
==== Command
+18 -10
View File
@@ -4721,7 +4721,6 @@ The regular expression is used to change variables in callback hashtable.
The format is: "/regex/replace" or "/regex/replace/var" (where _var_ is a
variable of the hashtable).
// TRANSLATION MISSING
If _var_ does not exist in the hashtable, it is created automatically with an
empty value. This allows to create custom temporary variables.
@@ -4815,10 +4814,8 @@ using the command:
/trigger monitor
----
// TRANSLATION MISSING
All callbacks set following variables in hashtable:
// TRANSLATION MISSING
[width="100%",cols="3m,2,14",options="header"]
|===
| Variable | Type | Description
@@ -4930,7 +4927,6 @@ The "line" callback sets following variables in hashtable:
| str_time | string | Date for display. It may contain color codes.
| tags | string | Tags of message (with comma added at beginning/end of string).
| displayed | string | "1" if displayed, "0" if line filtered.
// TRANSLATION MISSING
| notify_level | string | "-1" = no notify, "0" = low level, "1" = message, "2" = private message, "3" = highlight
| highlight | string | "1" if highlight, otherwise "0".
| prefix | string | Prefix.
@@ -4949,12 +4945,19 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4984,12 +4987,19 @@ Variables set using tags in message:
| tg_tag_prefix_nick | string | Color of nick in prefix (from tag "prefix_nick_ccc").
| tg_tag_host | string | User name and host, format: username@host (from tag "host_xxx").
| tg_tag_notify | string | Notify level (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | string | IRC message tag (key "xxx").
| tg_tag_irc_xxx | string | IRC message tag (key "xxx"). ^(1)^
| tg_notify | string | Notify level, if different from _none_.
| tg_msg_pv | string | "1" for a private message, otherwise "0".
|===
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Command
@@ -5002,9 +5012,7 @@ The "command" callback sets following variables in hashtable:
| tg_argc | string | The number of arguments (the command itself counts for one).
| tg_argvN | string | Argument #N (`+tg_argv0+` is the command itself, the others are command arguments).
| tg_argv_eolN | string | From argument #N until end of arguments (`+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).
|===
+20 -2
View File
@@ -4760,11 +4760,20 @@ _weechat_print_ 修飾子では、メッセージタグを使う変数 (下の
| 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").
| 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)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4795,11 +4804,20 @@ _weechat_print_ 修飾子では、メッセージタグを使う変数 (下の
| 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").
| 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)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Command
+20 -2
View File
@@ -4657,11 +4657,20 @@ Zmienne ustawiane za pomocą tagów w wiadomościach:
| tg_tag_host | ciąg | Nazwa użytkownika i host, format: username@host (z tagu "host_xxx").
| tg_tag_notify | ciąg | Poziom powiadomień (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx").
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_notify | ciąg | Poziom powiadomień, jeśli różny od _none_.
| tg_msg_pv | ciąg | "1" dla prywatnej wiadomości, inaczej "0".
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4692,11 +4701,20 @@ Zmienne ustawiane za pomocą tagów w wiadomościach:
| tg_tag_host | ciąg | Nazwa użytkownika i host, format: username@host (z tagu "host_xxx").
| tg_tag_notify | ciąg | Poziom powiadomień (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx").
| tg_tag_irc_xxx | ciąg | IRC message tag (key "xxx"). ^(1)^
| tg_notify | ciąg | Poziom powiadomień, jeśli różny od _none_.
| tg_msg_pv | ciąg | "1" dla prywatnej wiadomości, inaczej "0".
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Command
+20 -2
View File
@@ -4316,11 +4316,20 @@ ${buffer[${tg_signal_data}].full_name}
| tg_tag_host | стринг | Корисничко име и хост, формат: корисничкоиме@хост (из ознаке „host_xxx”).
| tg_tag_notify | стринг | Ниво обавештавања (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | стринг | IRC message tag (key "xxx").
| tg_tag_irc_xxx | стринг | IRC message tag (key "xxx"). ^(1)^
| tg_notify | стринг | Ниво обавештавања, ако се разликује од _none_.
| tg_msg_pv | стринг | „1” за приватну поруку, у супротном „0”.
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_print]]
==== Print
@@ -4351,11 +4360,20 @@ ${buffer[${tg_signal_data}].full_name}
| tg_tag_host | стринг | Корисничко име и хост, формат: корисничкоиме@хост (из ознаке „host_xxx”).
| tg_tag_notify | стринг | Ниво обавештавања (_none_, _message_, _private_, _highlight_).
// TRANSLATION MISSING
| tg_tag_irc_xxx | стринг | IRC message tag (key "xxx").
| tg_tag_irc_xxx | стринг | IRC message tag (key "xxx"). ^(1)^
| tg_notify | стринг | Ниво обавештавања, ако се разликује од _none_.
| tg_msg_pv | стринг | „1” за приватну поруку, у супротном „0”.
|===
// TRANSLATION MISSING
[NOTE]
====
^(1)^ Special chars are replaced in IRC tag:
* key: `_` -> `-` and `,` -> `;`
* value: `,` -> `;`
====
[[trigger_data_command]]
==== Команда