[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference vaxuum::document_ft

Title:DOCUMENT T1.0
Notice:**New notesfile (DOCUMENT.NOTE) now available (see note 897)**
Moderator:CLOSET::ADLER
Created:Mon Feb 09 1987
Last Modified:Thu Oct 31 1991
Last Successful Update:Fri Jun 06 1997
Number of topics:897
Total number of notes:4397

553.0. "LSE strangeness on TAG expansion w/BL8 ??" by COOKIE::WITHERS (Le plus ca change...) Wed Jun 24 1987 16:11

While exploring new tools, new frontiers, to boldly go where no hacker has
gone before :-), I've come across some strange behaviour with SDML and
LSE.  

I wanted to see what LSE did with tags and what tags it knew, so I typed

<^E			-That's a control-E

to get the menu of all tags so I could "pick one" and got back

<S

with the menu of tags that began with the letter "S".

Is this a bug, a feature, or a sign of my dimentia?  By the way, If I'm
halucinating, then Rose Johnston shares my halucinations 'cause she saw it
also.

BobW
T.RTitleUserPersonal
Name
DateLines
553.1Used to work ...WRONGO::PARMENTERVenusian or Venerean?Wed Jun 24 1987 17:584
    Hmmmm.  That used to do just what you wanted.  Julie will have to
    tell you about the modern state of LSE.
    
    David
553.2Probable explanationBUNSUP::LITTLETodd Little NJCD SWS 323-4475Wed Jun 24 1987 19:3320
    The problem stems from the way the tokens and placeholders have
    been defined.  In general, the tags are all defined as tokens, which
    LSEDIT will automatically create menus for if the portion of the
    token entered is ambiguous.  There are a small subset of tags though
    that have their tokens defined as "<tag>" instead of "tag", i.e. the
    <SET_TEMPLATE...> tags.  If instead, they were defined as
    SET_TEMPLATE..., then the anomoly would disappear.  
    
    The real issue I think at hand is if all the tokens should be defined
    with the <> as part of the token name.  The disadvantage is that
    you'd HAVE to type <t^E to get all tags that began with T as opposed
    to right now, you can get that essentially with t^E.  The advantage
    of the former is that you're clearly asking for a tag expansion,
    whereas in the latter, you might be fishing for something other
    than a tag, such as a template or some other thing(?).
    
    -tl

    
    PS  I too thought the results observed in .0 were a little un-nerving.
553.3Use SHOW TOKEN *TOKLAS::FELDMANPDS, our next successThu Jun 25 1987 14:5212
    The "most appropriate" way to do what was wanted in note .0 is to
    issue the LSE command SHOW TOKEN */LANGUAGE=SDML.  This will put
    you into the $SHOW buffer, and list all available tokens.  The way
    the SDML tokens are set up, there should be an approximate one-to-one
    relation between tokens and tags.  I say approximate, because not
    every SDML tag has a defined LSE token, and a number of tokens (such
    as LIST) actually expand to several tags.
    
    Ultimately, I expect the on-line help for DOCUMENT to have a complete
    listing of tags; such help should be available from LSE.
    
       Gary
553.4Space, <QUOTE> and LSE. A problem?CASEE::THOMSONRichard ThomsonMon Aug 17 1987 10:4530
    This seemed the most appropriate place to post this query. Usual
    apologies if my search did not reveal a better spot...
    
    When I first started to use DOCUMENT, I obtained snazzy little double
    quote marks by pressing the " key (shift comma). It looked good on
    the screen, and it looked good on my .ln03 output. Then I learned
    that this was not good behaviour, and that I should use the <QUOTE>
    tag(s). Ugh! Now my .ln03 output looks as if I don't have the double
    quote character (it prints ''). C'est la bleedin' vie, as they say.
    Such is progress.
    
    Then I discovered LSE!! Wonderful. I take back all (well most of
    them anyway) the nasty remarks I made about DOCUMENT being difficult
    to input with its upper and lower case bits and bobs etc. But...
    when LSE expands for the quote tags, and leaves the space for the
    text-I-want-in-quotes, it puts the <QUOTE> on one line, the text
    string on the next, and the <ENDQUOTE> on the third. The result
    is that DOCUMENT implies space around the word, unless I manually
    bring the tags together onto one line. So I've gone from:
    
    this is a "nice" example  -> to a not '' nice '' at all example.
    
    Since I cannot imagine a circumstance when you would want this space,
    I am hard put to understand why DOCUMENT or LSE contrive to put
    it there. Any ideas why this is happening/what I'm doing wrong/why
    I'm expecting too much? 
    
    BTW: why can't I have double quotes when I ordered them? Just curious...
    
    Richard