core: add support of escaped unicode chars in commands /print and "/input insert"

v2.8-utf8proc
Sebastien Helleu 2014-01-24 12:53:23 +01:00
parent d49c3eaac6
commit 97cede06b5
23 changed files with 459 additions and 285 deletions

View File

@ -12,7 +12,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
== Version 0.4.3 (under dev)
* core: add signals "signal_sighup" and "signal_sigwinch" (terminal resized)
* core: add command /print
* core: add command /print, add support of more escaped chars in command
"/input insert"
* core: add option weechat.look.tab_width
* core: add completion "plugins_installed"
* core: fix crash in /eval when config option has a NULL value

View File

@ -363,58 +363,58 @@ value: Anzahl der gewünschten Einträgen im Befehlsverlauf anzeigen
----
/input <action> [<arguments>]
Auflistung der möglichen Funktionen:
return: simuliert die "enter" Taste
complete_next: vervollständigt Wort mit nächster Komplettierung
complete_previous: vervollständigt Word mit vorheriger Komplettierung
search_text: sucht nach Text im Buffer
search_switch_case: schaltet Groß-/Kleinschreibung ein und aus
search_switch_regex: Wechsel des Suchmodus: einfache Textsuche/reguläre Ausdrücke
search_switch_where: wechselt Suche in Nachricht/Präfix
search_previous: sucht vorheriger Zeile
search_next: sucht nächste Zeile
search_stop: suche stoppen
delete_previous_char: entfernt vorheriges Zeichen
delete_next_char: entfernt nächstes Zeichen
delete_previous_word: entfernt vorheriges Wort
delete_next_word: entfernt nächstes Wort
delete_beginning_of_line: entfernt alle Zeichen ab Zeilenanfang bis zum Cursor
delete_end_of_line: entfernt alle Zeichen ab Cursor bis zum Ende der Zeile
delete_line: löscht die komplette Eingabezeile
clipboard_paste: fügt Zeichenkette aus der Zwischenablage ein
transpose_chars: Zeichen austauschen
undo: letzten Befehl in der Eingabezeile rückgängig machen
redo: letzten Befehl in der Eingabezeile wiederherstellen
move_beginning_of_line: springt an den Anfang der Eingabezeile
move_end_of_line: springt ans Ende der Eingabezeile
move_previous_char: setzt den Cursor eine Position nach links
move_next_char: setzt den Cursor eine Position nach rechts
move_previous_word: springt zum Anfang des vorherigen Wortes, in der Eingabezeile
move_next_word: springt zum Anfang des nächsten Wortes, in der Eingabezeile
history_previous: ruft vorherigen Befehl oder Nachricht aus dem Befehlsspeicher auf (im Such-Modus: rückwärts suchen)
history_next: ruft nächsten Befehl oder Nachricht aus dem Befehlsspeicher auf (im Such-Modus: vorwärts suchen)
history_global_previous: ruft vorherigen Befehl/Nachricht aus dem globalen Befehlsspeicher auf (für alle Buffer)
history_global_next: ruft nächsten Befehl/Nachricht aus dem globalen Befehlsspeicher auf (für alle Buffer)
jump_smart: wechselt zum nächsten Buffer mit Aktivität (nach Priorität: highlight, Nachricht, …)
jump_last_buffer: springt zum letzten Buffer, in der Bufferliste
jump_last_buffer_displayed: wechselt zum jeweils zuletzt angezeigten Buffer
jump_previously_visited_buffer: springt zum letzten besuchten Buffer
jump_next_visited_buffer: springt zum nächsten besuchten Buffer
hotlist_clear: löscht Hotliste (Aktivitätsanzeige für die Buffer)
grab_key: fängt eine Taste (optionales Argument: Verzögerung um eine Taste einzufangen. Standard sind 500 Millisekunden)
grab_key_command: zeigt den Tastencode (inklusive des eingebundenen Befehls) einer Tastenkombination an und fügt ihn in die Befehlszeile ein (optionales Argument: Verzögerung um eine Taste einzufangen. Standard sind 500 Millisekunden)
grab_mouse: fängt den Code einer Maus Aktivität
grab_mouse_area: fängt den Code einer Maus Aktivität mit entsprechendem Bereich
set_unread: setzt für alle Buffer die Markierung der ungelesen Nachrichten
set_unread_current_buffer: setzt nur für den aktuellen Buffer eine Markierung der ungelesen Nachrichten
switch_active_buffer: springt zum nächsten zusammengefügten Buffer
switch_active_buffer_previous: springt zum vorherigen zusammengefügten Buffer
zoom_merged_buffer: zoomt in zusammengefügte Buffer
insert: fügt einen Text in die Eingabezeile ein
paste_start: Einfügen wird gestartet (bracketed paste mode)
paste_stop: Einfügen wird beendet (bracketed paste mode)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer: jump to last buffer
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
Dieser Befehl wird sinnvollerweise mittels Tastenbelegungen oder Erweiterungen genutzt.
This command is used by key bindings or plugins.
----
[[command_weechat_key]]
@ -568,34 +568,37 @@ Ohne Angabe eines Arguments werden alle installierten Erweiterungen angezeigt.
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
-stdout|-stderr <text>
-buffer: Buffer in welchem der Text ausgegeben werden soll (standardmäßig: aktueller Buffer)
-core: Alias für "-buffer core.weechat"
-escape: Escapesequenzen werden umgewandelt (zum Beispiel \a, \07, \x07)
-date: Datum der Nachricht, mögliche Formatierung:
-n: 'n' vor dem jetzigen Zeipunkt, in Sekunden
+n: 'n' in Zukunft, in Sekunden
n: 'n' Sekunden seit der Epoche (siehe man time)
date/time (ISO 8601): yyyy-mm-ddThh:mm:ss, Beispiel: 2014-01-19T04:32:55
time: hh:mm:ss (Beispiel: 04:32:55)
-tags: durch Kommata getrennte Liste von Tags (siehe /help filter für eine Liste von Tags die häufig genutzt werden)
text: Text der ausgegeben werden soll (Präfix und Nachricht muss durch \t getrennt werden)
-stdout: Text wird an stdout geschickt (und nicht im Buffer dargestellt)
-stderr: Text wird an stderr geschickt (und nicht im Buffer dargestellt)
-buffer: the buffer where text is displayed (default: current buffer)
-core: alias of "-buffer core.weechat"
-escape: interpret escaped chars (for example \a, \07, \x07)
-date: message date, format can be:
-n: 'n' seconds before now
+n: 'n' seconds in the future
n: 'n' seconds since the Epoch (see man time)
date/time (ISO 8601): yyyy-mm-ddThh:mm:ss, example: 2014-01-19T04:32:55
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by \t)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
Die Option -action ... -quit nutzt den Präfix der in der Option "weechat.look.prefix_*" definiert ist.
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
Die Optionen -stdout und -stderr wandeln Escapesequenzen automatisch um.
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Beispiele:
zeigt eine Erinnerung, mit Highlight, im Core-Buffer dar:
/print -core -tags notify_highlight Reminder: Milch kaufen
zeigt eine Fehlernachricht im Core-Buffer an:
/print -core -error irgend ein Fehler
zeigt eine Nachricht im Core-Buffer mit dem Präfix "abc" an:
/print -core abc\tmeine Nachricht
es wird eine Nachricht im Channel #weechat ausgegeben:
Examples:
display a reminder on core buffer with a highlight:
/print -core -tags notify_highlight Reminder: buy milk
display an error on core buffer:
/print -core -error Some error here
display message on core buffer with prefix "abc":
/print -core abc\tThe message
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
verschickt Alarm (BEL):
display a snowman (U+2603):
/print -escape \u2603
send alert (BEL):
/print -stderr \a
----

View File

@ -410,7 +410,7 @@ list of actions:
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
@ -579,12 +579,13 @@ Without argument, this command lists loaded plugins.
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by \t)
-stdout: display text on stdout (not in a buffer)
-stderr: display text on stderr (not in a buffer)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
With options -stdout and -stderr, escaped chars are always interpreted.
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Examples:
display a reminder on core buffer with a highlight:
@ -595,6 +596,8 @@ Examples:
/print -core abc\tThe message
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
display a snowman (U+2603):
/print -escape \u2603
send alert (BEL):
/print -stderr \a
----

View File

@ -410,7 +410,7 @@ liste des actions:
switch_active_buffer: basculer vers le tampon mélangé suivant
switch_active_buffer_previous: basculer vers le tampon mélangé précédent
zoom_merged_buffer: zoom sur le tampon mélangé
insert: insérer du texte dans la ligne de commande
insert: insérer du texte dans la ligne de commande (les caractères échappés sont autorisés, voir /help print)
paste_start: début de collage (mode "bracketed paste")
paste_stop: fin de collage (mode "bracketed paste")
@ -579,12 +579,13 @@ Sans paramètre, cette commande liste les extensions chargées.
heure: hh:mm:ss (exemple: 04:32:55)
-tags: liste d'étiquettes séparées par des virgules (voir /help filter pour une liste des étiquettes couramment utilisées)
texte: texte à afficher (le préfixe et le message doivent être séparés par \t)
-stdout: afficher le texte sur stdout (pas dans un tampon)
-stderr: afficher le texte sur stderr (pas dans un tampon)
-stdout: afficher le texte sur stdout (les caractères échappés sont interprétés)
-stderr: afficher le texte sur stderr (les caractères échappés sont interprétés)
Les options -action ... -quit utilisent le préfixe défini dans les options "weechat.look.prefix_*".
Avec les options -stdout et -stderr, les caractères échappés sont toujours interprétés.
Les caractères échappés suivants sont supportés:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Exemples:
afficher un pense-bête sur le tampon core avec un highlight:
@ -595,6 +596,8 @@ Exemples:
/print -core abc\tLe message
afficher un message sur le canal #weechat:
/print -buffer irc.freenode.#weechat Message sur #weechat
afficher un bonhomme de neige (U+2603):
/print -escape \u2603
envoyer une alerte (BEL):
/print -stderr \a
----

