Home | Trees | Indices | Help |
---|
|
Text wrapping, with special handling for typical texts in PO files.
Wrapping turns out to be quite a non-trivial matter. Gettext itself implements an intricate wrapping algorithm from the Unicode consortium, with its own tweaks, which is hard to beat in any simpler way. Thus, do not be surprised if the wrapping quality offered by this module does not meet your exact needs.
Author: Chusslove Illich (Часлав Илић) <caslav.ilic@gmx.net>
License: GPLv3
Functions | |||
[string*] |
|
||
list of strings |
|
||
|
|||
list of strings |
|
||
|
|||
|
|||
|
|||
(string, string, string?)->[string] |
|
||
(string*) |
|
Variables | |
__package__ =
|
Function Details |
Wrap text into lines. Wrapping behavior and positions can be controlled by several parameters. Trailing and leading strings can be added to each wrapped line, including a special lead for the first line. If wrapping column is given as less or equal to zero, the lines are split only at unconditional breaks. This is a very general wrapping function, see the more specialized ones in this module for practical use with PO message elements.
|
Wrap fields in PO messages. This function can be sent as parameter to Message and Catalog methods and constructors.
|
Wrap fields in PO messages at unconditional breaks (no column-wrapping). This function can be sent as parameter to Message and Catalog methods and constructors. The parameters and return values are as for wrap_field. See Also: wrap_field |
Wrap comments in PO messages.
|
Wrap comments in PO messages at unconditional breaks (no column-wrapping). The parameters and return values are as for wrap_comment. See Also: wrap_comment |
Wrap fields in PO messages, including breaks at selected markup elements. This function can be sent as parameter to Message and Catalog methods and constructors. The parameters and return values are as for wrap_field. See Also: wrap_field |
Wrap fields in PO messages, including breaks at selected markup elements, but only at unconditional breaks (no column-wrapping). This function can be sent as parameter to Message and Catalog methods and constructors. The parameters and return values are as for wrap_field. See Also: wrap_field |
Select wrap function for PO message fields based on keywords. Wrap function is selected by specifying a sequence of keywords, from the following set:
Wrapping on newline characters is always engaged. If
See Also: wrap_field |
Select wrapping keywords for PO message fields based on various inputs. There are three possible sources of wrapping information:
This function will examine these three sources with increasing
priority, and return a tuple of applicable wrapping
keywords. Any of these sources can also be omitted; if all are
omitted,
See Also: select_field_wrapper |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jul 24 21:00:27 2014 | http://epydoc.sourceforge.net |