Revision: 14953
http://sourceforge.net/p/foray/code/14953
Author: victormote
Date: 2026-07-30 17:05:44 +0000 (Thu, 30 Jul 2026)
Log Message:
-----------
Fix problem of nested text elements picking up the wrong writing system.
Modified Paths:
--------------
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/util/SpellChecker.java
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/util/SpellChecker.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/util/SpellChecker.java 2026-07-30 16:19:25 UTC (rev 14952)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/util/SpellChecker.java 2026-07-30 17:05:44 UTC (rev 14953)
@@ -322,6 +322,9 @@
break;
}
case ("text"): {
+ /* Push any existing content to the lexer. */
+ final String text = getAndClearText();
+ lexer.addUntokenized(text, oldWritingSystem);
createAndPushTextElement(uri, localName, qName, attributes);
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|