msw to html version 1.5
İ Dan Berrios 1995
INTRODUCTION
msw to htmlİ is a simple application written in AppleScript¨, Apple Computer's scripting system for the Macintosh, which converts Microsoft Word¨ 6.0 files to text files with html (hypertext mark-up language) tags.
REVISIONS
1. msw to htmlİ v1.5 appears to be more than TWICE AS FAST as msw to htmlİ v1.0. A complex document with title, two three-item lists, three headings, a 4 x 4 table, some preformatted text and about 10 paragraphs of text nowtakes only about 2 minutes to convert on a Quadra 610.
2. Paragraphs are now converted en masse rather than individually.
3. A bug which caused the script to abort when converting some types of lists has been fixed.
REQUIREMENTS
Mac with at least 4 megs of RAM.
System 7.0.1 or later
AppleScript¨, version 1.1 or later, with the following Scripting Additions: choose file, open file (these were most likely installed with your copy of AppleScript¨; if not, contact Apple Computers).
Microsoft Word¨, version 6.0 or later.
N.B.: Only version 6.0 of Microsoft Word¨ is scriptable, not previous releases. Thus, this application will only work if Microsoft Word¨ 6.0 is installed on your computer.
INSTALLATION
Copy msw to htmlİ to your hard disk.
Running msw to htmlİ
1. MAKE A COPY of the MS Word 6.0 file you wish to convert (choose Duplicate in the File menu in Finder with the file selected OR Save as... in the File Menu in MS Word to save under another file name).
2. Launch Microsoft Word¨ 6.0 if it is not currently running.
3. Launch (double-click) msw to htmlİ.
4. A dialog box appears in which you must select a Microsoft Word¨ 6.0 document to convert to html.
5. If you care to, watch as your file is converted (choose MS Word under the MultiFinder). This may take a while; a document with several, large tables may take up to several minutes.
6. After conversion, msw to htmlİ will quit, but Microsoft Word¨ will remain open. The document will be converted and the new html "text only" document SAVED UNDER THE SAME NAME. (Be sure to save a copy of the Word¨ file BEFORE RUNNING THE PROGRAM).
CONVERSION SPECS
The application currently supports the following conversions:
1. "Bold" font to emphasis tag
2. "Bold, underline" font to strong emphasis tag
3. "Courier" font to preformatted text tag
4. Special characters ("&", "<", ">", and """ [quotation mark]) to corresponding html entities
5. Microsoft Word¨ tables to html tables, with the following provisions:
N.B.: 1) Merged cells are not allowed and will not format correctly
2) Header cells should have all words in bold to format correctly
3) Captions can appear anywhere above a table but must have the Word¨ "Caption" style.
4) All cells should contain text or be completely empty (no paragraph marks, tab marks, etc.)
6. Word¨ outline headings ("Heading 1" style, "Heading 2" style, etc.) to html heading tags (H1, H2, etc.). Note that you can apply these headings in Word¨ in either Outline view or in normal view.
7. Bulleted Lists to unordered list tags. The application recognizes bulleted lists only if lists have the "List Bullet" or "List" style in Word¨ or if bullets are made to precede each item using the Bullet button on the formatting toolbar. Paragraphs preceded by manually typed bullets will not be recognized as bulleted lists by msw to htmlİ.
8. Numbered Lists to ordered list tags. The application recognizes numbered lists only if lists have the "List Number" style in Word¨ or if ordered numbers or letters are made to precede each item using the Numbered List button on the formatting toolbar. Paragraphs preceded by manually typed numbers will not be recognized as numbered lists by msw to htmlİ.
9. Word¨ "Title" style to html title tag.
N.B.:
1. All other font and paragraph styles are currently ignored. Conversion of other styles to HTML tags may not be wise as they have yet to be officially adopted into HTML standards (e.g., blinking text, text colors, etc.).
2. All converted text appears in the body of the html document.
3. The tables conversion specs are those currently most commonly used, but not necessarily those which will be finally adopted into future HTML standards. Convert at your own risk.
ORDERING INFO/EVALUATION PERIOD --------- Important ----------------------
This program is NOT freeware. It is shareware. You are granted a 10 day limited-use evaluation period (see below). After this period, If you choose to continue to use this program, you must purchase it from the author.
Single-User License---------------$15.00
Site-license (5 mile radius)--------$50.00
Provided with this license will also be:
1) The editable source code for the program so that you may tailor conversions as your needs dictate
2) Written permission to alter this source code
2) The latest version of the program if available, including more html style conversions not currently implemented
Be sure to include your mailing address if different from that on your check or money order. DO NOT SEND CASH.
SEND TO:
Daniel C. Berrios
3145 Geary Blvd., #413
San Francisco, CA 94118
e-mail address: DanielB20@aol.com
msw to html version 1.0
İDan Berrios 1995
-----------------------------------------------------------------------
msw to htmlİ Terms and Conditions of Use
1. Distribution of msw to htmlİ. msw to htmlİ Software, documentation, and
license agreement are distributed by the Author in an archive or floppy
disk (the archive) comprising the complete msw to htmlİ distribution. You are
authorized to redistribute this unmodified archive for evaluation
purposes only. Extracting the msw to htmlİ Software and/or data from the
archive constitute acceptance of the license agreement.
2. Evaluation of msw to htmlİ. You are granted a period of 10 days from the
receipt of the msw to htmlİ Software and documentation to evaluate msw to htmlİ. During this time, you may use the msw to htmlİ software to created html documents. During the evaluation period, you may not use the msw to htmlİ software to distribute information via the World Wide Web for profit or gain. At the end of the 10 day evaluation period, you must agree to the msw to htmlİ License Agreement and purchase the msw to htmlİ Software license from the
author, or destroy all copies of msw to htmlİ Software and related documentation.
3. Use of msw to htmlİ Software. Use of the Software is covered by the terms
within the license agreement.
4. Individual User and Site License Costs. msw to htmlİ Software, documentation, and related documentation must be licensed from the Author or an authorized representative of the Author. Federal, state, and local government entities, commercial organizations, educational institutions, and individuals may license msw to htmlİ Software and documentation at the rates specified in the "Ordering Info" section of this document.
A Single-User license allows the user to install and use msw to htmlİ Software
and data on one computer. A Site-License allows an unlimited number of
copies to be installed by an organization on the organizationĠs computer
systems within a 5 mile radius of a specified location.
5. Support and Upgrades. All support for msw to htmlİ will be provided via
electronic mail or U.S. Mail with the Author.
This license will entitle the registered owner of msw to htmlİ Software to
obtain free updates to msw to htmlİ Software for a period not less than
1 year from the date the license is assigned. This update period may be
extended on a yearly basis after the initial period has expired for an
annual support fee not to exceed 50% of the original license fee per year.
________________________________________________________
msw to htmlİ Software License Agreement
Copyright 1995, Daniel C. Berrios
PLEASE READ THIS LICENSE CAREFULLY BEFORE INSTALLING OR USING THE msw to htmlİ SOFTWARE. BY DOWNLOADING, INSTALLING, AND/OR USING THE SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE TERMS OF THIS LICENSE. IF YOU DO NOT AGREE
TO THE TERMS OF THIS LICENSE, YOU ARE NOT AUTHORIZED TO DOWNLOAD,
INSTALL, AND/OR USE THIS SOFTWARE.
1. License. The msw to htmlİ application software accompanying this License, whether on disk, in read only memory, or on any other media or networked storage device (the "msw to htmlİ Software") and related documentation (the ÒdataÓ) are licensed to you by Daniel C. Berrios (the ÒAuthorÓ). You own the disk on
which the msw to htmlİ Software and data are recorded but the Author and/or
the AuthorĠs Licensor(s) retain title to the msw to htmlİ Software and related
documentation. This License allows you to install and use the
msw to htmlİ Software and data on a single computer and make one copy of the
msw to htmlİ Software and data in machine-readable form for backup purposes
only. You must reproduce on such copy the AuthorĠs copyright notice and
any other proprietary legends that were on the original copy of the
msw to htmlİ Software and related documentation. You may also transfer all your license rights in the msw to htmlİ Software and related documentation, the backup copy of the msw to htmlİ Software and related documentation, and a copy of this License to another party, provided the other party reads and agrees to accept the terms and conditions of this License.
2. Restrictions. The msw to htmlİ Software and related docuementation contains copyrighted material, trade secrets and other proprietary material and in order to
protect them you may not decompile, reverse engineer, disassemble or
otherwise reduce the msw to htmlİ Software to a human-perceivable form without the Author's written permission. You may not modify, network, rent, lease, loan, distribute or create derivative works based upon the msw to htmlİ Software in whole or in part without the Author's written permission. You may not electronically transmit the licensed msw to htmlİ Software from one computer to another or over a network.
3. Termination. This License is effective until terminated. You may
terminate this License at any time by destroying the msw to htmlİ Software and related documentation and all copies thereof. This License will
terminate immediately without notice from the Author if you fail to
comply with any provision of this License. Upon termination you must
destroy the msw to htmlİ Software, and related documentation and all
copies thereof.
4. Export Law Assurances. You agree and certify that neither the msw to htmlİ
Software nor any other technical data received from the Author, nor the
direct product thereof, will be exported outside the United States except
as authorized and as permitted by the laws and regulations of the United
States. If the msw to htmlİ Software has been rightfully obtained by you
outside of the United States, you agree that you will not re-export the
msw to htmlİ Software nor any other technical data received from the Author,
nor the direct product thereof, except as permitted by the laws and
regulations of the United States and the laws and regulations of the
jurisdiction in which you obtained the msw to htmlİ Software.
5. Government End Users. If you are acquiring the msw to htmlİ Software and
related documentation on behalf of any unit or agency of the United States Government, the following provisions apply. The Government agrees:
(i) if the msw to htmlİ Software and data are supplied to the Department of
Defense (DoD), the msw to htmlİ Software and data are classified as
"Commercial Computer Software" and the Government is acquiring only
"restricted rights" in the msw to htmlİ Software, its documentation and data
as that term is defined in Clause 252.227-7013(c)(1) of the DFARS; and
(ii) if the msw to htmlİ Software and data are supplied to any unit or agency
of the United States Government other than DoD, the Government's rights in
the msw to htmlİ Software and related documentation will be as defined in
Clause 52.227-19(c)(2) of the FAR or, in the case of NASA, in Clause
18-52.227-86(d) of the NASA Supplement to the FAR.
6. Disclaimer of Warranty on msw to htmlİ Software. You expressly acknowledge
and agree that use of the msw to htmlİ Software and related documentation is at your sole risk. The msw to htmlİ Software and related documentation are provided AS IS
and without warranty of any kind and the Author and the Author's
Licensor(s) (for the purposes of provisions 6 and 7, the Author and the
Author's Licensor(s) shall be collectively referred to as "the Author")
EXPRESSLY DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT THE FUNCTIONS
CONTAINED IN THE msw to htmlİ SOFTWARE WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE msw to htmlİ SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE msw to htmlİ SOFTWARE WILL BE CORRECTED.
FURTHERMORE, THE AUTHOR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS
REGARDING THE USE OR THE RESULTS OF THE USE OF THE msw to htmlİ SOFTWARE AND
DATA OR RELATED DOCUMENTATION IN TERMS OF THEIR CORRECTNESS, ACCURACY,
RELIABILITY, OR OTHERWISE. NO ORAL OR WRITTEN INFORMATION OR ADVICE
GIVEN BY THE AUTHOR OR A REPRESENTATIVE AUTHORIZED BY THE AUTHOR SHALL
CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF THIS WARRANTY.
SHOULD THE msw to htmlİ SOFTWARE PROVE DEFECTIVE, YOU (AND NOT THE AUTHOR OR A REPRESENTATIVE AUTHORIZED BY THE AUTHOR) ASSUME THE ENTIRE COST OF ALL
NECESSARY SERVICING, REPAIR OR CORRECTION. SOME JURISDICTIONS DO NOT
ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO THE ABOVE EXCLUSION MAY NOT
APPLY TO YOU.
7. Limitation of Liability. UNDER NO CIRCUMSTANCES INCLUDING NEGLIGENCE,
SHALL THE AUTHOR BE LIABLE FOR ANY INCIDENTAL, SPECIAL OR CONSEQUENTIAL
DAMAGES THAT RESULT FROM THE USE OR INABILITY TO USE THE msw to htmlİ SOFTWARE OR RELATED DOCUMENTATION AND DATA, EVEN IF THE AUTHOR OR AN AUTHORIZED REPRESENTATIVE OF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES SO THE ABOVE LIMITATION
OR EXCLUSION MAY NOT APPLY TO YOU. In no event shall The AuthorĠs total
liability to you for all damages, losses, and causes of action (whether
in contract, tort (including negligence) or otherwise) exceed the amount
paid by you for the msw to htmlİ Software and data.
8. Controlling Law and Severability. This License shall be governed by
and construed in accordance with the laws of the United States and the
State of California, as applied to agreements entered into and to be performed
entirely within California between California residents. If for any reason a court
of competent jurisdiction finds any provision of this License, or portion
thereof, to be unenforceable, that provision of the License shall be
enforced to the maximum extent permissible so as to effect the intent of
the parties, and the remainder of this License shall continue in full
force and effect.
9. Complete Agreement. This License constitutes the entire agreement
between the parties with respect to the use of the msw to htmlİ Software,
related documentation and data, and supersedes all prior or
contemporaneous understandings or agreements, written or oral, regarding
such subject matter. No amendment to or modification of this License will
be binding unless in writing and signed by the Author or a duly
authorized representative of the Author.