Rainbow TKit - OmegaT Project

From OkapiWiki

Jump to: navigation, search

Contents

Overview

The OmegaT Project package is one of the type of translation packages you can create with the Rainbow Translation Kit Creation Step. Such package can be post-processed using the Rainbow Translation Kit Merging Step.


In this package the input documents are placed in an OmegaT project. OmegaT is a cross-platform open-source translation tool.

This package can be opened directly with OmegaT.

Note that you can also use some of filters of the Okapi Framework directly from OmegaT (i.e. without creating this package) by working with the Okapi Filters Plugin for OmegaT.

Options

Allow segmentation in the OmegaT project — set this option to set the sentence_seg flag of the project to true. This option is ignore, and the flag always set to false, if there are segmented text units in the extracted text. That is, if there is a Segmentation Step active before the creation of the translation kit, or if one of the input file has pre-segmented entries.

If you want to override the pre-segmentation, you can use the Desegmentation Step before the creation of the translation kit.

Include post-processing hook — set this option to include a hook in the OmegaT project that will allow OmegaT's Create Translated Documents command to automatically invoke the Rainbow Translation Kit Merging process. In order for the command to be invoked, you must check the Also allow per-project external commands checkbox in OmegaT in the Options > Save... panel.

Note: Support for this feature requires version 2.6.2 or higher of OmegaT.

The hook is in the form of a CLI command:

 java -jar /path/to/okapi/lib/rainbow.jar -x TranslationKitPostProcessing -np "${projectRoot}manifest.rkm" -fc okf_rainbowkit-noprompt

Note: The hook will fail if rainbow.jar cannot be found at the specified path. This may happen in the following situations:

In this case you can either:

Details

Sub-Directories

The extracted files are stored in the same directory structure as the original files, relative to the root of the file set.

For example if you have two files named index.html in two different sub-directories, they will be both extracted as index.html.xlf but each on its corresponding sub-directory.

Inline Codes

Inline codes are represented using the placeholder notation (<g>/<x/>/<bx>/<ex>) in the XLIFF documents, which are represented as numbered letter codes in OmegaT (e.g. <g1>/<x2/>/<b3>/<e3>).

The content of the inline codes in the TMX files for this package are also represented as numbered letter codes to be fully compatible with OmegaT.

Segmentation

Segmentation is supported: OmegaT handles the XLIFF standard segmentation.

If the input is not segmented, you can use the Allow segmentation in the OmegaT project option to allow or not the segmentation to be done by OmegaT when opening the project.

Pre-Translation

Translatable entries can be pre-translted different ways. In this package, the result of pre-translation is as follows:

Package Layout

Assuming that your package name is pack1, your input root ends with main, the target language is French, you have selected to use the same filenames as the input files for the output files, and you have the following source files:

--- main
    |
    +--- index.html
    +--- myFile.idml
    +--- subDir
         |
         +--- index.html 

The layout of this package after creation will be:

--- pack1
    |
    +--- omegat.project
    +--- manifest.rkm
    +--- glossary
    |--- tm
    |    |
    |    +---- *.tmx
    |    
    +--- omegat
    |    |
    |    +--- project_save.tmx
    |
    +--- original
    |    |
    |    +--- index.html
    |    +--- myFile.idml
    |    +--- subDir
    |         |
    |         +--- index.html
    |
    +--- source
    |    |
    |    +--- index.html.xlf
    |    +--- myFile.idml.xlf
    |    +--- subDir
    |         |
    |         +--- index.html.xlf
    |
    +--- target

For the post-processing the target sub-directory must contain the translated XLIFF documents. After post-processing a new done sub-directory is created:

--- pack1
    |
    +--- target
    |    |
    |    +--- index.html.xlf
    |    +--- myFile.idml.xlf
    |    +--- subDir
    |         |
    |         +--- index.html.xlf
    |
    +--- done
    |    |
    |    +--- index.html
    |    +--- myFile.idml
    |    +--- subDir
    |         |
    |         +--- index.html
    |
    +... (same as after creation)

Limitations

This package is BETA

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox