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

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2937.0. "restriction with TEXT_FILE SET TEXT_ATTRIBUTES" by SOS6::PROT () Tue Jun 29 1993 19:17

    I find a limitation with TEXT_FILE SET TEXT_ATTRIBUTES command, with
    ALL-In-1 V3.0.
    
    In WPSPLUS V4 you can define a character as Superscript and Bold for
    example. Internally, these 2 renditions are stored in 2 bytes in the
    text attribute part of the record: "Decimal 2" for the Bold and
    "Decimal 16" for the superscript.
    
    But with TEXT_FILE SET TEXT_ATTRIBUTES I can only address one of these
    two bytes, then set one rendition by position, then one rendition by 
    character.
    
    I can only set Q for superscript or B for bold but not both.
    
    Is it a known restriction?
    
    Louis
    
T.RTitleUserPersonal
Name
DateLines
2937.2your options are:AIMTEC::WICKS_AU.S.A 2 England 0 - I was there!Thu Jul 01 1993 18:109
    Louis,
    
    remember this is an unofficial support channel. since this appears to
    be a WPS-PLUS related question you could ask in their notes file. For
    an official answer you submit SPRs.
    
    Regards,
    
    Andrew.D.Wicks
2937.3hmmmSOS6::PROTThu Jul 01 1993 18:458
    
    Yes I know that it isn't an official support channel nevertheless
    someone  (especially in eng) could know a special attribute or
    undocumented feature which could help me.
    
    Maybe my question wasn't right clear.
    
    Louis
2937.4A restrictionIOSG::NEWLANDRichard Newland, IOSG, REO2-G/L2Mon Jul 05 1993 23:2523
I've looked at the TEXT_FILE code and this is a limitation.  The SET
TEXT_ATTRIBUTES sets each character attribute from the info-symbol value,
and there is not an attribute letter for the combination of attributes you
want (Bold and Superscript). 

It is probably not practicable to create more 'attribute letters' for all
possible combinations of attributes.  Therefore removing this limitation
would require some way of calling SET TEXT_ATTRIBUTES multiple times to set
multiple attributes.  For example, add a /MORE qualifier which would add
the specified attributes to the current attributes. 

Supporting all possible combinations of attributes with a RETURN
TEXT_ATTRIBUTES is harder.  One idea I have is to allow TEXT_ATTRIBUTE to
accept an optional qualifer (e.g. /BOLD, /UNDERLINE, /SUPERSCRIPT) so that 
it returns only the attribute information requested.  Only one qualifier 
would be allowed with each call.

Any alternative ideas on how to extend SET and RETURN TEXT_ATTRIBUTES are
most welcome. 


Richard

2937.5ENHANCE TEXT_FILE functions!SUOSWS::HAMANNTue Jul 06 1993 12:0331
    Hi Richard,
    
    I had some similar problems using the TEXT_FILE functions.
    
    My problem was to convert an OfficeVision document to WPS+, and 
    I could have done better if the TEXT_FILE functions had been 
    less restrictive.
    
    So I would back some sort of enhancment.
    
    I would not suggest to change the current 
    
    TEXT_FILE RETURN TEXT_ATTRIBUTES id returnsymbol -functions 
    
    but to provide an additional enhanced function, something like
    
    TEXT_FILE RETURN ALL_TEXT_ATTRIBUTES id symbol1 symbol2
    
    and bitencode the attributes in the symbols. To avoid control
    characters you might want to use only 6 bits/characters. 
    
    The attribute 'special' should be expanded a bit more.
    
    Similary a 
    TEXT_FILE SET ALL_TEXT_ATTRIBUTES id symbol1 symbol2
    function could be provided.
    
    I hope some enhancement will be made available
    
    Klaus Hamann 
    
2937.6opinion.PRSSOS::PROTThu Jul 15 1993 13:116
    I agree with the last suggestion , a bit mask for all the current
    attributes could be powerfull to modify and set.
    
    But the .4 suggestion /MORE could also be easy to use.
    
    Louis