Home | Trees | Indices | Help |
|
---|
|
This module implements basic functionality to support placeables.
A placeable is used to represent things like:
For example, in ODF, footnotes appear in the ODF XML where they are defined; so if we extract a paragraph with some footnotes, the translator will have a lot of additional XML to with; so we separate the footnotes out into separate translation units and mark their positions in the original text with placeables.
The translator doesn't want to have to deal with all the weird formatting conventions of wherever the text came from.
This is an old issue - translators translate variable names which should remain untranslated. We can wrap placeables around variable names to avoid this.
The placeables model follows the XLIFF standard's list of placeables. Please refer to the XLIFF specification to get a better understanding.
|
|||
|
|
|||
StringElem This class represents a sub-tree of a string parsed into a rich structure. |
|||
Bpt | |||
Bx | |||
Ept | |||
Ex | |||
G | |||
It | |||
Ph | |||
Sub | |||
X |
|
|||
|
|||
|
|
|||
all_your_base =
|
|
Parse placeables from the given string or sub-tree by using the parsing functions provided. The output of this function is heavily dependent on the order of the parsing functions. This is because of the algorithm used. An over-simplification of the algorithm: the leaves in the
|
|
all_your_base
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Oct 15 13:53:51 2009 | http://epydoc.sourceforge.net |