Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenquotes.git

Curl double quote starting line followed by dash

AuthorDave Jarvis <email>
Date2021-07-07 21:21:10 GMT-0700
Commit6902358cb68bb259eba3ec36b47234a379c97e69
Parent5c0f0c4
src/main/java/com/whitemagicsoftware/keenquotes/Parser.java
*/
private static final LexemeType[] LAGGING_QUOTE_OPENING_DOUBLE =
- new LexemeType[]{WORD, NUMBER, ELLIPSIS, OPENING_GROUP,
+ new LexemeType[]{WORD, NUMBER, DASH, ELLIPSIS, OPENING_GROUP,
QUOTE_SINGLE, QUOTE_SINGLE_OPENING, QUOTE_SINGLE_CLOSING, QUOTE_DOUBLE};
src/test/java/com/whitemagicsoftware/keenquotes/KeenQuotesTest.java
*/
@Test
- @Disabled
public void test_parse_SingleLine_Parsed() {
final var converter = createConverter( out::println );
out.println( converter.apply(
- "'A', 'B', and 'C' are letters."
+ "\"---retroactively!\""
) );
}
src/test/resources/com/whitemagicsoftware/keenquotes/smartypants.txt
&ldquo;Not all open quotes are closed...
+"---retroactively!"
+&ldquo;---retroactively!&rdquo;
+
"And this" and "and this" and "and this" and "and another."
&ldquo;And this&rdquo; and &ldquo;and this&rdquo; and &ldquo;and this&rdquo; and &ldquo;and another.&rdquo;
'It's a beautiful day!'
&lsquo;It&apos;s a beautiful day!&rsquo;
-
-Book 'em, Danno. Rock 'n' roll. 'Cause 'twas the season.
-Book &apos;em, Danno. Rock &apos;n&apos; roll. 'Cause &apos;twas the season.
# ########################################################################
She said, 'Cause I said so!\n\n'If we're done, I've a secret.'
She said, 'Cause I said so!\n\n&lsquo;If we&apos;re done, I&apos;ve a secret.&rsquo;
+
+Book 'em, Danno. Rock 'n' roll. 'Cause 'twas the season.
+Book &apos;em, Danno. Rock &apos;n&apos; roll. 'Cause &apos;twas the season.
'Bout that time I says, 'Boys! I been thinkin' 'bout th' Universe.'
Delta8 lines added, 6 lines removed, 2-line increase