   d.attr 'id', opts.id if opts.id?
   return d
 # inject a filter into the filters list
-insertFilter = (f, t, rx) ->
+insertFilter = (f, t, type) ->
   filters.push f
   m = if f.m then 'always' else 'never'
-  html = if rx then "/#{t}/" else "&ldquo;#{t}&rdquo;"
+  html = switch type
+    when 'w'
+      "&ldquo;#{t}&rdquo;"
+    when 'pre'
+      "&ldquo;#{t}&hellip;&rdquo;"
+    when 'rx'
+      "/#{t}/"
   row = $ "<tr><td>#{html}</td><td class='an'></td><td><span class='X'/></td></tr>"
   an = row.find 'td[class=an]'
   x = row.find 'span'

    done()
  doit = (e) ->
    t = $.trim text.val()
    rx = br.prop 'checked'
    unless rx
      if t.length == 0
        text.notify 'There is no word to filter on.'
        return

        text.notify 'The word to filter on should contain only word characters.'
        return
    try
      f = makeFilter ba.prop('checked'), t, type
    catch error
      text.notify error
      return
    insertFilter f, t, type
    done()
  ti.keypress (e) ->
    doit() if e.which == 13
