<?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=Lexikograf.sh</id>
	<title>Lexikograf.sh - 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=Lexikograf.sh"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Lexikograf.sh&amp;action=history"/>
	<updated>2026-04-19T07:09:01Z</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=Lexikograf.sh&amp;diff=32791&amp;oldid=prev</id>
		<title>Ilnar.salimzyan at 00:10, 18 March 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Lexikograf.sh&amp;diff=32791&amp;oldid=prev"/>
		<updated>2012-03-18T00:10:57Z</updated>

		<summary type="html">&lt;p&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 00:10, 18 March 2012&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;div&gt;It is intended to be used the following way.&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;It is intended to be used the following way.&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;Suppose that morphological transducer for Tatar in Tatar-Bashkir pair doesn&#039;t &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;recognise&lt;/del&gt; the word &#039;укытучы&#039;, which means &quot;teacher&quot;. We have to add this word to:&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;Suppose that morphological transducer for Tatar in Tatar-Bashkir pair doesn&#039;t &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;recognize&lt;/ins&gt; the word &#039;укытучы&#039;, which means &quot;teacher&quot;. We have to add this word to:&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;# &amp;lt;code&amp;gt;apertium-tt-ba.tt.lexc&amp;lt;/code&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;code&amp;gt;apertium-tt-ba.tt.lexc&amp;lt;/code&amp;gt;,&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;# translate it in &amp;lt;code&amp;gt;apertium-tt-ba.tt-ba.dix&amp;lt;/code&amp;gt;&amp;lt;ref&amp;gt;We are adding a word which is not recognized by the morphological analyzer of Tatar, and therefore not present in tt.lexc. But this does not necessarily mean that this word and it&#039;s translation are also missing in tt-ba.dix and ba.lexc. So it will be a good idea to check it first and only then generate entries&amp;lt;/ref&amp;gt; and&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;# translate it in &amp;lt;code&amp;gt;apertium-tt-ba.tt-ba.dix&amp;lt;/code&amp;gt; and&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty 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 class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;# add the translation to &amp;lt;code&amp;gt;apertium-tt-ba.ba.lexc&amp;lt;/code&amp;gt;. For such close related languages like Tatar and Bashkir most likely all the categories and the names of continuation classes will remain the same.&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;# add the translation to &amp;lt;code&amp;gt;apertium-tt-ba.ba.lexc&amp;lt;/code&amp;gt;. For such close related languages like Tatar and Bashkir most likely all the categories and the names of continuation classes will remain the same.&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&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;code&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;code&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;div&gt;&amp;lt;nowiki&amp;gt;&amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;укытучы&amp;lt;s n=&quot;n&quot;/&amp;gt;&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;&amp;lt;s n=&quot;n&quot;/&amp;gt;&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&amp;lt;/nowiki&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;nowiki&amp;gt;&amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;укытучы&amp;lt;s n=&quot;n&quot;/&amp;gt;&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;&amp;lt;s n=&quot;n&quot;/&amp;gt;&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&amp;lt;/nowiki&amp;gt;&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;&amp;lt;/code&amp;gt;&amp;lt;ref&amp;gt;The tags used in tt-ba.dix should be matched against Root Lexicon names, so that script knows, which symbol it has to put in bidix inside of &amp;lt;nowiki&amp;gt;&amp;lt;s n=&quot;?&quot;&amp;gt;&amp;lt;/nowiki&amp;gt;. A simpler solution would be to leave this tags empty, but this is definitively not good&amp;lt;/ref&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;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty 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 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;&amp;lt;code&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;code&amp;gt;&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 39:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&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;== Code ==&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;== Code ==&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;Here is the script itself. If you like the idea of it and think that it &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;can&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;indeed&lt;/del&gt; be &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;usefull&lt;/del&gt;, feel free to modify it&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, as it was written 1&lt;/del&gt;. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;by&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;an&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;absolute&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;newbie&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2.&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;won&#039;t&lt;/del&gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;work&lt;/del&gt; with any&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; other&lt;/del&gt; language pair&lt;del class=&quot;diffchange diffchange-inline&quot;&gt; without modifying it. Define some variables&lt;/del&gt; etc. Be bold :)&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;Here is the script itself. If you like the idea of it and think that it &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;indeed&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;could&lt;/ins&gt; be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;useful&lt;/ins&gt;, feel free to modify it. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Define&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;some&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;variables,&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;so&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;it&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;can&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;be&lt;/ins&gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;used&lt;/ins&gt; with any language pair etc. Be bold :)&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;&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;div&gt;#!/bin/bash&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;#!/bin/bash&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;# This little tools aims to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;faciltate&lt;/del&gt; adding new stems to dictionaries of a language pair using HFST&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;# This little tools aims to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;facilitate&lt;/ins&gt; adding new stems to dictionaries of a language pair using HFST&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;# by reducing amount of typing work&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;# by reducing amount of typing work&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;# see http://wiki.apertium.org/wiki/Lexikograf.sh for more details&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;# see http://wiki.apertium.org/wiki/Lexikograf.sh for more details&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ilnar.salimzyan</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Lexikograf.sh&amp;diff=32790&amp;oldid=prev</id>
		<title>Ilnar.salimzyan: Created page with &#039;== Intention ==  This little script aims to facilitate adding new words to dictionaries of a language pair which uses HFST.  == Usage == It is intended to be used the following w…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Lexikograf.sh&amp;diff=32790&amp;oldid=prev"/>
		<updated>2012-03-17T22:04:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Intention ==  This little script aims to facilitate adding new words to dictionaries of a language pair which uses HFST.  == Usage == It is intended to be used the following w…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Intention ==&lt;br /&gt;
