2005-10-06 18:10:01 +02:00
|
|
|
.TH WMC 1 "October 2005" "@PACKAGE_STRING@" "Wine Developers Manual"
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH NAME
|
2011-08-23 14:26:36 +02:00
|
|
|
wmc \- Wine Message Compiler
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH SYNOPSIS
|
2013-07-17 16:45:21 +02:00
|
|
|
.B wmc
|
|
|
|
.RI [ options ]\ [ inputfile ]
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B wmc
|
|
|
|
compiles messages from
|
|
|
|
.B inputfile
|
|
|
|
into FormatMessage[AW] compatible format encapsulated in a resourcescript
|
|
|
|
format.
|
|
|
|
.B wmc
|
2013-07-17 16:45:21 +02:00
|
|
|
outputs the data either in a standard \fI.bin\fR formatted binary
|
2000-06-13 06:34:41 +02:00
|
|
|
file, or can generated inline resource data.
|
|
|
|
.PP
|
|
|
|
.B wmc
|
2013-07-17 16:45:21 +02:00
|
|
|
takes only one \fIinputfile\fR as argument (see \fBBUGS\fR). The
|
|
|
|
\fIinputfile\fR normally has extension \fI.mc\fR. The messages are read from
|
2000-06-13 06:34:41 +02:00
|
|
|
standard input if no inputfile is given. If the outputfile is not specified
|
2013-07-17 16:45:21 +02:00
|
|
|
with \fB-o\fR, then \fBwmc\fR will write the output to \fIinputfile.{rc,h}\fR.
|
|
|
|
The outputfile is named \fIwmc.tab.{rc,h}\fR if no inputfile was given.
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.BI \-B\ x
|
2000-06-13 06:34:41 +02:00
|
|
|
Set output byte-order x={n[ative], l[ittle], b[ig]}. Default is n[ative].
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-c
|
2000-06-13 06:34:41 +02:00
|
|
|
Set 'custom-bit' in message-code values.
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-d
|
2000-06-13 06:34:41 +02:00
|
|
|
NON-FUNCTIONAL; Use decimal values in output
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-D
|
2000-06-13 06:34:41 +02:00
|
|
|
Set debug flag. This results is a parser trace and a lot of extra messages.
|
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-h ,\ \-\-help
|
|
|
|
Print an informative usage message and exits.
|
2000-06-13 06:34:41 +02:00
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.BI \-H\ file
|
2000-06-13 06:34:41 +02:00
|
|
|
Write headerfile to \fIfile\fR. Default is \fIinputfile.h\fR.
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-i
|
2000-06-13 06:34:41 +02:00
|
|
|
Inline messagetable(s). This option skips the generation of all \fI.bin\fR files
|
|
|
|
and writes all output into the \fI.rc\fR file. This encoding is parsable with
|
|
|
|
wrc(1).
|
|
|
|
.TP
|
2020-02-12 09:03:57 +01:00
|
|
|
.BI \-\-nls-dir= directory
|
|
|
|
Specify the directory to search for the NLS files containing the
|
|
|
|
codepage mapping tables.
|
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-o ,\ \-\-output =\fIfile
|
2000-06-13 06:34:41 +02:00
|
|
|
Output to \fIfile\fR. Default is \fIinputfile.rc\fR.
|
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-O ,\ \-\-output\-format =\fIformat
|
2011-01-24 20:09:53 +01:00
|
|
|
Set the output format. Supported formats are \fBrc\fR (the default),
|
|
|
|
\fBres\fR, and \fBpot\fR.
|
2011-01-18 16:55:37 +01:00
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-P ,\ \-\-po-dir =\fIdirectory
|
2011-01-24 20:12:54 +01:00
|
|
|
Enable the generation of resource translations based on po files
|
|
|
|
loaded from the specified directory. That directory must follow the
|
2013-07-17 16:45:21 +02:00
|
|
|
gettext convention, in particular in must contain one \fI.po\fR file for
|
2011-01-24 20:12:54 +01:00
|
|
|
each language, and a LINGUAS file listing the available languages.
|
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-u
|
2020-02-06 18:08:52 +01:00
|
|
|
Assume that the input file is in Unicode or UTF-8 format and skip
|
|
|
|
codepage conversions.
|
2000-06-13 06:34:41 +02:00
|
|
|
.TP
|
2011-01-18 16:55:37 +01:00
|
|
|
.B \-v
|
2000-06-13 06:34:41 +02:00
|
|
|
Show all supported codepages and languages.
|
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-V ,\ \-\-version
|
2000-06-13 06:34:41 +02:00
|
|
|
Print version end exit.
|
|
|
|
.TP
|
2013-10-04 19:38:46 +02:00
|
|
|
.BR \-W ,\ \-\-pedantic
|
2000-06-13 06:34:41 +02:00
|
|
|
Enable pedantic warnings.
|
|
|
|
.SH EXTENSIONS
|
|
|
|
The original syntax is extended to support codepages more smoothly. Normally,
|
2013-07-17 16:45:21 +02:00
|
|
|
codepages are based on the DOS codepage from the language setting. The
|
2000-06-13 06:34:41 +02:00
|
|
|
original syntax only allows the destination codepage to be set. However, this
|
|
|
|
is not enough for non\-DOS systems which do not use unicode source-files.
|
|
|
|
.PP
|
2013-07-17 16:45:21 +02:00
|
|
|
A new keyword \fBCodepages\fR is introduced to set both input and output
|
2000-06-13 06:34:41 +02:00
|
|
|
codepages to anything one wants for each language. The syntax is similar to
|
|
|
|
the other constructs:
|
|
|
|
.PP
|
|
|
|
Codepages '=' '(' language '=' cpin ':' cpout ... ')'
|
|
|
|
.PP
|
|
|
|
The \fIlanguage\fR is the numerical language\-ID or the alias set with
|
2013-07-17 16:45:21 +02:00
|
|
|
LanguageNames. The input codepage \fIcpin\fR and output codepage
|
|
|
|
\fIcpout\fR are the numerical codepage IDs. There can be multiple mappings
|
2000-06-13 06:34:41 +02:00
|
|
|
within the definition and the definition may occur more than once.
|
|
|
|
.SH AUTHORS
|
|
|
|
.B wmc
|
|
|
|
was written by Bertho A. Stultiens.
|
|
|
|
.SH BUGS
|
2013-07-17 16:45:21 +02:00
|
|
|
The message compiler should be able to have multiple input files and combine
|
|
|
|
them into one output file. This would enable the splitting of languages into
|
2000-06-13 06:34:41 +02:00
|
|
|
separate files.
|
|
|
|
.PP
|
|
|
|
Decimal output is completely lacking. Don't know whether it should be
|
|
|
|
implemented because it is a, well, non-informative format change. It is
|
|
|
|
recognized on the commandline for some form of compatibility.
|
2013-07-16 20:48:05 +02:00
|
|
|
.PP
|
|
|
|
Bugs can be reported on the
|
2017-11-30 19:57:06 +01:00
|
|
|
.UR https://bugs.winehq.org
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine bug tracker
|
|
|
|
.UE .
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH AVAILABILITY
|
|
|
|
.B wmc
|
2013-07-16 20:48:05 +02:00
|
|
|
is part of the Wine distribution, which is available through WineHQ,
|
|
|
|
the
|
2017-11-30 19:57:06 +01:00
|
|
|
.UR https://www.winehq.org/
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine development headquarters
|
|
|
|
.UE .
|
2000-06-13 06:34:41 +02:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR wine (1),
|
2013-07-16 20:48:05 +02:00
|
|
|
.BR wrc (1),
|
|
|
|
.br
|
2017-11-30 19:57:06 +01:00
|
|
|
.UR https://www.winehq.org/help
|
2013-07-16 20:48:05 +02:00
|
|
|
.B Wine documentation and support
|
|
|
|
.UE .
|