<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Translating_mnemonic_files</id>
	<title>Translating mnemonic files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Translating_mnemonic_files"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;action=history"/>
	<updated>2026-05-29T22:21:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=67167&amp;oldid=prev</id>
		<title>Bech: update : é allowed formats for the right part of mnemonic files</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=67167&amp;oldid=prev"/>
		<updated>2018-06-15T12:16:57Z</updated>

		<summary type="html">&lt;p&gt;update : é allowed formats for the right part of mnemonic files&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:16, 15 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt; Mnemonic             &quot;formatted_string_for_printf&quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt; Mnemonic             &quot;formatted_string_for_printf&quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;               or&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt; Mnemonic             character_string&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;In these lines, the mnemonic (starting on the first column) must be kept unchanged from a language to another, while the string farther to the right is translated.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;In these lines, the mnemonic (starting on the first column) must be kept unchanged from a language to another, while the string farther to the right is translated.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 62:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 64:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;desmnemo&#039;&#039;&#039; : deformatter for mnemonic files,&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;desmnemo&#039;&#039;&#039; : deformatter for mnemonic files,&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 class=&quot;diff-deletedline diff-side-deleted&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;remnemo&#039;&#039;&#039;  :&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; generic&lt;/del&gt; reformatter&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; used&lt;/del&gt; for mnemonic files,&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;remnemo&#039;&#039;&#039;  : reformatter for mnemonic files,&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;apertium-mnemo&#039;&#039;&#039; : a shell intended to make the translation of mnemonic files easier.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;* &#039;&#039;&#039;apertium-mnemo&#039;&#039;&#039; : a shell intended to make the translation of mnemonic files easier.&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=67165&amp;oldid=prev</id>
		<title>Bech: /* Getting and installing apertium-c-formatters package */ Update for Git</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=67165&amp;oldid=prev"/>
		<updated>2018-06-15T12:07:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Getting and installing apertium-c-formatters package: &lt;/span&gt; Update for Git&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 12:07, 15 June 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;If you did not already recover apertium-c-formatters package for [[translating man pages]], let start by making the following operations:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;If you did not already recover apertium-c-formatters package for [[translating man pages]], let start by making the following operations:&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&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 class=&quot;diff-deletedline diff-side-deleted&quot;&gt;&lt;div&gt;Download apertium-c-formatters from &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SVN&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 class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;Download apertium-c-formatters from &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;GIT&lt;/ins&gt;:&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;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 class=&quot;diff-deletedline diff-side-deleted&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;svn&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;checkout&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;http&lt;/del&gt;://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;apertium&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;svn.sourceforge.net/svnroot&lt;/del&gt;/apertium&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/trunk&lt;/del&gt;/apertium-c-formatters&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;git&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;clone&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;--depth 1 https&lt;/ins&gt;://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;github&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;com&lt;/ins&gt;/apertium/apertium-c-formatters&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=50339&amp;oldid=prev</id>
		<title>Bech: Link to French page</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=50339&amp;oldid=prev"/>
		<updated>2014-10-06T10:32:46Z</updated>

		<summary type="html">&lt;p&gt;Link to French page&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:32, 6 October 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;[[Traduction des fichiers mnémoniques|En français]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;Mnemonic files are an alternative to &amp;lt;code&amp;gt;.po&amp;lt;/code&amp;gt; files to generate multilingual user interfaces.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;Mnemonic files are an alternative to &amp;lt;code&amp;gt;.po&amp;lt;/code&amp;gt; files to generate multilingual user interfaces.&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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=36925&amp;oldid=prev</id>
		<title>Bech: Creating page</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Translating_mnemonic_files&amp;diff=36925&amp;oldid=prev"/>
		<updated>2012-10-18T11:58:25Z</updated>

		<summary type="html">&lt;p&gt;Creating page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mnemonic files are an alternative to &amp;lt;code&amp;gt;.po&amp;lt;/code&amp;gt; files to generate multilingual user interfaces.&lt;br /&gt;
&lt;br /&gt;
Except for the possible comments (starting with #) at the beginning of a file, the mnemonic files is made of lines with the following format:&lt;br /&gt;
&lt;br /&gt;
 Mnemonic             &amp;quot;formatted_string_for_printf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In these lines, the mnemonic (starting on the first column) must be kept unchanged from a language to another, while the string farther to the right is translated.&lt;br /&gt;
&lt;br /&gt;
However, a string to be translated can contain the sequences &amp;lt;code&amp;gt;\r&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;\n&amp;lt;/code&amp;gt; or other similar ones which, not only should not be translated, but must not disturb the translation of the following word when it touches the letter having a special meaning.&lt;br /&gt;
&lt;br /&gt;
Similarly, indications of format as &amp;lt;code&amp;gt;%s&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;%3d&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;%4.2f&amp;lt;/code&amp;gt; ... are kept unchanged.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mnemonic files&amp;#039;&amp;#039;&amp;#039; format is not directly carried out by Apertium package. It is necessary to recover the package &amp;#039;&amp;#039;&amp;#039;apertium-c-formatters&amp;#039;&amp;#039;&amp;#039; to have a deformatter which takes into account specificities of this format.&lt;br /&gt;
&lt;br /&gt;
== Getting and installing apertium-c-formatters package ==&lt;br /&gt;
&lt;br /&gt;
If you did not already recover apertium-c-formatters package for [[translating man pages]], let start by making the following operations:&lt;br /&gt;
&lt;br /&gt;
Download apertium-c-formatters from SVN:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn checkout http://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-c-formatters&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Compile the source files:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yes, compilation is very simple, and fast!&lt;br /&gt;
&lt;br /&gt;
Install the tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above command assumes you have write access to &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/usr/local/share/man&amp;lt;/code&amp;gt;. If not, enter the command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By defaut, as for lttoolbox, apertium, and the language pairs, the installation is done in &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/usr/local/share&amp;lt;/code&amp;gt;. If you wish to change the installation directory, you will have to change the first line of the &amp;#039;&amp;#039;makefile&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
install_dir=/usr/local&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will be replaced by the parent directory where the executable commands will be. For example, if you put:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
install_dir=/usr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
tools will be installed in &amp;lt;code&amp;gt;/usr/bin&amp;lt;/code&amp;gt; and man pages in &amp;lt;code&amp;gt;/usr/share/man&amp;lt;/code&amp;gt; .&lt;br /&gt;
&lt;br /&gt;
== Using ==&lt;br /&gt;
&lt;br /&gt;
=== Available tools ===&lt;br /&gt;
&lt;br /&gt;
Available tools to translate the mnemonic files are the following:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;desmnemo&amp;#039;&amp;#039;&amp;#039; : deformatter for mnemonic files,&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;remnemo&amp;#039;&amp;#039;&amp;#039;  : generic reformatter used for mnemonic files,&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;apertium-mnemo&amp;#039;&amp;#039;&amp;#039; : a shell intended to make the translation of mnemonic files easier.&lt;br /&gt;
&lt;br /&gt;
=== Translation by calling the various tools ===&lt;br /&gt;
&lt;br /&gt;
Assuming we are in the directory &amp;lt;code&amp;gt;samples-mnemo&amp;lt;/code&amp;gt; of the package apertium-c-formatter and we want to translate into Spanish the file &amp;lt;code&amp;gt;mess-libremail.en&amp;lt;/code&amp;gt; We can type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat mess-libremail.en | desmnemo | apertium -f none en-es | remnemo &amp;gt; mess-libremail.es-utf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the source language was not English, we could first notice that we translate a mnemonic file using UTF-8 charset. If the file format is encoded ISO-8859-&amp;#039;&amp;#039;n&amp;#039;&amp;#039; (or any other character set), we need to convert the data into UTF-8 to make them compatible with Apertium, which will also provide a result UTF-8 encoded.&lt;br /&gt;
&lt;br /&gt;
In addition, the command &amp;lt;code&amp;gt;apertium&amp;lt;/code&amp;gt; is executed with the &amp;lt;code&amp;gt;-f none&amp;lt;/code&amp;gt; option, which is necessary for the deformatter &amp;lt;code&amp;gt;apertium-destxt&amp;lt;/code&amp;gt; not to be used.&lt;br /&gt;
&lt;br /&gt;
We can also give file names as parameters of the deformatter and the reformatter:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
desmnemo mess-libremail.en | apertium -f none en-es | remnemo - mess-libremail.es-utf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can notice the dash &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; as the first parameter of &amp;lt;code&amp;gt;remnemo&amp;lt;/code&amp;gt; . Reformatters usually use the standard input (in this case the result produced by the command &amp;lt;code&amp;gt;apertium&amp;lt;/code&amp;gt;) whereas it can be useful to preserve the result of reformatting in a file. But the problem is the general syntax of apertium reformatters require to specify the output file as the 2nd parameter. The &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; as the first parameter permit to overcome this problem.&lt;br /&gt;
&lt;br /&gt;
=== More simple with the command apertium-mnemo ===&lt;br /&gt;
&lt;br /&gt;
When a data format is integrated directly into the &amp;lt;code&amp;gt;apertium&amp;lt;/code&amp;gt; command, there is the &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;-f&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; option to translate data produced in this format without having to call &amp;quot;by hand&amp;quot; a deformatter and a reformatter. The command &amp;lt;code&amp;gt;apertium-mnemo&amp;lt;/code&amp;gt; is a shell which permits to do in the same way.&lt;br /&gt;
&lt;br /&gt;
For example, to translate into Esperanto the file &amp;lt;code&amp;gt;mess-libremail.en&amp;lt;/code&amp;gt; , we can type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat mess-libremail.en | apertium-mnemo en-eo &amp;gt; mess-libremail.es-utf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or even better:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apertium-mnemo en-eo mess-libremail.en mess-libremail.es-utf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The options &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;-u&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;-d datadir&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; of the command &amp;lt;code&amp;gt;apertium&amp;lt;/code&amp;gt; are caried out by &amp;lt;code&amp;gt;apertium-mnemo&amp;lt;/code&amp;gt;. You just have place them before the parameter indicating the  translation direction (as for the command &amp;lt;code&amp;gt;apertium&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
[[Category:Formats]]&lt;br /&gt;
[[Category:Documentation in English]]&lt;/div&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
</feed>