Dave Jarvis' Repositories

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

Protects script and style

AuthorDaveJarvis <email>
Date2025-08-25 12:23:49 GMT-0700
Commit20274ba4b940a67c65413e6892475ae77b55e5fd
Parent4fea18a
src/main/java/com/whitemagicsoftware/keenquotes/lex/XmlFilter.java
"tex",
"kbd",
+ "script",
+ "style",
"samp",
"var",
src/test/resources/com/whitemagicsoftware/keenquotes/texts/unambiguous-2-pass.txt
"...?!"
-&ldquo;...?!&rdquo;
+&ldquo;&hellip;?!&rdquo;
" ... "
-&ldquo; ... &rdquo;
+&ldquo; &hellip; &rdquo;
"I like 'That '70s show'", she said.
' ... '
-&lsquo; ... &rsquo;
+&lsquo; &hellip; &rsquo;
' ... ' ' ... '
-&lsquo; ... &rsquo; &lsquo; ... &rsquo;
+&lsquo; &hellip; &rsquo; &lsquo; &hellip; &rsquo;
'?'
"But ye've been 'nation quiet all the day though," said the lad...
-&ldquo;But ye&apos;ve been &apos;nation quiet all the day though,&rdquo; said the lad...
+&ldquo;But ye&apos;ve been &apos;nation quiet all the day though,&rdquo; said the lad&hellip;
"Not much o' fellow-creaturs, I think, Miss; all I know—my old master, as war a knowin' man, used to say, says he, 'If e'er I sow my wheat wi'out brinin', I'm a Dutchman,' says he; an' that war as much as to say as a Dutchman war a fool, or next door. Nay, nay, I aren't goin' to bother mysen about Dutchmen. There's fools enoo, an' rogues enoo, wi'out lookin' i' books for 'em."
src/test/resources/com/whitemagicsoftware/keenquotes/texts/xml.txt
<body><p>Test lungs&apos; capacity; shovel&apos;s handle hit his head&apos;s electronics.</p><p>Hoped to bring him &apos;round.</p></body>
+<style>@font-face { font-family: 'Literata Book'; src: url('/fonts/LiterataBook.otf') format('opentype'); }</style>
+<style>@font-face { font-family: 'Literata Book'; src: url('/fonts/LiterataBook.otf') format('opentype'); }</style>
+
Delta10 lines added, 5 lines removed, 5-line increase