-
Notifications
You must be signed in to change notification settings - Fork 6
/
config-mswordview
173 lines (155 loc) · 3.66 KB
/
config-mswordview
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
#Elements are *not* supported at this time, only Styles
#The currently acceptable variable are...
#pixelsBefore the height of space in pixels before a paragraph
#pixelsAfter the height of space in pixels after a paragraph
#patterndir the directory of the patterns
#charset which is
#either automatically recognized iso-8859-1 and utf-8, or an explicitly
#specified charset from the command line, only the two thai ones whose name
#i currently forget are alllowed.
Element Bold
{
Start <b>
End </b>
}
# How to disable the use of bold throughout a document
#Element Bold
# {
# Start " "
# End " "
# }
Element Italic
{
Start <i>
End </i>
}
Element Font
{
Start "<font [face=\"$fontface\"] [color=\"$color\"] [size=\"$size\"]>"
End </font>
}
#Some of the global options that we can tweak.
Document
{
Start "<html>
<head>
<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;
charset=$charset\">
<title>$title</title>
</head>
<body>"
VTWIPS 76
HTWIPS 76
End "<br><img src=\"$patterndir/documentend.gif\">
<hr><p>
Document converted from ms word 8 by
<a href=\"http://www.csn.ul.ie/~caolan/docs/MSWordView.html\">
MSWordView</a>($version)<br>
MSWordView written by <a href=\"mailto:[email protected]\">
Caolan McNamara</a>
</body>
</html>"
}
# A style configuration has the following syntax
#Style Name , Name is the name that word gives to the style.
# {
# Prespace string, prespace is designed to be a placeholder for
# the vertical space that is at the beginning of
# a paragraph
# Start string, start is the starting tag of a style
# Bold On/Off, Each one of these tags can be set to On or Off.
# Off means that if the style according to word
# should be bold, then that is ignored. On means
# that mswordview follows what word says, if its
# bold, it stays bold, if its not it stays non-bold.
# Italic On/Off,
# Font On/Off,
# Default On/Off, Default On/Off sets the default handling for character
# attributes in a style to On or Off, ala the Bold example.
# End string, end is the ending tag of a style
# Postspace string, postspace is designed to be a placeholder for
# the vertical space that is at the end of a
# paragraph
# }
Style Normal
{
PreSpace "<img width=1 height=$pixelsBefore src=$patterndir/clear.gif><br>"
Start "<!--Normal Para Begin-->"
End "<!--Normal Para End-->"
PostSpace "<img width=1 height=$pixelsAfter src=$patterndir/clear.gif><br>"
}
#e.g. advanced configuration
#if you want the default word heading to be just a <h1></h1>, and to ignore
#the character formatting do something like this.
Style "Heading 1"
{
PreSpace "<img width=1 height=$pixelsBefore src=$patterndir/clear.gif><br>"
Start <h1>
Default Off
End </h1>
PostSpace "<img width=1 height=$pixelsAfter src=$patterndir/clear.gif><br>"
}
Style "Heading 2"
{
PreSpace " "
Start <h2>
Default Off
End </h2>
PostSpace " "
}
Style "Heading 3"
{
PreSpace " "
Start <h3>
Default Off
End </h3>
PostSpace " "
}
Style "Heading 4"
{
PreSpace " "
Start <h4>
Default Off
End </h4>
PostSpace " "
}
Style "Heading 5"
{
PreSpace " "
Start <h5>
Default Off
End </h5>
PostSpace " "
}
Style "Heading 6"
{
PreSpace " "
Start <h6>
Default Off
End </h6>
PostSpace " "
}
Style "Heading 7"
{
PreSpace " "
Start <h7>
Default Off
End </h7>
PostSpace " "
}
Style "Heading 8"
{
PreSpace " "
Start <h8>
Default Off
End </h8>
PostSpace " "
}
Style "Heading 9"
{
PreSpace " "
Start <h9>
Default Off
End </h9>
PostSpace " "
}