Skip to content

HunspellXML Format (Convert)

TrnsltLife edited this page Dec 5, 2013 · 7 revisions

HunspellXML   HunspellXML Format > AffixFile > Convert


<convert>...</convert>

Hunspell allows you to specify input and output conversion tables. (See the Hunspell documentation and test files for ICONV and OCONV). These conversion tables are placed inside the <convert> element in HunspellXML.

<convert>
	<input from="’" to="'"/>
	<input from="à" to="à"/>

	<output to="'" from="’"/>
</convert>

In this example, input from the user is converted in the following ways:

  • curly single quotes are converted to a plain apostrophe
  • the letter "a" followed by a combining grave accent are converted to a single character "Latin small letter a with grave"

The suggestions and other output are converted by:

  • converting plain apostrophes into curly single quotes
  • the "Latin small letter a with grave" is not converted on output, presumably because that is the preferred way to represent the letter.