chm.rst
changeset 1759 6f62f6dccf2c
parent 1757 bf335700acbe
child 1760 9504cbe2020d
equal deleted inserted replaced
1758:a5b14a9f4498 1759:6f62f6dccf2c
    30 
    30 
    31 Microsoft HTML Help.
    31 Microsoft HTML Help.
    32 ====================
    32 ====================
    33 
    33 
    34   http://msdn.microsoft.com/en-us/library/ms669985
    34   http://msdn.microsoft.com/en-us/library/ms669985
    35                 Microsoft HTML Help Downloads
    35     Microsoft HTML Help Downloads.
       
    36   http://www.microsoft.com/en-us/download/details.aspx?id=21138
       
    37     HTML Help Workshop and Documentation.
    36   http://support.microsoft.com/kb/269766/
    38   http://support.microsoft.com/kb/269766/
    37                 INFO: Limited Unicode Support in HTML Help
    39     INFO: Limited Unicode Support in HTML Help.
    38 
    40 
    39 Microsoft HTML Help under Debian.
    41 Microsoft HTML Help under Debian.
    40 =================================
    42 =================================
    41 
    43 
    42 Set Wine's Windows version to Windows 2000 (or above), and add an override to
    44 Set Wine's Windows version to Windows 2000 (or above) via ``winecfg``.
    43 use the native itss.dll, both via ``winecfg``::
       
    44 
    45 
    45   wine winecfg
    46 Install necessary dependency::
       
    47 
       
    48   $ winetricks mfc40
       
    49 
       
    50 Alternatively manually download and install `Microsoft Foundation Classes update
       
    51 <http://activex.microsoft.com/controls/vc/mfc40.cab>`_::
       
    52 
       
    53   $ wget http://activex.microsoft.com/controls/vc/mfc40.cab
       
    54   $ cabextract mfc40.cab
       
    55   $ wine mfc40.exe
    46 
    56 
    47 Download `Microsoft HTML Help Workshop
    57 Download `Microsoft HTML Help Workshop
    48 <https://msdn.microsoft.com/en-us/library/ms669985.aspx>`_ and install it as
    58 <https://msdn.microsoft.com/en-us/library/ms669985.aspx>`_ and install it as
    49 (from non-``noexec`` FS!!)::
    59 (from non-``noexec`` FS!!)::
    50 
    60 
    51   wine htmlhelp.exe
    61   $ wine htmlhelp.exe
    52 
    62 
    53 Install ``itircl.dll`` and ``itss.dll`` as::
    63 Install ``itircl.dll`` and ``itss.dll`` from ``hhupd.exe`` which available in
       
    64 installer or in ``~/.wine/drive_c/Program Files/HTML Help Workshop/redist``::
    54 
    65 
    55   cabextract -F hhupd.exe htmlhelp.exe
    66   cabextract -F hhupd.exe htmlhelp.exe
    56   cabextract -F itircl.dll hhupd.exe
    67   cabextract -F itircl.dll hhupd.exe
    57   cabextract -F itss.dll hhupd.exe
    68   cabextract -F itss.dll hhupd.exe
    58   cp -a itircl.dll ~/.wine/drive_c/windows/system32/
    69   cp -a itircl.dll ~/.wine/drive_c/windows/system32/
    59   cp -a itss.dll ~/.wine/drive_c/windows/system32/
    70   cp -a itss.dll ~/.wine/drive_c/windows/system32/
    60   wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itircl.dll'
       
    61   wine regsvr32 /s 'C:\WINDOWS\SYSTEM32\itss.dll'
       
    62 
    71 
    63 Download `Microsoft Foundation Classes update
    72 You must add exception for ``hhc.exe`` and ``hhw.exe`` to use native variant of
    64 <http://activex.microsoft.com/controls/vc/mfc40.cab>`_, extract it, and install
    73 ``itss.dll`` via ``winecfg``. Note: don't set ``itss.dll`` to native by default
    65 it as::
    74 becase then ``wine hh`` wouldn't work.
    66 
       
    67   wget http://activex.microsoft.com/controls/vc/mfc40.cab
       
    68   cabextract mfc40.cab
       
    69   wine mfc40.exe
       
    70   wget -N http://activex.microsoft.com/controls/vc/mfc40.cab
       
    71   cabextract -F mfc40.exe mfc40.cab
       
    72   cabextract -F mfc40.dll mfc40.exe
       
    73   cp -a mfc40.dll ~/.wine/drive_c/windows/system32/
       
    74 
       
    75 Or just::
       
    76 
       
    77   $ winetricks mfc40
       
    78 
    75 
    79 See:
    76 See:
    80 
    77 
    81  * http://code.google.com/p/htmlhelp/wiki/HHW4Wine
    78  * http://code.google.com/p/htmlhelp/wiki/HHW4Wine
       
    79  * https://appdb.winehq.org/objectManager.php?sClass=version&iId=2978
       
    80  * https://bugs.winehq.org/show_bug.cgi?id=7517
    82 
    81 
    83 Viewer.
    82 Viewer.
    84 =======
    83 =======
    85 ::
    84 ::
    86 
    85