lib/config/typogrowth.yaml in typogrowth-0.9.1 vs lib/config/typogrowth.yaml in typogrowth-0.9.3
- old
+ new
@@ -32,18 +32,18 @@
# That's a 6.3" man, he sees sunsets at 10°20'30" E.
# ⇑
:apostrophe_pre :
:pattern : ''''
:re : '(?<=\p{Alpha})('')(?=\p{Alpha})'
- :default :
+ :default :
- '♻'
# And God said 'Foos' game is over'.
# ⇑
:apostrophe_squeez :
:pattern : ''''
:re : '(?<=s)('')(?=\s)'
- :default :
+ :default :
- '♻'
# And God said "∇×(∇×F) = ∇(∇·F) − ∇2F" and there was light.
# ⇑
:left :
:original : '''"'
@@ -85,10 +85,23 @@
:pattern : '♻'
:re : '♻'
:default :
- '’'
+ :quotes_single :
+ :re : '\s+''\s+(.+?)\s+''\s+'
+ :default :
+ - ' ‘\1’ '
+ :ru :
+ - ' «\1» '
+ :quotes_double :
+ :re : '\s+"\s+(.+?)\s+"\s+'
+ :default :
+ - ' “\1” '
+ :ru :
+ - ' «\1» '
+
:alone_single :
:re : '('')'
:alert: true
:default :
- '’'
@@ -97,24 +110,10 @@
:re : '(")'
:alert: true
:default :
- '”'
-:others :
- :ellipsis :
- :re : '\.{3,}'
- :default :
- - '…'
- :mdash :
- :re : '\s*(?<dash> - |--)\s*'
- :default :
- - '—'
- :ru :
- - ' — '
- :us :
- - ' – '
-
:punctuation :
:opening_orphan :
:re : '([(¿¡§#№]|\p{Sc})(?:\s+)'
:default :
- '\1'
@@ -128,10 +127,23 @@
- '\1 '
:fixup :
:re : '([!?.]+)(?:\s*)(\.+)'
:default :
- '\1\2'
-
+ :ellipsis :
+ :re : '\.{3,}'
+ :default :
+ - '…'
+ :mdash :
+ :re : '\s*(?<dash> - |--|–|—)\s*'
+ :default :
+ - '—'
+ :ru :
+ - ' — '
+ :us :
+ - ' – '
+
+# MUST be the last section, since it’ kinda cleanup
:orphans :
:dangling_right :
:re : '(?<=\s|\A)(\p{L})\s+'
:default :
- '\1 '