~ubuntu-branches/ubuntu/raring/python3.3/raring-proposed

« back to all changes in this revision

Viewing changes to debian/pygettext.1

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-22 06:14:01 UTC
  • Revision ID: package-import@ubuntu.com-20120322061401-vvrgvw3nvi68rtqq
Tags: 3.3.0~a1-1
* Python 3.3.0 alpha1 release.
* Update to 20120321 from the trunk.
* Update debian/copyright.
* Build-depend on expat (>= 2.1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH PYGETTEXT 1 "" "pygettext 1.4"
 
2
.SH NAME
 
3
pygettext \- Python equivalent of xgettext(1)
 
4
.SH SYNOPSIS
 
5
.B pygettext
 
6
[\fIOPTIONS\fR] \fIINPUTFILE \fR...
 
7
.SH DESCRIPTION
 
8
pygettext is deprecated. The current version of xgettext supports
 
9
many languages, including Python.
 
10
 
 
11
pygettext uses Python's standard tokenize module to scan Python
 
12
source code, generating .pot files identical to what GNU xgettext generates
 
13
for C and C++ code.  From there, the standard GNU tools can be used.
 
14
.PP
 
15
pygettext searches only for _() by default, even though GNU xgettext
 
16
recognizes the following keywords: gettext, dgettext, dcgettext,
 
17
and gettext_noop. See the \fB\-k\fR/\fB\--keyword\fR flag below for how to
 
18
augment this.
 
19
.PP
 
20
.SH OPTIONS
 
21
.TP
 
22
\fB\-a\fR, \fB\-\-extract\-all\fR
 
23
Extract all strings.
 
24
.TP
 
25
\fB\-d\fR, \fB\-\-default\-domain\fR=\fINAME\fR
 
26
Rename the default output file from messages.pot to name.pot.
 
27
.TP
 
28
\fB\-E\fR, \fB\-\-escape\fR
 
29
Replace non-ASCII characters with octal escape sequences.
 
30
.TP
 
31
\fB\-D\fR, \fB\-\-docstrings\fR
 
32
Extract module, class, method, and function docstrings.
 
33
These do not need to be wrapped in _() markers, and in fact cannot
 
34
be for Python to consider them docstrings. (See also the \fB\-X\fR option).
 
35
.TP
 
36
\fB\-h\fR, \fB\-\-help\fR
 
37
Print this help message and exit.
 
38
.TP
 
39
\fB\-k\fR, \fB\-\-keyword\fR=\fIWORD\fR
 
40
Keywords to look for in addition to the default set, which are: _
 
41
.IP
 
42
You can have multiple \fB\-k\fR flags on the command line.
 
43
.TP
 
44
\fB\-K\fR, \fB\-\-no\-default\-keywords\fR
 
45
Disable the default set of keywords (see above).
 
46
Any keywords explicitly added with the \fB\-k\fR/\fB\--keyword\fR option
 
47
are still recognized.
 
48
.TP
 
49
\fB\-\-no\-location\fR
 
50
Do not write filename/lineno location comments.
 
51
.TP
 
52
\fB\-n\fR, \fB\-\-add\-location\fR
 
53
Write filename/lineno location comments indicating where each
 
54
extracted string is found in the source.  These lines appear before
 
55
each msgid.  The style of comments is controlled by the
 
56
\fB\-S\fR/\fB\--style\fR option.  This is the default.
 
57
.TP
 
58
\fB\-o\fR, \fB\-\-output\fR=\fIFILENAME\fR
 
59
Rename the default output file from messages.pot to FILENAME.
 
60
If FILENAME is `-' then the output is sent to standard out.
 
61
.TP
 
62
\fB\-p\fR, \fB\-\-output\-dir\fR=\fIDIR\fR
 
63
Output files will be placed in directory DIR.
 
64
.TP
 
65
\fB\-S\fR, \fB\-\-style\fR=\fISTYLENAME\fR
 
66
Specify which style to use for location comments.
 
67
Two styles are supported:
 
68
.RS
 
69
.IP \(bu 4
 
70
Solaris # File: filename, line: line-number
 
71
.IP \(bu 4
 
72
GNU             #: filename:line
 
73
.RE
 
74
.IP
 
75
The style name is case insensitive.
 
76
GNU style is the default.
 
77
.TP
 
78
\fB\-v\fR, \fB\-\-verbose\fR
 
79
Print the names of the files being processed.
 
80
.TP
 
81
\fB\-V\fR, \fB\-\-version\fR
 
82
Print the version of pygettext and exit.
 
83
.TP
 
84
\fB\-w\fR, \fB\-\-width\fR=\fICOLUMNS\fR
 
85
Set width of output to columns.
 
86
.TP
 
87
\fB\-x\fR, \fB\-\-exclude\-file\fR=\fIFILENAME\fR
 
88
Specify a file that contains a list of strings that are not be
 
89
extracted from the input files.  Each string to be excluded must
 
90
appear on a line by itself in the file.
 
91
.TP
 
92
\fB\-X\fR, \fB\-\-no\-docstrings\fR=\fIFILENAME\fR
 
93
Specify a file that contains a list of files (one per line) that
 
94
should not have their docstrings extracted.  This is only useful in
 
95
conjunction with the \fB\-D\fR option above.
 
96
.PP
 
97
If `INPUTFILE' is -, standard input is read.
 
98
.SH BUGS
 
99
pygettext attempts to be option and feature compatible with GNU xgettext
 
100
where ever possible.  However some options are still missing or are not fully
 
101
implemented.  Also, xgettext's use of command line switches with option
 
102
arguments is broken, and in these cases, pygettext just defines additional
 
103
switches.
 
104
.SH AUTHOR
 
105
pygettext is written by Barry Warsaw <barry@zope.com>.
 
106
.PP
 
107
Joonas Paalasmaa <joonas.paalasmaa@iki.fi> put this manual page together
 
108
based on "pygettext --help".