Changeset 1130 for trunk


Ignore:
Timestamp:
12/20/11 18:59:06 (5 months ago)
Author:
james
Message:

add a bunch of debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/en/output_colloquial.tcl

    r1112 r1130  
    2525  if [bMotion_plugin_output_colloq_chance $colloq_rate] { 
    2626    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                } 
    2730  } 
    2831 
    2932  if [bMotion_plugin_output_colloq_chance $colloq_rate] { 
    3033    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                } 
    3137  } 
    3238 
     
    3440    regsub -all -nocase "sort of" $line "sorta" line 
    3541    regsub -all -nocase "something" $line "sommat" line 
     42                if {$line == ""} { 
     43                        putlog "colloq plugin killed output: 3" 
     44                } 
    3645  } 
    3746 
     
    4049    regsub -all -nocase "seam" $line "seem" line 
    4150    regsub -all -nocase "mean" $line "meen" line 
     51                if {$line == ""} { 
     52                        putlog "colloq plugin killed output: 4" 
     53                } 
    4254  } 
    4355 
     
    4658    regsub -all -nocase "separate" $line "seperate" line 
    4759    regsub -all -nocase "definitely" $line "definately" line 
     60                if {$line == ""} { 
     61                        putlog "colloq plugin killed output: 5" 
     62                } 
    4863  } 
    4964 
     
    5166    regsub -all -nocase {\myou\M} $line [bMotion_abstract_get "colloq_you"] line 
    5267    regsub -all -nocase {\myour\M} $line [bMotion_abstract_get "colloq_your"] line 
     68                if {$line == ""} { 
     69                        putlog "colloq plugin killed output: 6" 
     70                } 
    5371  } 
    5472 
    5573  if [bMotion_plugin_output_colloq_chance $colloq_rate] { 
    5674    regsub -all -nocase "n't" $line "nt" line 
     75                if {$line == ""} { 
     76                        putlog "colloq plugin killed output: 7" 
     77                } 
    5778  } 
    5879 
     
    7495  } 
    7596  set line $newLine 
     97                if {$line == ""} { 
     98                        putlog "colloq plugin killed output: 8" 
     99                } 
    76100 
    77101  #don't waste time updating if the line didn't change 
     
    79103    return $oldLine 
    80104  } 
     105 
     106        if {$line == ""} { 
     107                putlog "colloq plugin recovering output" 
     108                return $oldLine 
     109        } 
    81110 
    82111  return [string trim [bMotionDoInterpolation $line "" ""]] 
Note: See TracChangeset for help on using the changeset viewer.