Ignore:
Timestamp:
03/16/07 10:22:26 (17 years ago)
Author:
pinsard
Message:

corrections of some misspellings in some *.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Textoidl/translate_sub_super.pro

    r163 r226  
    22; @file_comments 
    33; Return the proper IDL font positioning command for TeX 
    4 ; sub/superscripts.  
     4; sub/superscripts. 
    55; 
    66; @categories 
     
    2525; function.  So even if sub_sup_idl was declared with 
    2626; FORWARD_FUNCTION in translate_sub_super, it would not properly 
    27 ; compile.  
     27; compile. 
    2828; 
    2929; The file translate_sub_super.pro contains two functions, 
     
    3636; Used only by translate_sub_super.  Should be kept in same 
    3737; file. 
    38 ;  
     38; 
    3939; @examples 
    4040; 
     
    8686        print, offset+offset+"             or '!D' or '!I' for subscripts." 
    8787        return, -1 
    88     ENDIF  
    89  
    90     IF keyword_set(force_ud) THEN BEGIN  
    91         IF (token EQ '^') THEN return, '!U'  
     88    ENDIF 
     89 
     90    IF keyword_set(force_ud) THEN BEGIN 
     91        IF (token EQ '^') THEN return, '!U' 
    9292        IF (token EQ '_') THEN return, '!D' 
    9393        return, '' 
    9494    ENDIF ELSE BEGIN 
    95         IF (token EQ '^') THEN return, '!E'  
     95        IF (token EQ '^') THEN return, '!E' 
    9696        IF (token EQ '_') THEN return, '!I' 
    9797        return, '' 
    9898    ENDELSE 
    99      
     99 
    100100END 
    101101 
     
    113113;       old       -- string to be translated from TeX to IDL.   in 
    114114; KEYWORD PARAMETERS: 
    115 ;       /RECURSED -- set if this function is being called  
    116 ;                    recursively.                   
     115;       /RECURSED -- set if this function is being called 
     116;                    recursively. 
    117117;       /HELP     -- Set to print useful message and exit. 
    118118; OUTPUTS: 
     
    130130;       out = translate_sub_super( 'N^2_{big}' ) 
    131131;       Then out='N!U2!N!Dbig!N' which looks like it should on the 
    132 ;       display.  
     132;       display. 
    133133; LIBRARY FUNCTIONS CALLED: 
    134134;       str_token      -- Text/string (mcraig) 
     
    195195        print, offset+offset+"- Sub/superscripts may be nested (e.g. 'N^{N_1^N}')." 
    196196        return, -1 
    197     ENDIF  
     197    ENDIF 
    198198 
    199199;  To allow for nested scripts, use !E/!I instead of !U/!D for scripts 
     
    233233        EndOfScript = 0         ;Position of end of this script. 
    234234        IF (Script EQ '{') THEN BEGIN   ; Scripts of more than 1 char. 
    235             EndOfScript = matchdelim(strn)       
     235            EndOfScript = matchdelim(strn) 
    236236            Script = translate_sub_super(strmid(strn, 1, EndOfScript-1), $ 
    237237                                         /recursed ) 
    238         ENDIF  
    239 ;     Grab rest of string _after_ the end of the script.         
     238        ENDIF 
     239;     Grab rest of string _after_ the end of the script. 
    240240        strn = strmid(strn, EndOfScript+1, $ 
    241241                      strlen(strn)-EndOfScript-1) 
     
    265265            StorePos = '' 
    266266            RecallPos = '' 
    267 ;     calculate the difference in length between this script and the  
     267;     calculate the difference in length between this script and the 
    268268;     previous stacked one, removing font change commands (crudely by 
    269269;     guessing that the number of characters this takes is twice the 
     
    276276        ENDIF ELSE BEGIN 
    277277            IF (Token NE OldToken) AND (pos EQ 0) THEN BEGIN 
    278 ;             The next script immediately folows this one.  Arrange to 
     278;             The next script immediately follows this one.  Arrange to 
    279279;             save the position of the current script so that both begin 
    280280;             with the same horizontal position. 
     
    283283                LenLastScript = strlen(Script) - 2*strcnt(Script,'!') 
    284284            ENDIF 
    285         ENDELSE   
     285        ENDELSE 
    286286 
    287287;  Continue building the IDL string, adding on our just processed script. 
     
    289289          + FontRestore 
    290290 
    291         IF ( pos NE -1 ) THEN BEGIN     ; more left to process      
     291        IF ( pos NE -1 ) THEN BEGIN     ; more left to process 
    292292            NewString = NewString $ 
    293               + str_token(strn, Token)    
     293              + str_token(strn, Token) 
    294294        ENDIF ELSE BEGIN                ; we are done 
    295295            NewString = NewString + strn 
    296296            strn = '' 
    297297        ENDELSE 
    298     ENDWHILE  
    299      
     298    ENDWHILE 
     299 
    300300    return, NewString 
    301301END 
Note: See TracChangeset for help on using the changeset viewer.