Dave Jarvis' Repositories

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

Change double quote low from decimal to named entity

AuthorDave Jarvis <email>
Date2022-10-08 11:05:43 GMT-0700
Commit3d51de08616e699fc52bb38606da832972ad8d0e
Parent1d9ef4b
src/main/java/com/whitemagicsoftware/keenquotes/parser/Token.java
*/
private static final Map<LexemeGlyph, String> I18N_ENTITIES = ofEntries(
- entry( LEX_DOUBLE_QUOTE_OPENING_LOW, "&#8222;" ),
+ entry( LEX_DOUBLE_QUOTE_OPENING_LOW, "&ldquor;" ),
entry( LEX_DOUBLE_CHEVRON_LEFT, "&laquo;" ),
entry( LEX_DOUBLE_CHEVRON_RIGHT, "&raquo;" ),
src/test/resources/com/whitemagicsoftware/keenquotes/texts/i18n.txt
# ########################################################################
«What's ‹going› on?» ,,Hey there!"
-&laquo;What&apos;s &lsaquo;going&rsaquo; on?&raquo; &#8222;Hey there!&rdquo;
+&laquo;What&apos;s &lsaquo;going&rsaquo; on?&raquo; &ldquor;Hey there!&rdquo;
# ########################################################################
# ########################################################################
,,Dit is een citaat," zei hij.
-&#8222;Dit is een citaat,&rdquo; zei hij.
+&ldquor;Dit is een citaat,&rdquo; zei hij.
,,Ik heb twee opa's en twee oma's," zei het meisje,„hoeveel heb jij er?"
-&#8222;Ik heb twee opa&apos;s en twee oma&apos;s,&rdquo; zei het meisje,&#8222;hoeveel heb jij er?&rdquo;
+&ldquor;Ik heb twee opa&apos;s en twee oma&apos;s,&rdquo; zei het meisje,&ldquor;hoeveel heb jij er?&rdquo;
"Zeg, wat betekent 'quod non' eigenlijk?", vroeg Nynke.
src/test/resources/com/whitemagicsoftware/keenquotes/texts/unambiguous-1-pass.txt
"’Kearney lives on the banks of Killarney—’
-&ldquo;’Kearney lives on the banks of Killarney—&rsquo;
+&ldquo;&rsquo;Kearney lives on the banks of Killarney—&rsquo;
# ########################################################################
Delta5 lines added, 5 lines removed