home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
htmlepm.zip
/
README
< prev
Wrap
Text File
|
1995-06-02
|
5KB
|
106 lines
HTML Extensions for EPM (Version 0.95)
=================================
Legal stuff
See the file license.txt
Contents
The HTMLEPM.ZIP package contains 4 files:
README - This file.
LICENSE.TXT- License information (basically taken from IBM).
HTMLTAGS.E - The E source code of the HTM extensions.
HTMLTAGS.EX - The compiled code.
Rationale
The widening popularity of the World Wide Web has created the need for
writing documents using the HTML format. There are some simple editors
available that give HTML Editing capabilities but limited general editing
features. I have worked the other way around, giving menu-driven HTML
editing tools to a very powerful Editor. I took inspiration from the
Customized version of EPM distributed freely by IBM as CSTEPM.ZIP that
includes support for SGML, TeX,...
Installation
The IBM OS/2 EPM Enhanced Editor can be extended using macros written in a
language called E. The E extensions can be added to the editor either the
hard way by modifying and recompiling the epm and extra macros (you will
need to download the ETPM compiler,standard macros,...) or the easy way:
the EPM 5.51 version allows for the use of External Modules that can be
linked at any time, so I have supplied the HTML extensions as an external
linkable module in a 10Kb single file named HTMLTAGS.EX (sic, .EX not
.EXE).
All you need to do is to copy this file into your \OS2\APPS directory (or
wherever you have the EPM.EXE file). Start the EPM editor, open a Command
Dialog Window (select Command then Command dialog): then type 'link
htmltags' (WITHOUT quotes). The editor should inform you of the operation
with a 'Link completed, module#n' message, and an HTML option should now
be visible in the editor main menu. The extensions will last till the end
of your session with EPM or until you unlink them using again a Command
dialog window (you should now type 'unlink htmltags', WITHOUT quotes).
and the HTML option will be removed from the main menu.
If you want to have the extensions always linked you can either edit the
standard macros and recompile them or (again the easy way) just open the
settings notebook of the Enhanced Editor object in your Desktop and type
as parameter to be passed to the program 'link htmltags' (WITH the single
quotes now!). From then on everytime you start EPM by double-clicking on
its icon the HTML extensions will be linked at start time so you won't
need to reinstall them manually.
Compiling E Language Macros
The E source of the extensions is provided so those willing to incorporate
it permanently to EPM are free to do it. It will need just a litle
tweaking of your standard or customized macros to include it. I am not an
expert in writing E macros but if you have troubles just drop me a note
and I will try to help.
Using the Extensions
I think the use of the extensions should be intuitive to anyone familiar
with the HTML tagging. The different tags that constitute the HyperText
Mark-up Language can be embedded in the text selecting the HTML option
that has been added to the editor main menu. If the tag to be inserted is
a single one (new paragraph, horizontal rule,...) it is inserted at the
cursor. If the tag is "double" (i.e. it needs a start tag and an end
tag) then if there is no text area previously selected by dragging both
tags are inserted at the cursor position and the cursor will be placed
between the tags; if text is selected the tags will (usually) be placed
encircling it. Forms are supported in what seemed (to me) a useful way
but I am open to receive any suggestion.
Some of the extensions can be selected If you right-click anywhere over
EPM: a simplified HTML menu will pop-up for quicker access.
EPM Documentation
The IBM documentation and tools needed to write and compile E macros can
be found on several files in the /epm directory in software.watson.ibm.com
and several other ftp sites .
EPMAPP.ZIP - Contains the compiler, the editor,...
EPMMAC.ZIP - The standard macros used to compile EPM as supplied .
EPMBOOK.ZIP - Documentation in INF format. It contains the EPM User's
Guide that I can't understand why it is not included with OS/2 as this is
the complete EPM guide. It also includes the EPM Technical Reference.
CUSTEPM.ZIP - A customized version of EPM written by IBMers. Fully
recommended if you want to study E Language macros. My main source of
inspiration when writing the HTML extensions.
HTML Info
If you are interested in HTML documentation, look in the Web. Some
useful places are :
http://www.ncsa.uiuc.edu/demoweb/html-primer.html
http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html
http://info.cern.ch/hypertext/WWW/Provider/Style/Introduction.html
http://info.cern.ch/hypertext/WWW/MarkUp/SGML.html
http://kuhttp.cc.ukans.edu/lynx_help/HTML_quick.html
-------------------------------------------------------------------
June 2th,1995
Eduardo Areitio
internet: areitio@ibm.net