View File

@ -410,7 +410,7 @@ list of actions:
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
@ -579,12 +579,13 @@ Senza argomento, questo comando elenca i plugin caricati.
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by \t)
-stdout: display text on stdout (not in a buffer)
-stderr: display text on stderr (not in a buffer)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
With options -stdout and -stderr, escaped chars are always interpreted.
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Examples:
display a reminder on core buffer with a highlight:
@ -595,6 +596,8 @@ Examples:
/print -core abc\tThe message
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
display a snowman (U+2603):
/print -escape \u2603
send alert (BEL):
/print -stderr \a
----

View File

@ -363,58 +363,58 @@ value: 表示する履歴エントリの数
----
/input <action> [<arguments>]
アクションリスト:
return: "enter" キーをシミュレート
complete_next: 次の補完候補で単語を補完
complete_previous: 一つ前の補完候補で単語を補完
search_text: バッファ内のテキストを検索
search_switch_case: 完全一致検索に変更
search_switch_regex: 検索タイプの切り替え: 文字列/正規表現
search_switch_where: 検索範囲の切り替え: メッセージ/プレフィックス
search_previous: 一つ前の行を検索
search_next: 次の行を検索
search_stop: 検索を終了
delete_previous_char: 一つ前の文字を削除
delete_next_char: 次の文字を削除
delete_previous_word: 一つ前の単語を削除
delete_next_word: 次の単語を削除
delete_beginning_of_line: 行の最初からカーソル位置までを削除
delete_end_of_line: カーソルから行の最後までを削除
delete_line: 行を削除
clipboard_paste: クリップボードから貼り付け
transpose_chars: 2 つの文字を入れ替え
undo: 最新のコマンドラインアクションまで元に戻す
redo: 最新のコマンドラインアクションまでやり直す
move_beginning_of_line: カーソルを行頭に移動
move_end_of_line: カーソルを行末まで移動
move_previous_char: カーソルを一つ前の文字に移動
move_next_char: カーソルを次の文字に移動
move_previous_word: カーソルを一つ前の単語に移動
move_next_word: カーソルを次の単語に移動
history_previous: 現在のバッファ履歴のひとつ前のコマンドを再呼び出し
history_next: 現在のバッファ履歴の次のコマンドを再呼び出し
history_global_previous: グローバル履歴の一つ前のコマンドを再呼び出し
history_global_next: グローバル履歴の次のコマンドを再呼び出し
jump_smart: 次のアクティブバッファに飛ぶ
jump_last_buffer: 最後のバッファに移動
jump_last_buffer_displayed: 表示されている最後のバッファに移動 (最新のバッファ移動の一つ前に表示されていたバッファ)
jump_previously_visited_buffer: 一つ前に訪れたバッファに移動
jump_next_visited_buffer: 次に訪れたバッファに移動
hotlist_clear: ホットリストを消去
grab_key: キーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_key_command: あるコマンドに関連してキーを横取り (任意引数: 最後の横取りからの遅延時間、デフォルトは 500 ミリ秒)
grab_mouse: grab マウスイベントコードを横取り
grab_mouse_area: 範囲指定のマウスイベントコードを横取り
set_unread: 全てのバッファに対して未読マーカーを設定
set_unread_current_buffer: 現在のバッファに対して未読マーカーを設定
switch_active_buffer: 次のマージされたバッファに移動
switch_active_buffer_previous: 一つ前のマージされたバッファに移動
zoom_merged_buffer: マージされたバッファにズーム
insert: コマンドラインにテキストを挿入
paste_start: ペーストの開始 (括弧付きペーストモード)
paste_stop: ペーストの終了 (括弧付きペーストモード)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer: jump to last buffer
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
これらのコマンドはキーバインドかプラグインで利用できます。
This command is used by key bindings or plugins.
----
[[command_weechat_key]]
@ -579,12 +579,13 @@ arguments: ロードするプラグインに与える引数
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by \t)
-stdout: display text on stdout (not in a buffer)
-stderr: display text on stderr (not in a buffer)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
With options -stdout and -stderr, escaped chars are always interpreted.
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Examples:
display a reminder on core buffer with a highlight:
@ -595,6 +596,8 @@ Examples:
/print -core abc\tThe message
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
display a snowman (U+2603):
/print -escape \u2603
send alert (BEL):
/print -stderr \a
----

