From kde-i18n-doc Thu Aug 23 11:22:29 2001 From: Eric Bischoff Date: Thu, 23 Aug 2001 11:22:29 +0000 To: kde-i18n-doc Subject: doc for ksirc X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=99856534308773 Hi all, Just to inform you that I did a few fixes in ksirc's doc. The details follow. -------------------------------------------------------------------- RCS file: /home/kde/kdenetwork/doc/ksirc/index.docbook,v retrieving revision 1.12 diff -u -r1.12 index.docbook --- index.docbook 2001/08/02 10:38:38 1.12 +++ index.docbook 2001/08/23 10:57:26 @@ -25,7 +25,7 @@ -2001-07-25 +2001-08-23 1.10.00 &FDLNotice; @@ -335,7 +335,7 @@ ˜i sets italics -˜r sets underline +˜r sets reverse video @@ -619,7 +619,7 @@ to deal with them one bit at a time. You could do it in less rules, but it'll show you the basic rule structure, in nice steps, and how to use multiple rules to parse a message. The first step is to remove the -Path: portion of the message, and will be example 4. +Path: portion of the message: Match: ^\*\*\*.* KILL message for.* From: Path: \S+ @@ -630,7 +630,7 @@ the *'s have to be quoted with \ since by themselves they mean 0 or more of the prior character. .* means: match anything until you find -"KILL message for". This allows us to avoid typing in +KILL message for. This allows us to avoid typing in -- Received... &etc; The trailing .* means: match anything to the end of the line. (not needed, I think) @@ -659,8 +659,8 @@ Match rule searches for the KILL message and makes sure it's from NickServ. Notice the \( and \) -both () and used in regex, therefore we have to quote -them. This is very similar to example 3. +are both used in regex, therefore we have to quote +them. This is very similar to what we said two examples before. @@ -668,21 +668,22 @@ still pretty hard to read by simply glancing at it. So let's reorder it to something like: -*** [KILL] <KILLER> killed <KILLED> (reason) -Match: \*\*\*.*KILL message +*** [KILL] KILLER; killed KILLED; (REASON) + +Match: \*\*\*.*KILL message From: \*\*\*.*for (.*?) from (.*?)\. \((.*?)\).* To: *** [KILL] $$2 killed $$1 ($$3) Ok, the match looks for -***something KILL message. +***something KILL message. We can't use ˆ since we may have just appended ˜<window>˜. -The from line get's a little more interesting. The "for +The from line gets a little more interesting. The "for (.*?) " looks for the word "for" then some text. .*? means: match zero or more of anything except -newline, but isn't greedy. Stop when the first terminating condition is +newline, but isn't greedy. The rule is to stop when the first terminating condition is found, not the last. In other words it matches anything until a space is encountered. The surrounding () means: save the contents. Each () saves the matched data in $# where @@ -696,7 +697,9 @@ -How to colorize your life. Ok, you want to add some color to +How to colorize your life. + +Ok, you want to add some color to &ksirc;. See the Colors section for color info, but here's a filter rule to highlight the nick between <NICK> on each line: @@ -706,7 +709,7 @@ To: <˜4$$1˜c> Takes the nick and adds color #4 between the two -<> ˜c clears the color. +<>. ˜c clears the color. @@ -764,7 +767,7 @@ &Ctrl;X -Cut Window +Cut --------------------------------------------------------------------------------------