Changeset 902
- Timestamp:
- 04/23/08 07:03:22 (9 months ago)
- Files:
-
- 1 modified
-
trunk/modules/extra/jeffk.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/extra/jeffk.tcl
r506 r902 1 1 # $Id$ 2 3 2 # 4 3 5 6 4 ############################################################################### 5 # This is a bMotion plugin 6 # Copyright (C) James Michael Seward 2000-2002 7 # 8 # This program is covered by the GPL, please refer the to LICENCE file in the 9 # distribution; further information can be found in the headers of the scripts 10 # in the modules directory. 7 11 ############################################################################### 8 12 9 # This is a bMotion plugin10 11 # Copyright (C) James Michael Seward 2000-200212 13 #14 15 # This program is covered by the GPL, please refer the to LICENCE file in the16 17 # distribution; further information can be found in the headers of the scripts18 19 # in the modules directory.20 21 ###############################################################################22 23 24 25 26 27 13 proc bMotion_module_extra_jeffk { line } { 28 29 14 set line [string map -nocase {"hello" "helko" "n\'t" "ant" "sy" "sey" "is" "si"} $line] 30 31 15 set line [string map -nocase {"like" "liek" "you" "yuo" "site" "siet" "body" "bodey"} $line] 32 33 16 set line [string map -nocase {"taken" "taken" "ter" "tar" "make" "maek" "number" "%VAR{jeffk_number}"} $line] 34 35 17 set line [string map -nocase {"name" "naem" "ll" "l" "ly" "ley"} $line] 36 37 18 set line [string map -nocase {"ble" "bal" "word" "wrod" "inter" "intar" "lay" "alay" "luck" "luick" "here" "hear"} $line] 38 19 … … 41 22 #set line [string map {"?" "%REPEAT{2:5:?}"} $line] 42 23 43 44 45 24 if {![rand 8]} { 46 47 25 append line " %VAR{jeffk_ends}" 48 49 26 } 50 27 51 52 53 28 set line [bMotionDoInterpolation $line "" "" ""] 54 55 29 set line [bMotionInterpolation2 $line] 56 30 31 if {![rand 6]} { 32 set line [string toupper $line] 33 } else { 34 set words [split $line " "] 35 set newline "" 36 foreach word $words { 37 set word [string map -nocase { "you're" "%VAR{jeffk_ur}" "your" "%VAR{jekkf_ur}"} $line] 38 set word [string map -nocase { "their" "%VAR{jeffk_thr}" "there" "%VAR{jeffk_thr}" "they're" "%VAR{jeffk_thr}"} $line] 39 if {![rand 3]} { 40 append newline [string toupper $word] 41 } 42 else { 43 append newline $word 44 } 45 append newline " " 46 } 47 set line $newline 48 } 57 49 58 59 if {![rand 6]} { 60 61 set line [string toupper $line] 62 50 if {![rand 10]} { 51 append line " %VAR{jeffk_ends}" 63 52 } 64 53 65 66 67 if {![rand 10]} { 68 69 append line " %VAR{jeffk_ends}" 70 71 set line [bMotionDoInterpolation $line "" "" ""] 72 73 } 74 75 76 54 set line [bMotionDoInterpolation $line "" "" ""] 77 55 return $line 78 79 56 } 80 57 81 82 83 58 set jeffk_number { "numbar" "number" } 84 85 86 87 59 set jeffk_ends {"wtf" "lol" "omg" "omg lol" "lol wtf" "faggot" "fagott" "hairy"} 60 set jeffk_ur { "you''re" "your" "you're" } 61 set jeffk_thr { "their" "there" "they're" "they''re" "theyre" }
