diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2007-07-12 15:00:45 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2007-07-12 15:00:45 +0000 |
commit | 241f70f869c9d04ad13fdaa8b53ba57067426e8b (patch) | |
tree | 84c615ab66fb2b90eeabefcf7360fe9eb3db63ee /doc/de | |
parent | 9d5ef17bd66a91b8023e428e316d039e31f5f858 (diff) | |
download | weechat-241f70f869c9d04ad13fdaa8b53ba57067426e8b.zip |
Fixed bugs with IRC color in messages, now color codes are inserted in command line with ^Cc,^Cb,.. instead of %C,%B,.. (bug #20222, task #7060)
Diffstat (limited to 'doc/de')
-rw-r--r-- | doc/de/config.xml | 2 | ||||
-rw-r--r-- | doc/de/weechat.de.xml | 162 | ||||
-rw-r--r-- | doc/de/weechat_commands.xml | 31 |
3 files changed, 170 insertions, 25 deletions
diff --git a/doc/de/config.xml b/doc/de/config.xml index 704a27e2f..7c0c4349f 100644 --- a/doc/de/config.xml +++ b/doc/de/config.xml @@ -955,7 +955,7 @@ <entry>Boolean</entry> <entry>eine beliebige Zeichenfolge</entry> <entry>'on'</entry> - <entry>Erlaube Benutzern, spezielle Codes zu versenden (%B=fett, %Cxx,yy=Farbe, %U=unterstrichen, %R=reverse/umgekehrt)</entry> + <entry>Allow user to send colors with special codes (^Cb=bold, ^Ccxx=color, ^Ccxx,yy=color+background, ^Cu=underline, ^Cr=reverse)</entry> </row> <row> <entry><option>irc_send_unknown_commands</option></entry> diff --git a/doc/de/weechat.de.xml b/doc/de/weechat.de.xml index eddcc9ca0..db3514a3a 100644 --- a/doc/de/weechat.de.xml +++ b/doc/de/weechat.de.xml @@ -810,7 +810,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. <para> Wenn die Option IRC-Farben ("<literal>irc_colors_send</literal>") senden - angeschaltet ist, können sie Farbcodierung und Attribute wiefolgt verwenden: + angeschaltet ist, können sie Farbcodierung und Attribute wiefolgt verwenden + <!-- TRANSLATION NEEDED --> + (press Ctrl-C then following letter, with optional value): <informaltable colsep="0" frame="none"> <tgroup cols="2"> <thead> @@ -821,20 +823,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. </thead> <tbody> <row> - <entry>%B</entry> + <entry>^Cb</entry> <entry> Fett (bold) </entry> </row> <row> - <entry>%Cxx</entry> + <entry>^Ccxx</entry> <entry> Textfarbe "<literal>xx</literal>" (color) (siehe Farbtabelle) </entry> </row> <row> - <entry>%Cxx,yy</entry> + <entry>^Ccxx,yy</entry> <entry> Textfarbe "<literal>xx</literal>" und Hintergrund "<literal>yy</literal>" @@ -842,29 +844,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. </entry> </row> <row> - <entry>%O</entry> + <entry>^Co</entry> <entry> Schalte Farben und Attribute ab </entry> </row> <row> - <entry>%R</entry> + <entry>^Cr</entry> <entry> umgedrehte Farben (tausche Textfarbe mit Hintergrundfarbe) </entry> </row> <row> - <entry>%U</entry> + <entry>^Cu</entry> <entry> Unterstreiche Text </entry> </row> - <row> - <entry>%%</entry> - <entry> - Schreibe ein einzelnes "<literal>%</literal>" - </entry> - </row> </tbody> </tgroup> </informaltable> @@ -873,7 +869,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. </para> <para> - Farbcodes für %C: + Farbcodes für ^Cc: <informaltable colsep="0" frame="none"> <tgroup cols="2"> <thead> @@ -956,7 +952,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. Beispiel: Anzeige von "<literal>hello everybody!</literal>" mit "<literal>hello</literal>" fett in hellem Blau, und "<literal>everybody</literal>" unterstrichen in hellem Rot: -<screen><userinput>%C12%Bhello%B%C04%U everybody%U%C!</userinput></screen> +<screen><userinput>^Cc12^Cbhello^Cb^Cc04^Cu everybody^Cu^Cc!</userinput></screen> </para> </section> @@ -1851,6 +1847,63 @@ plugin->exec_on_files (plugin, "/tmp", &callback); </listitem> </itemizedlist> </para> + <!-- TRANSLATION NEEDED --> + <para> + To display colored text, there are following codes: + <informaltable colsep="0" frame="none"> + <tgroup cols="2"> + <thead> + <row> + <entry>Code</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry>0x02</entry> + <entry> + bold text + </entry> + </row> + <row> + <entry>0x03 + "xx"</entry> + <entry> + text color "<literal>xx</literal>" + (see <xref linkend="secAPI_get_irc_color" /> for colors) + </entry> + </row> + <row> + <entry>0x03 + "xx,yy"</entry> + <entry> + text color "<literal>xx</literal>" + and background "<literal>yy</literal>" + (see <xref linkend="secAPI_get_irc_color" /> for colors) + </entry> + </row> + <row> + <entry>0x0F</entry> + <entry> + disable color and attributes + </entry> + </row> + <row> + <entry>0x12</entry> + <entry> + reverse video (revert text color with background) + </entry> + </row> + <row> + <entry>0x1F</entry> + <entry> + underlined text + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + Note: the same code (without number for 0x03) may be used to stop + the attribute. + </para> <para> Rückgabewert: keiner. </para> @@ -1860,6 +1913,10 @@ plugin->exec_on_files (plugin, "/tmp", &callback); plugin->print (plugin, NULL, NULL, "hello"); plugin->print (plugin, NULL, "#weechat", "hello"); plugin->print (plugin, "freenode", "#weechat", "hello"); +plugin->print (plugin, NULL, NULL, + "Test: \x02 Fett \x0F\x03%02d Blau \x03%02d Grün", + plugin->get_irc_color (plugin, "blue"), + plugin->get_irc_color (plugin, "green")); </screen> </para> </section> @@ -1893,6 +1950,10 @@ plugin->print (plugin, "freenode", "#weechat", "hello"); </itemizedlist> </para> <para> + <!-- TRANSLATION NEEDED --> + To display colored text, see <xref linkend="secAPI_print" />. + </para> + <para> Rückgabewert: keiner. </para> <para> @@ -5221,6 +5282,10 @@ weechat.set_charset("ISO-8859-1") </itemizedlist> </para> <para> + <!-- TRANSLATION NEEDED --> + To display colored text, see <xref linkend="secAPI_print" />. + </para> + <para> Rückgabewert: 1 bei Erfolg, 0 wenn ein Fehler aufgetreten ist </para> <para> @@ -5230,6 +5295,7 @@ weechat.set_charset("ISO-8859-1") weechat::print("message"); weechat::print("message", "#weechat"); weechat::print("message", "#weechat", "freenode"); +weechat::print("test: \x0305 rot \x0F normal"); # python weechat.prnt("message") @@ -5249,6 +5315,72 @@ weechat.print("message", "#weechat", "freenode") </para> </section> + <!-- TRANSLATION NEEDED --> + <section id="secScript_print_server"> + <title>print_server</title> + + <para> + Perl prototype: + <command> + weechat::print_server(message) + </command> + </para> + <para> + Python prototype: + <command> + weechat.print_server(message) + </command> + </para> + <para> + Ruby prototype: + <command> + Weechat.print_server(message) + </command> + </para> + <para> + Lua prototype: + <command> + weechat.print_server(message) + </command> + </para> + <para> + Display a message on server buffer. + </para> + <para> + Arguments: + <itemizedlist> + <listitem> + <para> + <option>message</option>: message + </para> + </listitem> + </itemizedlist> + </para> + <para> + To display colored text, see <xref linkend="secAPI_print" />. + </para> + <para> + Return value: 1 if success, 0 if an error occurred. + </para> + <para> + Examples: +<screen> +# perl +weechat::print_server("message"); +weechat::print_server("test: \x0305 rot \x0F normal"); + +# python +weechat.print_server("message") + +# ruby +Weechat.print_server("message") + +-- lua +weechat.print_server("message") +</screen> + </para> + </section> + <section id="secScript_print_infobar"> <title>print_infobar</title> diff --git a/doc/de/weechat_commands.xml b/doc/de/weechat_commands.xml index a1a46c58d..c999b7533 100644 --- a/doc/de/weechat_commands.xml +++ b/doc/de/weechat_commands.xml @@ -22,15 +22,28 @@ Argumente: Argumente für den Befehl <programlisting> Puffer verwalten - Aktion: Pufferaktion: - move: Puffer in der Liste bewegen (kann auch relativ sein, wie -1) - close: Puffer schließen (eine Part-Message kann optional angegeben werden) - list: alle offenen Puffer auflisten (Standardaktion) - notify: Notify-Level für Puffer festlegen (0=nie, 1=bei hervorgehobenen Nachrichten, 2=1+persönliche Nachricht, 3=2+join/part) - (wenn der Befehl in einem Server Puffer ausgeführt wird, setzt er den Default-Notify-Level für den ganzen Server) -Server -Channel: gehe zum Puffer mit Servernamen oder Channelnamen - Nummer: gehe zu Puffer mit dieser Nummer + action: action to do: + move: move buffer in the list (may be relative, for example -1) + close: close buffer (optional arg is part message, for a channel) + list: list open buffers (no parameter implies this list) + notify: set notify level for buffer (0=never, 1=highlight, 2=1+msg, 3=2+join/part) + (when executed on server buffer, this sets default notify level for whole server) + scroll: scroll in history (may be relative, and may end by a letter: s=sec, m=min, h=hour, d=day, M=month, y=year); if there is only letter, then scroll to beginning of this item + + number: jump to buffer by number +server, +channel: jump to buffer by server and/or channel name + +Examples: + move buffer: /buffer move 5 + close buffer: /buffer close this is part msg + set notify: /buffer notify 2 + scroll 1 day up: /buffer scroll 1d == /buffer scroll -1d == /buffer scroll -24h +scroll to beginning + of this day: /buffer scroll d + scroll 15 min down: /buffer scroll +15m + scroll 20 msgs up: /buffer scroll -20 + jump to #weechat: /buffer #weechat </programlisting> <command>builtin Befehl</command> |