man-pages/man1/msgfilter.1.html
2021-03-31 01:06:50 +01:00

202 lines
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MSGFILTER</TITLE>
</HEAD><BODY>
<H1>MSGFILTER</H1>
Section: GNU (1)<BR>Updated: June 2016<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
msgfilter - edit translations of message catalog
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>msgfilter</B>
[<I>OPTION</I>] <I>FILTER </I>[<I>FILTER-OPTION</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Applies a filter to all translations of a translation catalog.
<P>
Mandatory arguments to long options are mandatory for short options too.
<A NAME="lbAE">&nbsp;</A>
<H3>Input file location:</H3>
<DL COMPACT>
<DT id="1"><B>-i</B>, <B>--input</B>=<I>INPUTFILE</I><DD>
input PO file
<DT id="2"><B>-D</B>, <B>--directory</B>=<I>DIRECTORY</I><DD>
add DIRECTORY to list for input files search
</DL>
<P>
If no input file is given or if it is -, standard input is read.
<A NAME="lbAF">&nbsp;</A>
<H3>Output file location:</H3>
<DL COMPACT>
<DT id="3"><B>-o</B>, <B>--output-file</B>=<I>FILE</I><DD>
write output to specified file
</DL>
<P>
The results are written to standard output if no output file is specified
or if it is -.
<P>
The FILTER can be any program that reads a translation from standard input
and writes a modified translation to standard output.
<A NAME="lbAG">&nbsp;</A>
<H3>Filter input and output:</H3>
<DL COMPACT>
<DT id="4"><B>--newline</B><DD>
add a newline at the end of input and
remove a newline from the end of output
</DL>
<A NAME="lbAH">&nbsp;</A>
<H3>Useful FILTER-OPTIONs when the FILTER is 'sed':</H3>
<DL COMPACT>
<DT id="5"><B>-e</B>, <B>--expression</B>=<I>SCRIPT</I><DD>
add SCRIPT to the commands to be executed
<DT id="6"><B>-f</B>, <B>--file</B>=<I>SCRIPTFILE</I><DD>
add the contents of SCRIPTFILE to the commands
to be executed
<DT id="7"><B>-n</B>, <B>--quiet</B>, <B>--silent</B><DD>
suppress automatic printing of pattern space
</DL>
<A NAME="lbAI">&nbsp;</A>
<H3>Input file syntax:</H3>
<DL COMPACT>
<DT id="8"><B>-P</B>, <B>--properties-input</B><DD>
input file is in Java .properties syntax
<DT id="9"><B>--stringtable-input</B><DD>
input file is in NeXTstep/GNUstep .strings syntax
</DL>
<A NAME="lbAJ">&nbsp;</A>
<H3>Output details:</H3>
<DL COMPACT>
<DT id="10"><B>--color</B><DD>
use colors and other text attributes always
<DT id="11"><B>--color</B>=<I>WHEN</I><DD>
use colors and other text attributes if WHEN.
WHEN may be 'always', 'never', 'auto', or 'html'.
<DT id="12"><B>--style</B>=<I>STYLEFILE</I><DD>
specify CSS style rule file for <B>--color</B>
<DT id="13"><B>--no-escape</B><DD>
do not use C escapes in output (default)
<DT id="14"><B>-E</B>, <B>--escape</B><DD>
use C escapes in output, no extended chars
<DT id="15"><B>--force-po</B><DD>
write PO file even if empty
<DT id="16"><B>--indent</B><DD>
indented output style
<DT id="17"><B>--keep-header</B><DD>
keep header entry unmodified, don't filter it
<DT id="18"><B>--no-location</B><DD>
suppress '#: filename:line' lines
<DT id="19"><B>-n</B>, <B>--add-location</B><DD>
preserve '#: filename:line' lines (default)
<DT id="20"><B>--strict</B><DD>
strict Uniforum output style
<DT id="21"><B>-p</B>, <B>--properties-output</B><DD>
write out a Java .properties file
<DT id="22"><B>--stringtable-output</B><DD>
write out a NeXTstep/GNUstep .strings file
<DT id="23"><B>-w</B>, <B>--width</B>=<I>NUMBER</I><DD>
set output page width
<DT id="24"><B>--no-wrap</B><DD>
do not break long message lines, longer than
the output page width, into several lines
<DT id="25"><B>-s</B>, <B>--sort-output</B><DD>
generate sorted output
<DT id="26"><B>-F</B>, <B>--sort-by-file</B><DD>
sort output by file location
</DL>
<A NAME="lbAK">&nbsp;</A>
<H3>Informative output:</H3>
<DL COMPACT>
<DT id="27"><B>-h</B>, <B>--help</B><DD>
display this help and exit
<DT id="28"><B>-V</B>, <B>--version</B><DD>
output version information and exit
</DL>
<A NAME="lbAL">&nbsp;</A>
<H2>AUTHOR</H2>
Written by Bruno Haible.
<A NAME="lbAM">&nbsp;</A>
<H2>REPORTING BUGS</H2>
Report bugs to &lt;<A HREF="mailto:bug-gnu-gettext@gnu.org">bug-gnu-gettext@gnu.org</A>&gt;.
<A NAME="lbAN">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2001-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</A>&gt;
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAO">&nbsp;</A>
<H2>SEE ALSO</H2>
The full documentation for
<B>msgfilter</B>
is maintained as a Texinfo manual. If the
<B>info</B>
and
<B>msgfilter</B>
programs are properly installed at your site, the command
<DL COMPACT>
<DT id="29"><DD>
<B>info msgfilter</B>
</DL>
<P>
should give you access to the complete manual.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="30"><A HREF="#lbAB">NAME</A><DD>
<DT id="31"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="32"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DL>
<DT id="33"><A HREF="#lbAE">Input file location:</A><DD>
<DT id="34"><A HREF="#lbAF">Output file location:</A><DD>
<DT id="35"><A HREF="#lbAG">Filter input and output:</A><DD>
<DT id="36"><A HREF="#lbAH">Useful FILTER-OPTIONs when the FILTER is 'sed':</A><DD>
<DT id="37"><A HREF="#lbAI">Input file syntax:</A><DD>
<DT id="38"><A HREF="#lbAJ">Output details:</A><DD>
<DT id="39"><A HREF="#lbAK">Informative output:</A><DD>
</DL>
<DT id="40"><A HREF="#lbAL">AUTHOR</A><DD>
<DT id="41"><A HREF="#lbAM">REPORTING BUGS</A><DD>
<DT id="42"><A HREF="#lbAN">COPYRIGHT</A><DD>
<DT id="43"><A HREF="#lbAO">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:19 GMT, March 31, 2021
</BODY>
</HTML>