-
Notifications
You must be signed in to change notification settings - Fork 8
/
sq.xml
44 lines (44 loc) · 1.46 KB
/
sq.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="utf-8" ?>
<subsets>
<subset>
<name>justquotes</name>
<sub>
<name>double_quote_close</name>
<pattern><![CDATA[(?<=[\w\.\,\'\)\}\?!:;-])\"((?=[\.\s\'\)},\?!:;\[-])|$)]]></pattern>
<replace>”</replace>
</sub>
<sub>
<name>re_double_quote_open</name>
<pattern><![CDATA[(^|(?<=[\s'{\(]))"(?=[\w'{-])]]></pattern>
<replace>“</replace>
</sub>
<sub>
<name>single_quote_close</name>
<pattern><![CDATA[(?<=[\w\.\,\"!:;)}\?-])\'((?=[\.\s"},\?!:;\[])|$)]]></pattern>
<replace>’</replace>
</sub>
<sub>
<name>single_quote_open</name>
<pattern><![CDATA[(^|(?<=[\s"{]))'(?=[\w"{-])]]></pattern>
<replace>‘</replace>
</sub>
<sub>
<name>apostrophe</name>
<pattern><![CDATA[(?<=[\w`\*_\}\)])'(?=\w)]]></pattern>
<replace>’</replace>
</sub>
</subset>
<subset>
<name>justdashes</name>
<sub>
<name>en_dash</name>
<pattern><![CDATA[(?<=[\w\*_`"'\.\)\}\]]\s)--(?=\s[\w\*_`"'\{\(\[])]]></pattern>
<replace>–</replace>
</sub>
<sub>
<name>em_dash</name>
<pattern><![CDATA[(?<=[\w\*_`"'\.\)\}\]])---(?=[\w\*_`"'\{\(\[])]]></pattern>
<replace>—</replace>
</sub>
</subset>
</subsets>