#12 onsgmls -o opt version and all (2of3)

closed-accepted
nobody
None
5
2002-03-14
2001-10-31
No

1) Adds an output option "all" to turn on everything. I
usually want everything and it's a hassle to keep
looking up what I need to tell onsgmls and type them
all in.

2) Adds a new output code "V" and an output option
"version" which has the parser print a version line and
a mini-report of features which currently looks like
the folowing (p=package, v=version, c=possible codes,
o=output options):

Vp OpenSP
Vv 1.5pre6
Vc -?C#()&ADaNEISTps{}fLie_oV
Vo esis all line entity id included notation-sysid
nonsgml empty data-attrib$

I think this will be useful, based on working on (Perl
tools) SGMLSpm and XML::Parser::ESISParser, to help
applications know what kind of info they'll be getting.
Ideally, the "Vc" line would only list commands that
might be issued, but right now, I just have it list all
commands the onsgmls knows about. I'm not particularly
happy with this change, because I needed to split out a
couple things from nsgmls.cxx and make a nsgmls.h to
keep down the duplication of lists of options, but it's
not clear to me the best way to lay things out (and I
think that needs to be found before there will be a
clean way to reduce the Vc line).

Note that this patch is against opensp_1_5_branch PLUS
the first of these 3 patches (#476606).

Discussion

  • Robert Braddock

    Robert Braddock - 2001-10-31

    unified diff

     
  • Robert Braddock

    Robert Braddock - 2001-10-31

    Logged In: YES
    user_id=363666

    This file is this same patch made against a clean
    opensp_1_5_branch. Intended for reference only.

     
  • Robert Braddock

    Robert Braddock - 2001-10-31

    unified diff

     
    Attachments
  • Ian Castle

    Ian Castle - 2002-03-14
    • status: open --> closed-accepted
     
  • Ian Castle

    Ian Castle - 2002-03-14

    Logged In: YES
    user_id=262940

    Applied

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks