<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Programming_Reference%3ASpeller_Class</id>
	<title>Programming Reference:Speller Class - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Programming_Reference%3ASpeller_Class"/>
	<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:Speller_Class&amp;action=history"/>
	<updated>2026-06-24T17:41:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:Speller_Class&amp;diff=4339&amp;oldid=prev</id>
		<title>Mellinger: /* Properties */</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:Speller_Class&amp;diff=4339&amp;oldid=prev"/>
		<updated>2008-09-11T17:28:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Properties&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:28, 11 September 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Will enter the text contained in the &amp;lt;tt&amp;gt;EntryText&amp;lt;/tt&amp;gt; property into the speller specified when creating the object.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Will enter the text contained in the &amp;lt;tt&amp;gt;EntryText&amp;lt;/tt&amp;gt; property into the speller specified when creating the object.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Properties===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Properties===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;====string EntryText (rw)====&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{SpellerTargetProperties}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The text entered into the speller object when the target is selected.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==See also==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-bci_:diff:1.41:old-4337:rev-4339:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Mellinger</name></author>
	</entry>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:Speller_Class&amp;diff=4337&amp;oldid=prev</id>
		<title>Mellinger at 17:19, 11 September 2008</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Programming_Reference:Speller_Class&amp;diff=4337&amp;oldid=prev"/>
		<updated>2008-09-11T17:19:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Location==&lt;br /&gt;
&amp;lt;tt&amp;gt;src/shared/modules/application/speller&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Synopsis==&lt;br /&gt;
The &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; class provides an abstract interface for &amp;quot;Spellers&amp;quot;. A &amp;quot;Speller&amp;quot; is an object that responds to an &amp;#039;&amp;#039;OnEnter&amp;#039;&amp;#039; event, and holds a set of &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; objects. Holding a set of &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; objects allows to suggest a &amp;quot;next target&amp;quot; based on a desired text output, and an existing text output.&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; is a [[Programming Reference:Target Class|&amp;lt;tt&amp;gt;Target&amp;lt;/tt&amp;gt;]] that is linked to a &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; such that selecting the target results in entering text into the speller.&lt;br /&gt;
&lt;br /&gt;
==Speller Class==&lt;br /&gt;
===Methods===&lt;br /&gt;
====Enter(string)====&lt;br /&gt;
Prompts the speller to react to the information provided in the argument string. The &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; class interface makes no assumption about the encoding used, i.e. it does not interpret the argument string in any way.&lt;br /&gt;
====Add(SpellerTarget pointer)====&lt;br /&gt;
Adds the specified &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; to the speller&amp;#039;s set of targets.&lt;br /&gt;
====Remove(SpellerTarget pointer)====&lt;br /&gt;
Removes the specified &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; from the speller&amp;#039;s set of targets.&lt;br /&gt;
====DeleteObjects()====&lt;br /&gt;
Deletes all &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; objects that are part of the speller&amp;#039;s set of targets.&lt;br /&gt;
====SpellerTarget pointer SuggestTarget(string from, string to)====&lt;br /&gt;
Returns a pointer to a target from the speller object&amp;#039;s set of targets. The suggested target is chosen such that it minimizes the string distance between the modified &amp;quot;from&amp;quot; argument to the &amp;quot;to&amp;quot; argument after application of the target&amp;#039;s entry text.&lt;br /&gt;
This is a virtual function, and should be overridden by spellers that use encoded commands in targets&amp;#039; entry texts.&lt;br /&gt;
&lt;br /&gt;
===Events===&lt;br /&gt;
====OnEnter(string)====&lt;br /&gt;
In its &amp;lt;tt&amp;gt;OnEnter&amp;lt;/tt&amp;gt; event handler, a &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; descendant should perform actions that correspond to entering the text given as an argument.&lt;br /&gt;
&lt;br /&gt;
==SpellerTarget Class==&lt;br /&gt;
===Methods===&lt;br /&gt;
====SpellerTarget(Speller)====&lt;br /&gt;
When constructing a speller target, specify the &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; object it is associated with. The &amp;lt;tt&amp;gt;SpellerTarget&amp;lt;/tt&amp;gt; object will add itself to the &amp;lt;tt&amp;gt;Speller&amp;lt;/tt&amp;gt; object&amp;#039;s set of targets, and may be deleted using &amp;lt;tt&amp;gt;Speller::DeleteObjects()&amp;lt;/tt&amp;gt; when appropriate.&lt;br /&gt;
====Select()====&lt;br /&gt;
Will enter the text contained in the &amp;lt;tt&amp;gt;EntryText&amp;lt;/tt&amp;gt; property into the speller specified when creating the object.&lt;br /&gt;
===Properties===&lt;br /&gt;
====string EntryText (rw)====&lt;br /&gt;
The text entered into the speller object when the target is selected.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[Programming Reference:Target Class]], [[Programming Reference:SpellerCommand Class]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Framework API]][[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Mellinger</name></author>
	</entry>
</feed>