Language support

A number of aspects of content assembly can be affected by the language in which the content is expressed:

  • The direction of the content flow (left-to-right or right-to-left).

  • The position of line breaks.

  • The acceptable hyphenation points in words.

TopLeaf will detect and process any xml:lang attributes in the content and use them to determine the appropriate language. A language set in this way will only affect the content within the element containing the attribute.

It is also possible to change the language by calling the text-properties command in a mapping.