module Sterile

def smart_format_rules

def smart_format_rules
  [
    [/(\S)'([^\'\p{Zs}])/, "\\1’\\2"],
    [/(\p{Zs})"(?!\s)/, "\\1“\\2"],
    [/"(\p{Zs})/, "”\\1"],
    [/'([\p{Zs}.])/, "’\\1"],
  ] + old_smart_format_rules
end