summaryrefslogtreecommitdiff
path: root/test/smart_punct.txt
blob: 14da741e79bffd1eb57c73f02b0f928f3bc3f58f (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
## Smart punctuation

.
"Hello," said the spider.
"'Shelob' is my name."
.
<p>“Hello,” said the spider.
“‘Shelob’ is my name.”</p>
.

.
'A', 'B', and 'C' are letters.
.
<p>‘A’, ‘B’, and ‘C’ are letters.</p>
.

.
'Oak,' 'elm,' and 'beech' are names of trees.
So is 'pine.'
.
<p>‘Oak,’ ‘elm,’ and ‘beech’ are names of trees.
So is ‘pine.’</p>
.

.
'He said, "I want to go."'
.
<p>‘He said, “I want to go.”’</p>
.

.
Were you alive in the 70's?
.
<p>Were you alive in the 70’s?</p>
.

.
Here is some quoted '`code`' and a "[quoted link](url)".
.
<p>Here is some quoted ‘<code>code</code>’ and a “<a href="url">quoted link</a>”.</p>
.

.
'tis the season to be 'jolly'
.
<p>’tis the season to be ‘jolly’</p>
.

.
"A paragraph with no closing quote.

"Second paragraph by same speaker, in fiction."
.
<p>“A paragraph with no closing quote.</p>
<p>“Second paragraph by same speaker, in fiction.”</p>
.

.
\"This is not smart.\"
This isn\'t either.
.
<p>&quot;This is not smart.&quot;
This isn't either.</p>
.

.
Some dashes:  one---two ---
three---four --- five.
.
<p>Some dashes:  one—two —
three—four — five.</p>
.

.
Escaped dashes: \-- \-\-\-.
.
<p>Escaped dashes: -- ---.</p>
.

.
Dashes between numbers: 5--7, 255--66, 1987--1999.
.
<p>Dashes between numbers: 5–7, 255–66, 1987–1999.</p>
.

.
Ellipses...and...and....
.
<p>Ellipses…and…and….</p>
.

.
No ellipses\.\.\.
.
<p>No ellipses...</p>
.