View File

@ -363,58 +363,58 @@ Wartość: ilość elementów historii do pokazania
----
/input <akcja> [<argumenty>]
lista akcji:
return: symuluje klawisz "enter"
complete_next: dopełnia słowo następnym dopełnieniem
complete_previous: dopełnia słowo poprzednim dopełnieniem
search_text: szuka tekstu w buforze
search_switch_case: przełącza na dokładne dopasowanie przy szukaniu
search_switch_regex: przełącza typy wyszukiwania ciąg/wyrażenie regularne
search_switch_where: zmienia miejsce przeszukiwania na wiadomości/przedrostki
search_previous: szuka poprzednich linii
search_next: szuka następnych linii
search_stop: zatrzymuje wyszukiwanie
delete_previous_char: usuwa poprzedni znak
delete_next_char: usuwa następny znak
delete_previous_word: usuwa poprzednie słowo
delete_next_word: usuwa następne słowo
delete_beginning_of_line: usuwa od początku linii do kursora
delete_end_of_line: usuwa od kursora do końca linii
delete_line: usuwa cała linię
clipboard_paste: wkleja ze schowka
transpose_chars: zamienia dwa znaki
undo: cofa ostatnia akcję w linii poleceń
redo: ponownie wykonuje cofniętą akcję w linii poleceń
move_beginning_of_line: przesuwa kursor na początek linii
move_end_of_line: przesuwa kursor na koniec linii
move_previous_char: przesuwa kursor do poprzedniego znaku
move_next_char: przesuwa kursor do następnego znaku
move_previous_word: przesuwa kursor do poprzedniego słowa
move_next_word: przesuwa kursor do następnego słowa
history_previous: przywołuje poprzednia komendę z historii obecnego bufora
history_next: przywołuje następną komendę z historii obecnego bufora
history_global_previous: przywołuje poprzednią komendę z globalnej historii
history_global_next: przywołuje następną komendę z globalnej historii
jump_smart: przechodzi do następnego bufora z aktywnością
jump_last_buffer: przechodzi do ostatniego bufora
jump_last_buffer_displayed: przechodzi do ostatnio wyświetlanego bufora (przed ostatnim przeskoczeniem do bufora)
jump_previously_visited_buffer: przeskakuje do poprzedniego bufora
jump_next_visited_buffer: przeskakuje to następnego bufora
hotlist_clear: czyści hotlistę
grab_key: przechwytuje klawisz (opcjonalny argument: opóźnienie końca przechwycenia, domyślnie jest to 500 milisekund)
grab_key_command: przechwytuje klawisz z przypisaną komendą(opcjonalny argument: opóźnienie końca przechwycenia, domyślnie jest to 500 milisekund)
grab_mouse: przechwytuje kod zdarzenia myszy
grab_mouse_area: przechwytuje kod zdarzenia myszy z obszarem
set_unread: ustawia znacznik nie przeczytania dla wszystkich buforów
set_unread_current_buffer: ustawia znacznik nie przeczytania dla obecnego bufora
switch_active_buffer: przełącza do następnego połączonego buforu
switch_active_buffer_previous: przełącza do poprzedniego połączonego buforu
zoom_merged_buffer: zoom na połączony bufor
insert: wkleja tekst do linii poleceń
paste_start: zaczyna wklejanie (tryb z rozpoznawaniem wklejanego tekstu)
paste_stop: kończy wklejanie (tryb z rozpoznawaniem wklejanego tekstu)
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
search_text: search text in buffer
search_switch_case: switch exact case for search
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
search_previous: search previous line
search_next: search next line
search_stop: stop search
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
jump_last_buffer: jump to last buffer
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
zoom_merged_buffer: zoom on merged buffer
insert: insert text in command line (escaped chars are allowed, see /help print)
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
Ta komenda jest używana do przypisywania klawiszy lub przez wtyczki.
This command is used by key bindings or plugins.
----
[[command_weechat_key]]
@ -579,12 +579,13 @@ Bez argumentów ta komenda wyświetli wszystkie załadowane wtyczki.
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by \t)
-stdout: display text on stdout (not in a buffer)
-stderr: display text on stderr (not in a buffer)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
With options -stdout and -stderr, escaped chars are always interpreted.
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
Examples:
display a reminder on core buffer with a highlight:
@ -595,6 +596,8 @@ Examples:
/print -core abc\tThe message
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
display a snowman (U+2603):
/print -escape \u2603
send alert (BEL):
/print -stderr \a
----

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:20+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1580,7 +1580,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1884,13 +1885,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1901,6 +1904,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-23 19:35+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@ -1664,6 +1664,7 @@ msgstr "Funktionen für die Befehlszeile"
msgid "<action> [<arguments>]"
msgstr "<action> [<arguments>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@ -1715,7 +1716,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -2104,6 +2106,7 @@ msgstr ""
"[-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-"
"action|-error|-join|-network|-quit] <text> || -stdout|-stderr <text>"
#, fuzzy
msgid ""
"-buffer: the buffer where text is displayed (default: current buffer)\n"
" -core: alias of \"-buffer core.weechat\"\n"
@ -2118,13 +2121,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2135,6 +2140,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:21+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1620,7 +1620,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1989,13 +1990,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2006,6 +2009,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"PO-Revision-Date: 2014-01-23 11:27+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-24 10:38+0100\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@ -1689,7 +1689,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1751,7 +1752,8 @@ msgstr ""
" switch_active_buffer: basculer vers le tampon mélangé suivant\n"
" switch_active_buffer_previous: basculer vers le tampon mélangé précédent\n"
" zoom_merged_buffer: zoom sur le tampon mélangé\n"
" insert: insérer du texte dans la ligne de commande\n"
" insert: insérer du texte dans la ligne de commande (les caractères "
"échappés sont autorisés, voir /help print)\n"
" paste_start: début de collage (mode \"bracketed paste\")\n"
" paste_stop: fin de collage (mode \"bracketed paste\")\n"
"\n"
@ -2067,13 +2069,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2084,6 +2088,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""
@ -2101,14 +2107,17 @@ msgstr ""
"pour une liste des étiquettes couramment utilisées)\n"
" texte: texte à afficher (le préfixe et le message doivent être séparés par "
"\\t)\n"
"-stdout: afficher le texte sur stdout (pas dans un tampon)\n"
"-stderr: afficher le texte sur stderr (pas dans un tampon)\n"
"-stdout: afficher le texte sur stdout (les caractères échappés sont "
"interprétés)\n"
"-stderr: afficher le texte sur stderr (les caractères échappés sont "
"interprétés)\n"
"\n"
"Les options -action ... -quit utilisent le préfixe défini dans les options "
"\"weechat.look.prefix_*\".\n"
"\n"
"Avec les options -stdout et -stderr, les caractères échappés sont toujours "
"interprétés.\n"
"Les caractères échappés suivants sont supportés:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Exemples:\n"
" afficher un pense-bête sur le tampon core avec un highlight:\n"
@ -2119,6 +2128,8 @@ msgstr ""
" /print -core abc\\tLe message\n"
" afficher un message sur le canal #weechat:\n"
" /print -buffer irc.freenode.#weechat Message sur #weechat\n"
" afficher un bonhomme de neige (U+2603):\n"
" /print -escape \\u2603\n"
" envoyer une alerte (BEL):\n"
" /print -stderr \\a"

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-06 10:16+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1448,7 +1448,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1665,13 +1666,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1682,6 +1685,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:22+0100\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1656,7 +1656,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -2027,13 +2028,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2044,6 +2047,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:22+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@ -1595,6 +1595,7 @@ msgstr "コマンドライン関数"
msgid "<action> [<arguments>]"
msgstr "<action> [<arguments>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@ -1646,7 +1647,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -2014,13 +2016,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2031,6 +2035,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:23+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1637,6 +1637,7 @@ msgstr "funkcje linii komend"
msgid "<action> [<arguments>]"
msgstr "<akcja> [<argumenty>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@ -1688,7 +1689,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -2062,13 +2064,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -2079,6 +2083,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-18 21:23+0100\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1632,7 +1632,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1968,13 +1969,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1985,6 +1988,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-06 10:17+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1470,7 +1470,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1688,13 +1689,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1705,6 +1708,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2014-01-06 10:17+0100\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1305,7 +1305,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1498,13 +1499,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1515,6 +1518,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2014-01-23 11:24+0100\n"
"POT-Creation-Date: 2014-01-24 10:38+0100\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@ -1311,7 +1311,8 @@ msgid ""
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, see /help "
"print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -1501,13 +1502,15 @@ msgid ""
" -tags: comma-separated list of tags (see /help filter for a list of tags "
"most commonly used)\n"
" text: text to display (prefix and message must be separated by \\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options \"weechat."
"look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -1518,6 +1521,8 @@ msgid ""
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"
msgstr ""

