Changeset 2055

Show
Ignore:
Timestamp:
03/09/08 03:52:48 (2 months ago)
Author:
joshr
Message:

elaborated Usage() output. Also, don't capitalize words unless in
'englishify' mode.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Swishetest/trunk/make_collection

    r2003 r2055  
    3434           "  [--min_words_per_file=$min_words_per_file] [--max_words_per_file=$max_words_per_file] [--num_files=$num_files]\n" . 
    3535           "  [--verbose] [--englishify] [--filetype=(txt|html|xml)] [--(no)randommode]:\n" . 
    36            "   Makes a set of (possibly random) xml, html, or txt files based on a dict.\n"; 
     36           "   Makes a set of (possibly random) xml, html, or txt files based on a dict.\n" .  
     37           "   If you dont set a --base_dir, then it outputs data like a swish-e prog.\n"; 
    3738} 
    3839 
     
    9192            # choose the next word, either randomly, or sequentially 
    9293 
    93             if ($toCap) { $toadd = "\u$toadd"; $toCap = 0; } 
     94            if ($englishify && toCap) { $toadd = "\u$toadd"; $toCap = 0; } 
    9495            if (!defined($toadd)) { next; }  
    9596            $doc .= $toadd;