; Using these substitutions for HTML codes will result in less typing
; I also find them easier to remember than straight HTML, (but then
; I created them)
; The command line to use the strings in the file (will save output
; HTML file with extension .htm) is: mt /i(htmshort.mt)x+b+(.htm) file(s)
; \ (needs to be represented as \\) turns something on ~ turns it off
;
; First line will be title of page
.{~0}[^\r\n]* = \r\n
\r\n\i\r\n\r\n\r\n
; One or more blank line(s) will be converted to paragraph break
'\r\n'{2,} = \r\n\r\n
\\n =
; \n represents newline as in C
\\_ =
; Font styles
\\b =
\~b =
\\i =
\~i =
\\t =
\~t =
\\\" =
\~\" =
; Headings will be represented by \[digit] Heading will continue until end of
; line or \ encountered
\\\d[^\\\r\n]* = \3
; \** will start a unnumbered list, \* for each item, ~* to end
\\'**' =
; \## will start a numbered list, \# for each item, ~# to end
\\## = -
\\# =
-
\~# =
; \g represents graphics, the word after the \g is the image name
\\g\s*\w+ = "
"
; \l represents links, the word after the \l is the link name, the rest of the line
; will be the link description unless a \ is encountered first
; is the link description
\\l\s*\S+[^\r\n\\]+ = " \4 "
; \@ is an email link - the email address will follow and be highlighted
\\@\s*\S+ = "\3"
; Convert to HTML escape characters
\> = <
\< = >
\& = &
\" = "
; for literal \ and ~ precede with backslash
\\[\\~] = \2
; Single \ can be used to end \l and headers, will be deleted
\\ = \z
; Finally do closing statements
.{0~} = \r\n\r\n