apertium-deslatex(1)

apertium-deslatex1

Latex format processor for apertium

Usage

apertium-deslatex [-hin] [input_file [output_file]]

Overview

This tool is part of the Apertium open-source machine translation toolbox: https://apertium.org/.

The apertium-deslatex filter preprocesses apertium-prelatex(1) output to a deformatted “XMLish” LaTeX custom format. The output is suitable for processing with lt-proc(1). Format information (newlines, tabs, etc.) is enclosed in brackets so that lt-proc(1) treats it as whitespace between words.

Options

-h, --help

Display this help.

-i

Makes the addition of trailing sentence terminator (‘.’) unconditional, often leading to duplicates.

-n

Suppresses the addition of a trailing sentence terminator.

Examples

You could write the following to show how the word “gener” is analysed:

echo "<textit/><CONTENTS>gener</CONTENTS>" | apertium-deslatex | lt-proc ca-es.automorf.bin

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10
  3. 11
  4. 12–13

-i since Debian 11 (Bullseye); -n since Debian 11 (Bullseye).

Bugs

Complicated constructions in LaTeX (e.g., custom defined tags) are not (yet) supported.

From apertium 3.9.12-1 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.