NSGMLS for Emacs
1.3.3 beta 3

Description:

NSGMLS parses and validates the SGML document and prints on the file a simple text representation of its Element Structure Information Set.

NSGMLS has been developed by James Clark(http://www.jclark.com/).

NSGMLS for Emacs can run with GNU Emacs 20.6 under MacOS ver.7.5.5 and later.

NSGMLS for Emacs was built by KISI on SP 1.3.3 and GNU Emacs 20.6 source code, using Metrowerks CodeWarrior IDE ver.3.0.

The version number of the binary is 1.3.3 beta 3.

The application type of binary is PowerPC.

Please send me the bug report.

Install:

nsgmls is always called from GNU Emacs 20.6 that ported to MacOS by Andrew Choi.

You can get GNU Emacs and GNU fonts from `http://prdownloads.sourceforge.net/mac-emacs/emacs-20.6-mac-bin-d5.smi.bin' and `http://prdownloads.sourceforge.net/mac-emacs/GNU-Fonts.sea.bin'.

Place this program into the folder where Emacs CW exists.

Change the following code in `/emacs-20.6/lisp/textmodes/sgml-mode.el' or change the program name `nsgmls' to `sgmls'.

    ;; sgmls is a free SGML parser available from
    ;; ftp.uu.net:pub/text-processing/sgml
    ;; Its error messages can be parsed by next-error.
    ;; The -s option suppresses output.
    (defcustom sgml-validate-command "nsgmls -s"
      "*The command to validate an SGML document.
    The file name of current buffer file name will be appended to this,
    separated by a space."
      :type 'string
      :group 'sgml)

Call:

  1. nsgmls is invoked by call-process of Emacs.
  2. Type C-c C-v in SGML-mode of Emacs.
  3. You can see `nsgmls -s filename' on the echo area. Where, filename is the file name of current buffer file name.
  4. You may change this command line.
  5. Push return-key, Emacs then calls nsgmls.
  6. Emacs displays the output stream on the window.

Contact `http://www.gnu.org/software/emacs/emacs.html'.

Command line:

You may specify the following switches.

Contact `http://www.jclark.com/sp/'.

    [ -BCdeglprsuv ]
    [ -alinktype ]
    [ -bbctf | -bencoding ]
    [ -ccatalog_file ]
    [ -Ddirectory ]
    [ -Emax_errors ]
    [ -iname ]
    [ -ooutput_option ]
    [ -trast_file ]
    [ -wwarning_type ]
    [ -Ooutput_file ]
    [ sysid... ]

For example,

    nsgmls -Osample.esi sample.htm

Additional option:

-Ooutfile

Redirect stdout to outfile.

NSGMLS for Emacs uses the stdio and stderr (NSGMLS for MacOS uses SIOUX). Therefore `-ferror_file' does not specify.

Environment variables:

In NSGMLS for Emacs, environment variables are expressed by a text file that is named `%SP%'.

Place it in the same folder where NSGMLS exists.

%SP% can express multiple lines.

Each line expresses single assignment such as `variablename = value'.

When the initial character is `#' or the line is null, the line means nothing.

For example, for Japanese,

    # for Shift-JIS Encoding
    SP_CHARSET_FIXED=YES
    SP_SYSTEM_CHARSET=JIS
    SP_ENCODING=sjis

Distribution:

NSGMLS for Emacs is FREE.

Download Now.


KISI,KAZUTAKA (mailto:kisi@nifty.com), Fellow in JAGAT (http://www.jagat.or.jp/)

date : 11/17/2001