[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

607.0. "TAG$$LOCAL_STRINGS" by MARTY::FRIEDMAN () Tue Jul 07 1987 19:42


    Following is an excerpt from BL7 TAG$$LOCAL_STRINGS. We were having
    a problem with the word RT-11 throwing off line breaks in tables,
    and I suspected the translation that occurs using this file. The
    last line shows my change (removing '\:'). Can someone explain the
    significance of the '\:'? I would like to remove these characters
    from all the translations in the file since they don't appear to
    serve any purpose.
    
    Thanks.
    
    Marty
    
'Files-11'		'\:{Files--11}'		/* Files-11	*/
'MACRO-11'		'\:{MACRO--11}'		/* MACRO-11	*/
'FMS-11'		'\:{FMS--11}'           /* FMS-11	*/
'RT-11'                 '{RT--11}'              /* RT-11	*/
T.RTitleUserPersonal
Name
DateLines
607.1\: = \hboxCLOSET::ANKLAMTue Jul 07 1987 20:254
    
    \: is defined to be an \hbox (to avoid line breaks at the --).
    You can take it out, but don't be surprised if you get RT--
    11.
607.2AUTHOR::WELLCOMESteveThu Jul 09 1987 17:0521
    Is there any other way around the problem?  Here's an example of
    what happens:
    
    Table 1: This Is A Title
    --------------------------------------------------------------------
    Argument	Description
    --------------------------------------------------------------------
    One		Here is the first paragraph of the descriptive text
    		about the first argument.  The second paragraph of
    		the descriptive text begins with "RT-11".
    
    		RT-11
    		begins the second paragraph, and DOCUMENT throws in
    		a totally unexpected line break right after it.
    
    Two		Now talk about the second argument, and so forth.
    
    -------------------------------------------------------------
    
    
    	
607.3Go for brokeVAXUUM::SEGALThu Jul 09 1987 17:293
    Why not just remove the entire entry from TAG$$LOCAL_STRINGS?
    
    Lee
607.4MARTY::FRIEDMANThu Jul 09 1987 18:467
    re -.1
    
    Nah. I want RT-11 to be translated to RT--11. Also, I would prefer
    that RT--1 not be broken. So I would like to understand why that
    \hbox is interacting with <p> to cause the undesired line break.
    
    Marty
607.5Bug in <KEEP> following <p> in <table_row>CLOSET::ANKLAMThu Jul 09 1987 19:0423
    
    There is a bug. There's nothing special about RT-11, only that
    you use in the following context:
    
    <table_row>( ....<p>RT-11 ...more text)
    
    Following the <P>, the text formatter is in 'vertical mode' and
    needs some text to get it started off in a paragraph. But it sees
    the \hbox for RT-11 and writes it out then goes off looking for
    another \hbox to tack underneath it. The same thing would happen
    if you said
    
    <table_row>( ...<p><keep>(anything) more text...)
    
    There isn't any easy workaround that I can think of. We will need
    to change the way we handle the <p> tag inside tables. 
    
    The amazing thing about this is that this bug has been there since
    probably Base Level 4 and maybe earlier, and this is the first time
    anyone's been bit. 
    
    patti
    
607.6MARTY::FRIEDMANThu Jul 09 1987 20:035
    .-1:
    
    Those are the kind of bugs we specialize in down here!
    
    Marty
607.7DECnet/SNA not staying togetherDELNI::COLELLOWed Jul 22 1987 16:2720
    Here are some entries I have in tag$$local_strings BUT in some cases
    the product name, (when it falls at the end of a line) gets wrapped
    like this:
    
    BLah Blah Blah and so on and so forth when so and so does this DECnet/
    SNA stuff.
    
    This of course is unacceptable... What else can I do besides edit
    the .TEX file and add a ~ DECnet/~SNA...???
    
    thanks,
    Bette Jean 
    
    
    'DECNET{\slash}SNA'  'DECnet/SNA'            /* product name */
    'decnet{\slash}sna'  'DECnet/SNA'            /* product name */
    'decNET{\slash}SNA'  'DECnet/SNA'            /* product name */
    'DECNET{\slash}sna'  'DECnet/SNA'            /* product name */

607.8Wouldn't this work?MARTY::FRIEDMANWed Jul 22 1987 20:261
    '\:{DECnet/SNA}'
607.9\: works for frd slash too?DELNI::COLELLOThu Jul 23 1987 12:345
    I thought the \: was to keep an en dash together or to tell tex
    NOT to hyphenate at that point... I don't know I'll give it a whirl.
    
    thanks Marty!
    Bette JEan
607.10<keep>CAADC::GREGORYDon Gregory @ACIThu Jul 23 1987 15:063
	Won't this work?:
        
        blah blah <keep>(DECnet/SNA)
607.11<keep> yes, local_strings no!DELNI::COLELLOThu Aug 20 1987 17:339
    nope \: DOES NOT keep my product name DECnet/SNA together at the
    end of a line.  Yes, <keep>(DECnet/SNA) does BUT I thought the whole
    purpose of the TAG$$LOCAL_STRINGS was to prevent this kind of clean
    up!!!!  I will put this in a
    <define_symbol>(DECnet/SNA\<keep>(DECnet/SNA) ) and add it to my
    globaldefs file... It just seems like reading in the local_strings
    file would be more global and more efficient...
    
    sorry about the frustration...
607.12Order is importantCLOSET::ANKLAMFri Aug 21 1987 17:448
    
    Can you let me look at your TAG$$LOCAL_STRINGS file ? I suspect
    that the \: isn't working because you are picking up the definition
    for {\slash} before your entry is translated. I just made the mistake
    myself in running a little test.
    
    patti