summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/msgcvt.1
blob: f0506340e734ab213e4c802a560ba0a9449c94b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
'\" te
.\" Copyright (c) 2000-2007 AT&T Knowledge Ventures
.\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt
.\" Portions Copyright (c) 2007, Sun Microsystems, Inc.
.TH msgcvt 1 "9 Oct 2007" "SunOS 5.11" "User Commands"
.SH NAME
msgcvt \- convert message file to and from HTML
.SH SYNOPSIS
.LP
.nf
\fBmsgcvt\fR [\fB-hmr\fR]
.fi

.SH DESCRIPTION
.sp
.LP
\fBmsgcvt\fR reads a \fBgencat\fR(1) format file on the standard input and
converts it to \fBHTML\fR on the standard output. The input file must contain
the control statement \fB$quote "\fR and use the \fB"\fR character to quote
message text. The output is in a form suitable for automatic translation by web
sites such as http://babelfish.altavista.com\&.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.mk
.na
\fB\fB-h\fR\fR
.ad
.br
.na
\fB\fB--html\fR\fR
.ad
.RS 10n
.rt  
Generate \fBHTML\fR from \fBgencat\fR(1) input.
.sp
This is the default.
.RE

.sp
.ne 2
.mk
.na
\fB\fB-m\fR\fR
.ad
.br
.na
\fB\fB--msg\fR\fR
.ad
.RS 10n
.rt  
Generate a \fBgencat\fR(1) message file from (presumably translated)
\fBHTML\fR. Wide characters are UTF-8 encoded.
.RE

.sp
.ne 2
.mk
.na
\fB\fB-r\fR\fR
.ad
.br
.na
\fB\fB--raw\fR\fR
.ad
.RS 10n
.rt  
The message file is raw message text, one message per line, with no quoting or
line numbering.
.RE

.SH EXIT STATUS
.sp
.ne 2
.mk
.na
\fB\fB0\fR\fR
.ad
.RS 6n
.rt  
Successful completion.
.RE

.sp
.ne 2
.mk
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
.rt  
One or more specified jobs does not exist.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRGenerating a \fBgencat\fR Message Catalog File
.sp
.LP
The following example generates a \fBgencat\fR(1) message catalog file from an
HTML file:

.sp
.in +2
.nf
example% cat example.html | msgcvt -m > examplecat
.fi
.in -2
.sp

.SH AUTHORS
.sp
.LP
Glenn Fowler, \fBgsf@research.att.com\fR
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Interface StabilityVolatile 
.TE

.SH SEE ALSO
.sp
.LP
\fBgencat\fR(1), \fBmsgcc\fR(1), \fBmsggen\fR(1), \fBattributes\fR(5)