[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: More questions about translating kajongg
From:       Wolfgang Rohdewald <wolfgang () rohdewald ! de>
Date:       2010-10-20 13:27:41
Message-ID: 201010201527.41513.wolfgang () rohdewald ! de
[Download RAW message or body]

On Mittwoch 20 Oktober 2010, Frank Weng (a.k.a. Franklin) wrote:
> Here are some more questions about translating kajongg.
> I researched the regular expressions for the rules, but
> couldn't understand  some of them. 
>
> 1. Fourfold Plenty: 
> Its regular expression
> is:  /((.\d\d\d){0,1}(.4\d\d)(.\d\d\d){0,1}){4,4} - - What
> does "\d" mean?
>   - I don't understand it.  Can you please give me an example
> of that?

the english Kajongg documentation gives you a link:
http://docs.python.org/library/re.html#regular-expression-syntax
please search for \d on that page.

> 2. Four Blessings Hovering Over the Door
> Its regular expression is: I /\S*(w[34]\d\d){4,4}\S* -
> 
>   - What does "I" in the beginning? 

this is explained in the english Kajongg documentation:
the following is a regular expression ignoring upper/lowercase

>   - What does "\S" mean?

see the above link about regular expressions

>   -  Does this one mean pon or kong for all winds (East,
> South, West, North)?

yes, plus any additional pair. See  
http://www.google.de/search?hl=de&q=%22hovering+over+the+door%22+mah+jongg&btnG=Suche

> 3. I don't understand what is a "Limit Hand".

a hand giving the winner the maximum possible score. See for 
example 
http://www.xs4all.nl/~korntner/mahjong/nanette/nan_notes.html
(search for Limit hands)
 
> 4. What is an "Offense"?

an action resulting in a penalty for the offending player.
See same link, search for Penalties

-- 
Wolfgang
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic