Skip to content

Commit

Permalink
revert doc2xxx -> doc2html
Browse files Browse the repository at this point in the history
-- add invocation template
-- rename doc2xxx -> doc2html
  • Loading branch information
ildar-shaimordanov committed Jan 12, 2021
1 parent 4750360 commit a9f3f6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 328 deletions.
73 changes: 6 additions & 67 deletions doc2html.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
//
// doc2html and more
//
// Copyright (c) 2004, 2009, 2010, 2012, 2016, 2019 Ildar Shaimordanov
//

///////////////////////////////////////////////////////////////////////////

//[requires[ js/win32/FileSystem.js ]]
//[requires[ js/String.js ]]
//[requires[ js/Array.js ]]
//[requires[ js/Object.js ]]
//[requires[ js/win32/Enumerator.js ]]

///////////////////////////////////////////////////////////////////////////
/*!
* doc2html and more
*
* Copyright (c) 2004-2020 Ildar Shaimordanov
*/

function alert(msg)
{
Expand All @@ -24,59 +14,8 @@ function quit(code)
WScript.Quit(code);
};

function help()
{
var msg = [
'doc2html and more',
'Copyright (C) 2004, 2009, 2010, 2012, 2016, 2019 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). ',
'',
'There are options:',
'',
'/H',
' Outputs this help page.',
'',
'/F:format',
' Specifies output format as TXT, RTF, HTML, MHT, XML, PDF or XPS. ',
' Additionally FB2 stands for transformations to FictionBook format. ',
'',
'/E:encoding',
' 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',
'',
'/L:lineending',
' 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. ',
'',
'/XSL:filename',
' The option specifies a name of a XSLT file for transformations to FictionBook format. ',
'',
'/V',
' Turn on verbosity.',
'',
'/FG',
' Specify this if you want to launch WINWORD in foreground.',
].join('\n');
alert(msg);
};

if ( WScript.Arguments.length < 1 || WScript.Arguments.Named.Exists('H') ) {
help();
WScript.Arguments.ShowUsage();
quit();
}

Expand Down
6 changes: 3 additions & 3 deletions doc2xxx.wsf → doc2html.wsf
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ goto :EOF
<script language="javascript"><![CDATA[
var NAME = 'doc2html';
var VERSION = '1.0.1 Alpha';
var VERSION = '1.0.2';
]]></script>

<runtime>
<description><![CDATA[
doc2html and more
Copyright (C) 2004, 2009, 2010, 2012, 2016, 2019, 2020 Ildar Shaimordanov
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.
Expand Down Expand Up @@ -112,7 +112,7 @@ EXAMPLES
<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="doc2xxx.js"></script>
<script language="javascript" src="doc2html.js"></script>

</job>
</package>
258 changes: 0 additions & 258 deletions doc2xxx.js

This file was deleted.

0 comments on commit a9f3f6e

Please sign in to comment.