source: trunk/tools/wmc/wmc.man@ 10366

Last change on this file since 10366 was 10181, checked in by sandervl, 22 years ago

PF: Wine WMC port

File size: 3.2 KB
Line 
1.TH WMC 1 "June 12, 2000" "Version 1.0.0" "Wine Message Compiler"
2.SH NAME
3wrc \- Wine Message Compiler
4.SH SYNOPSIS
5.BI "wmc " "[options] " "[inputfile]"
6.SH DESCRIPTION
7.B wmc
8compiles messages from
9.B inputfile
10into FormatMessage[AW] compatible format encapsulated in a resourcescript
11format.
12.B wmc
13outputs the data either in a standard \fB.bin\fR formatted binary
14file, or can generated inline resource data.
15.PP
16.B wmc
17takes only one \fBinputfile\fR as argument (see \fBBUGS\fR). The
18\fBinputfile\fR normally has extension \fB.mc\fR. The messages are read from
19standard input if no inputfile is given. If the outputfile is not specified
20with \fI-o\fR, then \fBwmc\fR will write the output to \fBinputfile.{rc,h}\fR.
21The outputfile is named \fBwmc.tab.{rc,h}\fR if no inputfile was given.
22.SH OPTIONS
23.TP
24.I \-B x
25Set output byte-order x={n[ative], l[ittle], b[ig]}. Default is n[ative].
26.TP
27.I \-c
28Set 'custom-bit' in message-code values.
29.TP
30.I \-d
31NON-FUNCTIONAL; Use decimal values in output
32.TP
33.I \-D
34Set debug flag. This results is a parser trace and a lot of extra messages.
35.TP
36.I \-h
37Print an informative usage message.
38.TP
39.I \-H file
40Write headerfile to \fIfile\fR. Default is \fIinputfile.h\fR.
41.TP
42.I \-i
43Inline messagetable(s). This option skips the generation of all \fI.bin\fR files
44and writes all output into the \fI.rc\fR file. This encoding is parsable with
45wrc(1).
46.TP
47.I \-o file
48Output to \fIfile\fR. Default is \fIinputfile.rc\fR.
49.TP
50.I \-u
51Assume that the inputfile is in unicode.
52.TP
53.I \-U
54Write resource output in unicode formatted messagetable(s).
55.TP
56.I \-v
57Show all supported codepages and languages.
58.TP
59.I \-V
60Print version end exit.
61.TP
62.I \-W
63Enable pedantic warnings.
64.SH EXTENSIONS
65The original syntax is extended to support codepages more smoothly. Normally,
66codepages are based on the DOS\-codepage from the language setting. The
67original syntax only allows the destination codepage to be set. However, this
68is not enough for non\-DOS systems which do not use unicode source-files.
69.PP
70A new keyword \fICodepages\fR is introduced to set both input and output
71codepages to anything one wants for each language. The syntax is similar to
72the other constructs:
73.PP
74Codepages '=' '(' language '=' cpin ':' cpout ... ')'
75.PP
76The \fIlanguage\fR is the numerical language\-ID or the alias set with
77LanguageNames. The input\-codepage \fIcpin\fR and output\-codepage
78\fIcpout\fR are the numerical codepage\-IDs. There can be multiple mapping
79within the definition and the definition may occur more than once.
80.SH AUTHORS
81.B wmc
82was written by Bertho A. Stultiens.
83.SH BUGS
84The message compiler should be able to have multiple inputfiles and combine
85them into one outputfile. This would enable the splitting of languages into
86separate files.
87.PP
88Unicode detection of the input is suboptimal, to say the least. It should
89recognize byte\-order\-marks (BOM) and decide what to do.
90.PP
91Decimal output is completely lacking. Don't know whether it should be
92implemented because it is a, well, non-informative format change. It is
93recognized on the commandline for some form of compatibility.
94.SH AVAILABILITY
95.B wmc
96is part of the wine distribution, which is available through
97WineHQ, the
98.B wine
99development headquarters, at
100.I http://www.winehq.com/.
101.SH "SEE ALSO"
102.BR wine (1),
103.BR wrc (1)
Note: See TracBrowser for help on using the repository browser.