-
Notifications
You must be signed in to change notification settings - Fork 10
/
doc2html.wsf
118 lines (95 loc) · 2.76 KB
/
doc2html.wsf
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
<?xml version="1.0" encoding="utf-8" ?>
<!-- :
@echo off
cscript //nologo "%~f0?.wsf" %*
goto :EOF
: -->
<package>
<job id="wsx">
<?job error="false" debug="false" ?>
<script language="javascript"><![CDATA[
var NAME = 'doc2html';
var VERSION = '1.0.2';
]]></script>
<runtime>
<description><![CDATA[
doc2html and more
Copyright (C) 2004, 2009, 2010, 2012, 2016, 2019-2021 Ildar Shaimordanov
This tool allows to convert any DOC or DOCX file to several different formats such as plain text TXT (both DOS, Win, etc), or reach text RTF, or hyper-text HTML (default), MHT (web archive), XML, or PDF, or XPS.
Using doc2fb.xsl file it is possible to convert to FictionBook format (FB2).
FORMATS
TXT, RTF, HTML, MHT, XML, PDF or XPS
Additionally FB2 stands for transformations to FictionBook format.
ENCODINGS
A numeric value of the encoding to be used when saving as a plain text file. This option is significant with /F:TXT only. Refer to your system locales to learn which encodings ar available there.
The Russian or Ukrainian users can refer to the list below:
866 - DOS
28595 - ISO
20866 - KOI8-R
21866 - KOI8-U
10007 - Mac
1251 - Win
LINE ENDING
The option specifies characters to be used as line ending. There are four available values - CRLF, CR, LF, or LFCR. The default value is CRLF. This option is significant with /F:TXT only.
]]></description>
<example><![CDATA[
EXAMPLES
- Convert the WINWORD document "filename.doc" to the text file "filename.txt" encoded as KOI8-R with CRLF line ending:
doc2html /F:TXT /E:20866 /L:CRLF filename.doc
]]></example>
<named
name="H"
helpstring="Print this help and exit"
type="simple"
required="false"
/>
<named
name="F"
helpstring="Output format"
type="string"
required="false"
/>
<named
name="E"
helpstring="Encoding for plain text files"
type="string"
required="false"
/>
<named
name="L"
helpstring="Line ending for plain text files (Integer expected)"
type="string"
required="false"
/>
<named
name="XSL"
helpstring="An XSLT file for transformation to FictionBook2 format"
type="string"
required="false"
/>
<named
name="V"
helpstring="Turn on verbosity"
type="simple"
required="false"
/>
<named
name="FG"
helpstring="Specify this if you want to launch WINWORD in foreground"
type="simple"
required="false"
/>
<unnamed
name="arguments"
helpstring="Files to be converted"
required="true"
/>
</runtime>
<script language="javascript" src="js/win32/FileSystem.js"></script>
<script language="javascript" src="js/String.js"></script>
<script language="javascript" src="js/Array.js"></script>
<script language="javascript" src="js/Object.js"></script>
<script language="javascript" src="js/win32/Enumerator.js"></script>
<script language="javascript" src="doc2html.js"></script>
</job>
</package>