Skip to contents

Default map of perl regex patterns (names) and their typographic replacements (values), applied in the given order (longer tokens first).

Usage

wrdSymbolMap()

Value

a named character vector.

Details

The map is built with setNames(): non-ASCII patterns as argument tags, c("\u2264" = ...), would be translated to the native encoding and broken in non-UTF-8 locales.

Examples

wrdSymbolMap()
#>                                   <=>                                    => 
#>                                   "⇔"                                   "⇒" 
#>                                   <->                                    -> 
#>                                   "↔"                                   "→" 
#>                                    <-                                    <= 
#>                                   "←"                                   "≤" 
#>                                    >=                                    != 
#>                                   "≥"                                   "≠" 
#>                            \\+/-|\\+-                             \\.\\.\\. 
#>                                   "±"                                   "…" 
#>                     (?<=\\d)--(?=\\d)                  (?<=\\d) ?x ?(?=\\d) 
#>                                   "–"                                 " × " 
#>                                  \\^2                                  \\^3 
#>                                   "²"                                   "³" 
#>   (?<=[pnN]) ?([<=>≤≥]) ?(?=[−.\\d-]) (^|(?<=[\\s (\\[;,=<>≤≥]))-(?=[\\d.]) 
#>                               " \\1 "                                   "−" 
# extend the map
map <- c(wrdSymbolMap(), "chi2" = "\u03C7\u00B2")