View File

@ -6899,7 +6899,8 @@ command_init ()
" switch_active_buffer: switch to next merged buffer\n"
" switch_active_buffer_previous: switch to previous merged buffer\n"
" zoom_merged_buffer: zoom on merged buffer\n"
" insert: insert text in command line\n"
" insert: insert text in command line (escaped chars are allowed, "
"see /help print)\n"
" paste_start: start paste (bracketed paste mode)\n"
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
@ -7116,14 +7117,15 @@ command_init ()
"of tags most commonly used)\n"
" text: text to display (prefix and message must be separated by "
"\\t)\n"
"-stdout: display text on stdout (not in a buffer)\n"
"-stderr: display text on stderr (not in a buffer)\n"
"-stdout: display text on stdout (escaped chars are interpreted)\n"
"-stderr: display text on stderr (escaped chars are interpreted)\n"
"\n"
"The options -action ... -quit use the prefix defined in options "
"\"weechat.look.prefix_*\".\n"
"\n"
"With options -stdout and -stderr, escaped chars are always "
"interpreted.\n"
"Following escaped chars are supported:\n"
" \\\" \\\\ \\a \\b \\e \\f \\n \\r \\t \\v \\0ooo \\xhh \\uhhhh "
"\\Uhhhhhhhh\n"
"\n"
"Examples:\n"
" display a reminder on core buffer with a highlight:\n"
@ -7134,6 +7136,8 @@ command_init ()
" /print -core abc\\tThe message\n"
" display a message on channel #weechat:\n"
" /print -buffer irc.freenode.#weechat Message on #weechat\n"
" display a snowman (U+2603):\n"
" /print -escape \\u2603\n"
" send alert (BEL):\n"
" /print -stderr \\a"),
"-buffer %(buffers_numbers)|%(buffers_plugins_names)"

