Skip to content

Latest commit

 

History

History
102 lines (90 loc) · 7.66 KB

rules.md

File metadata and controls

102 lines (90 loc) · 7.66 KB

Notes

  • All transformations are shown for english. It might differ for other languages.
  • Non-breaking space is represented as ⍽ character.

hyphens

DescriptionInputOutput
two consecutive hyphens surrounded by whitespaces into en dashlorem -- ipsumlorem – ipsum
keep two consecutive hyphens if not surrounded by whitespaceslorem--ipsum --dolorlorem–ipsum –dolor
three consecutive hyphens into em dashlorem --- ipsum---dolorlorem — ipsum — dolor
three consecutive hyphens at the end of line or input into em dashlorem ipsum---
lorem ipsum---
lorem ipsum —
lorem ipsum —
hyphen surrounded by whitespaces into default dashlorem - ipsumlorem – ipsum
keep hyphen if not surrounded by whitespaceslorem-ipsum -dolorlorem-ipsum -dolor
hyphen surrounded by numbers into en dash1-51–5
take only word spaces as possible whitespaces in hypen to dash rulelorem -
ipsum lorem
- ipsum
lorem -
ipsum lorem
- ipsum

math

DescriptionInputOutput
minus sign between numbers3 - 23 − 2
minus sign right before number-1−1
multiplication sign between numbers2 x 3 2x3 2 * 3 2*32 × 3 2x3 2 × 3 2*3
division sign between numbers2 / 3 2/32 ÷ 3 2/3
plusminus sign+- + -± + -
inequality sign!= ! =≠ ! =
plusminus sign before number+-3±3
less than or equal to sign<= < = =<≤ < = =<
greater than or equal to sign>= > = =>≥ > = =>

quotes

DescriptionInputOutput
double straight quotes into curly quotes"lorem ipsum"“lorem ipsum”
double straight quotes inside parentheses into curly quotes("lorem ipsum")(“lorem ipsum”)
keep double straight quotes if they are not in a pair"lorem ipsum"lorem ipsum
keep double straight quotes if they do not represent actual quotes" lorem ipsum"" lorem ipsum"
keep double straight quotes if they are not in a pair"lorem ipsum"lorem ipsum
multiple double straight quotes into curly quotes"lorem" "ipsum"“lorem” “ipsum”
single straight quotes into curly quotes'lorem ipsum'‘lorem ipsum’
single straight quotes inside parentheses into curly quotes('lorem ipsum')(‘lorem ipsum’)
keep single straight quotes if they are not in a pair'lorem ipsum'lorem ipsum
keep single straight quotes if they are not in a pair'lorem' ipsum'‘lorem’ ipsum'
keep single straight quotes if they do not represent actual quotes' lorem ipsum'' lorem ipsum'
multiple single straight quotes into curly quotes'lorem' 'ipsum'‘lorem’ ‘ipsum’
two consecutive commas into double double open down quote if a matching quote is found,,lorem" ,,ipsum''„lorem” „ipsum”
keep two consecutive commas if no matching quote is foundlorem ,,ipsumlorem ,,ipsum
comma into single open down quote in certain cases if a matching quote is foundlorem ,ipsum'lorem ‚ipsum’
keep comma if it is probably commalorem, ipsum' lorem,ipsum' ,loremlorem, ipsum' lorem,ipsum' ,lorem
double straight quote after number into double prime (inch symbol)123"123″
single straight quote after number into single prime (foot symbol)123'123′
single straight quote between two letters into apostropheit'sit’s
single straight quote between two letters into apostrophe inside of single curly quotes'it's'‘it’s’
mixed single and double straight quotes also with apostrophes in various contextsI wasn't a particular fan of the music in the '80s. And then she blurted, "I thought you said, 'I don't like '80s music'?"I wasn’t a particular fan of the music in the ’80s. And then she blurted, “I thought you said, ‘I don’t like ’80s music’?”
one-character content"1"“1”

spaces

DescriptionInputOutput
trim multiple spaces into single onelorem ipsum dolorlorem ipsum dolor
non-breaking space after paragraph symbol
non-breaking space after section symbol§ §
non-breaking space after copyright symbol© ©
non-breaking space after trademark symbol
non-breaking space after registered trademark symbol® ®

symbols

DescriptionInputOutput
copyright(c) (c) (C) 2(c) 2(C) (c)© © © 2(c) 2(C) ©
trademark(tm)(tm) (TM)(TM)
registered trademark(r)(r) (R)(R) ®®®®
ellipsis... a...z .... ......… a…z .... ......
arrows<- ->← →
double question mark??
question exclamation mark?!
exclamation question mark!?
multiple question marks??? ????⁇ ⁇
multiple exclamation marks!! !!!!! !
question exclamation mark with multiple exclamation marks?!! ?!!!⁈ ⁈
exclamation question mark with multiple question marks!?? !???⁉ ⁉