1Locale::Po4a::Text(3pm) Po4a Tools Locale::Po4a::Text(3pm)
2
3
4
6 Locale::Po4a::Text - convert text documents from/to PO files
7
9 The po4a (PO for anything) project goal is to ease translations (and
10 more interestingly, the maintenance of translations) using gettext
11 tools on areas where they were not expected like documentation.
12
13 Locale::Po4a::Text is a module to help the translation of text
14 documents into other [human] languages.
15
16 Paragraphs are split on empty lines (or lines containing only spaces or
17 tabulations).
18
19 If a paragraph contains a line starting by a space (or tabulation),
20 this paragraph won't be rewrapped.
21
23 These are this module's particular options:
24
25 keyvalue
26 Treat paragraphs that look like a key value pair as verbatim (with
27 the no-wrap flag in the PO file). Key value pairs are defined as a
28 line containing one or more non-colon and non-space characters
29 followed by a colon followed by at least one non-space character
30 before the end of the line.
31
32 nobullets
33 Deactivate the detection of bullets.
34
35 By default, when a bullet is detected, the bullet paragraph is not
36 considered as a verbatim paragraph (with the no-wrap flag in the PO
37 file). Instead, the corresponding paragraph is rewrapped in the
38 translation.
39
40 tabs=mode
41 Specify how tabulations shall be handled. The mode can be any of:
42
43 split
44 Lines with tabulations introduce breaks in the current
45 paragraph.
46
47 verbatim
48 Paragraph containing tabulations will not be re-wrapped.
49
50 By default, tabulations are considered as spaces.
51
52 breaks=regex
53 A regular expression matching lines which introduce breaks. The
54 regular expression will be anchored so that the whole line must
55 match.
56
57 debianchangelog
58 Handle the header and footer of released versions, which only
59 contain non translatable informations.
60
61 fortunes
62 Handle the fortunes format, which separate fortunes with a line
63 which consists in '%' or '%%', and use '%%' as the beginning of a
64 comment.
65
66 markdown
67 Handle some special markup in Markdown-formatted texts.
68
69 yfm_keys (markdown-only)
70 Comma-separated list of keys to process for translation in the YAML
71 Front Matter section. All other keys are skipped. Keys are matched
72 with a case-insensitive match. Array values are always translated,
73 unless the yfm_skip_array option is provided.
74
75 yfm_skip_array (markdown-only)
76 Do not translate array values in the YAML Front Matter section.
77
78 control[=taglist]
79 Handle control files. A comma-separated list of tags to be
80 translated can be provided.
81
82 neverwrap
83 Prevent po4a from wrapping any lines. This means that every content
84 is handled verbatim, even simple paragraphs.
85
87 Tested successfully on simple text files and NEWS.Debian files.
88
90 Nicolas François <nicolas.francois@centraliens.net>
91
93 Copyright © 2005-2008 Nicolas FRANÇOIS <nicolas.francois@centraliens.net>.
94
95 Copyright © 2008-2009, 2018 Jonas Smedegaard <dr@jones.dk>.
96 Copyright © 2020 Martin Quinson <mquinson#debian.org>.
97
98 This program is free software; you may redistribute it and/or modify it
99 under the terms of GPL (see the COPYING file).
100
101
102
103Po4a Tools 2021-02-23 Locale::Po4a::Text(3pm)