{"id":1052,"date":"2004-01-14T10:12:00","date_gmt":"2004-01-14T15:12:00","guid":{"rendered":"http:\/\/www.allyngibson.net\/?p=1052"},"modified":"2004-01-14T10:12:00","modified_gmt":"2004-01-14T15:12:00","slug":"on-word-and-html","status":"publish","type":"post","link":"http:\/\/www.allyngibson.com\/?p=1052","title":{"rendered":"On Word and HTML"},"content":{"rendered":"<p>I won&#8217;t heap any more scorn on MS Word as an HTML generator; the flaws of Word in that regard are fairly well documented.<\/p>\n<p>If I have a Word document I want to render in HTML, I save the file to a plain-text file, stripping out <i>every<\/i> little formatting quirk, and then build the HTML coding around the plain-text in an HTML editor.  (I use two different editors, depending on what I need to do; Arachnophilia, for quickie jobs, Hot Dog Professional, for heavy duty jobs that require tables, forms, that sort of thing.)  If it&#8217;s a <i>Trek<\/i> story, re-italicizing a ship name isn&#8217;t difficult; just do a search-and-replace to put the italics tags around the name of the ship.  I don&#8217;t do a lot of italicizing outside of that, nor do I do much in the way of boldface or underlining.<\/p>\n<p>Style sheets.  (I said I wasn&#8217;t going to heap more scorn on Word; well, I&#8217;ve changed my mind.)  The one thing Word doesn&#8217;t do is style sheets; the layout of a Word HTML document is embodied in the document itself.  One of the truly sucky jobs I did a few years ago was to take a <i>very<\/i> large HTML document that had been produced in Word and redo it in a style sheet, because the maintainer of the document wanted to be able to update the document in the future easily.  The problem was that the signal-to-noise ratio in the document was <i>extremely<\/i> low&#8211;Word puts way too many formatting tags into the document, sometimes in the middle of words&#8211;and I spent a week stripping out the document of all the tags, going line by line.  Generating a style sheet to handle the formatting took all of about fifteen minutes, and reduced the size of the original document by 70 percent.<\/p>\n<p>Don&#8217;t get me wrong, there&#8217;s a reason I like writing in Word, because it does a lot.  But there&#8217;s also a reason why I convert my documents over to another format&#8211;plain-text or WordPerfect 5.1&#8211;if I need to do something else with them.  Word produces really bloated documents, when it doesn&#8217;t need to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I won&#8217;t heap any more scorn on MS Word as an HTML generator; the flaws of Word in that regard are fairly well documented. If I have a Word document I want to render in HTML, I save the file to a plain-text file, stripping out every little formatting quirk, and then build the HTML<a class=\"more-link\" href=\"http:\/\/www.allyngibson.com\/?p=1052\">Continue reading <span class=\"screen-reader-text\">&#8220;On Word and HTML&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[339,117,871],"class_list":["post-1052","post","type-post","status-publish","format-standard","hentry","category-general","tag-computers","tag-html","tag-web-design","entry"],"_links":{"self":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1052"}],"version-history":[{"count":0,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=\/wp\/v2\/posts\/1052\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1052"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.allyngibson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}