&lt;br /&gt;
This little script aims to facilitate adding new words to dictionaries of a language pair which uses HFST.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
It is intended to be used the following way.&lt;br /&gt;
&lt;br /&gt;
Suppose that morphological transducer for Tatar in Tatar-Bashkir pair doesn&amp;#039;t recognise the word &amp;#039;укытучы&amp;#039;, which means &amp;quot;teacher&amp;quot;. We have to add this word to:&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;code&amp;gt;apertium-tt-ba.tt.lexc&amp;lt;/code&amp;gt;,&lt;br /&gt;
# translate it in &amp;lt;code&amp;gt;apertium-tt-ba.tt-ba.dix&amp;lt;/code&amp;gt; and&lt;br /&gt;
# add the translation to &amp;lt;code&amp;gt;apertium-tt-ba.ba.lexc&amp;lt;/code&amp;gt;. For such close related languages like Tatar and Bashkir most likely all the categories and the names of continuation classes will remain the same.&lt;br /&gt;
&lt;br /&gt;
In a directory containing &amp;lt;code&amp;gt;lexikograf.sh&amp;lt;/code&amp;gt; there should be a file called &amp;lt;code&amp;gt;add-them.txt&amp;lt;/code&amp;gt;, to which you add words exactly in the same form as you would add them to lexc file of a given language, in our case&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
укытучы NLEX ;&lt;br /&gt;
&amp;lt;/code&amp;gt;&amp;lt;ref&amp;gt;Actually &amp;lt;code&amp;gt;укытучы:укытучы Ninfl ;&amp;lt;/code&amp;gt; is a better way of writing this and statement above that you should add stems to &amp;#039;&amp;#039;add-them.txt&amp;#039;&amp;#039; exactly in the same form as you would add them to the actual .lexc file is not absolutely true. But such writing obviously saves time. Don&amp;#039;t worry, lexikograf.sh will generate entries in the preferred format&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After it, if you run lexikograf.sh it will generate three text files: &amp;lt;code&amp;gt;to-tatar-lexc.txt&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;to-bidix.txt&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;to-bashkir-lexc.txt&amp;lt;/code&amp;gt;. In our case, each file will contain only one line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
!укытучы NLEX ; ! &amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;укытучы&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
! NLEX ; ! &amp;quot;укытучы&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
respectively.&lt;br /&gt;
&lt;br /&gt;
After it, one obviously has to do the following:&lt;br /&gt;
* add Bashkir translations in &amp;lt;code&amp;gt;to-bashkir-lexc.txt&amp;lt;/code&amp;gt; (and additional tags if they aren&amp;#039;t matching entirely, e.g. different gender, difference in transitivity of verbs etc. Hard to imagine in Tatar-Bashkir pair actually):&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;укытучы&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;уҡытыусы&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* add this translation to &amp;lt;code&amp;gt;to-bashkir-lexc.txt&amp;lt;/code&amp;gt;. Again, you can write the word only once, the next script, &amp;lt;code&amp;gt;duplicate.sh&amp;lt;/code&amp;gt; will take care of it and make from entries &amp;lt;code&amp;gt;!укытучы NLEX ; ! &amp;quot;&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;!уҡытыусы NLEX ; ! &amp;quot;укытучы&amp;quot;&amp;lt;/code&amp;gt; entries &amp;lt;code&amp;gt;!укытучы:укытучы NLEX ; ! &amp;quot;&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;!уҡытыусы:уҡытыусы NLEX ; ! &amp;quot;укытучы&amp;quot;&amp;lt;/code&amp;gt; respectively. This lines remain commented out so that you cannot add them to the actual .lexc files without proofreading them.&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
Here is the script itself. If you like the idea of it and think that it can indeed be usefull, feel free to modify it, as it was written 1. by an absolute newbie and 2. won&amp;#039;t work with any other language pair without modifying it. Define some variables etc. Be bold :)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This little tools aims to faciltate adding new stems to dictionaries of a language pair using HFST&lt;br /&gt;
# by reducing amount of typing work&lt;br /&gt;
# see http://wiki.apertium.org/wiki/Lexikograf.sh for more details&lt;br /&gt;
&lt;br /&gt;
# for every line of add-them.txt&lt;br /&gt;
#do&lt;br /&gt;
&lt;br /&gt;
## match the first word (=initial letters till the first space) of the line and store it in $one&lt;br /&gt;
### the first space can be escaped by a %. In such case skip it and match all letters till the second space&lt;br /&gt;
&lt;br /&gt;
## match rest of the line to $rest&lt;br /&gt;
&lt;br /&gt;
# print &amp;#039;$LINE ! &amp;quot;&amp;quot;&amp;#039; to to-tatar-lexc.txt&lt;br /&gt;
&lt;br /&gt;
# print &amp;#039;&amp;lt;nowiki&amp;gt;&amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;$one&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;&amp;lt;s n=&amp;quot;n&amp;quot;/&amp;gt;&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;quot; to to-bidix.txt&lt;br /&gt;
&lt;br /&gt;
# print &amp;#039;$rest ! &amp;quot;$one&amp;quot;&amp;#039; to to-bashkir.lexc&lt;br /&gt;
&lt;br /&gt;
# duplicate words in lexc entries and comment them out    &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ilnar.salimzyan</name></author>
		
	</entry>
</feed>