I had to write some documentation. I wrote each page in MS Word and then save each *.docx as htm file. I'm using "HTML Help Workshop" (from microsoft) to compile a chm file.
I was able to sucessfully create a chm file but the problem is that not all images in chm file are displayed. I tried decompiling the *.chm file into another folder and opened each .htm file in web browser. All images are correctly displayed.
Then why aren't they displayed in chm file. Strangely, only some of them aren't displayed. I checked if image format is causing problem, but all images are of same format. I checked if file naming is a problem, but all images are named like image[001-100].jpg in their corresponding folders.
Any idea about whats going wrong?
HTML Help Workshop (HHW) is known to have problems with the HTML generated by Word (or better put: Word generates terrible HTML). Some versions put VML coding around the IMG tags that HHW cannot handle.
Possible solutions:
In Word: Deselect the option 'Rely on VML for displaying graphics in browsers' (Tools > Options > General > Web Options)
In Word: Save as 'filtered HTML'.
In HHW: Manually add the images to the project's [FILES] section.
Let me know if any of this helps.
More information can be found in the HTML Help 1.X FAQ
Related
I have created a chm file using HTML Help workshop and it works fine in Windows. However the chm viewer used in Linux is not so good and I prefer not to use it in Linux. I am also restricted from using any other viewers in Linux. So I thought of decompiling the chm and create HTML files which can be used in Linux. However on decompiling, the hhc file generated, though contains the HTML tags, does not display properly in the browser.
<LI> <OBJECT type="text/sitemap">
<param name="Name" value="Main">
<param name="Local" value="Main.html">
</OBJECT>
The above code just displays only a bullet and nothing else. Is there a way by which the data in the param tags can be used. Like it displays Main as a link to Main.html.
NOTE: I don't want to use browser in Windows, so avoiding chm file as such is not a solution. Also I will have to make changes in multiple places if I use chm in Windows and separate HTML file for Linux. So the option I am thinking of is to use the HTML files generated by decompiling the chm in Linux.
You know, .hhc files contain the Table of Contents (TOC) for an HTMLHelp file (CHM), i.e. the entries displayed
in the left pane of the CHM viewer window. It's compiled into the CHM file.
An .hhc file is referred to as a sitemap file. Sitemap is a file format developed and proposed by Microsoft to the World Wide Web Consortium. Sitemap files control many navigation features for CHM files, such as the table of contents and index panes.
Please note HTMLHelp and all this is about 20 years old! The .hhc sitemap file was not standardised (standardized) by W3C e.g. as HTML5 and is a old proprietary Microsoft file format today.
I'd recommend using a so called web-based help under LINUX. If you really have permanent updates of your help topic content you'll need to survey your workflow.
Some thoughts (as I understand your needs):
Low budget and the man's way by using HTMLHelp Workshop (use of tools
recommended e.g. like FAR
HTML
Think about single-sourcing - one source of topics and different target formats (e.g. CHM, web-based (uncompressed help) on a server)
Think about your CHM file as a compiled web, create the HTML topics in structured folders like a web page (best use case for the wizards of FAR HTML)
Create a CHM file from source
Create a uncompressed web based help from source by uploading the web to Intranet or Internet (HTML files, images, ...), completed by a handmade Table of Contents derived from the .hhc file
But, don't decompile. Have single-sourcing in mind - I'd recommend using a time saver tool like mentioned above. To see what I mean navigate to following links:
Example 1: Uncompressed help - a bit dated
Example 2: FAR Web help created using FAR HTML.
For further information go to FAR HTML Tour and scroll down to uncompressed help.
when Export a webpage in Microsoft word in table format the table layout not showing properly missing css styling please help me.
A doc or docx and an html file are very different from each other. If you want to save an offline version of the website, use a scraper or take a screenshot of the webpage you are interested in.
CSS does not work in word and so it is not recognized. There are workarounds but I don't really see the point. Just save the document as an html and work with that! Have a nice day!
Try this:
Goto your Microsoft Word Document.
Then goto Insert >> Object >> Text from File
Select the required .html file from the Insert File Dialog box.
Save your document in Word Document (.docx) format.
Or try this one:
Save your document as .html or .htm format.
This will create a folder with your documents.
Add your CSS stylesheet to the created folder. To add stylesheet, Goto Developer Tab >> Document Template >> Linked CSS >> Add.
Hopefully this will work!
Chrome has an extension called SingleFile. It basically saves a web page in a one file *.htm page that is a clone of the original website. I have seen something like this done with Mozilla MAFF format. The MAFF format saves the file in *.maf, and is you want to see contents (html, css, images etc.) you can change the format to *.zip. Then you can unzip it. With the SingleFile (Chrome) you can’t unzip the file by changing extension. Does anybody know how this is achieved? Is this a known thing that *.htm can offer? Thanks
The MAFF format saves the file in *.maf, and is you want to see
contents (html, css, images etc.) you can change the format to *.zip.
Then you can unzip it.
I'm assuming that you're really asking just how the image files are stored in .htm since html and css can easily be stored as text in htm.
It uses uuencode/uudecode to embed image files in the .htm file. More on that here:
https://en.wikipedia.org/wiki/Uuencoding
This is why changing the extension to .zip won't turn the file into a zip package that you can unzip.
Illustrative side-by-side screenshots of external vs. embedded image.
I found this article may help: http://www.techgainer.com/enable-single-file-mhtml-support-chrome/
On Chrome address bar, type chrome://flags, then hit enter. Now use Ctrl+F (Command+F on Mac) bring search bar and search for mhtml as I did below. Once you find the option, click on Enable link.
I am compiling one chm file with set of html files. In one html file i am using iframe tag and viewing text file throught 'src' attribute. I am able to see the contents of text file inside iframe when opening that HTML file in a browser. But when viewing that file in a chm file i don't see text file content. It is showing 'This page can’t be displayed' error in iframe.
This is the tag i'm using:
<iframe src="./mytextfile.txt" style="width: 100%; height: 300px;border:none"></iframe>
Is there anything to add to view that file. Please help me.
As you can see - your problem is reproducible (here on a German Windows10 machine).
You must ensure that the text file is either in the same directory as the project (.hhp) file or in a subdirectory of that directory.
You also have to add the *.txt file extension or filename to the [FILES] list in the .hhp file, as this ensures that the text file will be compiled into the .chm file. Best way is to do this by a text editor like shown below:
Save the *.hhp file and compile all content to your *.chm file.
Done!
BTW - here are some hints to another problem may be targeted:
Microsoft introduced some security restrictions many years ago that disable functionality in HTML Help files that are accessed over a network, so what you're seeing is almost certainly by design. There are two possible solutions: move the help file to your local drive, or implement some changes in the Windows registry so that you can view the contents of remote help files.
Microsoft's summary of the problem: http://support.microsoft.com/kb/896054
You may try following workaround that lets you explicitly 'unblock' a CHM help file coming from a network drive or internet download. To do this:
Open Windows Explorer
Find your CHM file
Right click and select Propertie
Click the Unblock button on the General tab
For information on how to make the registry changes, see this page:
http://www.grainge.org/pages/authoring/chm_mspatch/896358.htm
Or more straightforwardly, use the free HHReg utility available from the page below to make the required changes.
http://www.ec-software.com/products_hhreg.html
I have issues with my Adobe Dreamweaver CS6 (and CC) to support TWIG files. I tried some of the tutorials found on Google saying I need that extension in settings and also edit one of dreamweaver configuration files. But It didn't worked.
The only thing I did, is that Dreamweaver is able to open *.twig files, but it is opening them as a plain text, when it should do HTML5 markup highlighting.
Maybe someone knows the tutorial/required actions to make it work?
As an addition question I will ask how to make in Notepad++ to understand *.twig file type on the first open, so I don't need to choose 'programing language' from Menu each time I open *.twig file.
To be more clear.
I followed instructions from:
http://helpx.adobe.com/dreamweaver/kb/change-add-recognized-file-extensions.html
I edited both files (one in Program Files, and the second in Users folder), and it still not highlights the "abc.html.twig" file. Displays as plain.
I was just having this issue, with CS6 (following Adobe's site). Make sure to have Dreamweaver turned off.
Edit:
C:\Users\\[username]\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\Extensions.txt
Find:
HTM,HTML,...,SVG:All Documents
HTM,HTML,HTA,HTC,XHTML:HTML Documents
Change to:
HTM,HTML,...,SVG,TWIG:All Documents
HTM,HTML,HTA,HTC,XHTML,TWIG:HTML Documents
Turns out that there is a second MMDocumentTypes.xml in:
C:\Users\\[username]\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\DocumentTypes\MMDocumentTypes.xml
and
C:\Program Files\Adobe\Adobe Dreamweaver CS6\configuration\DocumentTypes\MMDocumentTypes.xml
Edit both these files and change this line in both:
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi" file="Default.html" writebyteordermark="false" mimetype="text/html">
to
<documenttype id="HTML" internaltype="HTML" winfileextension="html,htm,shtml,shtm,stm,tpl,lasso,xhtml,twig" macfileextension="html,htm,shtml,shtm,tpl,lasso,xhtml,ssi,twig" file="Default.html" writebyteordermark="false" mimetype="text/html">
Open up a twig file with Dreamweaver and it should now show HTML highlighting within your twig files!
Hope this helps!