Sha256: 24d3cc7e2b2de89569cf270022e77fc2532b49044cf47137363506ebe5acfbe7
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# encoding: UTF-8 module Sterile # @private class Data def self.smart_format_rules [ ["'tain't", "’tain’t"], ["'twere", "’twere"], ["'twas", "’twas"], ["'tis", "’tis"], ["'twill", "’twill"], ["'til", "’til"], ["'bout", "’bout"], ["'nuff", "’nuff"], ["'round", "’round"], ["'cause", "’cause"], ["'cos", "’cos"], ["i'm", "i’m"], ['--"', "—”"], ["--'", "—’"], ["--", "—"], ["...", "…"], ["(tm)", "™"], ["(TM)", "™"], ["(c)", "©"], ["(r)", "®"], ["(R)", "®"], [/s\'([^a-zA-Z0-9])/, "s’\\1"], [/"([:;])/, "”\\1"], [/\'s$/, "’s"], [/\'(\d\d(?:’|\')?s)/, "’\\1"], [/(\s|\A|"|\(|\[)\'/, "\\1‘"], [/(\d+)"/, "\\1′"], [/(\d+)\'/, "\\1″"], [/(\S)\'([^\'\s])/, "\\1’\\2"], [/(\s|\A|\(|\[)"(?!\s)/, "\\1“\\2"], [/"(\s|\S|\Z)/, "”\\1"], [/\'([\s.]|\Z)/, "’\\1"], [/(\d+)x(\d+)/, "\\1×\\2"], [/([a-z])'(t|d|s|ll|re|ve)(\b)/i, "\\1’\\2\\3"], ] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sterile-1.0.8 | lib/sterile/data/smart_format_rules.rb |
sterile-1.0.7 | lib/sterile/data/smart_format_rules.rb |
sterile-1.0.6 | lib/sterile/data/smart_format_rules.rb |