View File

@ -631,18 +631,20 @@ string_strip (const char *string, int left, int right, const char *chars)
* Converts escaped chars to their value.
*
* Following escaped chars are supported:
* \" double quote
* \\ backslash
* \a alert (BEL)
* \b backspace
* \e escape
* \f form feed
* \n new line
* \r carriage return
* \t horizontal tab
* \v vertical tab
* \0ooo octal value (ooo is 0 to 3 digits)
* \xhh hexadecimal value (hh is 1 to 2 digits)
* \" double quote
* \\ backslash
* \a alert (BEL)
* \b backspace
* \e escape
* \f form feed
* \n new line
* \r carriage return
* \t horizontal tab
* \v vertical tab
* \0ooo char as octal value (ooo is 0 to 3 digits)
* \xhh char as hexadecimal value (hh is 1 to 2 digits)
* \uhhhh unicode char as hexadecimal value (hhhh is 1 to 4 digits)
* \Uhhhhhhhh unicode char as hexadecimal value (hhhhhhhh is 1 to 8 digits)
*
* Note: result must be freed after use.
*/
@ -651,8 +653,9 @@ char *
string_convert_escaped_chars (const char *string)
{
const unsigned char *ptr_string;
char *output;
int pos_output, i, value;
char *output, utf_char[16];
int pos_output, i, length;
unsigned int value;
/* the output length is always <= to string length */
output = malloc (strlen (string) + 1);
@ -668,11 +671,11 @@ string_convert_escaped_chars (const char *string)
ptr_string++;
switch (ptr_string[0])
{
case '"':
case '"': /* double quote */
output[pos_output++] = '"';
ptr_string++;
break;
case '\\':
case '\\': /* backslash */
output[pos_output++] = '\\';
ptr_string++;
break;
@ -708,7 +711,7 @@ string_convert_escaped_chars (const char *string)
output[pos_output++] = 11;
ptr_string++;
break;
case '0': /* octal value (0 to 3 digits expected) */
case '0': /* char as octal value (0 to 3 digits) */
value = 0;
for (i = 0; (i < 3) && IS_OCTAL_DIGIT(ptr_string[i + 1]); i++)
{
@ -717,7 +720,7 @@ string_convert_escaped_chars (const char *string)
output[pos_output++] = value;
ptr_string += 1 + i;
break;
case 'x': /* hexadecimal value (1 to 2 digits expected) */
case 'x': /* char as hexadecimal value (1 to 2 digits) */
case 'X':
if (isxdigit (ptr_string[1]))
{
@ -735,6 +738,33 @@ string_convert_escaped_chars (const char *string)
ptr_string++;
}
break;
case 'u': /* unicode char as hexadecimal (1 to 4 digits) */
case 'U': /* unicode char as hexadecimal (1 to 8 digits) */
if (isxdigit (ptr_string[1]))
{
value = 0;
for (i = 0;
(i < ((ptr_string[0] == 'u') ? 4 : 8))
&& isxdigit (ptr_string[i + 1]);
i++)
{
value = (value * 16) + HEX2DEC(ptr_string[i + 1]);
}
utf8_int_string (value, utf_char);
if (utf_char[0])
{
length = strlen (utf_char);
memcpy (output + pos_output, utf_char, length);
pos_output += length;
}
ptr_string += 1 + i;
}
else
{
output[pos_output++] = ptr_string[0];
ptr_string++;
}
break;
default:
output[pos_output++] = '\\';
output[pos_output++] = ptr_string[0];

View File

@ -297,6 +297,56 @@ utf8_char_int (const char *string)
return (int)ptr_string[0];
}
/*
* Converts a unicode char (as unsigned integer) to a string.
*
* The string must have a size >= 5
* (4 bytes for the UTF-8 char + the final '\0').
*
* In case of error (if unicode value is > 0x1FFFFF), the string is set to an
* empty string (string[0] == '\0').
*/
void
utf8_int_string (unsigned int unicode_value, char *string)
{
if (!string)
return;
string[0] = '\0';
if (unicode_value <= 0x007F)
{
/* UTF-8, 1 byte: 0vvvvvvv */
string[0] = unicode_value;
string[1] = '\0';
}
else if (unicode_value <= 0x07FF)
{
/* UTF-8, 2 bytes: 110vvvvv 10vvvvvv */
string[0] = 0xC0 | ((unicode_value >> 6) & 0x1F);
string[1] = 0x80 | (unicode_value & 0x3F);
string[2] = '\0';
}
else if (unicode_value <= 0xFFFF)
{
/* UTF-8, 3 bytes: 1110vvvv 10vvvvvv 10vvvvvv */
string[0] = 0xE0 | ((unicode_value >> 12) & 0x0F);
string[1] = 0x80 | ((unicode_value >> 6) & 0x3F);
string[2] = 0x80 | (unicode_value & 0x3F);
string[3] = '\0';
}
else if (unicode_value <= 0x1FFFFF)
{
/* UTF-8, 4 bytes: 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv */
string[0] = 0xF0 | ((unicode_value >> 18) & 0x07);
string[1] = 0x80 | ((unicode_value >> 12) & 0x3F);
string[2] = 0x80 | ((unicode_value >> 6) & 0x3F);
string[3] = 0x80 | (unicode_value & 0x3F);
string[4] = '\0';
}
}
/*
* Gets wide char from string (first char).
*

View File

@ -35,6 +35,7 @@ extern void utf8_normalize (char *string, char replacement);
extern char *utf8_prev_char (const char *string_start, const char *string);
extern char *utf8_next_char (const char *string);
extern int utf8_char_int (const char *string);
extern void utf8_int_string (unsigned int unicode_value, char *string);
extern wint_t utf8_wide_char (const char *string);
extern int utf8_char_size (const char *string);
extern int utf8_strlen (const char *string);