Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 16 Mar 2010 02:11:35 +0300
From: Solar Designer <solar@...nwall.com>
To: john-users@...ts.openwall.com
Subject: Re: Capitalise 2 words in a line

On Mon, Mar 15, 2010 at 10:40:47AM +0100, websiteaccess@...il.com wrote:
>  Is it the best to Capitalise 2 words then swap them ?
> 
> /  ^  Xpz0 \[ 'l  /  va01 vapa c Ta
> 
>  john doe -> Doe John

No, the above rule is not the most optimal way to do it.  You can do:

/  c ^  Xpz0 \[ T0 'l

which is fewer commands.  Then you can add some "rejects" to it to avoid
producing effectively the same strings that are produced by other rules
you might have:

-c /  (?a c ^  Xpz0 \[ (?a T0 'l

You may use "(?l" instead of "(?a" in one or both places, depending on
what other rules you have.

You may also use more complicated rules that manage to use the "c"
command (with its more complicated logic) for both words:

/  c M xpz \[ c $  X0pz 'l

or:

-c (?a /  c M xpz \[ (?a c $  X0pz 'l

Finally, here are some fancier rules that you could want to benchmark
against the simple rule:

/  va01 vapa c Ta M 'p ^  Xaz0

or:

-c /  (?a va01 vapa =a?a c Ta M 'p ^  Xaz0

These use more commands, but most of the commands are lightweight.

Alexander

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.