Versified Text Filter

From Okapi Framework
Jump to navigation Jump to search

Overview

The Versified Text Filter is designed to process versified text file. The files looks like the example below. The translatable text is highlighted:

|b000001
|cTitle
|v0
Okapi Handbook

|v1
Some text

Processing Details

Input Encoding

The filter decides which encoding to use for the input document using the following logic:

  • If the file has a Unicode Byte-Order-Mark:
    • Then, the corresponding encoding (e.g. UTF-8, UTF-16, etc.) is used.
  • Otherwise, the input encoding used is the default encoding that was specified when opening the document.

Inline Codes

Any sequences {N}, where N is a number, is extracted as an inline code.

Parameters

This filter has no parameters.

Limitations

None known.