/*************************************************/
/* */
/* */
/* kenHTepm */
/* Portions copyright c. Ken Arway 1996 */
/* */
/* See kenHTepm.doc for instructions. */
/* */
/* DISCLAIMER: I make no claims, expressed */
/* or implied, as to the fitness of this */
/* code or its suitability for any purpose */
/* whatsoever. I will not be liable for any */
/* damages of any kind resulting from the */
/* use of this code by anybody at all. Use */
/* of this code is entirely at your own */
/* risk. */
/* */
/* */
/*************************************************/
compile if not defined(SMALL) -- If SMALL not defined, then being separately compiled
define INCLUDING_FILE = 'kenHTepm.e'
const
tryinclude 'MYCNF.E' -- the user's configuration customizations.
; MY_HTML_ADDRESS = '' -- Can include something like one of:
; MY_HTML_ADDRESS = 'Your Name name@location.com'
; MY_HTML_ADDRESS = 'Your Name Here yourid@yournode.site.org'
-- This will be added at the end of each document created.
-- It will be after a
and inside an .
const
MY_HTML_ADDRESS = ''
MY_TIMEZONE = 'CDT'
WANT_HTML_MONOFONT = '1' -- 1 enables, 0 disables
MY_HTML_MARGINS = '1 80 1'
MY_HTML_TABS = '3'
MY_HTML_STRIP = 'e:\os2apps\HTMLutil\unh.exe'
MY_HTML_CHECK = 'e:\os2apps\HTMLutil\WebLint\weblint.cmd -f kenlint.rc'
MY_COM_PROG = 'd:\telecom\term2.exe'
MY_TELNET = 'telnetpm.exe'
MY_FTP = 'ftppm.exe'
MY_BROWSER = 'd:\tcpip\bin\explore.exe -t 8 -q'
MY_COLOR_REF = '/WIN /F e:\winapps\HTMlib\colwiz.exe'
MY_HTML_REF = '/WIN /F winhelp.exe e:\winapps\HTMlib\html.hlp'
compile if not defined(SITE_CONFIG)
const SITE_CONFIG = 'SITECNF.E'
compile endif
compile if SITE_CONFIG
tryinclude SITE_CONFIG
compile endif
const
compile if not defined(WANT_DYNAMIC_PROMPTS)
WANT_DYNAMIC_PROMPTS = 1
compile endif
compile if not defined(NLS_LANGUAGE)
NLS_LANGUAGE = 'ENGLISH'
compile endif
include NLS_LANGUAGE'.E'
include 'STDCONST.E'
const
MUST_BE_LINKED_MSG = 'For proper operation, this .ex file must be linked, not executed.'
defmain
universal HTML_tags_menu_flag
universal defaultmenu, activemenu
call winmessagebox('kenHTepm ', MUST_BE_LINKED_MSG, MB_CANCEL + MB_CUAWARNING + MB_MOVEABLE)
if HTML_tags_menu_flag = '1' then
deletemenu defaultmenu, 62, 0, 0
call maybe_show_menu()
HTML_tags_menu_flag = '0'
endif
compile endif -- (SMALL)
const
HTMLVERSION= '1.3'
HTMLTAGS_BAR_MSG= '~kHTML'
FORMAT_MENU_MSG= 'Formatting St~yles'
PHYSICAL_MENU_MSG= '~Physical'
BOLD_MENU_MSG= '~Bold'
ITALIC_MENU_MSG= '~Italic'
TTYPE_MENU_MSG= '~Typewriter'
UNDER_MENU_MSG= '~Underline'
PRE_MENU_MSG= '~Preformatted'
STRIKE_MENU_MSG= '~Struckthrough'
SUBSCR_MENU_MSG= 'Subs~cript'
SUPERSCR_MENU_MSG= 'Supe~rscript'
BIG_MENU_MSG= 'Bi~g text'
SMALL_MENU_MSG= 'Smal~l text'
BLINK_MENU_MSG= 'Blin~king'
LOGICAL_MENU_MSG= '~Logical'
EMPH_MENU_MSG= '~Emphasized'
STRONG_MENU_MSG= '~Strong emph.'
ADDRESS_MENU_MSG= '~Address'
CITE_MENU_MSG= '~Citation'
BLOCK_MENU_MSG= '~Blockquote'
DFN_MENU_MSG= '~Def. instance'
CODE_MENU_MSG= 'C~ode'
KEYB_MENU_MSG= '~Keyboard'
SAMP_MENU_MSG= 'Sa~mple'
VAR_MENU_MSG= '~Variable'
FONT_MENU_MSG= '~Fonts'
FONTSIZE_MENU_MSG= '~Size'
FONTCLR_MENU_MSG= '~Color'
FONTFACE_MENU_MSG= '~Face'
BASEFONT_MENU_MSG= '~Basefont'
HEAD_MENU_MSG= '~Headings'
H1_MENU_MSG= 'Head ~1'
H2_MENU_MSG= 'Head ~2'
H3_MENU_MSG= 'Head ~3'
H4_MENU_MSG= 'Head ~4'
H5_MENU_MSG= 'Head ~5'
H6_MENU_MSG= 'Head ~6'
CENTER_MENU_MSG= '~Center'
CMNT_MENU_MSG= 'Co~mment'
MCOL_MENU_MSG= 'M~ulti-col'
SEP_MENU_MSG= '~Separators'
PARA_MENU_MSG= '~Paragraph'
BREAK_MENU_MSG= 'Line ~break'
RULE_MENU_MSG= 'Horiz. ~rule'
DIV_MENU_MSG= '~Divisions'
LISTS_MENU_MSG= '~Lists'
TABLE_MENU_MSG= 'Ta~ble'
OLIST_MENU_MSG= '~Ordered list'
ULIST_MENU_MSG= '~Unordered list'
LITEM_MENU_MSG= 'List ~item'
LHEAD_MENU_MSG= 'List ~header'
DEFLIST_MENU_MSG= '~Definition list'
DEFLISTTERM_MENU_MSG= 'Def. list ~term'
DEFLISTDEF_MENU_MSG= 'Def. list de~finition'
DIRLIST_MENU_MSG= 'Di~rectory list'
MENULIST_MENU_MSG= '~Menu list'
ANCHOR_MENU_MSG= 'Lin~ks & objects'
IMAGE_MENU_MSG= '~Image inline'
IMAP_MENU_MSG= '~Map'
AREA_MENU_MSG= 'A~rea'
TARGET_MENU_MSG= 'Create ~anchor'
INTLINK_MENU_MSG= 'I~nternal link'
EXTLINK_MENU_MSG= 'E~xternal link'
EMBED_MENU_MSG= '~Embed'
EMBGEN_MENU_MSG = '~General'
LVID_MENU_MSG = 'Live~Video'
LAUD_MENU_MSG = 'Live~Audio'
L3D_MENU_MSG = 'Live~3D'
QT_MENU_MSG = '~QuickTime'
EMBPARAM_MENU_MSG= '~Parameters'
OBJ_MENU_MSG= '~Object'
FORMS_MENU_MSG= '~Forms'
DEFFORMS_MENU_MSG= '~Define Form'
FLBL_MENU_MSG= '~Label'
FFLDSET_MENU_MSG= '~Fieldset'
INPUTTYPE_MENU_MSG= '~Input types'
FSUBMIT_MENU_MSG= '~Submit'
FRESET_MENU_MSG= '~Reset'
FTEXT_MENU_MSG= '~Text'
FTAREA_MENU_MSG= 'Text ~area'
FPASS_MENU_MSG= '~Password'
FCHK_MENU_MSG= '~Checkbox'
FRAD_MENU_MSG= '~Radio button'
FSEL_MENU_MSG= '~Selection'
FSOPT_MENU_MSG= 'Sel. ~options'
FBTN_MENU_MSG= '~Button'
FFILE_MENU_MSG= '~File'
FHID_MENU_MSG= '~Hidden'
FIMG_MENU_MSG= '~Image'
FRAMES_MENU_MSG= 'Fra~mes'
FRAMES_DOC_MENU_MSG = '~New document'
FRAMESET_MENU_MSG = 'Frame~set'
FRAME_MENU_MSG = '~Frame'
FR_TARGET_MENU_MSG = 'Choose ~target'
FR_BTRGT_MENU_MSG = '~Base target'
NOFRAME_MENU_MSG = 'N~o frames'
FR_SUBDOC_MENU_MSG = 'S~ub document'
JAVA_MENU_MSG= '~Java applets'
JAPP_MENU_MSG= '~Applet'
JPARAM_MENU_MSG= '~Parameters'
SPEC_MENU_MSG= 'S~pecial characters'
ACCENTS_MENU_MSG= 'Accen~ts'
QUOTES_MENU_MSG= '~" "'
AMPSND_MENU_MSG= '~&'
LESS_MENU_MSG= '~<'
GRTR_MENU_MSG= '~>'
SPACES_MENU_MSG= 'S~paces & dashes'
SPACER_MENU_MSG= 'S~pacer'
NBRSPACE_MENU_MSG= 'Non-~brk space'
EMSP_MENU_MSG= 'e~m space'
ENSP_MENU_MSG= 'e~n space'
THSP_MENU_MSG= '~thin space'
EMD_MENU_MSG= 'em ~dash'
END_MENU_MSG= 'en d~ash'
SHY_MENU_MSG= 'soft h~yphen'
UPDTD_MENU_MSG= 'Last ~updated...'
COPYRT_MENU_MSG= ' ~Copyright symbol'
TM_MENU_MSG= '~Trademark symbol'
REG_MENU_MSG= ' ~Registered symbol'
CENTS_MENU_MSG= ' c~ents'
FRACMATH_MENU_MSG= '~Fractions, math'
OFOURTH_MENU_MSG= ' one-~fourth'
HALF_MENU_MSG= ' one-~half'
TFOURTHS_MENU_MSG= ' ~three-fourths'
SUPER1_MENU_MSG= ' superscript ~1'
SUPER2_MENU_MSG= ' superscript ~2'
SUPER3_MENU_MSG= ' superscript ~3'
MULT_MENU_MSG= ' ~multiplication'
DIVIDE_MENU_MSG= ' ~division'
PLUSMINUS_MENU_MSG= ' ~plus or minus'
DEGREE_MENU_MSG= ' de~gree'
SYMBOLS_MENU_MSG= 'S~ymbols'
LMOT_MENU_MSG= ' ~left guillemot'
RMOT_MENU_MSG= ' ~right guillemot'
MIDDOT_MENU_MSG= ' middle do~t'
MICRO_MENU_MSG= ' ~micro'
PARSYM_MENU_MSG= ' ~paragraph symbol'
SECT_MENU_MSG= ' ~section symbol'
PSTER_MENU_MSG= ' Pound st~erling'
YEN_MENU_MSG= ' ~Yen'
GENCURR_MENU_MSG= ' General ~currency'
ACCENTC_MENU_MSG= '~Accented characters'
CSTMTAG_MENU_MSG= 'C~ustom tags'
DOC_MENU_MSG= '~Documents'
HTMLDOC_MENU_MSG= 'Create ~New'
BHREF_MENU_MSG= '~Base HREF'
HLINK_MENU_MSG= '~Link tag'
META_MENU_MSG= '~Meta tag'
HSCRIPT_MENU_MSG= 'S~cript tag'
HSPAN_MENU_MSG= 'S~pan tag'
HSTYLE_MENU_MSG= 'St~yle tag'
CONN_MENU_MSG= '~Connections'
FTP_MENU_MSG= '~FTP'
TEL_MENU_MSG= '~Telnet'
TERM2_MENU_MSG= 'Co~mm program'
WEBEX_MENU_MSG= '~WebEx'
PREVIEW_MENU_MSG= 'Pre~view'
REF_MENU_MSG= '~References/utilities'
WEBLINT_MENU_MSG= 'Check synta~x'
STRIPHTM_MENU_MSG= '~Strip tags'
HTMLCOL_MENU_MSG= 'HTML ~Colors'
HTMLLIB_MENU_MSG= 'HTML ~Library'
ABOUT_MENU_MSG= 'Ab~out'
compile if WANT_DYNAMIC_PROMPTS
HTMLTAGS_BARP_MSG= \1'Create HTML tags'
FORMAT_MENUP_MSG= \1'Formatting styles'
PHYSICAL_MENUP_MSG= \1'Add physical styles'
BOLD_MENUP_MSG= \1'Apply as bold type'
ITALIC_MENUP_MSG= \1'Apply as italic type'
TTYPE_MENUP_MSG= \1'Apply as typewriter (monospaced) type'
UNDER_MENUP_MSG= \1'Apply as underlined type'
PRE_MENUP_MSG= \1'Tag lines as preformatted text'
STRIKE_MENUP_MSG= \1'Apply as struckthrough text'
SUBSCR_MENUP_MSG= \1'Apply as subscript text'
SUPERSCR_MENUP_MSG= \1'Apply as superscript text'
BIG_MENUP_MSG= \1'Apply as big text'
SMALL_MENUP_MSG= \1'Apply as small text'
BLINK_MENUP_MSG= \1'Apply as blinking text'
LOGICAL_MENUP_MSG= \1'Add logical styles'
EMPH_MENUP_MSG= \1'Apply as emphasized text (typically, italic)'
STRONG_MENUP_MSG= \1'Apply as strongly emphasized text (typically, bold)'
ADDRESS_MENUP_MSG= \1'Tag as an address (typically, italic & may be indented)'
CITE_MENUP_MSG= \1'For a citation (typically, italic)'
BLOCK_MENUP_MSG= \1'Blockquoted text (usually, wider indents, may be italic)'
DFN_MENUP_MSG= \1'For the defining instance of a term (typically, italic)'
CODE_MENUP_MSG= \1'For an example of code (typically, monospaced)'
KEYB_MENUP_MSG= \1'For text typed by user (typically, monospaced)'
SAMP_MENUP_MSG= \1'For a sequence of literal characters (typically, monospaced)'
VAR_MENUP_MSG= \1'For a variable name (typically, italic)'
FONT_MENUP_MSG= \1'Specify font attributes'
FONTSIZE_MENUP_MSG= \1'Specify font size'
FONTCLR_MENUP_MSG= \1'Specify font color'
FONTFACE_MENUP_MSG= \1'Specify font face'
BASEFONT_MENUP_MSG= \1'Specify the base font size for FONT elements'
HEAD_MENUP_MSG= \1'Apply heading levels'
H1_MENUP_MSG= \1'Heading level 1 (largest size)'
H2_MENUP_MSG= \1'Heading level 2'
H3_MENUP_MSG= \1'Heading level 3'
H4_MENUP_MSG= \1'Heading level 4'
H5_MENUP_MSG= \1'Heading level 5'
H6_MENUP_MSG= \1'Heading level 6 (smallest size)'
CENTER_MENUP_MSG= \1'Center the element(s) within the width of the window'
CMNT_MENUP_MSG= \1'Insert a comment'
MCOL_MENUP_MSG= \1'Create multi-column layouts'
SEP_MENUP_MSG= \1'Add separation elements'
PARA_MENUP_MSG= \1'Apply opening & closing paragraph tags'
BREAK_MENUP_MSG= \1'Insert a forced line break'
RULE_MENUP_MSG= \1'Insert a horizontal rule'
DIV_MENUP_MSG= \1'Create a document division'
LISTS_MENUP_MSG= \1'Create tables and lists & add list items'
TABLE_MENUP_MSG= \1'Create a table from the marked lines'
OLIST_MENUP_MSG= \1'Create an ordered list (numbered items)'
ULIST_MENUP_MSG= \1'Create an unordered list (bulletted items)'
LITEM_MENUP_MSG= \1'Add a list item'
LHEAD_MENUP_MSG= \1'Add a list header'
DEFLIST_MENUP_MSG= \1'Create a definition (or glossary) list'
DEFLISTTERM_MENUP_MSG= \1'Add a definition list term'
DEFLISTDEF_MENUP_MSG= \1'Add a definition list definition (typically, indented)'
DIRLIST_MENUP_MSG= \1'Create directory list (short elements, < 20 chars each)'
MENULIST_MENUP_MSG= \1'Create menu list (typically one line per item)'
ANCHOR_MENUP_MSG= \1'Add anchors & links, and images'
IMAGE_MENUP_MSG= \1'Add an inline image'
IMAP_MENUP_MSG= \1'Define a client-side imagemap'
AREA_MENUP_MSG= \1'Specify shape co-ordinates for client-side imagemap'
TARGET_MENUP_MSG= \1'Create a named anchor here'
INTLINK_MENUP_MSG= \1'Link to a target in this document'
EXTLINK_MENUP_MSG= \1'Link to an external source'
EMBED_MENUP_MSG= \1'Embed an object'
EMBGEN_MENUP_MSG = \1'Basic, generalized embedding code'
LVID_MENUP_MSG = \1'Insert a LiveVideo object'
LAUD_MENUP_MSG = \1'Insert a LiveAudio object'
L3D_MENUP_MSG = \1'Insert a Live3D object'
QT_MENUP_MSG = \1'Insert a QuickTime movie object'
EMBPARAM_MENUP_MSG = \1'Object parameters'
OBJ_MENUP_MSG= \1'Create an inline object'
FORMS_MENUP_MSG= \1'Create input forms'
DEFFORMS_MENUP_MSG= \1'Define a form'
FLBL_MENUP_MSG= \1'Add a form label'
FFLDSET_MENUP_MSG= \1'Set a field attribute'
INPUTTYPE_MENUP_MSG= \1'Define input fields & types'
FSUBMIT_MENUP_MSG= \1'Create a "submit" button'
FRESET_MENUP_MSG= \1'Create a "reset" button'
FTEXT_MENUP_MSG= \1'Create a text input field'
FTAREA_MENUP_MSG= \1'Create a textarea input field'
FPASS_MENUP_MSG= \1'Create a password input field'
FCHK_MENUP_MSG= \1'Create checkboxes'
FRAD_MENUP_MSG= \1'Create radio buttons'
FSEL_MENUP_MSG= \1'Create selection fields'
FSOPT_MENUP_MSG= \1'Set selection field options'
FBTN_MENUP_MSG= \1'Create button inputs'
FFILE_MENUP_MSG= \1'Create a file submission field'
FHID_MENUP_MSG= \1'Create a hidden input field'
FIMG_MENUP_MSG= \1'Create an image input area'
FRAMES_MENUP_MSG= \1'Create framed window areas'
FRAMES_DOC_MENUP_MSG = \1'Create a new basic frames document'
FRAMESET_MENUP_MSG = \1'Add a frameset element'
FRAME_MENUP_MSG = \1'Add a frame item'
FR_TARGET_MENUP_MSG = \1'Choose an existing target frame'
FR_BTRGT_MENUP_MSG = \1'Set a base target window for all links'
NOFRAME_MENUP_MSG = \1'Add an element displayed in non-frames browsers'
FR_SUBDOC_MENUP_MSG = \1'Insert a sub-document for non-frames browsers'
JAVA_MENUP_MSG= \1'Insert tags to display Java applets'
JAPP_MENUP_MSG= \1'General applet tag'
JPARAM_MENUP_MSG= \1'Applet parameters'
SPEC_MENUP_MSG= \1'Insert special characters'
SPECx_MENUP_MSG= \1'Insert the code for the indicated character'
ACCENTS_MENUP_MSG= \1'Insert individual accents'
QUOTES_MENUP_MSG= \1'Insert the code to render a pair of double quotes'
AMPSND_MENUP_MSG= \1'Insert the code to render an ampersand'
LESS_MENUP_MSG= \1'Insert the code to render the "<" symbol'
GRTR_MENUP_MSG= \1'Insert the code to render the ">" symbol'
SPACES_MENUP_MSG= \1'Code for spaces, dashes & soft hyphen'
EMSP_MENUP_MSG= \1'Insert the code for an em space'
ENSP_MENUP_MSG= \1'Insert the code for an en space (1/2 em)'
THSP_MENUP_MSG= \1'Insert the code for a thin space (1/6 em)'
EMD_MENUP_MSG= \1'Insert the code for an em dash'
END_MENUP_MSG= \1'Insert the code for an en dash (1/2 em)'
SHY_MENUP_MSG= \1'Insert the code for a soft hyphen'
NBRSPACE_MENUP_MSG= \1'Insert the code to render a non-breaking space'
SPACER_MENUP_MSG= \1'Create spacer elements'
UPDTD_MENUP_MSG= \1'Insert the current date and time as the last update'
COPYRT_MENUP_MSG= \1'Insert the code to render the "copyright" symbol'
TM_MENUP_MSG= \1'Insert the code to render the "trademark" symbol'
REG_MENUP_MSG= \1'Insert the code to render the "registered" symbol'
CENTS_MENUP_MSG= \1'Insert the code to render the "cents" symbol'
FRACMATH_MENUP_MSG= \1'Insert the code for fractions and math symbols'
OFOURTH_MENUP_MSG= \1'Insert the code to render the "one-fourth" symbol'
HALF_MENUP_MSG= \1'Insert the code to render the "one-half" symbol'
TFOURTHS_MENUP_MSG= \1'Insert the code to render the "three-fourths" symbol'
SUPER1_MENUP_MSG= \1'Insert the code to render a superscript "one"'
SUPER2_MENUP_MSG= \1'Insert the code to render a superscript "two"'
SUPER3_MENUP_MSG= \1'Insert the code to render a superscript "three"'
MULT_MENUP_MSG= \1'Insert the code to render the "multiplication" symbol'
DIVIDE_MENUP_MSG= \1'Insert the code to render the "division" symbol'
PLUSMINUS_MENUP_MSG= \1'Insert the code to render the "plus or minus" symbol'
DEGREE_MENUP_MSG= \1'Insert the code to render the "degree" symbol'
SYMBOLS_MENUP_MSG= \1'Insert the code for various other symbols'
LMOT_MENUP_MSG= \1'Insert the code to render the "left guillemot" symbol'
RMOT_MENUP_MSG= \1'Insert the code to render the "right guillemot" symbol'
MIDDOT_MENUP_MSG= \1'Insert the code to render a "middle dot"'
MICRO_MENUP_MSG= \1'Insert the code to render the "micro" symbol'
PARSYM_MENUP_MSG= \1'Insert the code to render the "paragraph" symbol'
SECT_MENUP_MSG= \1'Insert the code to render the "section" symbol'
PSTER_MENUP_MSG= \1'Insert the code to render the "Pound sterling" symbol'
YEN_MENUP_MSG= \1'Insert the code to render the "Yen" symbol'
GENCURR_MENUP_MSG= \1'Insert the code to render the "general currency" symbol'
ACCENTC_MENUP_MSG= \1'Insert the code to render various accented characters'
ACCENTCx_MENUP_MSG= \1'Insert the code to render the indicated accented character'
CSTMTAG_MENUP_MSG= \1'Insert a user-defined tag'
DOC_MENUP_MSG= \1'General document tags'
HTMLDOC_MENUP_MSG = \1'Create a basic HTML document'
BHREF_MENUP_MSG= \1'Add a BASE HREF tag'
HLINK_MENUP_MSG= \1'Add a LINK tag'
META_MENUP_MSG = \1'Add a META tag'
HSCRIPT_MENUP_MSG= \1'Add a SCRIPT tag'
HSPAN_MENUP_MSG= \1'Add a SPAN tag'
HSTYLE_MENUP_MSG= \1'Add a STYLE tag'
CONN_MENUP_MSG= \1'Establish an Internet connection'
FTP_MENUP_MSG= \1'Start an FTP-PM session'
TEL_MENUP_MSG= \1'Start a Telnet-PM session'
TERM2_MENUP_MSG= \1'Start a communications session'
WEBEX_MENUP_MSG= \1'Start a Web Explorer session'
PREVIEW_MENUP_MSG= \1'View this document in Web Explorer'
REF_MENUP_MSG= \1'HTML references & utilities'
WEBLINT_MENUP_MSG = \1'Check HTML syntax'
STRIPHTM_MENUP_MSG = \1'Remove HTML tags from the document'
HTMLCOL_MENUP_MSG= \1'Color Wizard'
HTMLLIB_MENUP_MSG= \1'HTML Library'
ABOUT_MENUP_MSG= \1'Copyright notice'
compile else
HTMLTAGS_BAR_MSG= ''
FORMAT_MENUP_MSG= ''
PHYSICAL_MENUP_MSG= ''
BOLD_MENUP_MSG= ''
ITALIC_MENUP_MSG= ''
TTYPE_MENUP_MSG= ''
UNDER_MENUP_MSG= ''
PRE_MENUP_MSG= ''
STRIKE_MENUP_MSG= ''
SUBSCR_MENUP_MSG= ''
SUPERSCR_MENUP_MSG= ''
BIG_MENUP_MSG= ''
SMALL_MENUP_MSG= ''
BLINK_MENUP_MSG= ''
LOGICAL_MENUP_MSG= ''
EMPH_MENUP_MSG= ''
STRONG_MENUP_MSG= ''
ADDRESS_MENUP_MSG= ''
CITE_MENUP_MSG= ''
BLOCK_MENUP_MSG= ''
DFN_MENUP_MSG= ''
CODE_MENUP_MSG= ''
KEYB_MENUP_MSG= ''
SAMP_MENUP_MSG= ''
VAR_MENUP_MSG= ''
FONT_MENUP_MSG= ''
FONTSIZE_MENUP_MSG= ''
FONTCLR_MENUP_MSG= ''
FONTFACE_MENUP_MSG= ''
BASEFONT_MENUP_MSG= ''
HEAD_MENUP_MSG= ''
H1_MENUP_MSG= ''
H2_MENUP_MSG= ''
H3_MENUP_MSG= ''
H4_MENUP_MSG= ''
H5_MENUP_MSG= ''
H6_MENUP_MSG= ''
CENTER_MENUP_MSG= ''
CMNT_MENUP_MSG= ''
MCOL_MENUP_MSG= ''
SEP_MENUP_MSG= ''
PARA_MENUP_MSG= ''
BREAK_MENUP_MSG= ''
RULE_MENUP_MSG= ''
DIV_MENUP_MSG= ''
LISTS_MENUP_MSG= ''
TABLE_MENUP_MSG= ''
OLIST_MENUP_MSG= ''
ULIST_MENUP_MSG= ''
LITEM_MENUP_MSG= ''
LHEAD_MENUP_MSG= ''
DEFLIST_MENUP_MSG= ''
DEFLISTTERM_MENUP_MSG= ''
DEFLISTDEF_MENUP_MSG= ''
DIRLIST_MENUP_MSG= ''
MENULIST_MENUP_MSG= ''
ANCHOR_MENUP_MSG= ''
IMAGE_MENUP_MSG= ''
IMAP_MENUP_MSG= ''
AREA_MENUP_MSG= ''
TARGET_MENUP_MSG= ''
INTLINK_MENUP_MSG= ''
EXTLINK_MENUP_MSG= ''
EMBED_MENUP_MSG= ''
EMBGEN_MENUP_MSG = ''
LVID_MENUP_MSG = ''
LAUD_MENUP_MSG = ''
L3D_MENUP_MSG = ''
QT_MENUP_MSG = ''
EMBPARAM_MENUP_MSG = ''
OBJ_MENUP_MSG= ''
FORMS_MENUP_MSG= ''
DEFFORMS_MENUP_MSG= ''
FLBL_MENUP_MSG= ''
FFLDSET_MENUP_MSG= ''
INPUTTYPE_MENUP_MSG= ''
FSUBMIT_MENUP_MSG= ''
FRESET_MENUP_MSG= ''
FTEXT_MENUP_MSG= ''
FTAREA_MENUP_MSG= ''
FPASS_MENUP_MSG= ''
FCHK_MENUP_MSG= ''
FRAD_MENUP_MSG= ''
FSEL_MENUP_MSG= ''
FSOPT_MENUP_MSG= ''
FBTN_MENUP_MSG= ''
FFILE_MENUP_MSG= ''
FHID_MENUP_MSG= ''
FIMG_MENUP_MSG= ''
FRAMES_MENUP_MSG= ''
FRAMES_DOC_MENUP_MSG = ''
FRAMESET_MENUP_MSG = ''
FRAME_MENUP_MSG = ''
FR_TARGET_MENUP_MSG = ''
FR_BTRGT_MENUP_MSG = ''
NOFRAME_MENUP_MSG = ''
FR_SUBDOC_MENUP_MSG = ''
JAVA_MENUP_MSG= ''
JAPP_MENUP_MSG= ''
JPARAM_MENUP_MSG= ''
SPEC_MENUP_MSG= ''
ACCENTS_MENUP_MSG= ''
QUOTES_MENUP_MSG= ''
AMPSND_MENUP_MSG= ''
LESS_MENUP_MSG= ''
GRTR_MENUP_MSG= ''
SPACES_MENUP_MSG= ''
EMSP_MENUP_MSG= ''
ENSP_MENUP_MSG= ''
THSP_MENUP_MSG= ''
EMD_MENUP_MSG= ''
END_MENUP_MSG= ''
SHY_MENUP_MSG= ''
NBRSPACE_MENUP_MSG= ''
SPACER_MENUP_MSG= ''
UPDTD_MENUP_MSG= ''
COPYRT_MENUP_MSG= ''
TM_MENUP_MSG= ''
REG_MENUP_MSG= ''
CENTS_MENUP_MSG= ''
FRACMATH_MENUP_MSG= ''
OFOURTH_MENUP_MSG= ''
HALF_MENUP_MSG= ''
TFOURTHS_MENUP_MSG= ''
SUPER1_MENUP_MSG= ''
SUPER2_MENUP_MSG= ''
SUPER3_MENUP_MSG= ''
MULT_MENUP_MSG= ''
DIVIDE_MENUP_MSG= ''
PLUSMINUS_MENUP_MSG= ''
DEGREE_MENUP_MSG= ''
SYMBOLS_MENUP_MSG= ''
LMOT_MENUP_MSG= ''
RMOT_MENUP_MSG= ''
MIDDOT_MENUP_MSG= ''
MICRO_MENUP_MSG= ''
PARSYM_MENUP_MSG= ''
SECT_MENUP_MSG= ''
PSTER_MENUP_MSG= ''
YEN_MENUP_MSG= ''
GENCURR_MENUP_MSG= ''
ACCENTC_MENUP_MSG= ''
ACCENTCx_MENUP_MSG= ''
CSTMTAG_MENUP_MSG= ''
DOC_MENUP_MSG= ''
HTMLDOC_MENUP_MSG = ''
BHREF_MENUP_MSG= ''
HLINK_MENUP_MSG= ''
META_MENUP_MSG = ''
HSCRIPT_MENUP_MSG= ''
HSPAN_MENUP_MSG= ''
HSTYLE_MENUP_MSG= ''
CONN_MENUP_MSG= ''
FTP_MENUP_MSG= ''
TEL_MENUP_MSG= ''
TERM2_MENUP_MSG= ''
WEBEX_MENUP_MSG= ''
PREVIEW_MENUP_MSG= ''
REF_MENUP_MSG= ''
WEBLINT_MENUP_MSG = ''
STRIPHTM_MENUP_MSG = ''
HTMLCOL_MENUP_MSG= ''
HTMLLIB_MENUP_MSG= ''
ABOUT_MENUP_MSG= ''
compile endif -- WANT_DYNAMIC_PROMPTS
ANCHOR_TITLE_MSG = 'Anchor - Create here'
ANCHOR_PROMPT_MSG = 'Enter the name for this anchor'
EXTLINK_TITLE_MSG = 'Anchor - External link'
EXTLINK_PROMPT_MSG = 'Enter the URL for this anchor'
EXTLINK_LIST_MSG = 'Select the external link'
DRAGDROP_TITLE_MSG = 'Dropped file'
DRAGDROP_PROMPT_MSG = 'Enter optional alternate text'
NO_ANCHORS_MSG = 'No anchors defined in this file.'
INTLINK_TITLE_MSG = 'Anchor - Internal link'
INTLINK_PROMPT_MSG = 'Select the anchor to link to'
URL_LIST_PROMPT_MSG = 'Select the URL to link to'
MODIFIED_PROMPT_MSG = 'Document has been modified. Save changes?'
IMAGE_TITLE_MSG = 'Image'
IMAGE_PROMPT_MSG = 'Enter the URL for this image'
IMAGE_LIST_MSG = 'Select the URL for this image'
HTML_EXTENSIONS= 'HTM HTML'
CSTMTAG_TITLE_MSG = 'Custom tag '
CSTMTAG_PROMPT_MSG = 'Enter the custom tag to use'
CSTMTAG_LIST_MSG= 'Select the custom tag to use'
HLINK_TITLE_MSG = 'Referenced document'
HLINK_PROMPT_MSG = 'Enter the URL for this reference'
HLINK_LIST_MSG = 'Select the URL for this reference'
FORM_TITLE_MSG = 'Define form'
FORM_PROMPT_MSG = 'URL of program that will process the form'
FORM_LIST_MSG = 'Select the URL for form processing'
BHREF_TITLE_MSG= 'Base HREF'
BHREF_PROMPT_MSG= 'Enter the base HREF URL for this document'
BHREF_LIST_MSG= 'Select the base HREF URL'
FRSET_TITLE_MSG = 'Frameset sizes'
FRSET_PROMPT_MSG = 'Sizes'
FRAMELINK_TITLE_MSG = 'Frame -- name '
FRAMELINK_PROMPT_MSG = 'Enter the name for this frame'
FRAMELINK_LIST_MSG = 'Select the frame name'
FRTARGET_TITLE_MSG = 'Target frame'
FRTARGET_PROMPT_MSG = 'Choose the target frame'
OBJ_TITLE_MSG = 'Object'
OBJ_PROMPT_MSG = 'Enter the URL for this object'
OBJ_LIST_MSG = 'Select the URL for the object'
RECT_TITLE_MSG = 'Co-ordinates of rectangle: '
RECT_PROMPT_MSG = 'left-x, top-y, right-x, bottom-y'
CIRC_TITLE_MSG = 'Co-ordinates of circle: '
CIRC_PROMPT_MSG = 'center-x, center-y, radius'
POLY_TITLE_MSG = 'Co-ordinates of polygon: '
POLY_PROMPT_MSG = 'x1, y1, x2, y2, x3, y3, ...'
DEFSHAPE_TITLE_MSG = 'Default shape '
DEFSHAPE_PROMPT_MSG = 'Co-ordinates are optional.'
OK_MSG = '~OK'
CANCEL_MSG = 'Cancel' -- This is also in ENGLISH.E
TOP_MSG = '~Top'
MID_MSG = '~Middle'
BOT_MSG = '~Bottom'
LIST_MSG = '~List...'
EDITLIST_MSG = '~Edit list...'
SELECT_MSG = '~Select'
NONE_MSG = '~None'
definit
universal defaultmenu, activemenu
universal activeaccel
universal HTML_tags_menu_flag
deletemenu defaultmenu, 6, 0, 0 -- delete the existing Help menu (we want it to stay at the right)
; Last number used: 62294
buildsubmenu defaultmenu, 62, HTMLTAGS_BAR_MSG, HTMLTAGS_BARP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62000, FORMAT_MENU_MSG, FORMAT_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62001, PHYSICAL_MENU_MSG, PHYSICAL_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62002, BOLD_MENU_MSG, 'HTML_insert2 B'BOLD_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62003, ITALIC_MENU_MSG, 'HTML_insert2 I'ITALIC_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62004, TTYPE_MENU_MSG, 'HTML_insert2 TT'TTYPE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62005, UNDER_MENU_MSG, 'HTML_insert2 U'UNDER_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62006, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62007, PRE_MENU_MSG, 'HTML_lineinsert2 PRE'PRE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62008, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62009, STRIKE_MENU_MSG, 'HTML_insert2 STRIKE'STRIKE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62010, SUBSCR_MENU_MSG, 'HTML_insert2 SUB'SUBSCR_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62011, SUPERSCR_MENU_MSG, 'HTML_insert2 SUP'SUPERSCR_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62012, BIG_MENU_MSG, 'HTML_insert2 BIG'BIG_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62013, SMALL_MENU_MSG, 'HTML_insert2 SMALL'SMALL_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62014, BLINK_MENU_MSG, 'HTML_insert2 BLINK'BLINK_MENUP_MSG, 32769,0
buildmenuitem defaultmenu, 62, 62015, LOGICAL_MENU_MSG, LOGICAL_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62016, EMPH_MENU_MSG, 'HTML_insert2 EM'EMPH_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62017, STRONG_MENU_MSG, 'HTML_insert2 STRONG'STRONG_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62018, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62019, ADDRESS_MENU_MSG, 'HTML_lineinsert2 ADDRESS'ADDRESS_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62020, CITE_MENU_MSG, 'HTML_insert2 CITE'CITE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62021, BLOCK_MENU_MSG, 'HTML_lineinsert2 BLOCKQUOTE'BLOCK_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62022, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62023, DFN_MENU_MSG, 'HTML_insert2 DFN'DFN_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62024, CODE_MENU_MSG, 'HTML_lineinsert2 CODE'CODE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62025, KEYB_MENU_MSG, 'HTML_insert2 KBD'KEYB_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62026, SAMP_MENU_MSG, 'HTML_insert2 SAMP'SAMP_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62027, VAR_MENU_MSG, 'HTML_insert2 VAR'VAR_MENUP_MSG, 32769, 0
buildmenuitem defaultmenu, 62, 62028, FONT_MENU_MSG, FONT_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62206, FONTSIZE_MENU_MSG, 'HTML_font SIZE=""'FONTSIZE_MENUP_MSG, 0,0
buildmenuitem defaultmenu, 62, 62207, FONTCLR_MENU_MSG, 'HTML_font COLOR="#"'FONTCLR_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62236, FONTFACE_MENU_MSG, 'HTML_font FACE=""'FONTFACE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62237, BASEFONT_MENU_MSG, 'HTML_basefont'BASEFONT_MENUP_MSG, 32769, 0
buildmenuitem defaultmenu, 62, 62029, HEAD_MENU_MSG, HEAD_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62030, H1_MENU_MSG, 'HTML_insert2 H1'H1_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62031, H2_MENU_MSG, 'HTML_insert2 H2'H2_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62032, H3_MENU_MSG, 'HTML_insert2 H3'H3_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62033, H4_MENU_MSG, 'HTML_insert2 H4'H4_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62034, H5_MENU_MSG, 'HTML_insert2 H5'H5_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62035, H6_MENU_MSG, 'HTML_insert2 H6'H6_MENUP_MSG, 32769, 0
buildmenuitem defaultmenu, 62, 62036, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62037, CENTER_MENU_MSG, 'HTML_insert2 CENTER'CENTER_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62208, CMNT_MENU_MSG, 'HTML_comment'CMNT_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62278, MCOL_MENU_MSG, 'HTML_mcol'MCOL_MENUP_MSG, 32769, 0
buildmenuitem defaultmenu, 62, 62038, SEP_MENU_MSG, SEP_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62039, PARA_MENU_MSG, 'HTML_PARA'PARA_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62040, BREAK_MENU_MSG, 'HTML_keyin 'BREAK_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62041, RULE_MENU_MSG, 'HTML_IL 'RULE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62277, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62235, DIV_MENU_MSG, 'HTML_DIV'DIV_MENUP_MSG, 32769, 0
buildmenuitem defaultmenu, 62, 62042, LISTS_MENU_MSG, LISTS_MENUP_MSG, 17, 0
buildmenuitem defaultmenu, 62, 62043, TABLE_MENU_MSG, 'HTML_table'TABLE_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62044, \0, '', 4, 0
buildmenuitem defaultmenu, 62, 62045, OLIST_MENU_MSG, 'HTML_LIST OL'OLIST_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62046, ULIST_MENU_MSG, 'HTML_LIST UL'ULIST_MENUP_MSG, 0, 0
buildmenuitem defaultmenu, 62, 62047, LITEM_MENU_MSG, 'HTML_keyin
'
call HTML_insert_linetags(s_tag, e_tag)
defc HTML_PARA
i_s = insert_state()
if not i_s then insert_toggle; endif
if not marktype() then -- no mark
'HTML_lineinsert2 P'
else -- Block, Line or Character mark
mt = marktype()
getfileid fid
getmark firstline,lastline,firstcol,lastcol,fileid
if fid<>fileid then
sayerror 'ERROR: Wrong file -- check mark!'
return
endif
if not pos(leftstr(mt, 1), 'L') then -- not a Line mark
sayerror 'ERROR: Mark must be a line mark!'
return
endif
if lastline = .last then
.line = .last
insert
endif
.line = firstline
insertline '
'
numtags = '1'
i=firstline+2
do forever
if i >= lastline+numtags+1 then
.line = lastline+numtags+1
insertline '
'
unmark
leave
endif
.line = i
getline parline
if word(parline, 1) then -- line contains text
if substr(parline, 1, 1) = ' ' | substr(parline, 1, 1) = ' ' then -- line begins with space or tab
insertline ''
insertline ' '
insertline '
'
numtags = numtags+3
i = i+numtags+1
else i = i+1 -- line is interior of a paragraph
endif
else -- line is empty
insertline '