- Timestamp:
- 12/20/11 18:59:06 (5 months ago)
- File:
-
- 1 edited
-
trunk/plugins/en/output_colloquial.tcl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/en/output_colloquial.tcl
r1112 r1130 25 25 if [bMotion_plugin_output_colloq_chance $colloq_rate] { 26 26 regsub -all -nocase "\mshould( have|\'ve| of)\M" $line [bMotion_abstract_get "colloq_shouldhave"] line 27 if {$line == ""} { 28 putlog "colloq plugin killed output: 1" 29 } 27 30 } 28 31 29 32 if [bMotion_plugin_output_colloq_chance $colloq_rate] { 30 33 regsub -all -nocase "\mshouldn't( have|\'ve| of)\M" $line [bMotion_abstract_get "colloq_shouldhavenot"] line 34 if {$line == ""} { 35 putlog "colloq plugin killed output: 2" 36 } 31 37 } 32 38 … … 34 40 regsub -all -nocase "sort of" $line "sorta" line 35 41 regsub -all -nocase "something" $line "sommat" line 42 if {$line == ""} { 43 putlog "colloq plugin killed output: 3" 44 } 36 45 } 37 46 … … 40 49 regsub -all -nocase "seam" $line "seem" line 41 50 regsub -all -nocase "mean" $line "meen" line 51 if {$line == ""} { 52 putlog "colloq plugin killed output: 4" 53 } 42 54 } 43 55 … … 46 58 regsub -all -nocase "separate" $line "seperate" line 47 59 regsub -all -nocase "definitely" $line "definately" line 60 if {$line == ""} { 61 putlog "colloq plugin killed output: 5" 62 } 48 63 } 49 64 … … 51 66 regsub -all -nocase {\myou\M} $line [bMotion_abstract_get "colloq_you"] line 52 67 regsub -all -nocase {\myour\M} $line [bMotion_abstract_get "colloq_your"] line 68 if {$line == ""} { 69 putlog "colloq plugin killed output: 6" 70 } 53 71 } 54 72 55 73 if [bMotion_plugin_output_colloq_chance $colloq_rate] { 56 74 regsub -all -nocase "n't" $line "nt" line 75 if {$line == ""} { 76 putlog "colloq plugin killed output: 7" 77 } 57 78 } 58 79 … … 74 95 } 75 96 set line $newLine 97 if {$line == ""} { 98 putlog "colloq plugin killed output: 8" 99 } 76 100 77 101 #don't waste time updating if the line didn't change … … 79 103 return $oldLine 80 104 } 105 106 if {$line == ""} { 107 putlog "colloq plugin recovering output" 108 return $oldLine 109 } 81 110 82 111 return [string trim [bMotionDoInterpolation $line "" ""]]
Note: See TracChangeset
for help on using the changeset viewer.
