How to Create a Pensieve TM

From Okapi Framework
Jump to: navigation, search

Using Rainbow

In order to create a Pensieve TM, you need at least one input document. Normally this document is in TMX, XLIFF, PO, or one of the other translation formats where you have source and translated (=target) content. We will use TMX for this example.

1. Start Rainbow.

2. Drop one or more TMX files into the Input List 1 tab.

3. In the Languages and Encodings tab, set the source and target language codes to the source and target languages in the TMX document.

4. Select Utilities > Pensive TM Import. This opens a pre-defined pipeline with two steps:

The first one is the Raw Document to Filter Events Step. It takes care of extracting the text from the TMX file. There is no options to set for this step.

The second one is the TM Import Step. It does the import into the TM. It has one parameter: The full path of the TM directory to create. Each Pensive TMs is stored in a separate directory. It is recommended to use the extension .pentm for these directories. Enter for example: C:\Tmp\myTM.pentm.

Note that if the TM exists already the new entries will be added to it.

5. Click Execute.

You should now have a directory C:\Tmp\myTM.pentm where you have your TM. To verify if the import worked properly you can try to query the TM (see: "How to Query a Pensieve TM").

Using Tikal

Start a DOS prompt or a shell console from where you can run Tikal.

Assuming:

  • You have a US English to Canadian French TMX file at C:\Tmp\mytm.tmx
  • You want to create a Pensieve TM named myTM.pentm

Execute the command-line:

tikal -imp C:\Tmp\myTM C:\Tmp\mytm.tmx -sl en-us -tl fr-ca

You should now have a directory C:\Tmp\myTM.pentm where you have your TM. To verify if the import worked properly you can try to query the TM (see: "How to Query a Pensieve TM").