ࡱ                >  	                        V   
         f      X    N    t    c    b          7 	              '   bjbjUU                  	 .D  7|  7|  #                                                              l     X      X  X      X      X      X      X                   T      T      T      5  $   ;5  ,         0     T  H                            *      J     v    d0      d0      d0      d0      d0      d0  $   1     3  B   0                     X                                                    0            X      X                          0                             X            X            v                                                                          v        h                v      X      X                                                              v            g5     E  
  T            v              v      0  0   0      v      ;4            ;4      v            l  <     ,   X      X      X      X          printCIFA simple tool to produce an Acta Crystallographica preprint from a CIF Version for Word 2000 onwards running on a PCUser guide(Please keep this window open while printCIF is running)ContentsHYPERLINK  \l "sec1"1. OverviewHYPERLINK  \l "sec2"2. Getting startedHYPERLINK  \l "sec3"3. The RTF preprintHYPERLINK  \l "sec4"4. The CIF windowHYPERLINK  \l "sec41"4.1. File menuHYPERLINK  \l "sec42"4.2. Build preprintHYPERLINK  \l "sec43"4.3. Update CIF using RTFHYPERLINK  \l "sec44"4.4. Tools menu	HYPERLINK  \l "sec441"4.4.1. Tables	HYPERLINK  \l "sec442"4.4.2. CIF checking	HYPERLINK  \l "sec443"4.4.3. OptionsHYPERLINK  \l "sec5"5. FeedbackHYPERLINK  \l "sec6"6. Further information1. OverviewprintCIF can be used to obtain a preprint of a crystal structure paper from a CIF. printCIF extracts both single-crystal and powder data from a CIF and formats it as a rich-text format (RTF) document in the style of an Acta Crystallographica Section C or E preprint, according to the data selection criteria employed by the IUCr.As well as standing alone as a preprint, the generated RTF document provides a link to the source CIF data: by simply clicking text in the preprint, the corresponding CIF data will be displayed in a separate CIF window, which serves as a basic text editor.printCIF is intended to be complimentary to CIF-editing programs such as enCIFer. Although printCIF facilitates CIF editing and enables CIF syntax checking, it does not provide full crystallographic data validation; rather, it is designed to assist authors with manuscript preparation and archival using the CIF. To this end, printCIF offers a number of RTF-to-CIF translation functions. It is possible to edit parts of the RTF preprint and then update the CIF with the edited text. In this way, authors can write much of their manuscript using the word processor and then automatically include the text in the CIF as the appropriate data items.The important aspect of printCIF to be borne in mind is that both the CIF and the RTF preprint are editable. Ultimately it is the CIF that is submitted to the journal, so if you edit the RTF it is important to remember to update the CIF and be aware that updating the CIF using the RTF will replace existing data items.That said, printCIF should prove to be a useful tool for preparing crystal structure papers as a CIF, enabling an author to both preview a CIF-generated manuscript and to use a familiar word processor to archive a manuscript in the perhaps less-familiar CIF format.2. Getting startedprintCIF is distributed as a Microsoft Word template, 'printCIF.dot' (this version is designed for use with Word 2000 onwards, running on a PC under Windows 95 onwards), along with some resource files, all contained in the folder 'printCIF'.To start the program, double-click the file 'printCIF.dot'. This should open Word and activate printCIF, which will request a CIF file to open. Two template CIFs are provided (crystal.cif and powder.cif), either of which may prove useful as a starting point from which to explore printCIF for the first time. The presented dialogs and CIF window are intended to be self-explanatory. In addition, this manual is displayed whenever printCIF is activated.Note that if printCIF does not display any dialog boxes when 'printCIF.dot' is double-clicked, Word's macro security settings are probably set to 'high'. In this case, choose the menu combination 'Tools...Macro...Security...' in order to change Word's security setting to 'medium'; then close Word and restart printCIF by double-clicking 'printCIF.dot'.3. The RTF preprintThe RTF preprint is intended to resemble the CIF preprints currently generated by the IUCr's online services. Once generated, it may be saved and treated as a stand-alone document for reviewing purposes. In addition, while printCIF is running, a link is maintained between the RTF preprint and the CIF (displayed in the CIF window). On clicking text in the RTF preprint, the corresponding data item in the CIF will be highlighted.Background shading in the RTF preprint indicates whether parts of the RTF can be edited directly in the preprint or can only be edited in the CIF.Grey shading highlights data that can only be edited in the CIF. Green headings highlight sections that can be edited directly in the RTF preprint and subsequently included in the CIF by using the 'Update CIF using RTF' function of the CIF window (see HYPERLINK  \l "sec43"4.3). The main _publ_section data items (_synopsis, _abstract, _comment,  _exptl_, _references, _figure_captions, _acknowledgements) can be edited in the RTF preprint and updated in this way.4. The CIF window The CIF window displays the entire CIF. It acts as a simple standard text editor as well as giving access to the special functionality of printCIF. 4.1. File menuThis should be familiar to most users and is self-explanatory.4.2. Build preprintSelecting 'Build preprint' will generate a new RTF preprint from the currently open CIF.4.3. Update CIF using RTFSelecting 'Update CIF using RTF' will convert all RTF text under green-shaded headings (Abstract, Comment, etc.) to CIF format and include the generated CIF text in the open CIF, replacing any existing data items (_publ_section_abstract, _publ_section_comment, etc.). The RTF preprint will remain unchanged.Although printCIF can convert the vast majority of symbols to either CIF code or an ASCII representation, it is important to remember that any objects within the editable RTF sections that cannot be represented in CIF format (e.g. figures or equations) will not be included in the CIF. Furthermore, tables prepared using the Word table editor will not be converted to CIF format using this update function. However, such tables, and any text delimited by tabs, can be converted to CIF format separately by using the 'Table to CIF' function of the 'Tools...' menu (see HYPERLINK  \l "sec441"4.4.1).Note that the green headings serve to tag sections of the RTF preprint and should not be removed (unless the link to the CIF is no longer required).Note that the 'Update CIF using RTF' function calls upon Word to open and close files: this operation will be visible during the process. 4.4. Tools menuThe 'Tools...' menu provides access to additional RTF-to-CIF conversion utilities and CIF checking utilities, as well as standard edit functions. 4.4.1. TablesprintCIF provides the means to translate any RTF text delimited by tabs and any tables prepared using the Word table editor to CIF format. By selecting the text or table in the RTF preprint and choosing 'Table to CIF' from the 'Tools...' menu of the CIF window, the selected RTF will be converted to CIF format, with appropriate data names, and displayed in a separate window. This new CIF text can then be included in the CIF manually (use cut and paste) in the appropriate place once you are satisfied that the translation has been successful.A similar function is performed by the 'RTF to CIF' function of the 'Tools...' menu: any RTF can be translated to CIF format for subsequent copying into a CIF if required.Note that the RTF translation functions call upon Word to open and close files: this operation will be visible during the process.4.4.2. CIF checkingAlthough any CIF syntax errors or missing data items should become readily apparent on inspection of the RTF preprint, more complete CIF parsing is provided by VCIF, which is part of the IUCr's CIF checking suite and is distributed with printCIF. VCIF can be run by selecting the 'Check CIF' function of the 'Tools...' menu. On selecting 'Check CIF', a log of possible errors occurring during the generation of the RTF preprint is presented along with the option to run VCIF. printCIF and VCIF should identify any CIF syntax errors, but for complete crystallographic validation of a CIF, you should submit your CIF to the IUCr's online checkCIF service ( HYPERLINK "http://checkcif.iucr.org/" http://checkcif.iucr.org).printCIF is distributed with the Core CIF Dictionary and the Powder CIF Dictionary. To look up a data name, highlight it in the CIF and select 'Look up...'4.4.3. OptionsA number of options for preprint generation are available, including the omission of non-essential data (e.g. acknowledgements) and the inclusion of data that are not usually published (e.g. full geometric data).5. FeedbackFeedback is welcomed from users (e-mail  HYPERLINK "mailto:med@iucr.org" med@iucr.org). This test version of printCIF is restricted by being hosted by Microsoft Word and has been built according to the style of Acta Crystallographica Sections C and E. 6. Further informationFor information on how to submit your completed CIF to Acta Crystallographica Sections C and E visit  HYPERLINK "http://journals.iucr.org/" http://journals.iucr.org/.                                                                                                                                                                                                                                            	  
  &  <  R                                       !  "  #  7  8  9  L  M  N  O  c  d  e  v  w  x  y                                                                  j  Uj  Uj  UjA  Uj   Ujk   U0J  j    U	j    U556\] 5\ 5CJ OJ QJ \^J  56CJ \]>   	  
  Q  R                      "  N  x         )  R                                                                                                                                                                                                                                                                                                                                                                  `        $a$    '  B                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     '  (  *  +  A  B  C  P  Q  S  T  j  k  l                                                         `  h          Y	  b	  	  	  	  	  
  
      -  5  .  A  B  J      M  U                                             6] 5\ j  Uj  Uj>  Uj  Uj`  U0J  	j    Uj  U K       W  X  Y	  Z	      !  "  ,  -  .  A  B  4  5      ]  ^  _  s  t  #  $                                                                                                                                                                                                                                                                                                                                                                                   1  9  _  s  S  [                                              #  .  0  @  B  S      0  8  <  L          n  v  x                    T  \  -  1                    =  A      m  |  }                                         j  UOJ QJ ^J  0J  j  U	j    U5\fH q
      5\fH q
      5\ 6]L              ;  <  K  L                  J  K      <  =          m                                                                                                                                                                                                                                                                                                                                                                           m  n  |  }      L   M               "  "  #  #  X$  Y$  h$  i$  >%  ?%  @%  L%  M%  M&  N&  e&  f&  '                                                                                                                                                                                                                                                                                                                                                                             M   Q         !  !  !  !  !  !  "  "  "  "  "  "  d#  l#  v#  w#  #  #  #  #  #  #  Y$  i$  $  $  #%  '%  @%  M%  u%  v%  %  %  %  %  %  %  #&  E&  H&  J&  N&  f&  &  &  &  &  &  &  &  &  '  '  '  B                                                                                                                                                                                                              0J  	j    U5\ 6]<'  '  '  '  '  '  '  '  B                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    , 1h. A!"#$%                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    k   D                                                               y  K         s e c 1   k   D                                                               y  K         s e c 2   k   D                                                               y  K         s e c 3   k   D                                                               y  K         s e c 4   m   D                                                               y  K         s e c 4 1   m   D                                                               y  K         s e c 4 2   m   D                                                               y  K         s e c 4 3   m   D                                                               y  K         s e c 4 4   o   D                                                               y  K         s e c 4 4 1   o   D                                                               y  K         s e c 4 4 2   o   D                                                               y  K         s e c 4 4 3   k   D                                                               y  K         s e c 5   k   D                                                               y  K         s e c 6   m   D                                                               y  K         s e c 4 3   o   D                                                               y  K         s e c 4 4 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
  i           8  @ 8   N o r m a l       CJ _HaJ mH	sH	tH	@ @  @  	 H e a d i n g   1     $$@& a$ 5\mH	sH	                < A@ <   D e f a u l t   P a r a g r a p h   F o n t             . U@  .  	 H y p e r l i n k    >*B*ph   > V@ >   F o l l o w e d H y p e r l i n k    >*B*ph      #    <         "&        "&       "&        "&               #                        	   
   Q   R                                 "  N  x         )  R                   W  X  Y  Z      !	  "	  ,
  -
  .
  A
  B
  4  5      ]  ^  _  s  t  #  $                    ;  <  K  L                  J  K      <  =          m  n  |  }      L  M                  X   Y   h   i   >!  ?!  @!  L!  M!  M"  N"  e"  f"  #  #  #  #  #  #  #  #      0              0              0              0             0              0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0              0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R       0       R                    "  8  L  N  d  v  x                       '  *  B  P  S  k                                  v      u!  !  !  "  "  #  #  XTXTXTXTXTXTXTXTXTXTXTXTXTXTXTXTXTXT0    _ H l t 5 7 4 6 8 9 4 3  _ H l t 5 7 4 6 8 9 4 4  _ H l t 5 7 5 1 3 7 1 2  _ H l t 5 7 0 8 9 2 7 2  _ H l t 5 7 0 8 9 2 7 3  _ H l t 5 7 0 8 9 5 6 9  _ H l t 5 7 0 8 9 5 7 3  _ H l t 5 7 5 1 3 7 0 4  _ H l t 5 7 5 1 3 7 1 9  _ H l t 5 7 0 8 9 5 7 7  _ H l t 5 7 5 1 3 7 2 2  _ H l t 5 7 0 8 9 5 8 1  _ H l t 5 7 5 1 3 7 2 6  _ H l t 5 7 0 8 9 5 8 6  _ H l t 5 7 0 8 9 5 8 9  _ H l t 5 7 5 1 3 7 3 1  _ H l t 5 7 0 8 9 5 9 6  _ H l t 5 7 5 1 3 7 3 4  _ H l t 5 7 0 8 9 6 0 0  _ H l t 5 7 5 1 3 7 3 8  _ H l t 5 7 0 8 9 6 0 4  _ H l t 5 7 5 1 3 7 4 2  _ H l t 5 7 0 8 9 6 0 7  _ H l t 5 7 5 1 3 7 4 6  _ H l t 5 7 0 8 9 6 1 2  _ H l t 5 7 5 1 3 7 5 3  _ H l t 5 7 0 8 9 6 1 7  _ H l t 5 7 5 1 3 7 1 4  _ H l t 5 7 0 8 9 6 2 2  _ H l t 5 7 5 1 3 6 9 6  _ H l t 5 7 5 1 3 6 9 7  s e c 1  s e c 2  s e c 3  _ H l t 5 7 5 1 3 8 5 5  s e c 4  s e c 4 1  s e c 4 2  s e c 4 3  _ H l t 5 7 5 1 3 7 7 6  _ H l t 5 7 5 1 3 7 6 1  _ H l t 5 7 5 1 3 8 5 7  s e c 4 4  s e c 4 4 1  s e c 4 4 2  s e c 4 4 3  s e c 5  s e c 6                       A  E  n  p                #  L  L  t  t                   .
  _      <              n    Y   @!  N"  #     @  @  @  @  @  @  @  @  @	  @
  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @  @       !   "  @#   $   %   &   )  @'  @(  @*   +   ,   -   .   /                         B  F  o  q                 $  M  M  u  u                  0
  a      @              t    _   B!  P"  #      s w 1 C : \ D o c u m e n t s   a n d   S e t t i n g s \ s w \ D e s k t o p \ p r i n t C I F . d o t  s w : C : \ D o c u m e n t s   a n d   S e t t i n g s \ s w \ D e s k t o p \ p r i n t C I F \ p r i n t C I F . d o t  s w : C : \ D o c u m e n t s   a n d   S e t t i n g s \ s w \ D e s k t o p \ p r i n t C I F \ p r i n t C I F . d o t #   V a  .<         .<  V b  .<         .<  V c  .<         .<  V d  .<         .<  V e 
 .<         .<  V f  .<         .<  V g  .<         .<  V h  .<         .<  V i  .<         .<  V j  .<         .<  V k  .<         .<  V l 	 .<         .<  V m  .<         .<  V n  .<         .<  V o  .<         .<  V p  .<         .<  V q   .<         .<  V r ! .<         .<  V s   .<         .<  V t  .<         .<  V u " .<         .<  V v  .<         .<  V w  .<         .<  V x  .<         .<  V y  .<         .<  V z  .<         .<  V {  .<         .<  V |  .<         .<  V }  .<         .<  V ~  .<         .<  V   .<         .<  V   .<         .<  V   .<         .<  V   .<         .<  V   .<         .<                     C i f T o o l s             C i f T o o l s M  1 8 K   $)   1 8 K   $)   1 8 K   $)   1 8 K   $)   1 8 K   $)      0      ( 	C i f   t o o l s  C i f   W d   M a i n       C i f W d M a i n . M a i n   #  ' T e m p l a t e P r o j e c t . C i f A c t a C . A c t a C B u i l d B o d y  , T e m p l a t e P r o j e c t . C i f A c t a C . A c t a C B u i l d E n d M a t t e r  & T e m p l a t e P r o j e c t . C i f A c t a C . A c t a C B u i l d E x p  & T e m p l a t e P r o j e c t . C i f A c t a C . G e t C i f a u t h o r s  ) T e m p l a t e P r o j e c t . C i f A c t a C . G e t C o m p u t e r P r o g s  % T e m p l a t e P r o j e c t . C i f A c t a C . p r o c e s s p r o g s  # T e m p l a t e P r o j e c t . C i f E d i t . A l l R t f T o C i f    T e m p l a t e P r o j e c t . C i f E d i t . C l o s e C i f  ( T e m p l a t e P r o j e c t . C i f E d i t . F e t c h D a t a I t e m C i f  & T e m p l a t e P r o j e c t . C i f E d i t . L i s t D a t a b l o c k s    T e m p l a t e P r o j e c t . C i f E d i t . P a r s e C i f  " T e m p l a t e P r o j e c t . C i f E d i t . R e B u i l d R t f  , T e m p l a t e P r o j e c t . C i f E d i t . R e g i s t e r E v e n t H a n d l e r   T e m p l a t e P r o j e c t . C i f E d i t . R u n V C i f   T e m p l a t e P r o j e c t . C i f E d i t . S a v e C i f  ) T e m p l a t e P r o j e c t . C i f E d i t . S e l e c t i o n R t f T o C i f  % T e m p l a t e P r o j e c t . C i f E d i t . T a b l e R t f T o C i f  - T e m p l a t e P r o j e c t . C i f E x t r a c t U n i v . C l e a r A r r a y s E t c  & T e m p l a t e P r o j e c t . C i f E x t r a c t U n i v . t e s t a c c  + T e m p l a t e P r o j e c t . C I F G e o m T a b l e s . C l e a r G e o m V a r s  ' T e m p l a t e P r o j e c t . C I F G e o m T a b l e s . s y m c o d e f n  & T e m p l a t e P r o j e c t . C i f T o o l s . S e t D a t a b l o c k s  ) T e m p l a t e P r o j e c t . C i f W d M a i n . E x a m i n e C o n t r o l s   T e m p l a t e P r o j e c t . C i f W d M a i n . M a i n  - T e m p l a t e P r o j e c t . C i f W d M a i n . R e g i s t r y D e l e t e S t u f f  * T e m p l a t e P r o j e c t . C i f W d M a i n . R e g i s t r y G e t S t u f f  + T e m p l a t e P r o j e c t . C i f W d M a i n . R e g i s t r y S a v e S t u f f  & T e m p l a t e P r o j e c t . C i f W d M a i n . S t a r t P r o c e s s  ) T e m p l a t e P r o j e c t . R t f T o C i f . F i n d F i e l d S y m b o l s  ( T e m p l a t e P r o j e c t . R t f T o C i f . F i n d S y m b o l C o d e s  * T e m p l a t e P r o j e c t . R t f T o C i f . R e p l a c e B o l d I t a l i c  & T e m p l a t e P r o j e c t . R t f T o C i f . R e p l a c e I n f S u p  & T e m p l a t e P r o j e c t . R t f T o C i f . S e t R o m a n F o n t s  & T e m p l a t e P r o j e c t . R t f T o C i f . S e t S y m b o l F o n t  ' T e m p l a t e P r o j e c t . R t f T o C i f . S e t U n i c o d e E n t s  # a  T E M P L A T E P R O J E C T . C I F W D M A I N . M A I N   b  T E M P L A T E P R O J E C T . C I F E D I T . R U N V C I F   c  T E M P L A T E P R O J E C T . C I F E D I T . S A V E C I F   d   T E M P L A T E P R O J E C T . C I F E D I T . C L O S E C I F   e   T E M P L A T E P R O J E C T . C I F E D I T . P A R S E C I F   f " T E M P L A T E P R O J E C T . C I F E D I T . R E B U I L D R T F   g # T E M P L A T E P R O J E C T . C I F E D I T . A L L R T F T O C I F   h % T E M P L A T E P R O J E C T . C I F A C T A C . P R O C E S S P R O G S   i % T E M P L A T E P R O J E C T . C I F E D I T . T A B L E R T F T O C I F   j & T E M P L A T E P R O J E C T . C I F A C T A C . A C T A C B U I L D E X P   k & T E M P L A T E P R O J E C T . C I F A C T A C . G E T C I F A U T H O R S   l & T E M P L A T E P R O J E C T . C I F E D I T . L I S T D A T A B L O C K S   m & T E M P L A T E P R O J E C T . C I F E X T R A C T U N I V . T E S T A C C   n & T E M P L A T E P R O J E C T . C I F T O O L S . S E T D A T A B L O C K S   o & T E M P L A T E P R O J E C T . C I F W D M A I N . S T A R T P R O C E S S   p & T E M P L A T E P R O J E C T . R T F T O C I F . R E P L A C E I N F S U P   q & T E M P L A T E P R O J E C T . R T F T O C I F . S E T R O M A N F O N T S   r & T E M P L A T E P R O J E C T . R T F T O C I F . S E T S Y M B O L F O N T   s ' T E M P L A T E P R O J E C T . C I F A C T A C . A C T A C B U I L D B O D Y   t ' T E M P L A T E P R O J E C T . C I F G E O M T A B L E S . S Y M C O D E F N   u ' T E M P L A T E P R O J E C T . R T F T O C I F . S E T U N I C O D E E N T S   v ( T E M P L A T E P R O J E C T . C I F E D I T . F E T C H D A T A I T E M C I F   w ( T E M P L A T E P R O J E C T . R T F T O C I F . F I N D S Y M B O L C O D E S   x ) T E M P L A T E P R O J E C T . C I F A C T A C . G E T C O M P U T E R P R O G S   y ) T E M P L A T E P R O J E C T . C I F E D I T . S E L E C T I O N R T F T O C I F   z ) T E M P L A T E P R O J E C T . C I F W D M A I N . E X A M I N E C O N T R O L S   { ) T E M P L A T E P R O J E C T . R T F T O C I F . F I N D F I E L D S Y M B O L S   | * T E M P L A T E P R O J E C T . C I F W D M A I N . R E G I S T R Y G E T S T U F F   } * T E M P L A T E P R O J E C T . R T F T O C I F . R E P L A C E B O L D I T A L I C   ~ + T E M P L A T E P R O J E C T . C I F G E O M T A B L E S . C L E A R G E O M V A R S    + T E M P L A T E P R O J E C T . C I F W D M A I N . R E G I S T R Y S A V E S T U F F    , T E M P L A T E P R O J E C T . C I F A C T A C . A C T A C B U I L D E N D M A T T E R    , T E M P L A T E P R O J E C T . C I F E D I T . R E G I S T E R E V E N T H A N D L E R    - T E M P L A T E P R O J E C T . C I F E X T R A C T U N I V . C L E A R A R R A Y S E T C    - T E M P L A T E P R O J E C T . C I F W D M A I N . R E G I S T R Y D E L E T E S T U F F   @          Dh                         #  p   @      U n k n o w n                                   G  z                  T i m e s   N e w   R o m a n   5                       S y m b o l   3&  z                  A r i a l   ?5  	z                  C o u r i e r   N e w   "  1 h    3{F[ܑ     
   #  H       >                      $                                                                                                                                                                                                                                                                                                                            0    d      #                                                              _                                                 p r i n t C I F        s w  s w                       
  i           D  @ D   N o r m a l      $ CJOJPJQJ_HaJmH	sH	tH	                  < A@ <   D e f a u l t   P a r a g r a p h   F o n t                      D                          B                      m  '  B                    B     @          p   @      U n k n o w n                                   G  z                  T i                       Oh +'0   l                                                     	           
   (     4     @     L     T     \     d          	   printCIF           rin      sw n       w n       w n      printCIF.dot  o       sw n      4  n      Microsoft Word 9.0  @    e   @    r?1@    Jh         #     H                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ՜. +,D   ՜. +,8           h      p                                                                          IUCr 1 4   >            #     
	                                  	   printCIF            Title        H                8      @            _PID_HLINKS      A      l      P     3                      h t t p : / / j o u r n a l s . i u c r . o r g /                 =    0                      m a i l t o : m e d @ i u c r . o r g                Q     -                      h t t p : / / c h e c k c i f . i u c r . o r g /                $ `    *                                s e c 4 4 1         Q    '                                s e c 4 3       S    $                                s e c 6         P    !                                s e c 5        $ b                                    s e c 4 4 3        $ c                                    s e c 4 4 2        $ `                                    s e c 4 4 1         Q                                    s e c 4 4       Q                                    s e c 4 3       Q                                    s e c 4 2       Q                                    s e c 4 1       Q    	                                s e c 4         V                                    s e c 3         W                                    s e c 2         T                                     s e c 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     eMnu."       ` 	  	     2   H     -  UpdateMnuame]     Update CIF using the text in the RTF preprint     (        2   <     ToolsMnu       $        *    Image1nu         L 	       2   @       PreprintMnue	     Generate new RTF preprintsiz  ,     "   !    ToolsMnuFramecke  {    0 	    *   B      MinButnu*      Minimize  0 	    +   B  	    MaxButzez-      Maximize  , 	    2   B  
    RedoBute  O  Redo  , 	    1   B      UndoBut      u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                             p p             w  u          Tahoma.. , AE    H$   :  {  Goto data blocke  5           Tahoma..        {  {  R  KQlt    S u m m a r y I n f o r m a t i o n                           (                                     B           D o c u m e n t S u m m a r y I n f o r m a t i o n           8                                        J          M a c r o s                                                          z   E                                   V B A                                                                                   0             T h i s D o c u m e n t                                                                                         "      C i f A c t a C                                                                                            \        C i f E d i t                                                                                         +  {      C i f E x t r a c t U n i v                                                                            <                             	   
                                                                   !   "   #   $   %   &   '   (   )   *   +   ,   -   .   /   0   1   2   3   4   5   6   7   8   9   :   ;   <   =   >   ?   @   A   B   C   D   E   F   G   H   I   J   K   L   M   N   P   Q   R   S   T   U   V   W   X   Y   Z   [   \   ]   ^   _   `   a   b   c   d   e   f   g   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   {   |   }   ~                        ;         M  #                䃆@5=o?	           F                   IMB}iTs               x                                       ME                    (    SL   S   S    <       N 0 { 0 0 0 2 0 9 0 6 - 0 0 0 0 - 0 0 0 0 - C 0 0 0 - 0 0 0 0 0 0 0 0 0 0 4 6 }        (                  %   
  `            |    e        i            0                   %                 %                   0       0                     @           3A                                                               "          
             (   0     o p     B@        X     ݰ Attribut e VB_Nam e = "Thi sDocument"

Bas0{00020P906- 0C $0046}|GlobalSpacFalsedCreatablPredecla Id TruBExposeTempl ateDerivBustomi6zD2P Sub _New ()
CifW@dMain.
End
                                  h     L  o           o                                                                                      x                              X      8    x                 C   3A ( * \ R f f f f * 1 8 4 1 1 b 3 3 8 b \ 0 ( * \ R f f f f * 1 8 4 1 1 b 3 3 8 b \ 1 .                                                            ;                                               (        0        8        @        H    	          P        X        `        h        p        x    	                                                                                                                                      	                                               (       0       8       H   	      	     "    X       `       h       x          	                    	 $             	              
       
      	      	       D  x  (      =:        	                                                                                       x                                      R    R              Rx   R              ME                       (    @   @(    <     <                 x           h 0           h"H           h$`           h&         (       h*           h,    2               6               8               <               @               B                F(               J                LP               Px               Tx               V               Z                 8     `Z                                       %     `  p                   ``   p                                 X   fh                     `f                                     %                                                  P                                8   l0                    9 9      in            ip            ir                                   `                                   `                                                                                                              `                               @   `                               x                                                                               `                               0                         P                         p                                                      `       `     0    P      P                         8   @        @     8  @       `                                	                  	  rr     i                              8	   `     8  @         @
     ' zP
                  	         i                                 
   @       @
                         
         i        b                      
   @     s ge@
         `     te t                  U U                                     X   `,         `.      tab2                  ' '       `       4                H  l l      i:      n_ti`,          <                                    >        <                         `@        @B       `F       .`               0                4                :8               >`               D               H               N(               RP               X               \               ^               b@               dx               h                jP              @  x     h               x        x        P  	  x        `           (  0  X      P
  8  (        8        `  P  C a 0  @  x     h               x        x        P  	  x        `           (  0  X      P
  8  (        8        `  P                                                                                                                                                                                                                                                                                                                                                                                                        	 $                  (       0       @   	     	    H    
   `   	      	      	 0   p   	      	               "      	             	      	 (                  (       0       H       X    
   h       x    
             	               
       
      	      	                    	                  (   	      	     "    0       8       @    ,   H      x         B                               
         (      @      X   B   p                     
                  B          H   	     	          P      X      p               H                   
             	       4           X      `      x               z         8      @   
   H       X       `                        	       
      	                     &      	          	   	 @   	   	       .   	      
      (
   F   @
      
      
      
      
   
   
      
      
      
   F         P      X      `   
   h      x         F                                  (      @   B   H               
                    	                            	      	                     &   (   	          P   	 @      	       .           P      h   F                              
                      0   F   H                     
                  F                 (      0      H      h         B                  
                    	                 (   	          @       P    &   `   	             	      	      	 .      	 2   @   	 <   x   	 (      	       .      	      	             	         (   	      D   @   	 l                               
          0      H      `   D   x   	 l         0      8      @   
   H      X      `   D   x   	 n         0       8      @   	        X      x         B      	 n         P      X   
   `       p   	 B   x          	 "                     	         0  "    8       @       H       X    (   h   	             	              	 B   @           0                   R         H      `      x                     
                        R         P      h                     
                  R                8      P       X      `      x                           N      	    8      H      `      x   
                           	      	 *                                 0   	          P       `    *   p   	             	      	 T   H           (              
                *   8        h     
                &                
    !       !   	          0!   	          H!   	          `!       x!       !    
   !   	          !    
   !       !       !   	       
   !        !       "   	           "       0"    .   @"   	          p"   	      	       6    #       8#      P#   R   h#      #      #      #      #       $      $   
   $      ($      @$      X$   R   p$      $      $      $       %      %   
   %       %      (%   R   @%      %      %      %       %      %      %      &      (&      @&      X&   N   `&   	    &      &      &      &   
   &       '   	      	      	          '       ('       H'       X'    (   h'   	          '       ((       0(   	         P(  "    X(   	 $   `(   	    (   	 $   (       (       (    
   (       (        )    .   )   	          @)   	      	       6   )       *      (*      @*      *      *      *      *   
    +      +      (+      @+      X+      +      +       ,   
   ,      ,       ,      8,      ,       ,      ,      ,      -      0-   B   8-      -      -   
   -       -       -       -       -       -       .   	          .       (.    (   8.   	          `.    0   .        /      8/   H   P/      /      /      /      /   
   /      /      /       0   H   0      `0      h0      p0   
   x0      0      0   H   0      0       0       1      1      81      P1   B   X1      1      1   
   1       1       1       1       1       2   	          02       @2    .   P2   	          2   	       6   3       H3      `3   N   x3      3      3      3      3   
   3       4      4      04   N   H4      4      4      4   
   4      4      4   N   4      05       85      @5      X5      x5      5   B   5      5      5   
   5        6       6        6       86       P6       p6   	          6       6    ,   6   	          6      h7  "    p7       x7       7       7       7       7    
   7       7       7       7   	       *   7   	    8   	      	         08       88   	          @8   	          X8       x8       8       8       8    
   8   	      	    8   	    8   	 ,   8   	 <   9   	 D   X9       9    .   9       9       9       9    0    :       0:       8:       @:    2   H:       :   	          :       :    
   :   	      	      	 "   :       :       :        ;        ;       @;   	       
   `;       p;   	    ;   	     	      	          ;       ;       ;       ;       ;   	          ;       <      <      8<      P<      X<      `<      h<      p<   
   x<   	     
   <      <      <      <      <   	     	          <   	       
   <   	      	          <       =       0=    V   @=       =       =       =       =       =       =       >       0>       P>       `>       x>       >       >       >       ?        ?    T   8?       ?    H   ?       ?    P   ?       @@    
   H@   	 d   X@    B   @       A   	      	           A   	          @A    >   XA    *   A    *   A    &   A    &    B    &   HB    &   pB       B   	 t   B    B   0C       xC       C    
   C       C   	      	    C   	       2   C   	      	           D      8D   H   PD      D      D      D      D   
   D   	        D      D       E   H   E      `E      hE      pE   
   xE      E   	        E   H   E      E   	      	      	 v   E   	 8   pF       F      F      F      F       G   	    G       G      G      G   
   G       G    B   G        H       8H   	      	      	          XH   	          `H       hH   	         H      H   F   H       I      I      I       I   
   (I   	        8I      PI      hI   F   I      I      I      I   
   I      I   	        I   F   J      XJ   	      B   `J       J       J      J   	     "    J   	 P   J       @K       PK       XK       `K       hK   	      	 H   pK   	 :   K   	      	 P   K    f   HL   	 2   L   &   L      M      M       M      (M       0M   	          8M    H   HM   	 R   M   	       0   M       N   	           N    j   0N   	 R   N   	       .   N    &   (O       PO       hO   	          pO    H   O   	     	       6   O        P   	 &   P   	 ,   0P    \   `P   	 R   P   	      	     	      8   Q   	       0   PQ        Q       Q    \   Q   	           R       0R    \   @R   	           R       R    \   R   	       $   0S       XS    X   hS   	       "   S       S    V   S   	       $   PT       xT    X   T   	       $   T        U       (U    \   8U   	           U       U    \   U   	           (V       HV    \   XV   	      	       "   V       V    V   V   	      	      	           HW        hW       W    \   W   	           W       X    \   (X   	           X       X    \   X   	      	          Y        8Y       XY    \   hY   	      	      	           Y       Y    \   Y   	      	      	       Z   XZ        Z       Z       Z    \    [   	      	           `[       [       [       [       [    \   [       \   	       $    \       H\       `\    X   p\   	       $   \       \       ]       ]       ]    X   (]       ]   	       "   ]        ]       ]    \   ]   	           @^       `^    \   p^   	           ^       ^    \    _   	       $   `_       _    X   _   	      	      	          _        `       0`    \   @`   	           `       `    \   `   	      	      	          0a        Ha       ha    \   xa   	      	      	           a   	           a       b    \   (b   	           b       b    \   b   	           c       8c    \   Hc   	       $   c       c    X   c   	       "   8d       `d    V   pd   	       $   d       d    X    e   	          Xe   	     	 p   `e   	       $   e       e   	           f    h   f   	 R   xf   	       .   f        g   	          g    T   g   	 R   pg   	       6   g        h   	          h       h   	 R   h   	 6   h   	 R   0i    .   i       i      i   ,   i       j      @j   4   Xj   
   j      j      j   
   j   @   j       k       k   	          k    R    k   	      	      	 R   xk       k       k   6   k       l      (l   h   8l   4   l      l      l   R   l   4   Hm      m   `   m   	          m   	 T   m   	          Hn       n       n   	 ,   n       o      8o   &   Po   (   xo      o      o   h   o       p      (p      0p       8p       @p    d   Pp       p   	 R   p    6   q       Pq   	          Xq    V   hq   	 R   q       r   	           (r       Hr    X   Xr   	       &   r       r    H   r    &   0s    \   Xs    &   s    `   s   	      	       $   @t       ht    `   xt   	       &   t        u    ^   u   	       .   pu       u    \   u   	       "   v    V   8v   	      	      	          v    ,   v       v    H   v    (    w    V   Hw   	       *   w       w    H   w    *   (x    \   Xx    *   x    `   x   	      	      	          Hy   	      	 P   Py   	      	    y       y       y       y    
   z    0   (z       Xz   	          hz    T   z    
   z       z      {   	     "    {       {       ({       0{       8{   	       f   @{   	 &   {       {       {        |       |       |        |    <   0|    .   p|        |       |    4   |        }   	          }    $   }       @}    Z   P}   	       &   }       }    b   }   	       &   P~       x~    T   ~   	       
   ~    "   ~    0          H    ^   X    2              b        2   h    r                      ,   (       X    b   h    ,   Ё    v        ,   x           f      	      	        	 "   @       h   	 "      	      	       2                     <          @       `         ,            	      	      	 &      	       0              ^   (    2              b   Ѕ    2   8    r   p   	      	 R       .   @       p   	          x    ^      	      	 R       ,   @       p   	          x    `      	 P       F   8          	              Z       L       T   H   	      	      	 R       8          0   	          8    b   H   	 P      	       0           0   	          8    f   H   	 P      	       ,           0    T   @    ,       \   ȍ    ,   (       X    T   h    ,       \       ,   P           T       ,       \      	 P   x   	      	       6   Ȑ   	      *           0       H   	 0   `         ^      2          8   b   H   2            V      ,   P         "      Z            X          x   	       D      	    Ȕ         ^          P   "   X   	 .            ^      V       6   x   6            Z         X   6   `         R             ,         8   "   H   Z   p      И   X   ؘ      0   	        8   	 0   @      p   ^      2            b   (   2         Ț   V   ؚ   ,   0      `   "   p   Z            X          X      `       h       p   	     	 N   x       Ȝ   	      	 T   М   	      	    (       H       `           
       0             	              T       
   `       p         	     "                                       Ȟ   	       2   О           V      	      	          p   	       ,              j      	      ,   0       `    b   p   	       .   ؠ           b      	       (              j      	      R   (           T      	      	       &                 0   *   H      x         :      
                       (   
   0       @       H    r   X   	       0   Ф            \      	       .   p           Z      	              D          `       p   	      b           h    n   x   	      R          @    T   P          	      	     	       *              T      	       .   H       x    T      	            	       0              H   (       p   	     	      	       D   x           H   Ъ   	      .       T   H   	      *          Ы    "       h          p    j   x          	             	              	       *          8       H   	      *   Э                         	     	     	     	      .          Ю   	       D      	    0       H    ^   X                  ^   Я    ,   0       `    `   p       а   	     	          ذ   	       4         0   j   @         	             	 
       2   б          	       Z       	 "      	 ,      	    ز                  \       $       0   (      X   X   h          0   ȴ         X      2   `         Z                    	      	     	           8   	      	 N   @   	      	                  ȶ           
       0          H   	          X    T   p    
   ȷ       ط        "                .   (       X        p            
      	       .                          (    
   H   	       .   X                           
      	       2          (        @        `    
      	       4          Ⱥ                     
       	       2   0       h                    
      	       4   л                        @    
   `       p   	    x          	       \       b        b   h    v   н    v   H    f          (              ȿ       ؿ           
                     	 <           `       x    H             	       \        b   `    b       v   0    v       f                         (       8    
   H       X       `       h       p      x   	      	     "                      
       
      	      	 4      	 "       	    (   	          @      P      `      h      x   	            0                                               (      H   >   P               "      	           
                           	     	            "    (       0       8      @      `                                 ,             .         8      @      `   <   h         	      	       .      	             	             	                            	      	       	          (       0    D   @    
             	             	            	     	     	     	 2      .         8      H   	        `      h      p      x         
                  	                              	     	     	       
      	                  8      H       h       p          	             	                   	       	 >      	 B   (   	    p   	       	 ,      	 :            	
     	   0   
   H      X      `      x               	      	      	      
                        "          (    
   0       @   	      	$        H  X        ^    ^ 0   ^ H   ^ `   p P   x     ^    ^    p 0   ] 8  ] `  ]    ]   ]    ]   ]   ] 8  ]   ] `  ]   ]    ]   ] (  ]   ]    ] P  ] (  ] x  ] P  ] x  ]   ]   ]   ]   ]   ]   ] @  ] x  ]    h    ]        X     ' 8      t   A@v       ' \  n' x  p' z     erase any existing rtf file:       z' |  |         V          |A@~            put cif in array if need to:    r   d     x  B@   k        set datablocks:  B@           )  NB write all data to rtf.1 except header      build main publ sectionA@    A@      includes geom tables   A@       !  save coordinate tables till last   .   ]            `  $  !     A@       A@ X   k               k h        extra tables              A@            %          B@      B@       MsgBox "done"     A@v    o   0    ] p     ' b     _publ_section_title   %                          $  !   ?     #SPW#   $  !     <b>Title is missing</b>#/SPW# '       y   d      #NOMIS# ' k                  #NOMIS#                        $  !          #SPW#   $  !     <b>Title is missing</b>#/SPW# '       y @  d 8  k 0             k       #NOMIS#         #SPW#   $  !     <b>Title is missing</b>#/SPW# '       k   d                    $  !   MISSING       $  !   ?  e d P    #SPW#   $  !     <b>   $  !   
 </b>#/SPW# ' y    k               k         _publ_section_title_footnote  %         d                     $  !   MISSING       $  !   ?  e d H       <sup>    *   	 #fnstart#    *    #SPW#    $  !    $  !    #/SPW##fnend#</sup>  '       y   k              k      
 {\cbpat17   B@           B@           }   B@     A@      4             '      @t     Facifitate_synopsis#  $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateSyn\b0}{\*\cs     #  \b\chcbpat19 Synopsis\b0}\par\pard    B@          : CifRtfWrite.RtfWrite 1, "\par\pard\b Synopsis\b0\par\pard"     _publ_section_synopsis  %                        $  !   ?     #SPW#   $  !   !  <b>Synopsis is missing</b>#/SPW#  '   y p  d h    #NOMIS# ' k P                 #NOMIS#                        $  !          #SPW#   $  !   !  <b>Synopsis is missing</b>#/SPW#  '   y   d   k              k       #NOMIS#         #SPW#   $  !   !  <b>Synopsis is missing</b>#/SPW#  '   k   d                    $  !   MISSING       $  !   ?  e d     #SPW#   $  !         $  !    #/SPW# '       y h  k `             k H        B@         $  ! ' :        $  ! ' <      k        '      @t     Facifitate_abstract#  $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateAbs\b0}{\*\cs     #  \b\chcbpat19 Abstract\b0}\par\pard    B@          : CifRtfWrite.RtfWrite 1, "\par\pard\b Abstract\b0\par\pard"     _publ_section_abstract  %                        $  !   ?     #SPW#   $  !   !  <b>Abstract is missing</b>#/SPW#  '   y 0  d (    #NOMIS# ' k                  #NOMIS#                        $  !          #SPW#   $  !   !  <b>Abstract is missing</b>#/SPW#  '   y h   d `   k X              k @       #NOMIS#         #SPW#   $  !   !  <b>Abstract is missing</b>#/SPW#  '   k   d                    $  !   MISSING       $  !   ?  e d x    #SPW#   $  !         $  !    #/SPW# '       y (  k               k         B@         $  ! ' >        $  ! ' @           '      @t     Facifitate_comment#   $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateCom\b0}{\*\cs     ! \b\chcbpat19 Comment\b0}\par\pard    B@    ' RtfCifStyleCount = RtfCifStyleCount + 1      , ReDim Preserve RtfCifStyle(RtfCifStyleCount)         6 RtfCifStyle(RtfCifStyleCount).RtfStyleParagraph = True       " parastylenumber = RtfCifStyleCount     _publ_section_comment   %                        $  !   ?     #SPW#   $  !      <b>Comment is missing</b>#/SPW# '       f RtfCifStyle(parastylenumber).RtfStylename = tmpCifDataitem(n).CifDatablock & "__publ_section_comment#"    y    d     #NOMIS# ' k                  #NOMIS#                        $  !          #SPW#   $  !      <b>Comment is missing</b>#/SPW# '       f RtfCifStyle(parastylenumber).RtfStylename = tmpCifDataitem(n).CifDatablock & "__publ_section_comment#"    y 
  d 
  k 
             k 
      #NOMIS#         #SPW#   $  !      <b>Comment is missing</b>#/SPW# '       g  RtfCifStyle(parastylenumber).RtfStylename = tmpCifDataitem(1).CifDatablock & "__publ_section_comment#"   k 	  d 	                   $  !   MISSING       $  !   ?  e d h	    #SPW#   $  !         $  !    #/SPW# '         g  RtfCifStyle(parastylenumber).RtfStylename = tmpCifDataitem(n).CifDatablock & "__publ_section_comment#"   y   k              k      ; CifRtfWrite.RtfWrite 1, "{\plain\s" & parastylenumber & " "             B@           CifRtfWrite.RtfWrite 1, "}"         $  ! ' B        $  ! ' D      o       ] (       '      @t X    Facifitate_exptl_prep#  $ t (     \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateExp\b0}{\*\cs     '  \b\chcbpat19 Experimental\b0}\par\pard    B@      	 \par\pard   B@        ;  Now exp prep - if more than one then join them together(?)          '      _publ_section_exptl_prep  %                      $  !   ?     #SPW#   $  !   .  <b>Experimental preparation missing</b>#/SPW# '         $  ! ' F        $  ! ' H      y   d x    #NOMIS# ' k `                 #NOMIS#                        $  !          #SPW#   $  !   .  <b>Experimental preparation missing</b>#/SPW# '         $  ! ' F        $  ! ' H      y x  d p  k h             k P      #NOMIS#         #SPW#   $  !   .  <b>Experimental preparation missing</b>#/SPW# '         $  ! ' F        $  ! ' H      k   d                    $  !   MISSING       $  !   ?  e   $  ! ' F        $  ! ' H      d       #SPW#    $  !         $  !    #/SPW#    '      Exit For    $  ! ' F        $  ! ' H      k              k h        B@          	 \par\pard   B@        #  now exp tables for each structure:       ] `                   $  !     	 \par\pard   B@          '      @t     Facifitate_exptl_table#   $ t (           \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateExd\b0}{\*\cs       \b\chcbpat17 Compound     $  !    \b0}\par\pard    B@          M CifRtfWrite.RtfWritePara 1, "<b>Compound " & datablock(s).CifBlockID & "</b>"        	 \par\pard   B@         <it>Crystal data</it>   B@    	 \par\pard   B@     A@          	 \par\pard   B@         <it>Data collection</it>  B@          	 \par\pard   B@       A@          	 \par\pard   B@         <it>Refinement</it>   B@      	 \par\pard   B@       A@          	 \par\pard   B@         0  B@           0  B@           0  B@           0  B@           B@     B@            0  B@         A@       A@    k                  \par\par\pard   B@    '      '      @t     Facifitate_exptl_refinement#  $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateExr\b0}{\*\cs     %  \b\chcbpat19 Refinement\b0}\par\pard    B@          _publ_section_exptl_refinement  %                        $  !   ?     #SPW#   $  !   -  <b>Experimental refinement missing</b>#/SPW#  '         $  ! ' J        $  ! ' L      y   d      #NOMIS# ' k                  #NOMIS#                        $  !          #SPW#   $  !   -  <b>Experimental refinement missing</b>#/SPW#  '         $  ! ' J        $  ! ' L      y    d   k              k       #NOMIS#         #SPW#   $  !   -  <b>Experimental refinement missing</b>#/SPW#  '         $  ! ' J        $  ! ' L      k 0  d (                   $  !   MISSING       $  !   ?  e   $  ! ' J        $  ! ' L      d       #SPW#    $  !         $  !    #/SPW#    '      Exit For    $  ! ' J        $  ! ' L      k              k         B@          	 \par\pard   B@          '      @t     Facifitate_computing#   $ t (     \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateCpr\b0}{\*\cs     ,  \b\chcbpat17 Computer programs\b0}\par\pard   B@       A@       	 \par\pard   B@     o           _publ_section_acknowledgements        _publ_section_references      _publ_section_figure_captions     ]      ' b  6              '      @t H    Facifitate_acknowledgements#  $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateAck\b0}{\*\cs     +  \b\chcbpat19 Acknowledgements\b0}\par\pard    B@            _publ_section_acknowledgements  %                        $  !   ?     #SPW#   $  !   s  <b>Acknowledgements are missing (to omit from the RTF preprint, see 'Tools...Options' in the CIF window)</b>#/SPW#  ' y    d     #NOMIS# ' k                   #NOMIS#                        $  !          #SPW#   $  !   s  <b>Acknowledgements are missing (to omit from the RTF preprint, see 'Tools...Options' in the CIF window)</b>#/SPW#  ' y   d    k              k       #NOMIS#         #SPW#   $  !   s  <b>Acknowledgements are missing (to omit from the RTF preprint, see 'Tools...Options' in the CIF window)</b>#/SPW#  ' k (  d                     $  !   MISSING       $  !   ?  e d     #SPW#   $  !         $  !    #/SPW# '       y x  k p             k X    $  ! ' N        $  ! ' P            B@          	 \par\pard   B@     k        '      @t h    Facifitate_references#  $ t (     \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateRef\b0}{\*\cs     %  \b\chcbpat19 References\b0}\par\pard    B@          _publ_section_references  %                      $  !   ?     #SPW#   $  !   $  <b>References are missing</b>#/SPW# ' y `  d X    #NOMIS# ' k @                 #NOMIS#                        $  !          #SPW#   $  !   $  <b>References are missing</b>#/SPW# ' y   d   k              k p      #NOMIS#         #SPW#   $  !   $  <b>References are missing</b>#/SPW# ' k   d                     $  !   MISSING       $  !   ?  e d     #SPW#   $  !         $  !    #/SPW# '       y X  k P             k 8    $  ! ' R        $  ! ' T            B@          	 \par\pard   B@          '      @t     Facifitate_figure_captions#   $ t (       \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateFig\b0}{\*\cs     *  \b\chcbpat19 Figure captions\b0}\par\pard   B@      _publ_section_figure_captions   %                        $  !   ?     #SPW#   $  !   )  <b>Figure captions are missing</b>#/SPW#  '   y 0  d (    #NOMIS# ' k                  #NOMIS#                        $  !          #SPW#   $  !   )  <b>Figure captions are missing</b>#/SPW#  '   y `  d X  k P             k 8      #NOMIS#         #SPW#   $  !   )  <b>Figure captions are missing</b>#/SPW#  '   k 
  d 
                   $  !   MISSING       $  !   ?  e d h
    #SPW#   $  !         $  !    #/SPW# '       y 
  k 
             k 	    $  ! ' V        $  ! ' X            B@          	 \par\pard   B@        	 \par\pard   B@          '      @t     Facifitate_miscellaneous#   $ t (         \par\pard\plain{\*\cs     & \v\b\chcbpat19 FacifitateMsc\b0}{\*\cs        \b\chcbpat17 Misc.\b0}\par\pard   B@   o       ]   ]   ]   d      ] X  p        ]   $ Z  r           '    '    '      _publ_author_name   %                determine why false:        k                    $  !   MISSING     d     ' y p  k h                  returns false if fails        otherwise returns true      %  and returns an array of looped data:        6  cifloopdata(1 to cifloopnumrows, 0 to cifloopnumcols)       >  NB col heads contained in cifloopdata(1 to cifloopnumrows, 0)                        $  $    _publ_author_name       ' d   k         $  $    _publ_author_address    ' d   k        $  $    _publ_author_footnote           ' d p  k h                  setup array of author data              Z                        $    $ Z (          $    $ Z ( "        $    $ Z ( &                    '        sort data:                                    $ Z ( $        $ Z ! "  +    ' d                     $ Z ! "  $            $ Z ( $       '   y   d   '   k                             '     $ Z ! "  +      $ Z ( $      k    k                                 $ Z !    ,  '        
        $ Z !    $ Z !      $         $ Z !       $    '     $  '   d P    $ Z !  $  ' k 0      $       $  '      
 $       $  '             $  '                 $  '         $  '     $ Z ! &          ' d x    \   ' \    <sup>   \  	 #fnstart#    \        #SPW#    $  !         $ Z ! &   #/SPW##fnend#</sup>  ' k                          <sup>   `   $ Z ! $ $      </sup>       and   '          e            <sup>   `   $ Z ! $ $      </sup>    ' d           ,<sup>  `   $ Z ! $ $      </sup>         ' k ?                ^ allauthors = "#SPW#" & tmpCifDataitem(dblocknum).RtfStyleNummber & " " & allauthors & "#/SPW#"        \par\pard{\*\cs   $  !   	 \cbpat17     B@             B@          
 }\par\pard  B@                      <sup>  `    $      </sup>   $     +      $    $     , $    +          $   
 $     , $    +          $    ,,  , $    +      $    ,   , $    +      $          $    +      $          $    +      $  $    +           n cifaddress(n) = "#SPW#" & tmpCifDataitem(dblocknum).RtfStyleNummber & "\cbchpat17 " & cifaddress(n) & "#/SPW#"        \par\pard{\*\cs   $  !   	 \cbpat17     B@           $    B@     }   B@                   	 \par\pard   B@          Email         _publ_contact_author_email  %                            $  !   ?     #SPW#   $  !   #  <b>Contact email missing</b>#/SPW#  ' y `;  d X;    #NOMIS# ' k @;                 #NOMIS#                        $  !          #SPW#   $  !   #  <b>Contact email missing</b>#/SPW#  ' y :  d :  k :             k p:      #NOMIS#         #SPW#   $  !   #  <b>Contact email missing</b>#/SPW#  ' k :     p rtfoutputstring = "#SPW#" & tmpCifDataitem(n).RtfStyleNummber & "\cbchpat17 Contact email address missing#/SPW#"     1 rtfoutputstring = "Contact email address missing" d P9                   $  !   MISSING       $  !   ?  e d 8     rtfoutputstring = "#SPW#" & tmpCifDataitem(n).RtfStyleNummber & "\cbchpat17 E-mail: " & tmpCifDataitem(n).CifDatavalue & "#/SPW#"   E-mail:   $  !  ' y H8  k @8             k (8      \par\pard{\*\cs   $  !   	 \cbpat17     B@             B@          
 }\par\pard  B@     | 7   7     	 \par\pard   B@                      $  !   ?     #SPW#   $  !   "  <b>Authors are missing</b> #/SPW# '   y 6  d 6    #NOMIS# ' k 6                 #NOMIS#                        $  !          #SPW#   $  !   "  <b>Authors are missing</b> #/SPW# '   y 06  d (6  k  6             k 6      #NOMIS#         #SPW#   $  !   "  <b>Authors are missing</b> #/SPW# '   k 5      \par\pard{\*\cs   $  !   	 \cbpat17     B@             B@          
 }\par\pard  B@     o 5         J  put in array until decide how to display (i.e. single col or double col?)  2  ` P	  ] X	  ] p	  ] 	     ' b   A  Standard formatting done by CifExtractUniv.GetCifData autoformat    4  Extra Rtf and Acta C formatting should be done here         I -------------------------------------------------------------------------     _chemical_formula_iupac   _chemical_formula_moiety  _chemical_formula_sum   %         +  determine if H atoms present at this stage         $  !   H   %          ' ^  d 2  ' ^  k 2  k 2    b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `    L ----------------------------------------------------------------------------          _chemical_formula_weight  %    k 1    b   ' b    #SPW#   $  !   #  <it>M</it><inf><it>r</it></inf> =     $  !    #/SPW#   b+ `          L ----------------------------------------------------------------------------          _symmetry_cell_setting  %        $  !   %    $  (     $  ! '       k 0    b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `     _symmetry_space_group_name_H-M  %      k /        Add this to previous cifexpdata     % CifExpDataCount = CifExpDataCount + 1       b$ `   ,    #SPW#    $  !         $  !    #/SPW#   b+ `        L ----------------------------------------------------------------------------        $     %  i.e. all syym_cell_settings the same  	 TRICLINIC K T      a,b,c,alpha,beta,gamma    _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_b  B@   b   ' b    #SPW#   $  !     <it>b</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_angle_alpha   B@       b   ' b    #SPW#   $  !     &alpha; =     $  !    &deg;#/SPW#    b+ `     _cell_angle_beta  B@         b   ' b    #SPW#   $  !   
  &beta; =    $  !    &deg;#/SPW#    b+ `       _cell_angle_gamma   B@       b   ' b    #SPW#   $  !     &gamma; =     $  !    &deg;#/SPW#    b+ `  
 MONOCLINICK T     a,b,c,beta         _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_b  B@   b   ' b    #SPW#   $  !     <it>b</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_angle_beta  B@         b   ' b    #SPW#   $  !   
  &beta; =    $  !    &deg;#/SPW#    b+ `     ORTHORHOMBICK T     a,b,c    _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_b  B@   b   ' b    #SPW#   $  !     <it>b</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `      
 TETRAGONALK T     a,c        _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `       RHOMBOHEDRALK T   @  a (and c if diff from a?), alpha (and gamma if diff from alpha)          _cell_length_a  B@   $  ! '         b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   $  !          ' d X$    b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `     k #      _cell_angle_alpha   B@       $  ! '         b   ' b    #SPW#   $  !     &alpha; =     $  !    &deg;#/SPW#    b+ `     _cell_angle_gamma   B@       $  !          ' d "    b   ' b    #SPW#   $  !     &gamma; =     $  !    &deg;#/SPW#    b+ ` k x"    TRIGONALK T     a,b,c,alpha          _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_b  B@   b   ' b    #SPW#   $  !     <it>b</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_angle_alpha   B@       b   ' b    #SPW#   $  !     &alpha; =     $  !    &deg;#/SPW#    b+ `  	 HEXAGONAL K T     a,c        _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `       CUBIC K T     a      _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `     S  
   a,b,c,alpha,beta,gamma     _cell_length_a  B@   b   ' b    #SPW#   $  !     <it>a</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_b  B@   b   ' b    #SPW#   $  !     <it>b</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_length_c  B@   b   ' b    #SPW#   $  !     <it>c</it> =    $  !     &Aring;#/SPW#   b+ `         _cell_angle_alpha   B@       b   ' b    #SPW#   $  !     &alpha; =     $  !    &deg;#/SPW#    b+ `     _cell_angle_beta  B@         b   ' b    #SPW#   $  !   
  &beta; =    $  !    &deg;#/SPW#    b+ `       _cell_angle_gamma   B@       b   ' b    #SPW#   $  !     &gamma; =     $  !    &deg;#/SPW#    b+ ` n      j  ---------------------------------------------------------------------------------------------------------    _cell_volume  %        k      b   ' b    #SPW#   $  !     <it>V</it> =    $  !     &Aring;<sup>3</sup>#/SPW#   b+ `    L ----------------------------------------------------------------------------          _cell_formula_units_Z   %      k     b   ' b    #SPW#   $  !     <it>Z</it> =    $  !    #/SPW#   b+ `        L ----------------------------------------------------------------------------          _exptl_crystal_density_diffrn   %      k     b   ' b    #SPW#   $  !   #  <it>D</it><inf><it>x</it></inf> =     $  !     Mg m<sup>&minus;3</sup>#/SPW#   b+ `          L ----------------------------------------------------------------------------         0 this marks usual end of col if double col output     L ----------------------------------------------------------------------------          _diffrn_radiation_type  %        $  !  	 LOOPARRAY                       $    _diffrn_radiation_type          $    $  (                      $  !   ,      $     $  (                y X  k P               _diffrn_radiation_type  $  !   %    $  ( k   k     b   ' b    #SPW#   $  !         $  !     radiation#/SPW#   b+ `          L ----------------------------------------------------------------------------        $  !  d       _cell_measurement_reflns_used   %      k     b   ' b    #SPW#   $  !     Cell parameters from    $  !     reflections#/SPW#   b+ `     _cell_measurement_theta_min   %        k      b   ' b    #SPW#   $  !     &thetas; =    $  !    #/SPW#   b+ `           _cell_measurement_theta_max   %        k x    b$ `   #SPW#    $  !     &ndash;   $  !    &deg;#/SPW#    b+ ` k      N ------------------------------------------------------------------------------        _exptl_absorpt_coefficient_mu   _pd_char_atten_coef_mu_calc   _pd_char_atten_coef_mu_obs     (calc.)   (obs.)   %    k      $  !     %  mu only needed if transmission geom:       $  ! '         $  ! ' 
          _pd_spec_mount_mode   B@     $  ! $    TRANSMISSION  ' d    b   ' b    #SPW#   $  !     &mu; =    
            mm<sup>&minus;1</sup>#/SPW#   b+ ` d    ' d  k   d     b   ' b    #SPW#   $  !     &mu; =    $  !     mm<sup>&minus;1</sup>#/SPW#   b+ `     k @     L ----------------------------------------------------------------------------          _cell_measurement_temperature   %      k     b   ' b    #SPW#   $  !     <it>T</it> =    $  !     K#/SPW#   b+ `      L ----------------------------------------------------------------------------        $  !      _pd_spec_shape  B@   b   ' b    #SPW#   $  !     Specimen shape:     $  !    #/SPW#   b+ `     _pd_spec_size_axial   B@     b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `     _pd_spec_size_equat   B@     b$ `    &times; #SPW#   $  !         $  !    #/SPW#   b+ `         _pd_spec_size_thick   B@     b$ `    &times; #SPW#   $  !         $  !   	 #/SPW# mm    b+ `     _pd_prep_pressure   B@       b   ' b    #SPW#   $  !     Specimen prepared at    $  !   
  kPa#/SPW#   b+ `     _pd_prep_temperature  B@     b   ' b    #SPW#   $  !     Specimen prepared at    $  !     K#/SPW#   b+ `       _pd_char_particle_morphology  B@     b   ' b    #SPW#   $  !     Particle morphology:    $  !    #/SPW#   b+ `         _pd_char_colour   B@         b$ `   , #SPW#    $  !         $  !    #/SPW#   b+ `   d h	      _exptl_crystal_description  B@       b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `     _exptl_crystal_colour   B@   b$ `   , #SPW#    $  !         $  !    #/SPW#   b+ `       _exptl_crystal_size_max   B@         b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `     _exptl_crystal_size_mid   B@         b$ `    &times; #SPW#   $  !         $  !    #/SPW#   b+ `         _exptl_crystal_size_min   B@         b$ `    &times; #SPW#   $  !         $  !   	 #/SPW# mm    b+ ` k      J  end of crystal data -----------------------------------------------------     write out data as rtf:           b         $ `   %    + `     $ `   %    + `                  {\cbpat17\cellx4000\cellx8000   B@   b    '                    \intbl    $ `    \cell       $ `   
 \cell\row    B@                   
 }\par\pard  B@     o   	      2  ` 
  ]  
  ] 8
     ' b    _diffrn_measurement_device_type   _diffrn_measurement_device  _pd_instr_location  B@         determine if area detector used    $  !   %         $  ( "d      $  ( "k     b   ' b    #SPW#   $  !         $  !    b+ `         $  !  	 iffractom   $    
      b$ `   #/SPW#   b+ ` d 8    b$ `    diffractomer    #/SPW#   b+ `     k     $  !      _pd_spec_mounting   B@       b   ' b    #SPW#   $  !     Specimen mounting:    $  !    #/SPW#   b+ `           _pd_spec_mount_mode   B@     b   ' b    #SPW#   $  !     Specimen mounted in     $  !     mode#/SPW#    b+ `           _pd_meas_scan_method  B@     b   ' b    #SPW#   $  !     Scan method:    $  !    #/SPW#   b+ `       d         ' d    i.e. reset to default          _exptl_absorpt_correction_type  B@   b   ' b    #SPW#   $  !     Absorption correction:    $  !    #/SPW#   b+ `       _exptl_absorpt_correction_T_min   B@         b   ' b    #SPW#   $  !     <it>T</it><inf>min</inf> =    $  !    #/SPW#   b+ `           _exptl_absorpt_correction_T_max   B@         b$ `   , #SPW#    $  !     <it>T</it><inf>max</inf> =      $  !    #/SPW#   b+ `       d ~  k ~      _pd_meas_2theta_range_min   B@       b   ' b    #SPW#   $  !     2&thetas;<inf>min</inf> =     $  !    #/SPW#   b+ `           _pd_meas_2theta_range_max   B@       b$ `   , #SPW#    $  !     2&thetas;<inf>max</inf> =     $  !    #/SPW#&deg;    b+ `       _pd_meas_2theta_range_inc   B@       b   ' b    #SPW#   $  !     Increment in 2&thetas; =    $  !    &deg;#/SPW#    b+ `        end of powder data           ----------------------------      d     Single crystal data         ---------------------------          _diffrn_measurement_method  %          k |    b   ' b    #SPW#   $  !         $  !    b+ `         b$ `   scan  $      b$ `   #/SPW#   b+ ` d x{    b$ `    scan    #/SPW#   b+ `     k @{      -------------------------------       _exptl_absorpt_correction_type  B@   b   ' b    #SPW#   $  !     Absorption correction:    $  !    #/SPW#   b+ `       _exptl_absorpt_correction_T_min   B@         b   ' b    #SPW#   $  !     <it>T</it><inf>min</inf> =    $  !    #/SPW#   b+ `           _exptl_absorpt_correction_T_max   B@         b$ `   , #SPW#    $  !     <it>T</it><inf>max</inf> =      $  !    #/SPW#   b+ `          L ----------------------------------------------------------------------------          _diffrn_reflns_number   %      k x    b   ' b    #SPW#   $  !         $  !     measured reflections#/SPW#    b+ `      L ----------------------------------------------------------------------------          _reflns_number_total  %        k w    b   ' b    #SPW#   $  !         $  !     independent reflections#/SPW#   b+ `    I -------------------------------------------------------------------------     _reflns_number_gt   _reflns_number_observed   %      k xv    b   ' b    #SPW#   $  !         $  !     reflections#/SPW# with    b+ `           _reflns_threshold_expression  _reflns_observed_criterion  B@       b$ `    #SPW#   $  !         $  !    #/SPW#   b+ `        L ----------------------------------------------------------------------------          _diffrn_reflns_av_R_equivalents   %    k t    b   ' b    #SPW#   $  !     <it>R</it><inf>int</inf> =    $  !    #/SPW#   b+ `          I -------------------------------------------------------------------------     _diffrn_reflns_theta_max  %    k s    b   ' b    #SPW#   $  !     &thetas;<inf>max</inf> =    $  !    #/SPW#&deg;    b+ `      I -------------------------------------------------------------------------     _diffrn_reflns_limit_h_min  B@       b   ' b    <it>h</it> = #SPW#  $  !         $  !    #/SPW#   b+ `         _diffrn_reflns_limit_h_max  B@       b$ `    &rarr; #SPW#    $  !         $  !    #/SPW#   b+ `         _diffrn_reflns_limit_k_min  B@       b   ' b    <it>k</it> = #SPW#  $  !         $  !    #/SPW#   b+ `         _diffrn_reflns_limit_k_max  B@       b$ `    &rarr; #SPW#    $  !         $  !    #/SPW#   b+ `         _diffrn_reflns_limit_l_min  B@       b   ' b    <it>l</it> = #SPW#  $  !         $  !    #/SPW#   b+ `         _diffrn_reflns_limit_l_max  B@       b$ `    &rarr; #SPW#    $  !         $  !    #/SPW#   b+ `        I -------------------------------------------------------------------------   $  ! " G  &j  K   can skip standard refns      _diffrn_standards_number  B@         $  ! $       MISSING K   ? K T    *  just request the lot regardless of values  b   ' b    #SPW#   $  !     Standard reflections:     $  !    #/SPW#   b+ `        _diffrn_standards_interval_count  B@         b   ' b    #SPW#   $  !     measured every    $  !     reflections#/SPW#   b+ `           _diffrn_standards_interval_time   B@         b   ' b    #SPW#   $  !     frequency:    $  !   
  min#/SPW#   b+ `       _diffrn_standards_decay_%   B@       b   ' b    $  !   $    #           #SPW#   $  !     intensity decay:    $  !    %#/SPW#    b+ `       d k    #SPW#   $  !     intensity decay:    $  !    #/SPW#   b+ ` k k    NONEK   NAK   N/A K   NOT APPLICABLEK   NOT APPLIED K T          just return this   b   ' b    #SPW#   $  !     Standard reflections:     $  !    #/SPW#   b+ `   S j    $  !   $    #           (  looks like a number so standard request    b   ' b    #SPW#   $  !         $  !     standard reflections#/SPW#    b+ `        _diffrn_standards_interval_count  _diffrn_standards_interval_time   B@     $  ! (   _diffrn_standards_interval_count      $  !   reflections    $    $  (     b   ' b    #SPW#   $  !     every     $  !     reflections#/SPW#   b+ `       d h    $  !   reflections    $    $  (     b   ' b    #SPW#   $  !     every     $  !   
  min#/SPW#   b+ `       k g      _diffrn_standards_decay_%   B@       b   ' b    $  !   $    #           #SPW#   $  !     intensity decay:    $  !    %#/SPW#    b+ `       d (g    #SPW#   $  !     intensity decay:    $  !    #/SPW#   b+ ` k f  d f    *  just request the lot regardless of values  b   ' b    #SPW#   $  !     Standard reflections:     $  !    #/SPW#   b+ `        _diffrn_standards_interval_count  B@         b   ' b    #SPW#   $  !     measured every    $  !     reflections#/SPW#   b+ `           _diffrn_standards_interval_time   B@         b   ' b    #SPW#   $  !     frequency:    $  !   
  min#/SPW#   b+ `       _diffrn_standards_decay_%   B@       b   ' b    $  !   $    #           #SPW#   $  !     intensity decay:    $  !    %#/SPW#    b+ `       d  d    #SPW#   $  !     intensity decay:    $  !    #/SPW#   b+ ` k c  k c  n c   &c     G  end of single xtl structure ------------------------------------------   k 0c     M  end of data collection -----------------------------------------------------          write out data as rtf:           b         $ `   %    + `     $ `   %    + `                  {\cbpat17\cellx4000\cellx8000   B@   b    '                    \intbl    $ `    \cell       $ `   
 \cell\row    B@                   
 }\par\pard  B@     o ha  P
      2  ` 
  ] 
  ] 
  ]       ' b     _refine_ls_structure_factor_coef  B@         b   ' b    #SPW#   $  !     Refinement on     $  !    #/SPW#   b+ `     $  !      _pd_proc_ls_prof_R_factor   B@       b   ' b    #SPW#   $  !   #  <it>R</it><inf><it>p</it></inf> =     $  !    #/SPW#   b+ `           _pd_proc_ls_prof_wR_factor  B@       b   ' b    #SPW#   $  !     <it>R</it><inf>wp</inf> =     $  !    #/SPW#   b+ `           _pd_proc_ls_prof_wR_expected  B@     b   ' b    #SPW#   $  !     <it>R</it><inf>exp</inf> =    $  !    #/SPW#   b+ `           _refine_ls_R_I_factor   B@   b   ' b    #SPW#   $  !   #  <it>R</it><inf><it>B</it></inf> =     $  !    #/SPW#   b+ `           _refine_ls_goodness_of_fit_all  _refine_ls_goodness_of_fit_ref  B@         b   ' b    #SPW#   $  !     <it>S</it> =    $  !    #/SPW#   b+ `         _pd_proc_wavelength   B@     $  !  	 LOOPARRAY                       $    _pd_proc_wavelength             $    $  (                      $  !   &ndash;      $     $  (                    $  !   $  (     y [  k [             k [    b   ' b    #SPW#   $  !   #  Wavelength of incident radiation:     $  !     &Aring;#/SPW#   b+ `           _pd_proc_info_excluded_regions  B@   b   ' b    #SPW#   $  !     Excluded region(s):     $  !    #/SPW#   b+ `         _pd_proc_ls_profile_function  B@     b   ' b    #SPW#   $  !     Profile function:     $  !    #/SPW#   b+ `       d Y      _refine_ls_R_factor_gt  _refine_ls_R_factor_obs   B@       b   ' b    #SPW#   $  !   I  <it>R</it>[<it>F</it><sup>2</sup> > 2&sigma;(<it>F</it><sup>2</sup>)] =     $  !    #/SPW#   b+ `     _refine_ls_wR_factor_ref  _refine_ls_wR_factor_all  _refine_ls_wR_factor_obs  B@         b   ' b    #SPW#   $  !   '  <it>wR</it>(<it>F</it><sup>2</sup>) =     $  !    #/SPW#   b+ `       _refine_ls_goodness_of_fit_all  _refine_ls_goodness_of_fit_ref  B@         b   ' b    #SPW#   $  !     <it>S</it> =    $  !    #/SPW#   b+ `     k PW      _refine_ls_number_reflns  B@         b   ' b    #SPW#   $  !         $  !     reflections#/SPW#   b+ `         _refine_ls_number_parameters  B@     b   ' b    #SPW#   $  !         $  !     parameters#/SPW#    b+ `       ^       _refine_ls_hydrogen_treatment   B@   b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ ` k U      _refine_ls_weighting_scheme   _pd_proc_ls_weight  B@       b   ' b    #SPW#   $  !         $  !    #/SPW#   b+ `     _refine_ls_weighting_details  B@     b$ `    #SPW#   $  !         $  !    #/SPW#   b+ `         _refine_ls_shift/su_max   B@         b   ' b    $  !   $     <           #SPW#   $  !   !  (&Delta;/&sigma;)<inf>max</inf>     $  !    #/SPW#   b+ ` d S    #SPW#   $  !   #  (&Delta;/&sigma;)<inf>max</inf> =     $  !    #/SPW#   b+ `       k S    $  !  d R      _refine_diff_density_max  B@         b   ' b    #SPW#   $  !     &Delta;&rho;<inf>max</inf> =    $  !   #  e &Aring;<sup>&minus;1</sup>#/SPW#    b+ `           _refine_diff_density_min  B@         b   ' b    #SPW#   $  !     &Delta;&rho;<inf>min</inf> =    $  !   #  e &Aring;<sup>&minus;1</sup>#/SPW#    b+ `       k `Q      _refine_ls_extinction_method  B@     $  ! $       NONEK   NAK   N/A K   NOT APPLICABLEK   NOT APPLIED K T          just return this   b   ' b    #SPW#   $  !     Extinction correction:    $  !    #/SPW#   b+ `   S @P    b   ' b    #SPW#   $  !     Extinction correction:    $  !    #/SPW#   b+ `       _refine_ls_extinction_coef  B@       b   ' b    #SPW#   $  !     Extinction coefficient:     $  !    #/SPW#   b+ ` n (O    $  !       powder       _pd_proc_ls_pref_orient_corr  %          b   ' b    #SPW#   $  !   #  Preferred orientation correction:     $  !    #/SPW#   b+ `       k HN  d @N      xtl            _refine_ls_abs_structure_details  B@         $  ! $       MISSING K   ? K   NONEK   NAK   N/A K   NOT APPLICABLEK   NOT APPLIED K T            ignore - just return this?          % CifExpDataCount = CifExpDataCount + 1         CifExpData(CifExpDataCount) = "Absolute structure: #SPW#" & tmpCifDataitem(structureno).RtfStyleNummber & " " & tmpCifDataitem(structureno).CifDatavalue & "#/SPW#"       S pL    b   ' b    #SPW#   $  !     Absolute structure:     $  !    #/SPW#   b+ `         $  !   flack   $          _refine_ls_abs_structure_Flack  B@   b   ' b    #SPW#   $  !     Flack parameter:    $  !    #/SPW#   b+ ` d 8K      _refine_ls_abs_structure_Flack  B@   b   ' b    #SPW#   $  !     Flack parameter:    $  !    #/SPW#   b+ `     _refine_ls_abs_structure_Rogers   B@         b   ' b    #SPW#   $  !     Rogers parameter:     $  !    #/SPW#   b+ `       k I  n I       end of single xtl data   k I     H  end of refinement -----------------------------------------------------       write out data as rtf:           b         $ `   %    + `     $ `   %    + `                  {\cbpat17\cellx4000\cellx8000   B@   b    '                    \intbl    $ `    \cell       $ `   
 \cell\row    B@                   
 }\par\pard  B@     o  H         *       f x           _computing_data_collection  B@           *         $  !     $ f ( *  $  !     $ f ( ,                _computing_cell_refinement  B@           *         $  !     $ f ( *  $  !     $ f ( ,                _computing_data_reduction   B@           *         $  !     $ f ( *  $  !     $ f ( ,                _computing_structure_solution   B@               *         $  !     $ f ( *  $  !     $ f ( ,                _computing_structure_refinement   B@             *         $  !     $ f ( *  $  !     $ f ( ,                _computing_molecular_graphics   B@               *         $  !     $ f ( *  $  !     $ f ( ,                _computing_publication_material   B@             *         $  !     $ f ( *  $  !     $ f ( ,           ]       'processprogsactaB  *          #SPW#     $ f ! ,    Data collection:      $ f ! *   #/SPW#.  ' ,      ,   #SPW#     $ f ! ,    Cell refinement:      $ f ! *   #/SPW#.  ' ,        ,   #SPW#     $ f ! ,    Data reduction:       $ f ! *   #/SPW#.  ' ,        ,   #SPW#     $ f ! ,  %  Program(s) used to solve structure:       $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,  &  Program(s) used to refine structure:      $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,    Molecular graphics:       $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,  4  Software used to prepare material for publication:      $ f ! *   #/SPW#.  ' ,       
 {\cbpat17 A@     ,A@       } A@ d @    2         ]           *          6  retrieve datablock id from last tmpdataitem extracted      $  ! 0' .         	 \par\pard   B@         \par\pard\plain{\b Compound   .   \b0}\par\pard    B@    	 \par\pard   B@       #SPW#     $ f ! ,    Data collection:      $ f ! *   #/SPW#.  ' ,      ,   #SPW#     $ f ! ,    Cell refinement:      $ f ! *   #/SPW#.  ' ,        ,   #SPW#     $ f ! ,    Data reduction:       $ f ! *   #/SPW#.  ' ,        ,   #SPW#     $ f ! ,  %  Program(s) used to solve structure:       $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,  &  Program(s) used to refine structure:      $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,    Molecular graphics:       $ f ! *   #/SPW#.  ' ,    ,   #SPW#     $ f ! ,  4  Software used to prepare material for publication:      $ f ! *   #/SPW#.  ' ,       
 {\cbpat17 A@     ,A@       } A@            d ;  A@2    k ;  k ;  o ;      ]                    A@4                     -  should have list of strings proglist(1 to 7)          and combined info (1 to 7)            final output:      *          both' 6    d :    all ' 6    k :    $ h     For   6    compounds,    $ j  ' 8d 8:    $ j $  ' 8    k :                   $ h        $ h       8  ;    $ j  ' 8    d 9    8  .    For    6    compounds,    $ j  ' 8  k h9  d `9    8  .    $ j $   ' 8      k 09                
 {\cbpat17 A@     8  .  A@       } A@ o 8      ] h    :     K T    datacollection      data collection:  ' ,        K T   cell refinement:  ' ,        K T   data reduction: ' ,  K T  $ program(s) used to solve structure: ' ,      K T  % program(s) used to refine structure:  ' ,    K T   molecular graphics: ' ,      K T  3 software used to prepare material for publication:  ' ,    n P7  ]          holds list of prog names   ]   
       ?  ]   ' @  ]     ' B   
 test data:  ' D    + >       :$ f ! *  + <  = "  structure 1, data collection prog    ] D          ' F     H     *          J     H       ,  need to compare each prog to previous progs        J  :$ f ! *  H  :$ f ! *    ' L    L            J$ >   H+ >   ' F  y 5  d 5   ' F  k x5     J          F       unique prog      B   ' B    B  H+ >   ' F    H  :$ f ! *  B+ <     d F   k    H          B        all the same   :+ h       ,  $ <    :+ j       d 4     :+ h       ,$    :+ j             B         $ <    for   ' N      ' @     
  now have:   8  printprogname(..) to progtypecount containing prognames     ;  progidx(...) to totdblocks containing num corresponding to        $   printprogname(num)            can then say:       &  computer prog: printprogname(num) for       4  if val(progidx(?)) = num  then print datablockid(?)         H     *         H$ >             @         ' @    N  H$ P  ' N    d 2    N  ,    H$ P  ' N    k X2  d P2  k H2     H            B        :$ j   N   :+ j       d  2    :$ j   N   ;    :+ j       k 1             k 1  o 1  1     Attribut e VB_Nam e = "Cif ActaC"
 Public Type Xuth orData
C8lAs S ng0Addres$s 6IDIn teger:Fo0otno ;EndComp rProgsD	Avalue	RtfStyleNo
{/0PrintsCoord inatefBo oleanFl aggedGeo`metry-S orted	Yram+SynopsBiDontQA cknowled@gementTeXinCIF
LaStart?dDAIdAbstract?CA.TExpPrepVWRef@^TFig
Dim<()uAfn0coun>Hatoms*s@JaY 	*kC2pdmure@quiredp}xn @?{c ombined(7
listd

Sub Build@Paper(f8ile!A, 8rtf!nArDrai|)
l=  False
<Re@"(1C`rsEtc
/= 0PIUCrF=A8e
Iucr 
=I
'  erase any ex ingE! :
tmp	!Opena	For A&p 6#2lo!Kill 7 cif in a"&`ne>DtoIf *TheE' T s.PuaInb&HOfL ?s $
_If
  set datablocks@	8SetVNB wria H to!.1(c ept headԁbG map sectiogKBody&
@e ' clTud`g endMatt%save c	D t.lastAf "(O<dnZƵ8@= 1 ToG$@V`(dn).`1uct:rGetT`e dn,cu/AdpeN|ex`|*x`c	r	`E_
1Wq. AndaendH!6te#7 'MsgBox "doneЏ:axSubc# D(=1@6out/0q78dSQB?p0rtUniv.(0, "_q&_t&_title")rF 3   np"P=10 /m(C y?"(Q0# SPW#" & ummber0" <b>TQ missP</b>#/b@;a0 Exit P?s@8ZQNOMIS#A@? !&q@"#1n1B)xStr1_8"=a  6a)$U  t1)!8o o n 	6G -]A(.- #SING9.!P1	?6?249& "3q]2TctFFpF_fG !/Kz"
!!sHup>"*R #fnsQM"* CN?;N0Oi#</;A;20$n 1b{\cbpat17 !lif^0Para\ outputst ring
Ci fRtfWrite.@ 1, "}"
Get | authors

If P  tSynopsi s = True Then>  ` StyleCount >$+ 1@
ReDim Ke@serve $(0) -tfV!qname p"F acifitathe_s# \pard\pl ain{\*\c0s" &Kg&  "\v\b\ch cbpat19 C6 \b0} 
BU' wˆ\b 	  Extract Univ.data(0 w_pu bl_secti$onFI")OFalst   For n1 To blockcAw
tmpD@m(n).val@= "?"ĈArtf	 "#SPW#A\AwNummber@e" <b>? @miss@</b>#/B&Exit  0D 6C NOMISA(End IfNext @:8aMSLStructure EMbQMng&e#!?"?$D)I1)of|@d9E?3f _ZESING	[A  a"ilcShq@d0_;`ዒParaL%tStar!"Lin@L=0@cat㶟&̓tfab? Ο΂ 6Ab~s΋ aOgeϲIgOgifOgLOg_UNg9g$*.ggSk5ggkRg2r="#gg@h g oz>t	pI{gtag ztaozzogzH?/yg gU	w]/-/-/---g !g	%Ixg%jgZ?
ggA`g5* ggBgJ3en=oficofeͿͷcomment_f%[_fCom_f1ߚ	=fa' 
u 'o
!gra<phBasQnum1	6nnbnAA[?A5in3<<˴ taitem(n ).RtfSty leNummbe r & " <b >Comment  is miss ing</b># /SPW#"
J   ' tCiz( parasnuname = tmp VDaAblocku_ _publ_section_clExit FoBrzElse	r tfoutputstr  i"#NOMIS                	  
                                               !  "  #  $  %  &  '  (  *  9  ,  -  .  /  0  1  2  3  4  5  6  7  8  )  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~      8nd If,Next "nIf  TLhe : n+1` To d `Xcount$ l StructureFa X)<߂ ѺhET`fchN18' 8 ?,DHvaluA" SING"ȟ@.?0)}W"2]&C _2Y썛PXW' Wr  1, "{ \plain\sg"  P`,
W}A	#Start`;Lin$Գ@C
Sub
  Acta CBuildEx p()
Dim!As SB
w#3CN+ 1 e!	PreserveJpH(A"Fa cifitate _exptl_prep
q08\6a d9{\*\c99\v\ b\chcbpa0t19 $\b40} @eriala<rd' Now
 @  - i f more t@han on e@n join e m together(?>"0 CExtrac tUniv.GetQn(0/+|w")0IpMaKu,qEMI/"#?uoj8O`B  *pO70H7(!57). 7qPXbOOٟtaL_g_ϩ̩_ra_j_P)j __c _   ybdoϏgzrt9+pgSorOkAif A t4EQ+/_>u(q_>_>q	#OMiv93ߖ:ז"vbCrLD'x2`*OZ4  ϖa4tte{}@\P nrtab les f'eaXch 0c:3s PIntegeQs 0=Q~sH/
/

P`H Co unt)
Rt fCifStyle(XCo. Dhname =  "Facifit ate_expt l_table#`"

  \W0riten 1, "\par d\plain{ \*\cs" &  .{o "\v \b\chcbp at19 pExd\b0}= <@7 Comp d ldaock(s). vBlID9+Re' !fParah<b>%-</b>('9it>Cr@ystal e<F/ ,Get@Exp D sl%Bcollections&C?'<HRefinement%$UIFGeomTs.@_BondB s, Pr intFlagged	etryMContactA/AngleCMTors7H symcodes'b#

$fn2Hy@drogen"
I
End IfNext3e Z rtfoutputst 1gᚠJEÑ=/+ 1 eDim8eser|veO
?/rX߬߬ܬr߬ɬ9 Gd!
I$f btr@YUniva (0À_publ_sʇ")3Fal@se TheIFor n`1 T*o"bc
    tmp A1m(nvalu?"	!B#SPW#O	bNummber)   eri  missing#/
 'Start2L)_= @it %d (#NOMIS%5 5@ p"#Structure"/a/"/v5/@A/ifL%/@/B(/-y  yP  t1)--nt`	*9_Ef-O'O'pjA`0SINGA!*E##? pe"& Q2"
AL PvbCrLxA3'ExGxa Y  Ju2сOe B`e#t*9_cput@f
؏GؔCputr programsǍBerP %OdF
Sub
@  ActaCBuild`Mat(p' acknowle<dgb{erencefig0j_cap6As S$@!Fs= 0DbA02FȎ&/&&&Cim fStyle(RtfCiCou0nt). na me = "Fa cifitate _acknowl edgements#"

 ~ fWritex  1, "\pard\plai n{\*\cs"8 &  \
 "\ v\b\chcb@pat19 uA@ck\b0}= ?
< 2
?
If AExtr actUniv.Getdata(0^_publ _section	}")Fals e Then
 For n	1 To "blockc
    8htmp0D0m(n).val2u?"'rt foutputs tring ."#SPW#% ۀNummber <b> ar@e missA( to omit  from the  RTF prep t, see  'Tools...OpABs' in
CIF w indow)</0b>#/&;Ex? DDIC4NOMIS<End IfNext V@OMag`StructureYuQ?b?b8bY.3#f^1UUU`ZUMfEFTHf y@ZSINGyA@*?,)сj& "ys%F StartgRLine
@=(@ Paraˌ!rd 
 ޠN+ 1 eDim  Preserv?o
_Ireferenceꏟ#@9RefOuycJu 
t@-tTt_OtOtOtOtif/Ot[Otx0 Otb>s_o_o;"#_o_op _o ߇tt0B_ota/_o_oꇟ;yOO Noj

[eS5-e !0e)oTwe$&e
e
 e	xeQee ?fe2eap0de#dddڧfig_caCᵿQ0OeFigOe24Je `
 e
eoojlfff?ffCaIG_ta3jR|_frJ\sFPY61 ext n
   If rtfo utputstr ing = "# NOMIS#" TheFor n l1 To d atablock`count,( n).CifStructure0 vFalseySPW w& tm
p AD hitem	PRt PyleN ummber &  " <b>Fig a capti ons are miss </b>#/QExi<t  ɄFnd IfNEcj1).jREg!X[valu
e@k"SINGI B?MW|"} Y}tzyStart@?Line

A=Q	@xWr zPara 1,
A
"\par d2"$	
@St C4+ 1 eDim Preserve :()
Ynam"HFacifi tate_@rce llaneous#?rd\pl ain{\*\cs?a\v\b \chcbpat19 GMsc\(b0} 7 Misc.	.< Sub
  Get*autho8rs( "'tr  As S
 C-"add.s(100)col, b footnoteiEra}Ab	aA0<
'
`} ExtractUniv.  (0, "_pu(bl__>")`	' determf why "f:
 
Goesecs
-`ly΂/<@ٌcdnu>m`e
p' re@  $if il' otherwi,e `' aean`ray o f loopeds@ ' @A)1 to@rows, 0`7sN ' NB 8heads ntd tin_
0 
bL3p	puCo@Tr8im(t1xn)ߡ^Q	=х?a?*_d)fc2{	_-.` 'tO a s` pC5T6kRP pV?f4P NsTnAr @rA3-zfF4F^
E2*LR	s`n -e' sot-. ?,=<RAWIDk3  OH(O`EQ1aa1Qa)xanew?bTs TruG%, bC@3zq
P "QE%!B/H39$ '(QMopt8
commapoA*Inz(P7m,".>YC@0 RightR8rLen3)3%)A& LefOCV	6p
	\X.1YrPepinP(F,  Chr(13)M tr0OA "=py" rpo0O"b"fn 1uR<sup>Uf@Ʋxr"#_Rv0_Z/_ SPW##fne nd#</sup >"
End  If
If n  = CifLo opNumRow s - 1 Th en
allauthors J& ,tr & "< Chr(P96 +Ap(n). ^AddressID)5 
footnotesN a lseuI,MNext  '"#"tmpData item(dbl ocknum). RtfStyleр{mbep Aw"#/B
@@Wr 1,@ "\par d@{\*\cs.\ cbpat17 @5Para%l
A $}F$@0
ForB o acount
cifPn̨OrepiJn(	, A1D3)K,")0",," "r"  .,xTrimk%'j)4[[ MchDM c
_]K_]k_]C]JXo} \aa' Em8ailh`Ex tractUniv.Get d(0 5_publ_cont _C$_e")0Fa$	
mbDm    ̑¡valduea;?"D
!r tfoutput@jingu?@	1P<b>C " miss@	</b>>AExit y@
!QNOMIS#/Ba1a	`8H'f * iStructure#)2A1aa 2" s~O!O!%1o8>_O!3	-'ovdvH;)Dh)v)/ "= )E+%8ifp @8.SING"!<"<{	o E-I:E9^1EaJ"k/.6m>M"0teƙul+?d!A/RQSub escape:vg &L((haaMs are3Qa oa4oaJ OoamNO<O<6oataoa L77y`agOu9sV1_a_a_a_aYQaOO F
/0/0MO=O=-E= rd"
End  Sub

 ` GetCif ExpCryst alData(s tructure no As In teger)
 ' put in  array u ntil dec ide how  to displ 6(i.e. s ingle co l or dou
b? LReDim }v50  spacegroDup~Str E
tmpthanother	LCo  = 0' Stand ard formatt !Fne by@tract`Univ.H 0auto}ExA  Rtf % @Acta C's hould be+, Le>-E 
IfVd, " _chemical_`ula_i
uU"moietysum")@RTrue ThenBdetermi Pif H  atoms present@  is g@   .@findin@(om\item	).value@.HB"0!HPD= FalsEF	2
AIfC
@8ExpA#M+ 1	(J"#SPW#" & 7StyleNu mmber@"  &D#/Bd'VM#JweightF-,t , ,no).,<it>M</ <inf>r/]0f0_2<0'0sym metry_cell_se0m
aK=initcaps_vtCh=a)[rIt_E_E@SEAA 77B&__name_H-MUi' Addí viou s cifexp  +_/MGP!MGO& cHOO]9O`oVO5!p  Sele ct Case 
UQ (,) ' ҍall syym6se sp"TRICL INIC" a ,b,c,alph eta,gamma1tV=length_a0/21L;Rn?ki" }SaSS}l &A;l" xb{DQB 0rbQ	}PK cu2	 _[(uc 	1va_5yta1cr;`dP &degO1\O1D1CbE??????  &a/ /@K  ҏ#U???????2rOOO| i"MONOeeaOCHC tructure no, "_ce ll_lengt h_a"
Ci fExpData Count = QD+ 1	L(>) d"#SPW#" & tmp >@item(s) .RtfStyl eNummber -" <it>a<</ F@Yvalue=&Ari ng;#/~
tractUn@iv.Get 4dmn EbbcAntcAƃmangle_bet@B&!b;&de
ca se "ORTH ORHOMBIC " ' a,b,>c$ifaϏᪿ no󿇢8).  ɿ D  فf cfTETRAGONALf_f_f_fwt>E{"wE1o3taOwǇ"χt o3V*"& Ç"G{o3 χ#"VOHEDR$# (a nd c if  diff fro m a?), alphagamma,)Z th@OO_YOtOQ_*If/L!=Then
"Else_?/??E@-If?@BWc/x D|p&ߙoiQݙExSSۓB)ת)mpA)ioooooaoop?k)|RI{@,d$jU	 o).CifDa tavalue  & " &Ari ng;#/SPW@#"

 E xtractUn@iv.Get Dd  struct ureno, " _cell_length_b tppCount = "+ 1_&() 2"# tmp Nitem(|).Rtf StyleNummber<it>b</ F@,-΃ccan gle_alphRaBnt&!;1&de
as e "HEXAG ONAL" ' xa,c4G?aE}fA nf  gECUBICDDҪD#hdתDg#˦#EliAhb,c,u,beta,gammaif?&?&?&?&ojjxpE{cy=5y5"~ y}y ifEt E'VcsErv1y/!?aЦyVypA  CEOЁ2????a?P	ѯ6/P	ta#U??/1Q'/10J&rOOOEnd  Select
 
' - !jIf3_ta8volume"ETr @Then
AIf6o(?Կ))))))![VkOر<sup>3</a v' 0for mula_units_Z?d ???????4~Z???zu- --5 

If  CifExtr actUniv.Get "data (structu reno, "_ exptl_cr ystal_de nsity_di ffrn") =  True Th en
End LIfa^pD OC0ount &+ h1
(Y" #SPW#" &0 tmp Nitem	).Rtf StyleNummber" <@it>D</<Pinf>x/ G*7valn & " Mg m <sup>&minus;3</#/Q
' 'this ma rks usual e of c ol if doubleBoutxput !+_ radiatio@n_typeM   @rJ]= "L OOPARRAY"D For lcq1 ToLoop@Colxs
E	ù(0,į,h*; .1G!*nr*2*Row*(
V@x bnrNext nrExit ({+Blcah=mat(z"42,Z;)E_!_ _noSffbhFߋЈU{block˩`*S%aAPowdl<se,Ck_Acell_meas ment_ref lns_usedϑe7MExK]i.!C  parameters from O:`ecs;)g)theta_ io  o	xH0o?yoaˏ0a&
s;P?1>(ϋf*i''axs'$tLR)a&`ndash;SU&deg;FwOCAqH*abso rpt_coeffici@mu"pd_char@_atten_mu_calcobsFaH$, P (.)! ( *q[Q"_O.:_Or'  mu only needed񗁠nsmissЎ geom:sQpngP.qu).ano)r###@Y <pspec_mcP de"UCase("ATRANSMI SSIONpdm_quir0
O]"yHH6 6muH 5]kmʿ1̿
Eq|*%YomgF0FFO'PG%GE/or0pera}_
/r(r :01T2r` fDataval ue & " K #/SPW#"
'-H 
If d block (structu reno).CifS"Powd er Then

 Extr actUniv.XGet ' E,  "_pd_sp ec_shape 8pCount = + 1+_() "#ctmp'iHtemaRt ayleNummb]SEimen G:& !.1ize_axial"N= ,~A=equatJ=Ou}o&tns<; v=A=thick=vq^ˍc\ mm@}$Ad}prep_ ssJ}}Zu}ared at~"i̯kPa~taP_ pera!?"@ a?"?"ACc har_part icle_morphology""e"P  "DD"c !|ur
!?Rr0R,Qtaq"o1t41B
Else  % exp tl_cryst al_description ? /2fExCbF #=}qO"_as_Qo.P+sqmaxi/_/.id ϐּSV?>>oX>gW#Nnd IfO' e of L O'wr@ outas rt f:
For n11 To=tW9(nOHReiacopVF()wPWq!3 T@ranslaZsNext pte 1 {\c bpat17\c ellx4000 8 0numoBfprows0Int! / 2
|y\intbln 
bpSr@G)"\ 
 /e2\}\p1 >E0"Slub`  kllec믴 no As In teger)
 ReDim Ci fExpData(50 TLtmpthing
4anotherPdCount =@ 0

,t ractUnivP.Get "d   structur eno, "_d iffrn_meas ment_ device_t0ype""pd_in T_loc ation"
 ' determ ine if areactor  used
IfvQAD  r Zitem(\).value) zTrue Then
rjb FkS}CCD
Else,FaEnd IfÀPу+ 1	(1 "#SPW#" & >RtfSt yleNummber@"  QK^In C(1,ZI A om} vbTextComp w) > 0D_B@A8Y&p "#/@dY=o	
D B+e>rGHmBBPo|wd [a spec_m ?*`P-?E %?E).U1ESi| E:GifGM4Y!碄!!de_!_!_! _! d in'!l!(de"ta Ca_scathod?"?"߈C4" meBV#Bpdmquired$,  ' i.e.  reset tofault?Lnexptl_ absorpt_correc	?q?cAnA gOn7 b~~tT_y{?'I _8e]kta" <it>T</P <inf>0	  p_mO RmIBoI_8ax /h%)|, }_oZPH]axV?J9#c/*OOJ2ta_range#ԧ3!#&#ψJ!~2&"	s;#O&\#1\B_[O#2"?/%@O# .44" 8#444&de|g;E0""""inc51_F""_F_F""IncreA~v?F2' eФof p" -  oSle crystal  ݿy0t`+҆hӟ<YN``OOOM***
   ̿5R)#*; &6!V?ᝳ unt) = C ifExpDat$a(PCo&  " scan"  $#/SPW#"
   End If
'- FtractUniv.Get "d t struc tureno,  "_exptl_ absorpt_ correction_type |H
+ 1
&= "#cʀjtmp ~item(F).R tfStyleN@ummber VAL H M: & %1value'# ExT_min<it>T</@<inf>$   hA?G2y Gax
Ga,f MEaxFE
]
IfPIbsdiff rn_reflnPs_nu!c"Tr@[Then
'+u0uAu?OfAr meas@d sfu..(.
._total.ta..:..indepe nt2/]?/#..gt"!`+1 observedߟ11``ib. :;0/ witfhET?Bta=|t hreshold;A} sPs_cr`	r{)R,AFD\&UZa/+"X]HAoA(?*oXXav_R_equiMentsO)UBouotoqqRpt>҂8intvqC9).?dOB?--?q7OItheta_mp1oq0.."
s;80rS0&deg;AFFlimit_hwO *h* ___PW_.'UqU&rarr;>߿qk_ _ _ _ Q k_ ixf"0300t_^ > ifExpDat aCount) h= C(Pt&  " &rarr; #SPW# 40 tmp Nit em(struc tureno). RtfStyle Nummber ~fLvalueI0#/i
 E xtractUn@iv.Get d  s, "_d iffrn_re flns_lim it_l_min"D
r + 1	= "<it>l</  ax8[IO{Aq&ZO'&-? C
A If block SCCD  Then GoT o endÙst andards  ' can sk,ip@  ns8
 _num πlSele ct Case UA(߉P)A "MISSING
"?@' juDstque the log  less of 0  eg `hfS.a+!ions:J|taJF3Fg3inter
_c? *+$$measd every#ifmi+?%0%time%ңk*ѕ"IIfre`_ncy_H	jB@ʟ#A4ԇ#decay_%""Right?d_ , 1) Like "I ?("~~" 2nsity 2_=]%*Els>eF46Q!ta3L
n0d IffR["NHONEWNAR /c OT APPL`ICABLED0!VZpn thiXGό3taߜӜXX/5Aj7-O.-"'`moks l/a u soz"pGO\^{vmfq*)
otao\ds_o?9^QRname,vҘ=nxpinßS̻%"!;"`Q5 88/o#o#4_L"opҟm>#g9by%
q 
:+O:C:Of)J	0 Ec S::T?/M) ifExpDat aCount +  1
  If  Right(t mpCifit em(struc tureno).0value,  1) Like  "#" Theno V(x)D = 3SPW 7& oRtfSty leNummbe r & " in tensity decay: D } %#/=WElse^˛^]nd If^f' just@ requet he loga rdless of EsjiMƌwwStand'@-flectpionsxI*t ractUnivP.Get@d[ , "_dif frn_s s_r H_c"?I measd everyni+?%?%d(%time%-B4p#Iɑfra_nc߄j!m min###_%",--JDEe Se
endsŌ:
'  singl e xtl -s $
h
Tc<olU
	wrPj out Bas rtfA For nc10 To N
n 7YReA@codesF@(n))Wq. TranslabNext Cte 1_{ \cbpat17 \cellx40400 8 p;numofprows0Int}J / 2

zy\fblr\ 
e r)K\ 
 /eA2}\par1 d*ubSub #rpRefinemer AsB  eger ReDim(50'P1th,
 anorKIhI$@0	|ta|r_ls|_f or|ef0G-q,"#_P~ onApfGA8blockS!PowdpӺDpd_procp f_Ro
$,ozo~o" <it>R</P <infj> p / "OAͪ pѡw &`&o"wރO'G#expeqG"=cCg#	#ta9 	q7JR_I5uO55Ia6 item(str uctureno ).RtfSty leNummbe r & " <i t>R</ <inf>8B8/ = F& tmpCifDataA0value# /SPW#"
 
 Extr actUniv.Get d F  , "_refi ne_ls_go odness_o f_fit_all"! ; mjp`Count + 1H()u#] cxS#O <T
p d_proc_w avelengt2h If'vLO OPARRAY" Then m  @For lc21 To  ,Loop ColsG	@c3(0,Q_'L=1)*nr *2*Row*(
&nd`ash;"{Anr)Next nrG-#B E`Exit  p(n0d Iflc
E 	Exg/ggWFX o f incide`xradiati8on:Fj &Aring;kAeW o_ex@cluded@g s_ _ "_ETE$ re!(s)# 7EU""<tam"file_func3""Pro! %_"X"ElseGEER_f`o0r_gt&ob_H_H_H_^[Fsup>2</a  > 2&sigma;()]0WOL?wV1[aNs<ߑ?LwC0p:+!1c,ff?c0((epr/o?_num 	qln>t oo/&/&/& &9dfle\saparameter	?"_1B?@yHatomsPres666hydr ogen_treatm/tUl?#i?#?#?#?#?#m?30333_w eight_schemes////$$/Fgde 
l4Oit3(_ CifExpDa taCount)  & " #SPW#" Ptmp titem(st ructuren o).RtfSt yleNummberpfval$ue`#/
 
 Extr actUniv.Get d  v , "_refi ne_ls_sh ift/su_max"A = S+ 1
If Left(܇ zT, 1)% "<" Then3(0(&D elta;/&s igma;)<inf>m</ & %ZElsew[=8.nd If
mbloc6kˡ`SťPowdj
>D?diff_densityǄ	D&rho;LX Aring ;<sup>&minus;1<ip>rr&inrnt r&&in$j&aj&# EVF Pextinct ion_method@Selec t Case Uӡ ta)h@"NONE"`N
A / OT A PPLICABL%ED ' j@ust re n thisiUb_bif.Ճ $ corr #`%:c"
##G??V?@p$U&yO''coef B?o<7qa?" :efficient`Oe:4_f׎0_fr' pBgP   k3stak7_p@d_procpQp_or!_,"Trl/7OOO" P`
e6d 
a"7EpÕS{'xtl{ 	abu|tails0,S/j#SMISShINGS?TT @VTTignore -U?
'`USsx AbsoluteW:U<UKODOD`o++/#DD2ibInpA(1,^y`*flac"kp#vbT ~Compare)D;Ctaе.FH$OCaOOOOC PaperПUA?b?A_?O)H)v????t?YI%Z D _refine_ ls_abs_s tructure _Rogers"
   CifE xpDataCo@unt = D+T 1T(F) l" #SPW#" &0 tmp >item(xno). RtfStyleNummber -"  parameter: EA^valueB#/{
End IfSelect
^
' eof sin gle xtl d{me-1 ;' wr out4 as  rtf:
For n1 T2o
n(ntractU@niv.Rec`odesFĀ);\W!^Tr anslationPNext nBN 1, "{ \cbpat17 \cellx40400C8@@numof9rows8Int / 2*A\intblJ& "! + )A5B
\( @,<}\  d@Sub
  GetCompuProgs(5ReDihm pn ǿc؀, 7	uA$if -Y_c_l mO 

Fn, 1).Aqf=-tn.@!wo`:,|@z
e*"9ExWI!oog",2m d!  9red993 9R_solu?:':4_\ _{__gǟ5 o:Tf	HmoHular _graphicϱII 6EIT>;I:a:publi"cr_ma@^ialp^WWioIe(72Wifr!WQ|h8d As Str 'pbces
sbsaB
>IБu@he ca= rX/`kf`y 
 c~ollnjs.1z q\C  7:`3/W2F`PPQ%( s) used to Zve 				 #L			T				$?G	MP gP??ASo@ftwareVp$re`e K f`M


O="ċ9PP(
Z}`Els
eFPHtSor8tedi(Fap TGLdbind)L?g8g'`>@e,block from lastQ1T @`ed
ROZFZʢ'"wF\plain{\b dcBP\b0teYZ string =  "#SPW#"  & progn ame(n, 1@).RtfP DS@tyleNo |"  Data co llectiond: lCilTvaluep#/. "
& K2Cel l refinepment 6M3ᗉreduMD4Dram(s ) used t o solve   Nure@?'K5%'CoY''K'6R'Mo@ula r graphicsJ@?##7# Software!Fqprepma terial f or publi|ca *@W rite 1,  "{\cbpat17s%ParaSGt
}N ext n
ElseB{cess"`nd If Sub
!  ()
Dim  n As In teger
Fn@1 To 27dorBE
 ' should ha]list ofJsa(1b7' a!@combd info ``,output:I	Chcount@2 The Fmmer@"bo4th" !)allD" 
`
%(1)Tr@d
ms`RBAp@ds6 a- initcaps(h=d+`+idn͍   -, ;&Ƣ
h% #>O$5)`
!)EESdC*fl$.DlEhgdggs a(d anumHgi!?djSt!
Se Case 1 '~hQ;2탇c>|329w4?r`C9r5w?mq?ۄ"r6m?hXE&0P Ks?c?c<cq+S!NXp"tA20) ' holds ;kV sQ&iPdx(1?ef irsttime)*Bopa1
w= OogtxypeV3_ PF1Q'teP^Q Z?Y b!L inV!oa  4).nsetr_p.rFsassignpZV%Sm&no W'TqNviouRup/WY  B' ne#ceac~h
apEA%sa@BCompcRI,IC,2Re
, 07TpeX0%v	Letrae1	
#Exit #G`Fa"c]#03uniq}
 	- +  +QOt41/za!0: n
9%  c th '
*2Ymq
qsWou >sumC &6Atmp)	Aa_P;owҬM'L8..)<XR Int~a
dP=o
g1.Ttotd blocks d containi ng num c orrespondto
    ' printp rogname( )
' ca n then say: omputer ^og:j for(if val(Qidx(?)) =On databl`ockid !F or structno 21 Tourecount	IfJ69 T `    firsttime1True	`False"mli "mp!&	l,s(FE(", " $,nd@8LECNext\Hn5typ^H<(qAB&BgL& Gp"; "H98n
=Sub 
                                                                                                                                                                                                                                                                                         x                                    	                      	      	      	     "                       	      	      	      	      	      	      	     "                 
        
                       
   0       @   	 F   P                                       
                    	       
      	                   "    (       0       8   	          H       `    
       (       (       (                   	     "                   (       0       8   	          P       p                  
      	      	      	      	      	                    	 6      	       
               
   (    
   8       H    
   P       `   	      	     h                  $                                                                                                x                                      R    R              ME                          P    @T    <^    <    <    <    <     <     <            `       T        hV0           hXH           hZ              x             %                                              fX               j               l               p               t               v               z               ~                       `~            `                  
 
                                   i                                                            @                                            F F       @         @         @         @         @         8                                                    @                                  (                          `                                 `     File8	                    qq     i        `          (                                  `      !                       H          B@                                !                                  Add                           "@                                (    $x      !                       `    &      p                            `(      `*         `,         `.         `0         `2         `4         `6         `8         `:         `<         `>         `@         `B         `D         `F         J
                  x	         iN    	        )P	      	                               		   iR    	        iT          `          Z`
                                H
                         h
   +fP                  
  H  1 1      ih    
        ij            il    (        in             %   t                           iv            ix            iz          |x                  / /       `         `         @         x                  = =       @         @          @         @         @         @         @         @         0                           i                       %   `          (            %                     p  	 	      i          0                    V V      i          @\         @         @         @          h            %   `         @L         @L         @L         @L         @L         @L        @     X                     p  W W      i        @\       @         @      `	@                   %   `       @L      V @L       @L      Cif@L     coun@L     ) @L       @                           # #      i         @     ! @        @       @      @     ----@      @      blo@     Add                          `N      `8     ! `         `
          &                                (X                           i*       Z`,       `.       0                  	 	      i2      ! \  x               `                 b0               d                h                n0               rX               x               |                     8       x    0    0    X    0                0  P  8	                @  
  (    X    `  X    x             8       x    0    0    X    0                0  P  8	                @  
  (    X    `  X    x                             X                   >    3A ( * \ R f f f f * 1 9 4 1 1 b 3 3 8 b \ 0                                                                 3                                           	          (    	          0        8        @        H        P        X        `    	          h        p                                             (       	      	       
   (       8       H   	    h       x          	                     
                           	                                   	             @       H       P       X       `       h       p    <   x   	            	      	      	     "       	        "       
               "   @       h    
                   	     "       	              
       
      	               $              
   (    
   8   	    H    *   `    
       $                  "       	               @   	       H	       P	       X	       h	   	         x	    
   	       	       	    
   	       	      	  "    	   	    	       
    4   
       P
       X
       `
       p
       
       
       
       
       
       
       
    
                 (    $   0       X       `    
   p    
                          	     "       	               4                                0       H       P       h       x                         
                     $                      
   0    
   @       P       X      `  "    h       p       x                                                                                                    (       0   	          8       @       H       P       X       `       h       p   	          x                                                     $              $              $   (       P    &   `           ,              ,              &          @    ,   P          	      	 ,      	        "       
              "   8       `    
   p   	 4       "              
      	      	                     @   	 $   `   	 *                                                                      8      @      H      P      X      `      h      p      x                                                                                                  (      0      8      X      `      h      p      x                     "                                                                       (      0      8      @      H      P      X      `                                                                                                                   	 (   (   	          P   	    X   	 .   p   	       
                                                                (       0   	       
   8      H      X      h      p                                              	       
                                        (      0      8      H      X       `   	       
   h      x                                                                	       
                       0      8      H      X      `      h      x                	       
                                                                        (   	       
   0      @      P      `      h      x                                        	       
                                               (      0      @      P       X   	          `   	          h    
   p          	 "                                             *           P   	          X      h                             *             	                                  (       0    *   @       p   	          x                                   ,              	                      0      8      H       P    2   `          	                                             2          0   	          8      H      `      h      x           ,             	                                               2            X    	      	         `        h             
        
       	                	       
       	      	      	      !    
    !   	      	       
   0!    
   @!    
   P!    
   `!    
   p!    
   !    
   !    
   !   	      	         !   	     "    !    
   !       !   	    !       !   	 8    "       8"      P"      h"      "      "      "      "      "   
   "      "      "      #       #      @#      H#      P#   
   X#      h#      p#      #      #       #      #      #      #      $      $      ($      0$   
   8$       H$   	          P$       h$       $       $       $       $       $   	      	 T   $      0%   :   H%   	    %      %      %   
   %   	    %   	       :   %   	    (&   	    H&       h&       p&       x&   	 &   &   	        &      &   	     	     &      '   @   '      X'      h'   	 ,   x'      '      '      '      '      '      (      ((      @(      `(      p(       (      (      (   &   (      (      )   &    )      H)      X)       p)      )      )   &   )      )      )      *      *       *       *      @*   
   P*       `*   	          h*       p*       *       *    
   *   	          *       *   	          *   	           +    $   +       @+    
   `+   	          p+       +    
   +   	       
   +      +  B    +       +       +       +       ,        ,       8,       H,       X,       h,       p,       x,       ,   	         ,       ,   	          ,       ,       ,       ,    <   ,       8-    
   @-   	      :   P-    $   -   	    -       -       -        .       .        .       (.       0.       P.   	         `.       p.   	          .       .   	    .       .       .       .    
   .       .      .  "    .       .       /    "    /    
   H/       X/       p/    "   /    
   /   	         /  "    /       /       /       /       /   	       >    0       @0   	         X0   P   h0   	        0   ,   0      0    
   0   	       x   1       1   	          1       1    2   1       1   	 $   1   	 &   2   	 (   @2   	    h2   	    x2   	    2   	 
   2   	 d   2   	     3       03    
   83       H3       X3   	 l   h3       3       3       3       4       4    
   (4   	          84      @4  "    H4       P4    2   X4    *   4       4    (   4    .    5       05    "   @5   	 (   h5       5    
   5    
   5   	          5       h6    <   x6       6       6       6    
   6       6    $   6       7        7       (7       07   	       
   87    &   H7       p7   	      	          7       7    
   7       7       7   	       
   7   	          7    (   7       8    8    8       X8   	      	          `8       p8       8       8   	       
   8       8       8       8       8    
   8    
   9      9  "     9       (9       09    $   89   	    `9       x9       9   	 0   9   	 4   9   	    :   	      :   	 $   @:       h:    "   p:       :       :    <   :    
   :    <   ;       H;       P;   	          h;       p;    &   ;    V   ;        <       <        <    
   0<      @<  "    H<       P<    
   p<       <    
   <       <   	         <   	     "    <       <       <    
   <    ,   <       =   	          (=       @=       P=      p=   4   =   	    =      =   >   =      >       >       (>       0>       8>       @>       H>    ,   P>   	         >   $   >      >   *   >       ?   	        ?   >   ?      X?      `?   	         h?       ?       ?       ?    
   ?       ?       ?        @       @    
    @       0@       @@       H@       X@   	 4   p@    ,   @   	          @       @    
   @       @       A   	 "    A       HA      PA   6   XA      A      A      A      A   	        A      A   	    A      B      B      B       B       (B       0B       PB       hB       xB    J   B       B       B       C   	      	      	         C  "    C        C       @C    
   HC    ,   XC       C   	       2   C       C       C       D   4   D   	    HD      `D   >   hD      D      D       D       D       D       D       D    *   D   	         E   $   0E      XE   *   `E      E   	        E   >   E      E      E   	         E       F       (F       @F    
   `F       pF       F       F       F    
   F       F       F       F       F   	 4    G    ,   8G   	          hG       pG    
   xG       G       G   	 "   G       G      G   6   G       H      0H      HH      XH   	        `H      hH   	    H      H      H      H      H       H       H       H       H       I    >   I       XI       pI       I   	      	      	         I   	     "    I       I    2   I    *   I   	       *   J       @J       PJ   	 (   pJ       J    
   J       J   	          J    
    K       K   	          (K       HK       XK    
   pK   	      	      	       x   K       K    :   L       HL       PL   	    XL    
   `L   	    pL       xL   	         L  "    L       L       L       L       L       L   	       
   L       L       L       L       L   	          L       M       M    
    M       0M       8M   	      	 .   @M       pM    
   M       M       M       M       M   	       &   M    
   M       M   	          M   	      	          M   	          N       (N       8N    
   @N       PN       XN   	      	          `N       xN   	          N       N       N       N    (   N       O    :    O   	          `O   	      	 &   hO       O   	          O   	       .   O      O       O    
    P   	          P   	 .   (P       XP   	 *   `P       P       P       P       P       P   	 0   P       P   	     P       Q       0Q       PQ        pQ    &   Q    &   Q    &   Q        R   	          (R    
   0R   	          @R       HR   	       "   PR      xR      R   2   R   
   R      R       S      S        S       (S   	       ,   0S       `S   	      	         pS   	         S       S       S    6   S       S       S    
   T        T       (T       @T    
   `T    
   pT       T    
   T    
   T       T    8   T       T       U       U       0U   	    8U   	      	    PU       `U    >   pU       U   	          U   	          U   	      	          U   	      	      	      	         U   	     "     V   	    V    
   (V       8V   	      	    @V       XV   	          hV    
   xV       V       V    
   V    $   V       V   	         V  "     W       W       W    (   W       @W    &   HW       pW       xW      W  W        ^    ^ 0   ^ H   p X   ]   ]   ]   ] 0  ]    ] X  ]    ]   ]   ] 0  ]   ] X  ]   ]   ]   ]   ]            !   \/   `	o (   `      x         V         xA@~    x                  V     x         ? ReDim Preserve CifFileline(CifFilelinecount + CifFilelinecount)   $   b        '    @       $           V          '    @     B@        A@    o             ! B@                     $  !   ! B@                  ----------------------  ! B@   Add crystal data block  ! B@   Add powder data block   ! B@     o    @           ' ' n        !          ! $    z$             B@B        y p   k h                x  z  B@l       z   B@          0 ActiveDocument.AttachedTemplate = MacroContainer    A@r   Z ' n    RB@       v    d     B@       k                                                                                                                                                                                                                                                                     following redisplays cif ]             ! '     !  '   s  ! '       ! '     ! ! ! '     ' l    stops fmcif closing the cif  A@r  '     ! ( d     -        ( "      Me.hide       (  (     (        ! ! (     z$  B@    B@       (       ( $ ZA@     ' f   ' b   ' l    z$  B@       turn off revison tracking    9    9    9   q   |        Unable to complete process       error $  ' $ o @          Kill IUCrCifFilename'     x  x    $         0     V       x  x    $   A@~     x  x    $          '       ! ! d      V        ' l  o `   8      x         V  x    xA@~ ' \     
  kill bkup] x    x  x    $     $$$  ' $            V   ! &  A@~ W##fne     kill vcif output   ! !   /vciftmp.cif       >      V   ! $  ! !   /vciftmp.cif A@~    g 0  o (           run from a button  z     ! $ * Unable to locate RTF for conversion to CIF    $  ' |   k     z$  B@    ! B@H      z       B@     A@         ! B@H         B@       $   r           ' o            run from a button  ! l      No RTF text has been selected     $  '     |   k     z           x  .rtf ' z      k p    z       B@     ! ( d]     
   
              
           $      '                      ! ( dd     No table data found   ! ( d    k        ! (   B@        $   r           ' 
   ' o X  (         run from a button  ! l      No RTF text has been selected     $  '     |   k     z           x  .rtf ' z      k     z      B@     ! ( d] h    
   
              
           $      '                      ! ( dd     No table data found   ! ( d    k       ! (   B@        $   r           ' 
   ' o       ]   ]   '    ]   '0    ]   'h    ]   '    ]   '    ]   '    ]   'H    ]   '    ]   ]   ]   ]    ]   ] 0  ] H  ] `  ] x  ]   ]   ]   ]   ]   ] 	  ]  	    ' 8  ' :  ' <  ' >  ' @  ' B  ' D  ' F  _publ_section_synopsis  +        ;   +    _publ_section_abstract  +        ;   +    _publ_section_comment   +        ;   +    _publ_section_exptl_prep  +      ;   +    _publ_section_exptl_refinement  +         ;   +     _publ_section_acknowledgements  + "     ;   + "   _publ_section_references  + $     ;   + $   _publ_section_figure_captions   + &       ;   + &    %  now put into array of new cif lines?          i.e. print all to file     x  .tmpcif.spw                 V          x  .tmpcif.spw  A@~       x  .tmpcif.spw                          V           .  read file line by line until find e.g comment      x  .tmpcif.spw                $   b                   see if section found           <b>Facifitate  ' H  H   
      new section       set all collections to false        $  then determine what to collect next       ' (   ' *   ' ,   ' .   ' 0   ' 2   ' 4   ' 6      H     $            Syn K T   	  synopsis     ' (   ' *   ' ,   ' .   ' 0   ' 2   ' 4   ' 6    Abs K T   	  Abstract      ' (  ' *   ' ,   ' .   ' 0   ' 2   ' 4   ' 6    Com K T     Comment       ' (   ' *  ' ,   ' .   ' 0   ' 2   ' 4   ' 6    Exp K T   	  Exp prep      ' (   ' *   ' ,  ' .   ' 0   ' 2   ' 4   ' 6    Exr K T     Exp refinement        ' (   ' *   ' ,   ' .  ' 0   ' 2   ' 4   ' 6    Ack K T     acknowl       ' (   ' *   ' ,   ' .   ' 0  ' 2   ' 4   ' 6    Ref K T     References    ' (   ' *   ' ,   ' .   ' 0   ' 2  ' 4   ' 6    Fig K T     Fig captions  ' (   ' *   ' ,   ' .   ' 0   ' 2   ' 4  ' 6  n 	     !  check following line isn't blank d 	       not section found   '  add current line to current collection     (          8                   d (	    8   ' 8      8+    k  	  d     8   ' 8      8+    k   k     *          :                   d     :   ' :      :+    k h  d `    :   ' :      :+    k 8  k 0    ,          <                   d     <   ' <      <+    k   d     <   ' <      <+    k   k     .          >                   d `    >   ' >      >+    k 8  d 0    >   ' >      >+    k   k      0          @                   d     @   ' @      @+     k   d     @   ' @      @+     k p  k h    2          B                   d 0    B   ' B      B+ "   k   d      B   ' B      B+ "   k   k     4          D                   d     D   ' D      D+ $   k p  d h    D   ' D      D+ $   k @  k 8    6          F                   d      F   ' F      F+ &   k   d     F   ' F      F+ &   k   k   k         V          x  .tmpcif.spw  A@~          sub to replace data in cif:        8  
        8$             d     8   ' 8  k     ;   8+    _publ_section_synopsis$     8A@J       k     :  
        :$             d x    :   ' :  k `    ;   :+    _publ_section_abstract$     :A@J       k     <  
        <$             d     <   ' <  k     ;   <+    _publ_section_comment $     <A@J       k     >  
        >$             d X    >   ' >  k @    ;   >+    _publ_section_exptl_prep$     >A@J     k     @  
        @$              d     @   ' @  k     ;   @+     _publ_section_exptl_refinement$      @A@J       k `    B  
        B$ "            d 0    B   ' B  k     ;   B+ "   _publ_section_acknowledgements$ "    BA@J       k      D  
        D$ $            d      D   ' D  k      ;   D+ $   _publ_section_references$ $    DA@J     k 8     F  
        F$ &            d      F   ' F  k     ;   F+ &   _publ_section_figure_captions $ &    FA@J       k      '                       $   '                    B@L            MsgBox CifFileString          ! ( d  B@             need to reset datablocks!  B@        $   r        $   r        $   r        $   r        $    r        $ "  r        $ $  r        $ &  r        o H  8	      T        d (       first find current       ] 
     1  find existing data in order to get datablock etc      N  %                      $  !   ?     N   is missing  '       y X  d P    #NOMIS# ' k 8                 #NOMIS#                        $  !          N   is missing  '       y   d   k              k       #NOMIS#         N   is missing  '       k P  d H                   $  !   MISSING       $  !   ?  e d     $  ! '       y   k              k     $  !   V(     $  ! 0  V( X    $  !   V(     $  !   V(     N  V( (    k 8  ]   '0
       N  add new lines to array, first clearing original lines and caching rest of cif       \              \$  !   V! X   J   the latter was set above           x is the datablocknum    y P  k H     \             if completely new data:    \$  !       %   i.e. couldn't find datablock            add to first datablock       MsgBox datablockcount       ' \k     V!          set endline to end of datablock     \$  ! ^  V(     \$  ! ^     V(         and add a comment from me  R   ' R    #:-) Above text was added by            `   R+ P   R   ' R        R+ P   %  reset line nums of specisl sections:       N     _publ_section_synopsisK T     V! ' :      V!   R    ' <  _publ_section_abstractK T     V! ' >      V!   R    ' @  _publ_section_comment K T     V! ' B      V!   R    ' D  _publ_section_exptl_prepK T   V! ' F      V!   R    ' H  _publ_section_exptl_refinementK T     V! ' J      V!   R    ' L  _publ_section_acknowledgementsK T     V! ' N      V!   R    ' P  _publ_section_referencesK T   V! ' R      V!   R    ' T  _publ_section_figure_captions K T     V! ' V      V!   R    ' XS   n   d         V!   V!             +               k      ' b      V!             b   ' b    $    b+ Z                  ' d  V!      R   b '      @ 
          R         $ P   V!       +        V!         V(                        b         $ Z   V!    +                 B@        o 0  
      h  f( V         f( X         f( Z      l     G   ' lj       j             n           f( X         f( Z    z   k     l  $    h  r ' p      p   
          f( X      p  f( Z    y 0  d (       f( X         f( Z      ' l  .  i.e. after first line, look at start of line!    k                j  	  G z j  ( "  i.e. started looking at beginning        f! X         not found yet         look from start of file          j        n           f( X         f( Z    z   k       $    h  $ ' p      p   
          f( X      p  f( Z    y x  d p     	  Exit For      f( X         f( Z    k 8             k    i   P      z     G   ' zj       z           $    v  x$    +                     z  	  G | j               z      $    v  x$    +                   o 8       ~(  ] 0  ] H    ! ! dA@        ) The following datablocks were identified:       '                    $  !         .    $  !        (contains structure data)     ' d @         .    $  !     '     k                       X The following log entries were made during and since the current RTF preprint was built:    '      
            '     d P      No messages have been logged.     '       k       For n = 1 To CifFilelineCount          If Len(CifFileline(n)) > 80 Then     " longlines = longlines & n & vbCrLf    End If        Next n        If longlines = "" Then        Else         ] parsereport = parsereport & vbCrLf & "The following lines are too long:" & vbCrLf & longlines         End If    ] `     .           (        ! (      e parsereport = parsereport & vbCrLf & "Do you wish to run VCIF (part of the IUCr's CheckCIF utility)?"          ! (     ! ( d  ! (     ! (     ! (     B@         ~  o   x       ]            0  H  `           Scripting.FileSystemObject$  .          x  %  .        ! !   \vciftmp.cif    B@    ! !   \vciftmp.cif   %  .       ! '       ! !   \vcifout.txt '          "  just in case left over last time:           V          A@~        " $     ! !    \runvcif.bat  " $              ,   " $      ! !   " $      ,   " $        " $      $  '                Unable to run VCIF       - VCIF error  $  '      @	  k 8	  _ 0	    A@           %     A@     just to make sure!     x   d   k         .            - output from VCIF    (      ! (             $   b                      '      0     V             	      VCIF reported no errors   ! ( d    ( The above information was output by VCIF  ! ( k       ! ( d  ! (     ! (      ! (     B@          !       (      !      (                 V          A@~       o   x    ]   ]     !   \CoreDic\notes.cif '         MsgBox lookupfile     %  '           %  '          ) For n = 1 To tmpcif.CifFiledatablockcount    - MsgBox tmpcif.CifFiledatablocks(n).CifBlockID         Next n        MsgBox tmpcif.Ciffilename     MsgBox tmpcif.CifFilelinecount    ]         !     %  '         ! $     MISSING K T  , Refer to CIF dictionary for more information  ! ( d      ? K T        , Refer to CIF dictionary for more information  ! ( d    S     !   ! ( d    n       (          - notes for authors   (    E The above information is based on the IUCr notes for authors (Acta C)   ! (      ! (      ! (      ! (     B@        o   0        $     _pd_          A@       d x    A@       k `  o X      ]        8           '    .            - dictionary information    (        ! (         _  ' \      \   
        \       _  '            
        data_     \       \    $    '        MsgBox dicfile    d (   ' This data name is not in the dictionary     $  '   |   k   d   |   k   ] P  ] p    !  	 \CoreDic\       .dic '     ]            ]                    ]      Scripting.FileSystemObject$  .           %   d     ' This data name is not in the dictionary     $  '   |    k        %  '           %  '               !      8       %   ' 8               8  ! ( d   ! (      ! (      ! (     B@          ! B@     ?       '           !       - MsgBox tmpcif.CifFiledatablocks(n).CifBlockID         %  !         $        y  ?  k ?                 
  G   ' j     ! 
       look for shorter dataname:          ' _ >      $    _   G         $   ' j        '         _  '          
        ' d (>         $   '     MsgBox dataname  x =  k =   =   =  d =      %  !   ! (           ! (    ! (     ! B@     : The above is part of the core CIF dictionary (version 2.2)  ! (         !       (      !      (   k <  o <  0    ]                  '    .            - dictionary information    (        ! (         _  ' \    start at 4 , i.e. _pd_         \   
        \       _  '            
        data_     \       \    $    '        MsgBox dicfile    d ;   ' This data name is not in the dictionary     $  '   | P;  k H;  d @;  | 8;  k 0;  ]   ]     !   \PowDic\      .dic '       ]  (    @    X  ]   p                ]      Scripting.FileSystemObject$  .           %   d X:   ' This data name is not in the dictionary     $  '   | :  k :      %  '           %  '               !      8       %   ' 8               8  ! ( d   ! (      ! (      ! (     B@          ! B@     (9       '           !       - MsgBox tmpcif.CifFiledatablocks(n).CifBlockID         %  !         $        y 8  k 8                 
  G   ' j     ! 
       look for shorter dataname:          ' _ 8      $    _   G         $   ' j        '         _  '          
        ' d 7         $   '     MsgBox dataname  x `7  k X7   P7   H7  d @7      %  !   ! (           ! (    ! (     ! B@     . The above is part of the powder CIF dictionary  ! (     !       (      !      (   k p6  o h6       X6  ] 0  H  `  x                   Scripting.FileSystemObject$  .          !   \tmptex.bat    %  .           ! '       !   \tmptex  '          "  just in case left over last time:    .tex                V            .tex A@~         .dvi                V            .dvi A@~         .tex                             \end          V         " $     !    \tmptex.bat   " $              ,   " $      !   " $      $  '              Unable to run TeX        - TeX error $  '        3  k 3           A@               3  o x3      ] 0  ] H  ] `  ] x    H3    b          ! ! dA@        ' b  d 3  k 3    ! l      ! ' 
    d 2     (       | 2  k 2     (  if same as last time - don't go further    
  ~         (       | h2  d `2    
' ~k P2    
 
 $   $   
 FACIFITATE       (       | 2  d 2      
  __ '         
  __ '          
      d 1     (       | 1  k 1    
     $   '   
  
    $  ' N        N  $    #     N  N    $   ' N      d (1      N  #  '          
  G   N     $   ' Nj k 0    N  $    _Table  G   N  N    $   ' Nj       k 0        now have dataname and datablock                   $  !         N  $  !   $  ! ^  %  '     ' k  0               ! !            (  already identified edited publ sections  d /     #  track revisions for publ sections:          9    9    9   q H/     )  switch off tracking if not publ section:   N       Case "_publ_section_title"  _publ_section_synopsisK T     _publ_section_abstractK T     _publ_section_comment K T     _publ_section_exptl_prepK T   _publ_section_exptl_refinementK T     _publ_section_acknowledgementsK T     _publ_section_figure_captions K T     _publ_section_referencesK T S -     (       n -  k -      $     MAYBELOOPED                 $  '         $   '     N  $  !   $  ! ^    % $ ' "        "            V( X      loop_   V( (      k ,  d ,  k ,    V!       .   was cifendline - why?    ]   
         V( X          + &   N  + &     ;   + &  ' This dataitem was not found in the cif.   + &     ;   + &   N$ &    A@J   $ &  r           '                       $   '                    B@L            ! ( d  B@          B@          ! B@      V!   ! (  >   textbox numbering starts at 0    ! (    ! (     ! ! dA@       d *       goto line no.       
 FmCif.Show  ! B@      V!      ! (  A   textbox numbering starts at 0    V! (   ! (      ! (   k  *    V! X  ! ( d    o  *           update existing cif:     ] D(         ] @       append new file :  *        $   b       .         ,     . ' ,     X)     V          ! ! d     ,   ! ( d      ! ! dA@       o  )  X      2     K T   !   \CoreDic\xtlblk.cif  A@(   K T   !   \PowDic\powblk.cif A@(   S (  n (  o x(  p(    l Attribut e VB_Nam e = "Cif Edit"
P ublic Type  TSearchS ng
s ,text As &linenum	$startpos	&End 

Dim WANew W ordDocClassTmp | FileL ^()Sed TBoolean  Sections,g%Redisplaying& FacifitateRtfTo&A6vHead+< !Sav,ed#^DJLogMsgDoN@otShowHInfoJUpdMTable8
FmCross(C@k9ĖdEneXA]Comma@Q LastStyleASSub  RegisterEventHlerSet .App  -a
GACT@rAll(newsour4ce4S Open IUCr nFor @e6#1
Close AKill
Print, %0Inpu"{'Re!-PresernvB}(acou@+!B`Do Wh x A@ EOF(1na`-n + n ~ C#1,	b(oopn= `@	i|ols.CDatTockL`H)CBKOn Err =GoTo escl
cif.ZboBox1.C@rKaBa#1 d%B) AddItem K ".  BlID
Na<"- 6@ cry l b=powder!:Jl(ReBuild/(quitrtfb "ɲ7  K"L= 0True@`1Each adocJ!p}.um"= If UCase(!.Full)Iucr`filey) T<he`-yCh anges:=wd#d xit @>C If$6AAe @:@aC. Pap),, lv,.~!ta:"=
' ive.@edTemPr= Ma croContayB+Unload 2#Wait}Buk= Falsx.XejesEBr.o folHlow@w r}s pY!	m fm!Zop, leftA heigh width]f
  .TGRfLPSHBBW!%PQB.Fp.Siz$'@ stops cdathe$0mBq @P"SCapp1	F71$ & "$ -0 & (titl 
'Me.hid  e
Dif	M-(,)3i#Ou
_
ϣt0.3T?0UE'  turn off-vison track 
With ;
.rTRe!	.⁏
4!6sJ Z
yX\Ёpp! *("U@ to coCeCprocess ", vbOKOnly,A 9$es"rx̗ Pa'_m&2NA%(QLenM)+<4)QXϘɘme, eĚ__c- oǜ>1%%nRiϤ?l?So1Wkbkuptmp `
 '3)E$$$|A	v out;m.Path/Q."/"ZRrkB  
1Ġo".  run from a to prN""Dr88@ RTF / for conv ersion t o CIF",  vbOKOnly , Facifi tateName )
Exit Sub $nd I f
Docum ents(Iuc rRtffilenZ.Activ) v
eT.Cont d.Sel ect
 
 8ToCif.Run Q, " False `
Upd a 8W@ithNew ;GenText 
er d  HQllapse0 dir R 	:=wdCo
Stabr \Era4a0ble( @ =a  9' run f rom a bu tton
IfA.Type 'wdIP TheresponL = MsgBox ("No RTF te has @been s_e~d|!f5DI(UCr@`FD & ".rtf"G> @*TruFmClipboard. Az} =. &́Dim fm@tAk s As Str8ingBYcount > 09F@n1 TVLtf
I=&(n) HvbCrLNlt:TA
9 VB`!Cb   ia fd3,Mult iPage1.ValuP0
Show cn2s#,=  
p6@-"Cf

  !gb]!{ggtgg@ g{Eg g .6fifMf:fb@fef ff!r ff1f-_pfff(SSPgQ!SbitofnewS)S0$@Syn(10  )wAbs
ComExprAckcRefF<ig!ngqBoolea0Z r0@P>CoprIntegerw߿@r 
= 2&f
		3);_publ_s"on_syno0psiso
(2MR;
(1o_ abstractWj0ocomSAZ_Pe xptl_prepq:_
_@refinewExrL<_ac knowledg4o`perenceqj@figure_capt@
' 	 put in array of* T !Tl0s?qi.e. pra` alla
Oppo".tmp.spw"R Apd;#1eClo࿑ Ki
onameboiP#1,2 jc
ead   by3s дilppe.>gR'In IaDo Wh Not EOF0
L c1
k'e if`  
T7mark8Inp(<b>^"q   eFw%set"c_TWat  @determwhat#xm[h= gng=`Q e
 Coll ectingEx p = FalsEr\Ack.RDef.Fig.Se Case  Mid(bito fnewcif, sonmar k + 13, 3),"Syn " ' synoppsis
  bTruAbsyComꄃ"Qk tractk _wk_Bk"5meni5O;Q;?kkA5prep(k5= wExAJrrefine6d#Q_~`acknowl_6 C6Q9y6?Qk` erenceCQx5`Acaption_A___UxEnd 
' chJe fowM l n isn't  blank

E' not foundadd cur>ttocdonIfއ hThe   NTewCt@28z ""
1  }7tz()If  vC??4u
j%:xco oV1n m!o o= 0C?o o'ngW{nנo	   oo
  m!o$obuqc$#?oo͸&PfoS&O:ҽam`!oo[0C?ooiioro	& MCcor#oo[0C?oogoo	ooMckm@!oMA[C?oog猾MoSO:O:L: m!of   Else
NewRefCount = 	h+ 1	(l) T bitofnewcifLEnd I 
If  Collecti ngFig jTrue Then3 ! V 2  h @""!M	[&iig	3>1/
Loop
Close # Kill IUC rCifFile name & ".tmp.sp w"
' su b to rep lace data in  :ʑ&Syn\> \d -F]E	 g[3;@,R*In5 "_@publ_so n_synops0is",A ()E0KC/Abs6  6E	6F6 6abstract6A6@6Com6  6CQ
]commen$# 4Exp7!e;#1
=exptl_p`k6a r>rc$	bEx
refine7nnckWAckA b[7Q
]acknowledg"!	8 OQAe[CQ
]7erencea lewA5q5 "`fig ure_captionP* 0tsStraAPgFor n 1P To ul/c/$& vb0CrLfw(n )
Next 	 Fm.hid'MsgBoxeC
#`T0.q  	}e@Show
 '  needC~set"~blocks!Tools.pSetDErax
 gPB[ rN r(0> B'"4S,ub `  (f0etchAs S",wPs()  Integer, OB"al AlreadyExwedaItemrBeat2a= ' `firstP  cur07t
Di m rtfoutput ~'
љUd exisaƙorderg "Uni`v.Getq(0, J9Fa9.Q"!.0[ i,. val@= "?-=[a is pmiss6xxit fC"#NOMIS#A5 p > G4'uctFP9]+/E/eyP	 '~"	׽o#!Fo#ifo#af#`SING#!/'/'8	&/%זB?d111?;?em58ID_T"T5KdStartLj?n)a; Dataitem .CifEndL ine = tmFp x(n)x 
Extract,ed@d namfetch bnd If
Dimcifl! s(10  ) 

' add  new  t o array,  first c learing  original'a YcachDre (of  ^
   For xA 1 To b lockcount If(xrBIDs$Then '  the latt er was s et abovee2' BisBnumExit  T^Next xiiompletely#F:`"" Pi.e.  |ldn't  3E_\ZIMsgBoxOBUu@!UKStar:t0#HendzAz m?GIp%U + 1CC  Na SmmenRrom mDzĶ MF 
(	)"#:-) A t@ed by "  & FaitateN& 8Now+" "_@l`[6 Xs6s@pecisl^c`tionsR7S elect Ca8se "_publ_s   _synopsisS"5>Lo @+j6- 2C	absRA`#gcg*)coSdC_J??a@l= exptl_prepExpP?refՁ}GRef?-ack nowledge%hAckZ
/
u1~\/)3=Perence	/eC3	JX		figure_cap"LtFigoD&
$eZ
ElsDeT wVn		SeFile!"tn~
n"c0
Oif""BbqPtXs(ncQp	+	

oldf
#= p - 1c!ReaAJserve9(E"L
((			5=  w>n

gTools.Set#rs
  Su2b&unbcnd (Findx A s Str`, srchsaIntegercharposz^Or>@ġPmtVe(s!SPchnd.Sй= 11	A= P3в	0rrGr:40@	2		$OSa1In([Q
,fC,, vbB`rypparep@
>  
= F
"pA8gӃR7P1afQ, look at a~!ge,aG< 2C*rS@be`n 
 no@ǡ d ye`'c
fab
qQYG	Nrn  = srcht erminate  Then
C ifFind.l@inenum 0PstartposTExit F@unctio rEnd If
rFInStr(1$, le2(n), str,  vbTextC ompare)
If >> 0= <
$
or 	lse
' )j:NS rv}SubrReplac@eAll(f ther As  ing, rep
a  Integer
= 
1
F0or n	Tocount@in)(Mi0.%ECk	< 2lZ E%1 @#
- @-<#@z kB  Parse (+On Err	HGo!escapeDim #AortGe
longAs	8Upd@@z Fm . Box.AI= "׀ follow ablocks  were id entified:" & CrLfQt
    cف$Structure
&&H& ",. 	BID" (con\taGQ A)'# Epvb#
,t
#+A3log @1rie$3made dur6a`@since x curr@ RTF pG@t w as built8Len(Fa
c`<tGRtfBdLog) > 33f% "No messaghave  been ged.6Ź'%"x\FiC'NAW(Oa8'h=@jCME9'!)""$'#I'<;s  to~om %Ff@m
SetfNewNotes7fm.Cap g6Nam DicBut ton.VisixblebCD o you wish run @VCIF (t ofbTIUCr 's Checkutility)?"
InfoLabelh"QMMp
	WLNoPTru(pGoto0V1>+ShowU(\:|_RunV(co_3thip!fs, f, dm@t, out v0fm, tmp/0q1CfaCre;Object@("Scripng.A1SysteZm"@g"ff@s.getf`3(2n @f.C opy Applica1#.MacroCUer.Phath\	`	.
(OOId	.drivp? ooa.txt' jus t in cas e lef'ver la`time@OpF"E@eT#qlopa KillQrA6= She Chr(34)		0!
.batAM"e, Ь?2h&p6R
NormalFocusPREQ@responP= Msg`3("UVn eo<"OKOnlyPcD -?e!'s.&Lo
Waitab0 `)1)exists(V)U tPcake s!6D XELoopa)R7R`5hput fr<om"@&S= FarS[&InQSD&RWhP8 L `EOF(1pQK c#5`?
v`?0b &@jCv+&~!) <}d?V Zsed no sEfe"Qabo|i[&fчby$.]a`O.A\\\cZ\_FD\ L!C=b  + 2Top	 ']FpFdQFFqG] kupr(AY7"!c! aT\Do4oV0>O]<\Codre -\n]'AЉ
= Tools.Put@InArray(l
 9Da @B(t˶ mpcif)
 'For n = 1 To t .CifFile databloc@kcount M sgBoxs(n)tBdID ^@Next npfa namezlineuDimq item As  D 
=Tools.(Get"I 1Fr4om 1(r, <1,6 Se lect Case U(4r/`value" MISSING"
F8Notes.T. "Refer t o CIF di ctionary f more in ma%-?*Els `+< 

End H;Tag 9ZCap4Fa @itateN & " - nKBAauthors<I@ELabel."The abov
M is bmd on t1@IUC (Acta C)L@No.Vi`sible+MJG@otoButV# 9ton	ShowSub
S ub Looku0pDicStringIf LeftH4)@)"_pd_" D܃Pow@ c;|CM`:If?;	tx, Y, newb9 fm, srchxF@0
e@&!`New gQ
(>2GhkgH u1H
xIn+(@%, "_"-x > 0+Yfx +A    4YhA"! 5& Mid8	jY`ax` 1`'s
8!r espon= (b ` a?1ap ",  vbOKOnly, +DExit S@bCcg!F
lZAs  - Y
acro Conta pr.PPath\N\n"D .` w #!st @Re<ad`, 9Writ2`orAPppen$3iTrisUseD@efault`-TruA-
EFaY#fs
S[fs`CreObj@("Scring.a#SyscG!M Gfs.!%ex s($)$P@@_ Y_ 'SbqifwPutvInArrayz`tr~s4vocmsfQ &,CrL~f!3	1zA~
ՈXAyG`=2`Z`!:`Go`/
xt.Focu&1!0ri -c:
)V PJpxofZG{Vn + RighkLenP)BOD.qG` qF > 5""
nW		"Y$' qstPA1SlastHusc= >Do@7-1wwv<zZ 2 poDi',]j 	k x=7  $Do- 2i'faA@pGop+[48Cur7%Star ʋo3b3lgth1&+ 4*:Hideíp:g93ߪ= py֪s p of2yR& (vers2.>2!%@	+ 2p*XTopkSUp}b~@ ħ9Dٯ&9{H 	H 	K¿`#ԋlh6["44 '  rt  at 4 , i.e. 1BE?Str(438q{8?c2 ? ?`5 ??Q琷 tionary" , vbOKOn ly, Faci fitateNa@me)
   Exit Sub4 nd If
EXlse 
6E.D@im tmp   As CifFil P,lookupf 4String
= M acroCont ainer.Pa th & "\PowDic\" XdicB . "  6st Fo rRead Z = 1 orWri
t2Appe
n!3Tris~UseDefahult!- T8rue	+	Fa 	0$sfs@Set fsCre Objec t("ScripH.SysteJm"If.IrexHs() Then/responsPMsgBox( "This daPta n   n ot in the @O<A
{=A{Tools.Put@~InArxrayI/I D )blocks('Br nO1 To.
Ml count
m,sgA&CrLf@Is(nANext Onew@Besfm.@NotesT.
Got oBut.VisiblW}L#lNo\Z	V@ton	ShowJÇ( KFocu@XforwMic:
srchBF@2+ 1
S*'#H.)+B!6ID
@VK.URight(R, Len) - 1\ 8 > 5bEn >#)h' (  ) shortere`)lastuscor>!|Don@M@= "_"E`Lef[	Kb6 poIn(G,,[`(> 0"f
 @ D3@' D"$  Loop Go xV ;৔]Curj(KckStaFr2{SelLgthB2M+ 4Hide` ~rInfoLabel.Ca oA e abovep  of!powdOCI~F	jI H"+ 2`STopg%3
!  S	}
`  RunTmptex(pJ` gz%On Error escape0
D fs, f(, `ret, p v	Pfm mpstrplo~L_q_q[q	tPfs.gdetq(Mς_"\" .batudA.driv`?	 c ' Ljurca ul%P< 0r 0 timeAO`Qj."ч ㅱ#10WClo  Kill!KdviO
O1n".O Pt $, 
"\pa
 Shell(Chr(34)P" 0Ц Normal2o@(W#	uM!?"UnaQzto  run TeX/&!	g@ e-#-%3'
Wabఀ F0 Lj44Fetch1Item0(2qVSd1,dis_ rtfstyle`57:
&:Resume rqPEdixted4#pUpeA)F
}qq PcrwS.Typasdwd&IPh=: 'SA"aAc
t0;DЎment .TrackRe>v@@P)5.
@' if sas';don't go fur 6r"L0rClicked$ Fҳ=dUCF(1](8	@, 10)) "FAaITATE
_	_	Z	a!3*blkPoǅ"__A1-wSoof
f%4c]/3vRb0<@"#"
,*ӯ5hashy"#= + , hashpo s - 1)
 End If
 If Right (fetchda taname,  6) = "_T able" Then 
B :LefQlLen) 6 
' no"w ve p a block@
For n c1 To$cou0nt
,(n@).CifB8ID 33id5retitem Tools.GetD{I 2Start,J	@  v n]ny`Next \A ctiveDoc ument.Re visions.Co >= z already id ified ed `d publ se% 4lsetrack r) f 
:
With K!
.TA# HTru.PrHintFa.ShowAAA#swi@ off &ing ift/$Sel2 Case"_1_D<_tit 
syn@opsis"abs#tcomeTexptl_prepref8ine@i ledgB	*figure_capt@erence=Ei̚n<d9#U?c0caU|(g, 11bMAYBE@LOOPED
   ciflooplnoH?
A`
Val(J
ktiy`L AzyyY,  kGeD ExLedaar  `"_ BĹ>Ap8-L4`	0 ' wasend8`why?
 Dim missw`!A(10) As Str>  G`
ۭBL 2&A!n3b;o4pThisnotu@(in the! .5
 ReplaceIn`;,$), 5, CErYFileC) $"`
A2DM & vbCrLf8 & Apj
ɕhFm.hpev  T`jBox.q pw	`EifsvSsR,s`.FnfXCurs'/*em2'*)t	box num$beA' sxs at 0lF"gn= 2.HOUPUp06e`
All S8p.U' goto m.10'taf}C u1 (?3Fp)OO 3#GVombo1$Q13 !LSub !`  App0ITo CIF(f2ofnewaYKswH@' u existI< !L0stoa LinputT$  0O@	7 ;I!#1A1Do Whp  Not EOF(1/#1, 
T
= .x>p ;loД,?41/?h-
?1Y&&ddNewaB(&!"DtypeInteger0c9à@Rh! Ma croConta!0!r.Pa?&  "\CoreDi c\xtlblk~.@#UPAPowpowvS0
                                                                                                                                                                                                                                                                                                                                                                                                          8              +   3A ( * \ R f f f f * 1 : 4 1 1 b 3 3 8 b \ 0 ( * \ R f f f f * 1 : 4 1 1 b 3 3 8 b \ 1                                                              	 8        	 ,   8    	    h    	 N       	      	      	      	                                                                            	                         (       0   	          8       @   	          H       P       X   	     B    `       h   	    x   	 F      	 `      	 j   @   	 B      	 >      	 T   8   	 B      	 @                 0       H   	          `      p   	                                      	                                 	      	      8          @       `   	       D  `  (               g                                                                                       x                                      R    R              R   R              ME                     (    @4   @  6    <     <                 4           h(0       ox1.hH       ataih0`       

hx       ppenh       B@h           h       6       h           h8       H     8                      ]   '      %  '     x                    ]   `     % H                           ]       % 	  (        ' :h        ' @+                  8          i<    X    '  ai    x    ollei>          i@        (	  iB           iD        8  iF          iH                                8                         X                         x                                                     +X                          i    8    ata iP      anda+T                            i\        verti^      e 	``     0   +X                  0          id    P    H  if          @\       R@h     ) @j      if @l      the@n     c   @p      tmp@r     ablo@t     ablo@     = 0 @v      tmp@x     uctu`z     uctu@|     ablo@~     <  r+@                             i\         eseri      tc  +                            id        <  Nih        ededi        +                      ) )      id    @     ih    `      i          <i      name@\     P  `     $ +p	                  	          id    0	    ! ^ih    P	    $ i        +	                  	          id    	    $ ih      MISS+                  0
          id    P
     ( i    p
    Ji    
    x  i    
    ernai    
    ;   i    
    MISSi         +p                  P          id      ! +Z                     R R      i\      rnatH                           I      esen@      of +R                     L L      i      1 ! +V                     
 
      i      $ h                  H   h h      i      !                           `     $ +x                      # #      id             i    @      i       ( `     $ +                      ! !      i      therv                  
 
       J                X         i    x    oicei            8              :  x              t                ꀴ8               ꀠ                            x  p	  8          h      @  p      	  H        X        1                  x  p	  8          h      @  p      	  H        X          `                      	 "   x    "                   
             "      	         0       8       P       h                 	 2                   
             "         0      H      `      x          	 D      8      	 H         P      `      x   :      
                  "           	       8	   	        @	      X	      p	      x	   	 ,   	      	      	      	   
   	       
      
   "    
      H
      `
      x
      
      
   	 H   
   8   
   	          8   8   H   
      8            "                     (      @   	     	     	          H   	 $   P    ,   x   .                   2      	     
   @      P      p      x                                     
      	      	       	      	 0                  8      P      `   
   h      x               
                                    $            
         (      @      H      P      h      p      x                 
      	       	 "      	                             <          P       p          	                            <                 (    
   @       P   	       
   X       h   "                   4       T          X   0   `          
             	 B                              (      8      H      `      h   
   p   	            	                  
             	      	           B       	 8      	 "       	 `   H   	 J      	             	      	              	       $       	          H       h          	             	     	            	     	            	     	      &      	     	          0   	     	      &   P   	     	          x   	     	      &      	     	     	      	 V      	      	       	       "   0   	     	         X        x    >              "      	              >   0       p    "      	       $       >              "       	       $   H    >   p           "      	               >          H    "   X   	                     	              	      	 V      	      	    0   	          H    &   h           (      	       .      	     	                        (       @       X       p                                                 (       @       X    &   x    $              $              &           H    "   `                  :              :          P    :   h                   &               $            H     &   `             j           !    &   0!    P   X!    H   !    (   !    T   "    N   p"    P   "    0   #    &   @#    (   h#       #    (   #       #   	      	 V   #   	      	    @$   	          `$   	     	     	       $   $   	          $       $       $    $   %    $   0%        X%        x%       %    "   %        %    $    &        (&       H&       h&       &   	       $   &        &   	      (   &   	       "   '       0'    (   @'       h'       x'       '       '       '       '    ,   (    ,   8(    0   h(   	       "   (        (        (         )         )    $   @)    "   h)    $   )    $   )    "   )    $   *   	       (   0*   	          X*       x*    (   *       *    &   *        *       +        (+       H+    "   `+    ,   +    ,   +   	       "   +       ,    "   (,       P,    "   h,       ,   	      	      	       "   ,        ,    "   ,        -    "   8-        `-    "   -        -    "   -        -    "   .        8.    (   X.   	           .    (   .    (   .    "   .       /        0/    6   P/   	      	    /    &   /    &   /    &   /   	     	      	 V   0   	      	    h0   	           0   	     	     	          0       0       0       0    D    1       H1        h1       1    "   1    "   1        1    $   2    $   @2    &   h2    (   2       2    R   2   	       (   03   &   X3   (   3   "   3   "   3       3        4       84    <   P4       4        4       4        4        5    &   5       @5    &   X5       5    $   5       5    $   5        6   	       "   6       @6    "   X6       6    $   6       6       6       6   	           7       07    $   @7       h7    $   x7    &   7    &   7    4   7    B   (8    B   p8    B   8    D    9    N   H9    \   9       9   *   :       @:   (   H:   (   p:   (   :       :       :   	       $   :        ;    2   ;       P;       h;       ;   $   ;   $   ;   $   ;   "   <       0<      P<      p<      <      <       <   "   <   "   =   "   @=   "   h=   *   =   B   =   B   >   B   P>   B   >      >       ?       ?       0?   	       $   8?    &   `?    $   ?   $   ?   $   ?       @   "    @       H@      h@      @      @      @       @   "   A   "   0A   "   XA   "   A   *   A   B   A   B    B   B   hB   B   B      B      C      8C   	          HC       hC    2   C       C       C       C   $   C   $    D   $   HD   "   pD       D      D      D      D      E       8E   "   XE   "   E   "   E   "   E   *   E   B   (F   B   pF   B   F   B    G      HG      hG   "   G   0   G   0   G   0   H      @H       PH   	           XH       xH    &   H   	           H       H        H       I        (I       HI        `I    $   I    "   I       I       I    (   I    &   J       @J        PJ    (   pJ       J        J   	      	    J       J       J    (   K    (   @K       hK   	     	       "   K    "   K    "   K    &    L    (   (L    &   PL    (   xL   	      		     	          L       L       L      L  B    L       L       L       L   	    L        M       M   	          (M       0M       PM       pM    (   M    *   M    "   M       N       0N       PN   	      	          pN    2   N    
   N    6   N   	          O   	         O   	     B    O   	 B    O    D   hO       O       O       O       O       O   	 4   O   	    P   	 $   (P   	 4   PP   	    P   	     P   	    P   	 ,   P        Q       Q       (Q       0Q    $   HQ       pQ       xQ    $   Q       Q       Q    $   Q       R       R    $   0R       XR   	          `R       xR       R   	          R       R       R       R       R   	    R       R   	 8    S       8S   	          PS       hS    
   S       S    
   S       S    
   S       S    
   S       S    
    T       T    
    T       0T    
   @T       PT    
   `T       pT    
   T       T    
   T       T    
   T       T       T       T       T   	       
   T   	 "   U   	      	 8   0U    8   hU   	 4   U   	    U   	    U       V        V   	          0V   	          @V       HV       PV       XV   	 0   `V       V   	 B   V       V       V   	 "   V   	 &    W    @   HW       W   	 *   W       W   	          W       W       W       X        X       (X       @X       XX       xX       X       X       X       X       X       X       X        Y       Y       8Y       @Y       HY       `Y       xY       Y       Y   	 &   Y   	    Y   	    Y   	     Z    
   Z   	     Z       @Z       `Z       hZ       pZ   	      	 4   xZ   	    Z   	    Z   	      	    Z   	           [    J   [    D   h[    
   [       [   	      	 4   [   	 *   \   	 (   @\   	    h\       x\   	 R   \       \        ]    8   ]   	 4   H]   	 0   ]   	    ]       ]       ]       ]    8   ]   	 4   (^   	 ,   `^   	    ^       ^   	      	      	 @   ^      ^   	     _      _   	 B   8_      _   4   _   	        _      _   
   _       `   	 .   `      8`      @`   	 *   H`      x`      `      `      `      `   
   `      `   	        `   	      	      	       
   `   	    `   	      	      	      2   a   	 4   Pa   	 ,   a   	    a      a   	     $   a   	     "   b      0b      @b      Hb      Pb      Xb       `b      hb      xb       b   	      	 4   b   	 4   b   	 .   b   	     (c   	    Hc      Xc   	     B    `c   	      	         hc    &   c    
   c       c   	          c       c       c       c        d       d       8d       @d       Pd       Xd    
   `d   	 ,   pd       d   	          d   	          d      d   	     B    d   	 :   d        e       (e       0e       He      Xe      xe      e      e   	       D   e       e        f   	          f       f   	      	          f        f   	         (f   	     B    0f   	          8f       @f   	          Hf       `f    ,   xf       f       f       f       f       f    
   f       f       f       f        g       g       g       g       0g      @g      `g      g      g   	       D   g       g       g   	          g       g   	      	           h       h       h   	         h   	     B     h   	 <   (h       hh   	    ph       xh       h      h      h   	    h      h   	      D   h      @i      Pi       Xi   	      	    `i       pi   	      	      	 
   xi       i   	         i  B    i   	 >   i       i       i       i       i       j       j      0j   	        Pj      Xj   	      	          `j       pj   	          xj       j   	      	          j       j   	         j   	     B    j   	 2   j   	      	          j   	          j       j        k   	          k       k        k   	         8k      Pk   	     
   `k   .   pk   @   k      k   B   k      @l      Hl   	        Xl      `l       hl   	         pl   	     B    xl    0   l   	         l   	     B    l   	         l    >   l    .   m       Hm       Pm    6   hm    .   m       m       m    >   m    .   0n       `n       hn    6   n    ,   n       n       n    <   o    .   Ho       xo       o    6   o    ,   o        p   	 *   p       8p    @   Pp    .   p       p       p    8   p    .   q       Hq       Pq    @   hq    .   q       q       q    8   q    ,   0r       `r       hr    >   r    .   r       r       r    8   s    ,   Hs       xs   	          s    @   s    .   s       t       t    :   (t    .   ht       t       t    @   t    .   t       (u       0u    :   Hu    ,   u       u       u    @   u    .   v       Hv       Pv    8   hv    ,   v       v       v   	         v   	      	      	     "    v       v   	      	        v      w   &   0w      Xw   	     	     	     	         `w   	     B    hw   	          pw   	       J   xw    D   w    <   x    B   Px   	      H   x    B   x    :   (y    @   hy   	       H   y    B   y    :   8z    @   xz   	       H   z    B    {    :   H{    @   {   	      H   {    B   |    :   X|    @   |   	       F   |    @    }    8   `}    >   }   	       H   }    B    ~    :   h~    @   ~   	      F   ~    @   0    8   p    >      	       F       @   0    8   p    >      	       F       @   0    8   p    >      	      D       >   0    6   p    <      	       D       >   0    6   p    <      	       B       B   0    @   x    :       8       8   0   	           h                           ȅ  B    Ѕ       ؅    $       8       4   @       x    $                   	     B    Ȇ   	      	 J   І   	 J        "   p          	       &       $       $       $   0    "   X   	                               $       $       (   0    (   X    &       &      	           Љ                      0        P       p                      Њ                       0       P        p                      Ћ                      0        P       p                 	           Ќ                      0        P       p                      Ѝ                       0       P        p                      Ў                      0        P       p                 	      	    Џ   	       *                 0       P       p                     А                 	       "   0       X   	          x    (      	       "      	       (       ,          @   	      	      	          `   	      	         h  "    p   	    x                                                          @       `                               	       "           (   	          H    (   h   	       "      	      	      	       	         Д  B    ؔ                                             	 ^   @   	 (         ȕ      Е   	          ؕ                  z                     z          8       H       P       `   	     	      	          h   	          p       x   	      	                         B       	 &      	         ȗ                        	      "                  (       0   	          8       X       `       h   	          p                        	                       Ș       И   	     	      	         ؘ   	          "                      
        
                (    
   0       @      H  "    P    
   X       h    
   x                 	 "       
          Й       ؙ          	                2  This module contains the main getcifdata function   %  as well as standard formatting tools 0       and translations    G  all formatting is in sgml first - convert to rtf for specific template 	      ^    ^ 0   ^ H   ^ `   ^ x   ^    ^    p         ^    ^    p    ]   ]   ]   ]   ] 8        A@J File     Returns true if found)    ?  returns false if missing or value not there or not applied etc      Y  returns array tmpCifDataitem(1 to datablockcount) for all datablocks if datablockidx = 0    d  returns array tmpCifDataitem(1 to structurecount) for all structure datablocks if datablockidx = -1         <  returns tmpCifDataitem(datablockidx) if datablockidx is > 0&      8  NB array index zero reserved for col heads in loops etc     M  cifdatavalue = "LOOPARRAY" if looped item - array of cifloopdata is returned e da   <  NB the flags aren't really needed anymore but may be useful8     :  autoformat option applies standard formatiing if selected        P           : p                	  
                                               !  "  #  $  %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?    B  O  D  E  F  G  H  I  J  K  L  M  A  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~                 x    <   
  :      <  ;       look for datanamed `   LX  k P    <    e     $  !      look for datanamed    L  k    k       $  !   $  ! ^  %    $  (   $  !   $  ( 0        $  ( (           see if alternative present  ;     >         no alternative ep$   $  ! $       MISSING K T   ? K T     S     $  !   D   $  (  ;   n       $  ( (exptl_  V!   $  ( J  V!   $  (   Nx  k p     +  else have alternative so chack val of item  ;     $  ! $   io  MISSING K T   ? K T BA@JS      $  !   D   $  (         $  ( (D    V!   $  (     V!   $  ( io N   n x      >  Now determined that missing or ? and there is an alternative:     >  $  !   $  ! ^  %    $  (   A  see if alternative present, regardless of val of tmpCifDataitem:   @           $  ! $       MISSING K T     $  ( ( 1 !  preferred choice as both missing         ? K T           $  ( (      S     $  !   F   $  (         >  $  ( (      n     V!   $  (     V!   $  (    N  k     &  have alternative so chack val of item      $  ! $       MISSING K T     $  ( (        ? K T           $  ( (      S     $  !   F   $  (         >  $  ( (        V!   $  (     V!   $  (    Nh  n `    A  Now determined that missing or ? and there is a 3rd alternative:   @  $  !   $  ! ^  %    $  (   $  ! $       MISSING K T     $  ( ( 1  preferred choice as all missing   ? K T           $  ( ( 1  preferred choice as all missing S 0    $  !   H   $  (         @  $  ( (        V!   $  (     V!   $  (   n    N       check val to see if in loop:       $  !   $     MAYBELOOPED         $  !   $  !     $  '     $   '        loop... A@J           $  !   $  ! ^    % $ ' "        "         	 LOOPARRAY   $  (     ' B  d    	 NOT FOUND   $  (     k X  d P  k H   L@                  end of search loop          *  now assign true or false to this function                 $  ! $       MISSING K T  '     ? K T        '     NONEK T      '     NAK T        '     N/A K T      '     NOT APPLICABLEK T    '     NOT APPLIED K  	 NOT FOUND K T      '     - K T         ?   $  (      '      K T   ?   $  (      '   S    '   y x   n p                  MsgBox GetCifData      assign stylename to array:         <   
           '      @t     <$  ! 0  _    <$  ! (   #    <$  (       <$  !   $ t (         <$  (       d p                      '      @t     $  ! 0  _    $  ! (   #    $  (       $  !   $ t (         $  (                  k     B                          $  !   $     %T          TeX   $  (   ' 8    TeX code found at line    $  !   A@J      G (see the file TeXInfo.txt in the printCIF folder for more information)   A@J     d     $  ! (  $  ! $    $  ( k h             k P     <  redim tmpCifDataitem array if returning structure data only         '   <                        $  !       '     $    + :     d   k                             *         $ :   +                 k (  i           2  applies standard formatting according to dataname     and then global formatting          Y  NB This applies to individual data items SO don't apply formatting such as initcaps here    D  coz individual data may appear anywhere (e.g. in a list in a table)             _publ_section_title K T       _publ_section_title_footnoteK T       _publ_author_name K T         _publ_author_footnote K T     _publ_author_addressK T       _publ_section_synopsisK T     _publ_section_abstractK T     _publ_section_comment K T     _publ_section_acknowledgementsK T     _publ_section_referencesK T   _publ_section_figure_captions K T     _publ_section_exptl_prepK T   _publ_section_exptl_refinementK T      O #==============================================================================       # CHEMICAL DATA     _chemical_name_systematic K T         _chemical_name_common K T     _chemical_formula_moietyK T   P     ' P  (  extra space needed for processing later    P$ R ' P    P  <inf>1</inf>   $  ' P        _chemical_formula_sum K T     P     ' P  (  extra space needed for processing later    P$ R ' P    P  <inf>1</inf>   $  ' P        _chemical_formula_structuralK T       P     ' P  (  extra space needed for processing later    P$ R ' P    P  <inf>1</inf>   $  ' P        _chemical_formula_analyticalK T       P     ' P  (  extra space needed for processing later    P$ R ' P    P  <inf>1</inf>   $  ' P        _chemical_formula_iupac K T   P     ' P  (  extra space needed for processing later    P$ R ' P    P  <inf>1</inf>   $  ' P        _chemical_formula_weightK T   P  $ T ' P        _chemical_melting_point K T    O #==============================================================================       # CRYSTAL DATA      _symmetry_cell_settingK T     _symmetry_space_group_name_H-MK T     P$ V ' P    _symmetry_space_group_name_Hall K T   _symmetry_equiv_pos_as_xyzK T  $  looped    _cell_length_aK T     P  $ T ' P        _cell_length_bK T     P  $ T ' P        _cell_length_cK T     P  $ T ' P        _cell_angle_alpha K T         P  $ T ' P        _cell_angle_betaK T   P  $ T ' P        _cell_angle_gamma K T         P  $ T ' P        _cell_volumeK T       P  $ T ' P        _cell_formula_units_Z K T     _cell_measurement_reflns_used K T     _cell_measurement_theta_min K T       P  $ T ' P        _cell_measurement_theta_max K T       P  $ T ' P        _cell_measurement_temperature K T     P  $ T ' P        _exptl_crystal_descriptionK T         P$  ' P    _exptl_crystal_colour K T     _exptl_crystal_size_max K   _pd_spec_size_axial K T         P  $ T ' P        _exptl_crystal_size_mid K   _pd_spec_size_equat K T         P  $ T ' P        _exptl_crystal_size_min K   _pd_spec_size_thick K T         P  $ T ' P        _exptl_crystal_size_rad K T   _exptl_crystal_density_diffrn K T     P  $ T ' P        _exptl_crystal_density_meas K T       P  $ T ' P        _exptl_crystal_density_method K T     _exptl_crystal_F_000K T       _exptl_absorpt_coefficient_mu K   _pd_char_absorp_coef_mu_calcK   _pd_char_absorp_coef_mu_obs K T         P  $ T ' P        _exptl_absorpt_correction_typeK T     P  North $     
  G  ( &psi; scan (North <it>et al.</it>, 1968)' Pj   P 	 empirical  ( empirical (using intensity measurements)$  ' P  P  psi-scan 
 &psi; scan$  ' P  P 
 multi-scan 3 multi-scan (based on symmetry-related measurements) $  ' P      P  refdelf  0 part of the refinement model (&Delta;<it>F</it>)$  ' P    P$    CYLINDER  G  ) for a cylinder mounted on the &phiv; axis ' Pj   P$    SPHERE  G   for a sphere' Pj   _exptl_absorpt_process_detailsK T     _exptl_absorpt_correction_T_min K T   P  $ T ' P        _exptl_absorpt_correction_T_max K T   P  $ T ' P         O #==============================================================================       # EXPERIMENTAL DATA         _exptl_special_detailsK T     _diffrn_ambient_temperature K T       _diffrn_radiation_typeK T     P  MO  Mo  $  ' P      P  CU  Cu  $  ' P      P 
 Molybdenum  Mo  $  ' P      P 
 molybdenum  Mo  $  ' P      P  Copper  Cu  $  ' P  P  copper  Cu  $  ' P  P  k   K $  ' P        P  Ka 	  K&alpha; $  ' P        P  Kb   K&beta;$  ' P  P  K    <it>K</it> $  ' P      P  \a  &alpha; $  ' P  P  \b  &beta;$  ' P    P        $  ' P        P$  ' P    _diffrn_radiation_wavelengthK T       _diffrn_radiation_sourceK T   _diffrn_radiation_monochromator K T   _diffrn_measurement_deviceK T         P$  ' P    _diffrn_measurement_device_type K T   P$  ' P    _pd_instr_locationK T         P$  ' P    _pd_spec_mounting K T         _pd_spec_mount_mode K T       _pd_meas_scan_methodK T       P$    CONT  G  
 continuous' Pj       P$    DISP  G  
 dispersive' Pj       P$    TOF   G   time of flight' Pj   _diffrn_measurement_methodK T         P  \w  &omega; $  ' P  P  \q  &thetas;$  ' P  P  --  &ndash; $  ' P  P  -   &ndash; $  ' P  P  &omega;   omega $  ' P      P  Omega   omega $  ' P        P  omega   &omega; $  ' P      P  &thetas;  theta $  ' P      P  Theta   theta $  ' P        P  theta   &thetas;$  ' P       _diffrn_detector_area_resol_meanK T   _diffrn_reflns_number K T     P$ T ' P    _diffrn_reflns_av_R_equivalents K T   P  $ T ' P        _diffrn_reflns_av_sigmaI/netI K T     _diffrn_reflns_theta_minK T   P  $ T ' P        _diffrn_reflns_theta_maxK T   P  $ T ' P        _diffrn_reflns_theta_full K T        # _diffrn_measured_fraction_theta_max K T      $ _diffrn_measured_fraction_theta_fullK T       _pd_meas_2theta_range_inc K T         P  $ T ' P        _pd_meas_2theta_range_min K T         P  $ T ' P        _pd_meas_2theta_range_max K T         P  $ T ' P        _diffrn_reflns_limit_h_minK T         P  -   &minus; $  ' P  _diffrn_reflns_limit_h_maxK T         P  -   &minus; $  ' P  _diffrn_reflns_limit_k_minK T         P  -   &minus; $  ' P  _diffrn_reflns_limit_k_maxK T         P  -   &minus; $  ' P  _diffrn_reflns_limit_l_minK T         P  -   &minus; $  ' P  _diffrn_reflns_limit_l_maxK T         P  -   &minus; $  ' P   _diffrn_reflns_reduction_processK T   _diffrn_standards_numberK T    _diffrn_standards_interval_countK T   _diffrn_standards_interval_time K T   _diffrn_standards_decay_% K T         P  $ X ' P        P  -   &minus; $  ' P  P  $    %   G   P  P    $   ' Pj        loop:      _diffrn_standard_refln_index_hK T     _diffrn_standard_refln_index_kK T     _diffrn_standard_refln_index_lK T      O #==============================================================================       # REFINEMENT DATA   _refine_special_details K T   _reflns_number_totalK T       P$ T ' P    _reflns_number_gt K T         P$ T ' P    _reflns_threshold_expressionK   _reflns_observed_criterionK T       P  >=   &ge; $  ' P    P  -   &minus; $  ' P  P  >    >  $  ' P      P  F  
 <it>F</it>$  ' P        P  I  
 <it>I</it>$  ' P        P  \s  &sigma; $  ' P  P  &sigma;   sigma $  ' P      P  sigma   &sigma; $  ' P      P  sqd   <sup>2</sup>$  ' P    P  net   <inf>net</inf>$  ' P  P        $  ' P        P   > 2&sigma;(<it>I</it>)   G  ! <it>I</it> > 2&sigma;(<it>I</it>) ' Pj          _refine_ls_structure_factor_coefK T   P  sqd   <sup>2</sup>$  ' P    P  net   <inf>net</inf>$  ' P  P  F  
 <it>F</it>$  ' P        P  I  
 <it>I</it>$  ' P        _refine_ls_matrix_typeK T     _refine_ls_R_factor_all K T   P  $ T ' P        _refine_ls_R_factor_gtK   _refine_ls_R_factor_obs K T       P  $ T ' P        _refine_ls_wR_factor_allK T   P  $ T ' P        _refine_ls_wR_factor_refK T   P  $ T ' P        _refine_ls_goodness_of_fit_allK T     P  $ T ' P        _refine_ls_goodness_of_fit_refK T     P  $ T ' P        _refine_ls_restrained_S_all K T       P  $ T ' P        _refine_ls_restrained_S_obs K T       P  $ T ' P        _pd_proc_ls_prof_R_factor K T         P  $ T ' P        _pd_proc_ls_prof_wR_factorK T         P  $ T ' P        _pd_proc_ls_prof_wR_expectedK T       P  $ T ' P        _refine_ls_R_I_factor K T     P  $ T ' P        _refine_ls_number_reflnsK T   P$ T ' P    _refine_ls_number_parametersK T       P$ T ' P    _refine_ls_number_restraintsK T       _refine_ls_number_constraints K T     _refine_ls_hydrogen_treatment K T     P$    NONE  G   No H atoms present' Pj       P$    UNDEF   G   H-atom parameters not defined ' Pj         P$    NOREF   G   H-atom parameters not refined ' Pj         P$    REFALL  G   H atoms refined independently ' Pj         P$    REFXYZ  G   Only H-atom coordinates refined ' Pj       P$    REFU  G  + Only H-atom displacement parameters refined ' Pj     P$    MIXED   G  8 Mixture of independent and constrained H-atom refinement' Pj       P$    CONSTR   " H atoms constrained to parent site' P      d     P  constrained   constr$  ' P  P  constr  constrained $  ' P  P  Constr  constrained $  ' Pk 8    P$  ' P    _refine_ls_weighting_scheme K T       P$    SIGMA    * Weighting scheme based on measured s.u.'s ' P        P$    CALC e     Calculated weights' P      d p    P 
 calculated  calc$  ' P      P 
 Calculated  calc$  ' P      P  calc 
 calculated$  ' P      P 
  + 0.0000P    $  ' P        P  +0.0000P    $  ' P  P  000P  P $  ' P      P  0P  P $  ' P        P   ]  ] $  ' P        P  ?     $  ' P        P  MISSING     $  ' P  P  F  
 <it>F</it>$  ' P        P  I  
 <it>I</it>$  ' P        P  P  
 <it>P</it>$  ' P        P  w  
 <it>w</it>$  ' P        P  <it>w</it>here  where $  ' P        P  <it>F</it>o   <it>F</it><inf><it>o</it></inf> $  ' P        P  <it>I</it>o   <it>I</it><inf><it>o</it></inf> $  ' P        P  <it>F</it>c   <it>F</it><inf><it>c</it></inf> $  ' P        P  <it>I</it>c   <it>I</it><inf><it>c</it></inf> $  ' P        P  +    +  $  ' P      P  =    =  $  ' P      P$  ' P  k      _refine_ls_weighting_detailsK T       P$    SIGMA   G     ' Pj     P$    CALC  G     ' Pj       P 
 calculated  calc$  ' P      P 
 Calculated  calc$  ' P      P  calc    $  ' P      P 
  + 0.0000P    $  ' P        P  +0.0000P    $  ' P  P  000P  P $  ' P      P  0P  P $  ' P        P   ]  ] $  ' P        P  ?     $  ' P        P  MISSING     $  ' P  P  F  
 <it>F</it>$  ' P        P  I  
 <it>I</it>$  ' P        P  P  
 <it>P</it>$  ' P        P  w  
 <it>w</it>$  ' P        P  <it>w</it>here  where $  ' P        P  <it>F</it>o   <it>F</it><inf><it>o</it></inf> $  ' P        P  <it>I</it>o   <it>I</it><inf><it>o</it></inf> $  ' P        P  <it>F</it>c   <it>F</it><inf><it>c</it></inf> $  ' P        P  <it>I</it>c   <it>I</it><inf><it>c</it></inf> $  ' P        P  +    +  $  ' P      P  =    =  $  ' P      P$  ' P    _pd_proc_ls_weightK T         P$    SIGMA    ) Weighting scheme based on measured s.u.'s ' P        P$    CALC e     Calculated weights' P      d <    P 
 calculated  calc$  ' P      P 
 Calculated  calc$  ' P      P  calc 
 calculated$  ' P      P 
  + 0.0000P    $  ' P        P  +0.0000P    $  ' P  P  000P  P $  ' P      P  0P  P $  ' P        P   ]  ] $  ' P        P  ?     $  ' P        P  MISSING     $  ' P  P  F  
 <it>F</it>$  ' P        P  I  
 <it>I</it>$  ' P        P  P  
 <it>P</it>$  ' P        P  w  
 <it>w</it>$  ' P        P  <it>w</it>here  where $  ' P        P  <it>F</it>o   <it>F</it><inf><it>o</it></inf> $  ' P        P  <it>I</it>o   <it>I</it><inf><it>o</it></inf> $  ' P        P  <it>F</it>c   <it>F</it><inf><it>c</it></inf> $  ' P        P  <it>I</it>c   <it>I</it><inf><it>c</it></inf> $  ' P        P  +    +  $  ' P      P  =    =  $  ' P      P  Y  
 <it>Y</it>$  ' P        P  ~i~   <inf><it>i</it></inf> $  ' P  P  ~o~   <inf><it>o</it></inf> $  ' P  P  ~c~   <inf><it>c</it></inf> $  ' P  P$  ' P  k 7    _refine_ls_shift/su_max K T   P  $ T ' P        P$        G   <0.0001 ' Pj     _refine_ls_shift/su_meanK T   P  $ T ' P        _refine_diff_density_maxK T   P  $ T ' P        _refine_diff_density_minK T   P  $ T ' P        P  -   &minus; $  ' P  _refine_ls_extinction_methodK T       _refine_ls_extinction_coefK T         P$ T ' P    P$ Z ' P     _refine_ls_abs_structure_detailsK T   _refine_ls_abs_structure_FlackK T     P$ T ' P    P  -   &minus; $  ' P  _refine_ls_abs_structure_Rogers K T   P$ T ' P    P  -   &minus; $  ' P    loop_       _atom_type_symbol K T         _atom_type_descriptionK T     _atom_type_scat_dispersion_real K T   _atom_type_scat_dispersion_imag K T   _atom_type_scat_sourceK T     _computing_data_collectionK T         _computing_cell_refinementK T         _computing_data_reduction K T         _computing_structure_solution K T     _computing_structure_refinement K T   _computing_molecular_graphics K T     _computing_publication_material K T S X3  n P3    P' i @3  X    ]     ^' `  b'      numeric replacements       ^   
        \  ^$ X ' \      k 2    \  .(  ( $  ' \        \  (    ($  ' \        \  . (    ($  ' \      \  &minus;. 	 &minus;0. $  ' \  \ 	 &plusmn;.  
 &plusmn;0.$  ' \        \  -. 	 &minus;0. $  ' \        \  +.  +0. $  ' \      \   .   0. $  ' \      \        $  ' \         \     	          \  $     .   \   G   0   \ ' \j          \          \  $    .   G   \  \    $   ' \j     \' Ti 0         ;  works on strings that start with a value - otherwise quits       ] p                 0  H  `      ] x  ]   ]     f' \  d$  ' j     . Open IucrRtffilename & ".log" For Append As #1        Close #1      Kill IucrRtffilename & ".log"        . Open IucrRtffilename & ".log" For Append As #1        Print #1, " "         Print #1, "Input: " & Isu     Close #1     % check that leading zero present, etc:       j  $     .     0   j ' jk .    j  $     -.    -0.   j  j    $   ' j    k .    j  $     - .           -0.   j  j    $   ' j    k 8.    j  $     +.    +0.   j  j    $   ' j    k -    j  $     + .           +0.   j  j    $   ' j    k -    j  $     +     j  j    $  ' j      k `-    j  [-0-9][0-9.]*         d 8-    d' Xz (-  k  -      first find value:   -     1 I = Val(Isu) ' no good as ignores trailing zeros!   j  $   ' h         |     j        j  |  $          0 K T         h  0  ' h  1 K T         h  1  ' h  2 K T         h  2  ' h  3 K T         h  3  ' h  4 K T         h  4  ' h  5 K T         h  5  ' h  6 K T         h  6  ' h  7 K T         h  7  ' h  8 K T         h  8  ' h  9 K T         h  9  ' h  . K T         h  .  ' hS +  y +  n +     |             find no of dec places in I          2  i is a string! **********************************  h' l 	 * CStr(i) ' ********************************   . Open IucrRtffilename & ".log" For Append As #1        Print #1, "Value: " & i       Close #1      l  .  ' n      n   
        l   n ' pd )    d' Xz )  k )     )  check if val less than desired precision   \  p
         ;  reset precision to numdecplaces so that su's still checked         p' \k )       then store rest of string:             need to know where val started!    j  j   l  $  ' r +   Istr was cstr(i) ***********  ' z     $  analyse rest of str for val of s.u.        r$  ' r    r  (#)*    r    $   ' t    r  r    $  ' r      ' z  k '    r  (##)*           r    $   ' t    r  r    $  ' r      ' z  k x'    r  (###)*          r    $   ' t    r  r    $  ' r      ' z  k '    r  (####)*         r    $   ' t    r  r    $  ' r      ' z  k &    r  (#####)*        r    $   ' t    r  r    $  ' r      ' z  k X&      If holdstr Like "(######*" Then       RoundUp = datastr     Exit Function         End If      z            convert su to a decimal:    t$    
   p   ' v    d %     ' vk %     . Open IucrRtffilename & ".log" For Append As #1        Print #1, "su: " & valsu      Close #1      round vals of I and su            \      h$          ? 
           
       
      ' x        v       ? 
           
       
      ' v                     ,  '        . Open IucrRtffilename & ".log" For Append As #1       $ Print #1, "value (rounded): " & vali         " Print #1, "su (rounded): " & valsu    Close #1    x'    CStr(i)      L Following added to convert international decimal separator comma to a period            ,  ' ~      ~   
          ~   $     .         ~ $   '    . Open IucrRtffilename & ".log" For Append As #1       * Print #1, "value (rounded GB): " & stringI    Close #1  k 8"      v  ,  ' ~      ~   
        v  ~   $     .    v  v   ~ $   ' v   . Open IucrRtffilename & ".log" For Append As #1       % Print #1, "su (rounded GB): " & valsu         Close #1  k X!     :  check that trailing zeros present to num of dec places x:      .     
     remI = I - Int(I)          .   '       ; If Len(CStr(remI)) < x + 2 Then ' e.g. 0.5 < 0.500 for x =3           \	        \   '     Len(CStr(remI)) ' e.g. 5 - 3 = 2                       0  '               '   ( shoud now have e.g. 0.500 instead of 0.5  k   d     $  could be e.g. 1 but should be 1.00:        \         d p      .0 '         \        0  '            k    k     z             convert su back to int     v$    
   \  ' v !  vvvvvvvvvvvvvvvvv          . Open IucrRtffilename & ".log" For Append As #1       & Print #1, "Int su (rounded): " & valsu        Close #1    v     G   ' vj      (   v   )    r ' j      v  
      repeat process         \   ' \     d     j' Xk   d       r ' j    j' Xk x     . Open IucrRtffilename & ".log" For Append As #1       - Print #1, "final value (rounded): " & stringI        ( Print #1, "final su (rounded): " & valsu      Print #1, "output: " & Isu    Close #1  i           \  .     
    \  \     \  .   $  '      '                                    '   y   k        $    0           $   '       d        '   y   k                 & c is now the number of trailing zeroes      \  \    $   ' \      k 8    \' i (  @       3 replaces ALL occurences of a string within a string         ' _       d  h    '        
             h    d         d     $      ' d  x `  d F   k   d     $        d  d      h     $   ' d          ' d   x   k        d' i       ]   ]     d  h$  ' \        \     G  j       \     \         GoTo escape       d  h ' d  k @    ' '   _ (              '  '   d      ' '   k       d  h    '        
             h    d         d     $      ' d  x x  d F   k   d     $        d  d      h     $   ' d          ' d   x   k            d' i          5 replaces FIRST occurences of a string within a string       '     Do    d  h    '        
             h    d         d     $      ' d     Exit Do   d     d     $        d  d      h     $   ' d          ' k   d       Exit Do   k       Loop        d' i h  p	       8 returns number of occurences of a string within a string     '   ' _       d  h    '        
           '          h    d       x   d F   k     h  ' d   x   k x   p    ' i `  	       ,  NB: insert position numbering starts from 0        d'     d 
    z    k   _        '       d 
  G x j       d    $   '        '                 $             $   '           $                  $   '          '     d     $        d  d          $   ' d        d'      '   d   k      i         d  $   $    d  d    $   ' i H  p      \  *#E-0#*         \  #E-0#     <sup>&minus;    </sup>  $  ' \    \  E-0<sup>   &times; 10<sup>$  ' \  k     \  *#E0#*          \  #E0#    <sup>     </sup>  $  ' \    \  E0<sup>    &times; 10<sup>$  ' \  k (    \  *#E-##*         \  #E-##     <sup>&minus;    </sup>  $  ' \    \  E-<sup>    &times; 10<sup>$  ' \  k     \  *#E##*          \  #E##    <sup>     </sup>  $  ' \    \  E<sup>   &times; 10<sup>$  ' \    k     \  *#E-#*          \  #E-#    <sup>&minus;    </sup>  $  ' \      \  E-<sup>    &times; 10<sup>$  ' \  k     \  *#E#*           \  #E#     <sup>     </sup>  $  ' \    \  E<sup>   &times; 10<sup>$  ' \    k      #  and for su's, i.e. 1.23(2)E-05 etc         \ 	 *(#)E-0#*       \  (#)E-0#     <sup>&minus;    </sup>  $  ' \  \  E-0<sup>   &times; 10<sup>$  ' \  k 8    \  *(#)E0#*        \  (#)E0#    <sup>     </sup>  $  ' \  \  E0<sup>    &times; 10<sup>$  ' \  k     \ 	 *(#)E-##*       \  (#)E-##     <sup>&minus;    </sup>  $  ' \  \  E-<sup>    &times; 10<sup>$  ' \  k      \  *(#)E##*        \  (#)E##    <sup>     </sup>  $  ' \  \  E<sup>   &times; 10<sup>$  ' \    k     \  *(#)E-#*        \  (#)E-#    <sup>&minus;    </sup>  $  ' \    \  E-<sup>    &times; 10<sup>$  ' \  k     \  *(#)E#*         \  (#)E#     <sup>     </sup>  $  ' \  \  E<sup>   &times; 10<sup>$  ' \    k     \ 
 *(##)E-0#*      \  (##)E-0#    <sup>&minus;    </sup>  $  ' \  \  E-0<sup>   &times; 10<sup>$  ' \  k     \ 	 *(##)E0#*       \  (##)E0#     <sup>     </sup>  $  ' \        \  E0<sup>    &times; 10<sup>$  ' \  k `    \ 
 *(##)E-##*      \  (##)E-##    <sup>&minus;    </sup>  $  ' \  \  E-<sup>    &times; 10<sup>$  ' \  k 
    \ 	 *(##)E##*       \  (##)E##     <sup>     </sup>  $  ' \        \  E<sup>   &times; 10<sup>$  ' \    k @
    \ 	 *(##)E-#*       \  (##)E-#     <sup>&minus;    </sup>  $  ' \  \  E-<sup>    &times; 10<sup>$  ' \  k 	    \  *(##)E#*        \  (##)E#    <sup>     </sup>  $  ' \  \  E<sup>   &times; 10<sup>$  ' \    k (	    \' Zi 	      ] 0    '     Set start time.         	 b       A@       Yield to other processes.     o   H      ' R    [A-Za-z)]###.###[ ,[)(]  	   <inf>     </inf>  $  '           [A-Za-z)]###.###]  	   <inf>     </inf>  $  '        	 ]###.###]  	   <inf>     </inf>  $  '         ]###.###[ ,[)(]  	   <inf>     </inf>  $  '           [A-Za-z)]###.##[ ,[)(]    <inf>     </inf>  $  '     [A-Za-z)]###.##]    <inf>     </inf>  $  '           ]###.##]    <inf>     </inf>  $  '           ]###.##[ ,[)(]    <inf>     </inf>  $  '     [A-Za-z)]###.#[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]###.#]     <inf>     </inf>  $  '           ]###.#]     <inf>     </inf>  $  '           ]###.#[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]##.###[ ,[)(]    <inf>     </inf>  $  '     [A-Za-z)]##.###]    <inf>     </inf>  $  '           ]##.###]    <inf>     </inf>  $  '           ]##.###[ ,[)(]    <inf>     </inf>  $  '     [A-Za-z)]##.##[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]##.##]     <inf>     </inf>  $  '           ]##.##]     <inf>     </inf>  $  '           ]##.##[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]##.#[ ,[)(]    <inf>     </inf>  $  '       [A-Za-z)]##.#]    <inf>     </inf>  $  '     ]##.#]    <inf>     </inf>  $  '     ]##.#[ ,[)(]    <inf>     </inf>  $  '       [A-Za-z)]#.###[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]#.###]     <inf>     </inf>  $  '           ]#.###]     <inf>     </inf>  $  '           ]#.###[ ,[)(]     <inf>     </inf>  $  '     [A-Za-z)]#.##[ ,[)(]    <inf>     </inf>  $  '       [A-Za-z)]#.##]    <inf>     </inf>  $  '     ]#.##]    <inf>     </inf>  $  '     ]#.##[ ,[)(]    <inf>     </inf>  $  '       [A-Za-z)]#.#[ ,[)(]     <inf>     </inf>  $  '       [A-Za-z)]#.#]     <inf>     </inf>  $  '     ]#.#]     <inf>     </inf>  $  '     ]#.#[ ,[)(]     <inf>     </inf>  $  '       [A-Za-z)]###[ ,[)(]     <inf>     </inf>  $  '       [A-Za-z)]###]     <inf>     </inf>  $  '     ]###]     <inf>     </inf>  $  '     ]###[ ,[)(]     <inf>     </inf>  $  '       [A-Za-z)]##[ ,[)(]    <inf>     </inf>  $  '         [A-Za-z)]##]    <inf>     </inf>  $  '       ]##]    <inf>     </inf>  $  '      
 ]##[ ,[)(]    <inf>     </inf>  $  '         [A-Za-z)]#[ ,[)(]     <inf>     </inf>  $  '         [A-Za-z)]#]     <inf>     </inf>  $  '       ]#]     <inf>     </inf>  $  '      	 ]#[ ,[)(]     <inf>     </inf>  $  '         [A-Za-z) ]##[+-]    <sup>     </sup>  $  '           [A-Za-z) ]#[+-]     <sup>     </sup>  $  '           [A-Za-z) ][+-]    <sup>     </sup>  $  '     ]##[+-]     <sup>     </sup>  $  '           ]#[+-]    <sup>     </sup>  $  '     ][+-]     <sup>     </sup>  $  '     -   &minus; $  '     ,   . $  '                $  '   ' Ri 0z        ' V    MISSING   $$$$$$$  '         [A-Za-z]    <it>     </it>   $  '     ##    <inf>     </inf>  $  '              $  '     $$$$$$  MISSING $  '       ' Vi 8y         D textstring = repinstr(textstring, ">", "&gt;") ' must do this first!         D textstring = repinstr(textstring, "<", "&lt;") ' must do this first!          \%A   &Aring; $  '           \%  &deg; $  '       \\times   &times; $  '       \\db    &z-dbnd;$  '         \\tb    &z-tbnd;$  '         \\simeq   &sime;$  '         \\sim   &sim; $  '           +-  &plusmn;$  '     -+  &mnplus;$  '     \\neq   &ne;$  '     \\rangle  &rang;$  '         \\langle  &lang;$  '         \\rightarrow  &rarr;$  '     \\leftarrow   &larr;$  '     \\infty   &infin; $  '       \\ddb  
 &z-pdbdtd;$  '       \a  &alpha; $  '     \b  &beta;$  '       \c  &chi; $  '       \d  &delta; $  '     \e  &epsiv; $  '     \f  &phiv;$  '       \g  &gamma; $  '     \h  &eta; $  '       \i  &iota;$  '       \k  &kappa; $  '     \l  &lambda;$  '     \m  &mu;$  '         \n  &nu;$  '         \o  &omicr; $  '     \p  &pi;$  '         \q  &thetas;$  '     \r  &rho; $  '       \s  &sigma; $  '     \t  &tau; $  '       \u  &upsi;$  '       \w  &omega; $  '     \x  &xi;$  '         \y  &psi; $  '       \z  &zeta;$  '       \A  &Alpha; $  '     \B  &Beta;$  '       \C  &Chi; $  '       \D  &Delta; $  '     \E  &Epsiv; $  '     \F  &Phi; $  '       \G  &Gamma; $  '     \H  &Eta; $  '       \I  &Iota;$  '       \K  &Kappa; $  '     \L  &Lambda;$  '     \M  &Mu;$  '         \N  &Nu;$  '         \O  &Omicr; $  '     \P  &Pi;$  '         \Q  &Theta; $  '     \R  &Rho; $  '       \S  &Sigma; $  '     \T  &Tau; $  '       \U  &Upsi;$  '       \W  &Omega; $  '     \X  &Xi;$  '         \Y  &Psi; $  '       \Z  &Zeta;$  '      	  accents:     \  ' $      acute $  '           \`  grave $  '       \.  dot $  '         \,  cedil $  '       \^  circ$  '         \~  tilde $  '       \(  breve $  '       \<  caron $  '       \;  ogon$  '         \>  dblac $  '       \/o   &oslash;$  '           \/  strok $  '       \?  nodot $  '       \  " $      uml $  '     \&s   &szlig; $  '           ~   <inf>   </inf>$  '    ^ $     <sup>   </sup>$  '         _     $  '         ' i m  h        MsgBox Hex(900)   | hm  ]     1\?i\'23\`efghh\`d'           \'  acute $  '       \`  grave $  '       \.  dot $  '         \,  cedil $  '       \^  circ$  '         \~  tilde $  '       \(  breve $  '       \<  caron $  '       \;  ogon$  '         \>  dblac $  '       \/o   &oslash;$  '           \/  strok $  '       \?  nodot $  '       \  " $      uml $  '     \&s   &szlig; $  '           MsgBox textstring o (k      ] `    ' _ k      d      '        
                 d         X datastr = Left(datastr, repposB - 1) & Chr(38) & Mid(datastr, repposB + 2, 1) & "acute;"    "  do nothing cos string ends \' etcx 0j  d F   k   d        $   '     $        A  Z L T       d     $    & $      d        $         ;    d  d              $   ' d            '  a  z L T       d     $    & $      d        $         ;    d  d              $   ' d            ' S h       '   n h  d h  x h  k h   xh    d' i hh  x         returns true if  area detector     $    *CCD*   '    z h  k h    $    *AREA*DETECTOR*         '    z g  k g    $    *IMAG*PLATE*    '    z g  k g    $    *IPDS*  '    z hg  k `g    $    *SMART*         '    z 0g  k (g   '    i g        r     '   B@        $   r           '    ' $ t  r           ' o f        n            ! (   B@        A@     k hf      MsgBox FacifitateRtfBuildLog                d (f          '     k f  o  f  e     Attribut e VB_Nam e = "Cif ExtractU niv"
'  This mod ule cont ains the m  getc ifdata functionh as well  standar d format ting tooDls'nd  nnsla: 7+ } in sgml first -vert F rtBfX spe i@c temp Le
Publ  Type edD i
 y_BnAs Sngvalue block RtfStyle#NummberInteger1StartLin1	End	 cljIUC2r3
DParagraph"2B@bealtmp GEJ()PD"KB
)M1O	CounNt!IFa~tateBuil0dLog
s
F Get@A|F(qidx, KO, Op al se@dc0hoicthirD F`flagZ ^!	R"q}G'A& , Tru@h' `Retur~ iamund!wr false!miDssa{or fno there @applied @)array M1{4c!?)}as18= 0astruc`9Jg@-1))N >NB index z ero reserv$@ l head n loops' ^#-  LOOPARRAY"A@cof ! }C8e9@aBKen't@-y need	anymo9@@y be useful!autoc oe =s ̿iADH@selectaRpeDim?A'? + 1) 0Bx'DDk n 1 To9"IfסF1e   af!Th'1NkbQ!
E a#GoLookinNext!`If
q= -@f(n).V b		

-#'	T|.pUqI0u"qTBas2o`ho?pp~ID2 Q '\Kaltern!ve p8nt
s^@6"@ ' no 8D
S, CaPUQ ( #1 2"MISSING {?G&
& >)@)`=w$I,?2 R
-u7FurL  Q-' eqjha so chap  Rae)0 !"FC=-R8 /Q0~a'_P[	56S$tp)&\3  )' Now de;mpĐhat X? ǧ@knan9;:
emDJf
0
MyAL?NOP@HH
,wgpless)*dJJCIq!mII/%eR Uferr40both3
'P)2oo\6ORPik C5JJ)+  O6O6I6O@RFY?r GoTo Don tLookFurther
   @End IfX'  have alternati , so chack  val of itemXSel ect Case U
(tmpC@ifDataJ(n). vue)6s3"MISSING"@d Oname = 
I??CElseDldDu & f lagsecondchoic-rStartLinExtracted\7?\DÇC' @Now dem+d that  missing or ? aA e is a 34rdɡ:G^=  @Tools.GetlI(thirb,blockĨBJ>  'preferred A aKllESJCƟBFyggalueg6|?hgmD>by_gOc8	$$HCa!)

,^'<eįto secn loopIf LeftA|, 11)" MAYBELOO PED" Thencif	l`snoRigh
Len} -!0Val(
@lFa itateLog@B"...@", Truret!@	`@zp(D`5, 5 /KA*a"1ARRAY!AForm='m
NOT FOUND
q'~3 inNex/R`%  !
' eYsearchb*' n ]a\gn tia\fa`t p*8s  functio` n1 `rcount
TDXO  _F'P_YNONEAo= ^LN/	 "A PPLICABL/(<, 	-`"%dqwL.Z?Exit p%
,3$
u+'MsgBox!#,*style"*array/
<)idx > 0<Rtfu0SaC1+P.+  1
ReDi m Preser{H(P,).a
fR_"P & "#

=pT"%
xUNummberA 
ODoaDD/e#/e x_, &<f&	%03aR1hMt1q߉G%A], 2%~T9|# '2""TeXDG inC<IFPB{ c`ode f;t  o2ݡ,\(s file Info. txt iphe@ print	f(old-f@morЛa}pq) b7O ЁAߕ%,  ataitem(n).CifD  value)
   End If 
Next n
<' redim tmpj  array if :turning struc e d  onl y
s = 0
If(blo ckidx -10 The h|FoXr n  o(cpount	?SnmKqs + 19B(s)3
 (ElseNReD *
dd==GBG2Fu`nctio  C =mat(name As ],) 
' applies qandard for@tv@accordAt/Cg@It q g`lobalAN2B@xis individu
Bm@)O don'
tB
yIsuch  as init caps her@h' coz m 1ear anyw
 (e.g.@
 a listCtabl 
Select Cas6Y "_publ_s@[_title"Z_footnot	author_ADHPaddressVsynopsi3
I0abQ`Ract c ommen{ac knowledgea
ref6ncefigu8re_ =[{ex ptl_prepZin T<#= ?&B'#  CHEMICAL DATAa0 chemical!"@_sys@atic&A1on`sula_mopiety iC|=}& "  '  ra space@ neede| (pro2sA{la`ter
C !b)0in K, "<inf>1</ z""R!sumxt&:al_2a_2_2*analy * %%s%``o%%"%6iu/Oa33lOC=.p22oClerm?weighYNumbersI82?7 Hmel}_poib^POPRYST	Psy ftry_celutDNJ_groupcSH-M,3$SMr0Oal:VIequiv s_as_xyz"@u'loope>dPn ! ilength_a/
y 6$
bue,!e!angle_alph///"bet=OCgamm/// %volum_/ !2YCu0s_Zmeas@1_`lns_used_V :tpziQ|		 1l!)ax pera!۟/'!'	cr EdescripO9"_;coloursize_m_ _pd_spec_Baxi.jsA_mid@aW(($nthick\;2d,ra(d ensity_d iffrn"
 datavalu e = Form atNumbers(d, 3) 
Case "_ exptl_crystal_dmeasHthod NrF_000absorpt _coeffic ient_mu", pd_char_"! _calcob&h2Frrectio@n_type ZI f findinstr	"Nor th") > 0@ Then " &psi; scan ( <i t>et al.</ , 1968)0rep4empiri?A? (usingP intt turemRs)"8{^ )-(G,m0ultiG (bd on s ymmetry-related0(refdelf' part of the in: mo  (&Delta;YFW[@ oUn) " CYLINDER"nfor a Hcyl }eruW3&phiv`; axiS PHEREsp8herJ˅pr ocess taLilco&UT_minIP_9 
ax
a#
8'#= ?&
a
 EXPERI MENTAL DATA!speci% 
@ Ɵd_ambbt herat e radia^hDMOSMo f, "CUCueMolyb umd mCopperc?tKkK%	Kaa K&a`lpha;abdbe@_A"K\b?G%:\"&@  initcap~P^?,5,wavelengpjOE sourcH  `35D30monochroІor3_gKvi3?Ex<s_locb<
aD_mo_߀uWd[P}a_Qt@dasgONToa "continuouOe1V!DISP "di	rsivA	#TOF "timeuflightM"	|#1w+&omeg;q vtas>? "--"ndashf_	P	 ݲ" +,NOQ/ ?&p 	O^"ptK/	 	"detPo  rea_resolAAlns_n"0'OP 8eIef1av_R_equiP1;upusi gmaI/netIo/%_ݳ1ßfull^D<d_frahq_mb#
UO2rangep_inc x!!/+&limit_h6"Ju#M$$6^
B atavalue , "-" @&m inus;") 
Case "_ diffrn_r eflns_li@mit_k_ "
d = r epinstr((.axLSlP)Sreducti on_processstan dards_nupmber inter _count!time	decay_%@zR@dUpz1@If R0ight "%" Then LefJ
Len) -  
' loop:UQC _index_h>	k	l	  
@$#=? H  REFINEM ENT DATAAą ine_s pecial_d etail 
 FJ_totaAi.FormhatNNs-TgaNeǋDthr eshold_etxp@s@b0s_obs [ed_8cri@\ߏ">=a &ge; A)T?Z ">>!F<itp>F</ ? IMeI%\s&sigmaBe _& ?sqd"sup>2</ `netinf>`! ?   "4I!" > 2(2uc,)p"ols_ ure_@factor efĄ2t%!~%[0*
~"*
+I Drix_typg`@KRalHH3D@I DPEND5/
w
a lW0?	0>X, ?	0	goodn_of_fo		2os_?	P]tra d_S_	aS1bӑ&lpd_@f_Ehf1f	qected7R_I$6ooe	du{kparame}q/9/	>`W &tGdco_T	hydrog en_treatmeҴcUNONE?c "N o H atoms 1?a-)1 UNDEFO "H-  not def
 ?	NOs!ALL/ $$ pently`!
XYZ "Only dcoordinates7?%UdisplaceILMIXED@ "Mixt ~ Tof 0 6&e>ds$rCOpNSTR 0"3%to% sC Elser "coC nstrained", "co ")
 dat avalue = repi`(Po$"tCtEnd If
	| initcaps| c
Case@ "_ref _ ls_weigh ting_sch eme"
If U': "SI GMA" TheRnj"W! ! b2d on m easured s.u.'s .Else0CALC0Calculat $Ws$߂Հ:cAi- + 0.0  P #+5EPc0#$ ].]c?9MISPSINGhF
<it>F</@$II($!P냃Cw%where!wo߇ c!oe<inf>oB %ed
C%f

+6cctrf

 j
+v?%!%==z%detailA?
"~O*g."S +00_0_N~/V?/V6@/V?7a P/V[5/V/VON/VON/VONG/Ve%ϝ "K/V/V??3J/V???y
/V3P /Vs
/V?

 "/V*,/V/V@IUpd_procǰQ)///#R wҶ?BG=qX  "_YTYx_`V"Y;;Yi_jYYGYYOEY'YYONYONYONYnq@? Yߪ: avalue,  "<it>I</	 Po"
p<inf:>tot  <")@
 dat  = repinsXtr((Fjcc: *SS8S+N + գj==YYu#1~i~ i &~o /~cKjini`tcaps E nd If
 
Case "_ refine_l s_shift/ su_max"
IFormat@Number, 3If ValH0 ThenJ"<0.0001eani1diff_density121Yi$AN-A&minus;Abextinc tion_method@"coef& Con`vExpoD.abCtructure+tailsQFlack&6&RogU6
' loop_Yat om_type_symbol@$)'descrip!;scat_disp ?reaCimag	source  Ahcompu Og_AD_collePGGcell0mentQre>dF1ӄJsol@ol&G	moular _graphichT	publi,+erib,#F"Else
aSeA!@=if'BCFu#v
% @ing @As Str , OAal de$cp fesInte+)
Dim noof^t
h=pa
blkindex + num c1s
 \> [#`= RoundUpBC,8Ceqf<u".(P(OPZZ" g.` tX.8Y0.	ɔplusmn; zn
-?+]R+__R   00, x`$@!o 9"Left:	2) "." &S0
N n  )'Righ1Len) - 1(7 :;L.7,399' works on s that art with a BP
otherwia quit 8=x , i, IsuA tr, ptpos9, ho$ld , qn,! i3BsuPres0Y	Bo@Qanccs Pma
`A	suTrim# 'OpIu crRtffil ename".log"qN Ap% d!#1FClo Kill PSt #1Q>Pe' Inl: &p{ check3leadqXzero p, etc:.r(",,)B0=RV- 80/+ a+q 30-P<q	 DD	bw	+	g	f +~"	U>R
 Lik [-0-9][@ .]*|=@@xit {5'first d3;!begHinrapup '.Ipb'y g ood as igno@% tru&s!
i 	Vcc2 Ton (Isu)
S elect Ca@se Mid, cc, 1 pT "0"
i =` i & 0X1w	,,2	,,3w	,,4	5w	6	7w	8	9w	.	E lse
Exi t Fornd 

Next 
' fino of  dec places in I' is a s tring! *1 
I 'C Str(i) '# EOpe:uc rRtffilename.loDg"b Ap d@ As #1 P$t, "Va@lue: "i1@Clo	ptHpos #In"1L, ' ."If > 0 Then<num BAA= Lentpr) -CWR@oundUp@d8ata =Y\unPctio@EVIf $ check  if val  less than\sired precis %0x > !&'  reset to	sot su'slilled
x)	 +F't>ore.t3 |:.ne@(know whe@	A1star ted!
hold RightNuMPABwas cH 
suP9nt	 Fa' an8aly t@& forb)Vs.u.Trim(d<	 Rf ELike "(#)*"$>su@!D, 2E= 3`TruAo+9d e2 
e4c3b56Aj7'Q?#  FO'0'cF'e	L$X'conver~!aimal/wt[( * 10 ^ -{le0'suC"`	ǲrAxsI|d	  nr15 T o x Step - (Int((!e+ ((0.5())B)en) /nR` ^ "s ]acomIeBLRIpe,qe?olll	ue (ed)6m8o?suw	3P@i y0FollowP add]e$inter<na!lj $ separat`Wma&perioeSmay ,> Uwg
Left( ,,a-A~YvY YH}p'PG>B:9= 瓇@"su%"<R$	o(TA //x& <'0t trailA&zerosыse}?ux0K   v@E#q 'remIIaAI 7!_"3  _A[!@<0H+ 2e.g. 1G<Q 00Е3
Ur	W6c=@-C
 R'' B5@3]2Rz1R%  U=LzX	_U's houd Qhave3	 instead %0!C  ould b41 bujC1.009wp.aQ1 }xPc_t T-"xxbaP. Us31l &kx (v p6?L?L?L3Lp1 H<eb+	3zu
@0s% (qY )? tDϠ> 194repeauAos! Gopbegin0q ndup
   ElseRou ndUp = Isupnd If
 h str ingI & hXold Ez 
'Open I ucrRtffi@lename =" .log" For Ap "d APs #1 0P `t 
, "fina l value (red): " ?/su, A'Zoutput%z'CloseA^Function

  RemTrailZeroes`(dataE_S, nodec@placesInteger)* 
If In (2, $ | .") > 0 The@tmp1A Right9, Len) -()
l$ac1 To A('	 <=7
6&c@nExitt  ,, 1)"0"6Left(	-Next cc is) w the nu mber of tm zn
Hn~=QI` Uc JG6
΂@6GC
repinsmG, Finԉ߀@CJ'@ LL occurenA@<a @  within 
pos6DoB QFR, 0 :BHT6 +S$>h*)@&@, A@ ~?!M!!: '	P&	 j*j>+R c@@%`A
Loo `A!oGpairwiseH @b) AJBG̓Dim x
 firstofaBoolea"xd
ZEEa# Go escap Ex / 2 <>t(C '*':%&%e`+d )Z	= TruD ]@ODQ@$X #A
kFac:B=?l?l%	?l?lB[)6X/66 1/6r/;os?6@->?6J}96XO6!4C6#':N*3$%_7xboU7.47o[ҁFIRST[r[#@['-%D	%ƅ"p1%%s.w%c%'Bq4/$xe& o[o[l[[	Ee
u=Q#'\1"`o%e] ~S##Preturn?$Q05
?c?$$3qC%q#)")Hp@Zp ww6/ wonsert*6,patterni! DMyS3zz,6ϡng@" NB:d: pi$qst arts from !*IW8,>$"g2?n n`'vnУ~E 6  rch0Mid=Y, `` Dmatched Like9  PNq{ũ
nAAN6An-~Apa)  BrC ) - inse@rtposB Len(strA ))
 newsta = tmpsrch ) + n l1 N0data $Fft
(,>) & l RighHV1Slenfi ndpatter*n h1IInStr i2 	-  Elsend If
 Loop

E Function itcaps` As ! 6ing)
in ;UCase(Le	z1)xrgDConvE8xpoD@E 0
If Li ke "*#E- 0#*" The3q= , B"", 5< sup>&minus;4/G cJrep tr@ B@" & times; 1~0ae//0#*D*3-4-D(p--#p]#-P]/5/-9]<#E.2.`lE x5]_. ]*E\Fno?.\mAW\-3Dg3E#--' a@fo r su's,  i.e. 1.23(2){5 etc(#!x7Hg36Ae7-y3b D4b{E6_B?:?[P`*`E1`$lHnl 9 CIrr1kww1-/ngwQ-=V#w/#Ӗ1P2p
D/zkq `0(#OG$e8 H#8; ";oGpOLS$O;/!G###o;  JOA/OOG???"	;?0?0GG;;;R"//$G///&SSf $SOw˂ 97  
Public  Sub Wait abit(PauseTDDimw@@   P Sq Qr ' Set  .c Do While s<&s DoEvents  ' Y˲ ield to  other pr ocesses.
   Loop$ 0 
En d Sub
 
Functio n FormatChemula`(tmpf (   As String)z4 = 6!D= Ins`ertIn K],  "[A-Za-z)]###.  [ ,[)(]", 9 <inf*> 1/8)|
3.D+UL'$} ~8UV7uVAB"Vla8D=sU7U64UAA?d*	G~uC* ??* &H+?Jrmaߋa 

 	>	*:
*6b6!kKKK 			U%᷀
g6@5_@q5A 
O*rub% "<t	_z#:yo?K$4?OtT

e:OO@4]5"OA/?ϔl.$
 
O%O%Y5n* 9**5>04>on//####$$@ȯ_X/>4?)s3}
$u$" Wg^#	)))3OC2OOL1?5 "W </inf>",  2)
tmp formula  = Insert@InStr(`,  "]#[ ,[)(] 3 <<1	%[A-Z a-z) ]##([+-W4KsupW4&UTT30*)2Toz ΃@v]8yrepins- "&minus;V"[,.$ 
FatChemA
E nd Function
E  SpacegroupsF As @ing)@̀BFH= I:@MISSINGA1$ =J
΂itAj0/1]f##[{3?/  %#4-;;RepCi fcodesF(ptext T9;

'(5!*"&gtX '  must do  this fiPrst!g<A=&l"\%AArkg5\%bdeg"T\\times" \\db?&z-dbndtt9s q!_"+p`lusmnc-r+mnn2eneerangleA~l >#r ightarrorwTrr11\\lefl`gPJty2 iWd*pdbdt3*dmaalpha


bb2bet/?
n"c"chiOOddel_ADs"epsivrfrph/odg"gamm{h2/Zgiio		k"pkapp			l2lambdOOCmBmu__Rnnopomic7?3p=2p?&Hth`TjBrRxrhoSgs\ig"tRtauu/			NomegׯocxbxO_#Mo	z"zg2LL"\tLgBBPyȖC"CLZDDL	t	E2E@LsF2P			Һ&GL{		H	OI_TI]ILK"KL	tr ing, "\L" P&Lambd a;")
te xtstr  =@ repin 4(KTMMu&`N`N'`O0Omicr&dP3Pi&0BQThet'}RQRho2SS(igm2TTaE'UUps'WOmeg'&XX'YP%ZBZe
' ac cents:
̧RepCifA̨" & Ch r(39)acXute`A!g(ravj.Ado
ti,cedili^Birc)B~tild*5(qbre_!%a<caron?e;ogI>dbla!_/o&oslalshoy8C/ o^kRA!?n^oCX4XuNmD_A&s!&`szlig"pairwiseh!bE<inf+<//"Ro9<sup"a_ ,!c2codesF`Gҁ
E nd Funct ion
Sub test@( 'MsgBox Hex(900  Exit 
Dim@J As S%"1\? i\'23\`e fghh\`d"LF'Q,_HC9_!&_HO:_H
_H___H___Hont._H_HW-OI_Hy_H_H4/r!_H@|8;<<9e< 'data
:,!AYz)>stcharyQpos10o
 B In@2( , T, EIf0B > 0 ``H    - 1 + Len(#) )'4ft( ,)u8 Mid_+ 2, 1"H;pK	 ' do not:h1*cP en ds \' etc
RD@  lse: If'WQV= sB Zelect Case`c43%265 To 90
Oa O?Oun$"& ";Q.Righ-x91 s97x122S.t~rWb5) Q#*E0"%4 5B>g%{
&%
Loop
@0T! zCAreaDet0&orD0&.&~ABoo(lea:'0tu rns true@ if  aP dd 
<U*) Like "*CCD*"; TP$e
4 8AREA *DETECTOROtCOӐ ޱ teststri ng) Like  "*IMAG* PLATE*"  Then
Ar eaDetect orData =  True
E xit Functio NEnd  If

If UCase((PDS6 [SMART9\
0wFals x ry Sub Clea rArraysEPtc()r}  RtfFileLincount0
CIF GeomTables.$Vars"CifLoop- Num0Cols#
Row
EBStyle CCC4	@2
3Faci fitateLog( Msg As S, OpA{al Dont@ReportDB4ooBn @Display$	Fm !Wait .Label1.Ca@3
 Show
Do`EventED'a@Box + 7Build(=D Es !&  vbCrLf & E)NCP                                                                                                                                                                                                                                                                                          C I F G e o m T a b l e s                                                                                  C       C i f R t f W r i t e                                                                                      ;  ^      C i f T o o l s                                                                                         i  +     C i f W d M a i n                                                	                                                  8    
   H    
   X   	       
   h   	       
   x    
      	                   	      	      	     "        
       
                            	      	                     	      	         ,   @   	          p       x   	                     8                            	     (   	      	      	 ,   H   	 0   x   	 <      	      	 "      	      	       *       *   @    (   p    (       "       "      	      	 "       $   8    $   `   	                            
      	                                   	               0   	        P      `      p      x   
      	            	        8      	        	 $      	 $   0       X   	        h               .        .                                                                                        x                                       ME                    (     6
    <     <     <              P  P  $          @        P                        0                                                     h       %             st -                                                                                             p                         (              @        x                                x           ing              re or no                                              P     `                            `                  44     i         . i          `     ftmp`     !  0      if                            h      fout                      P                         p                                                     `"     " $ h    `                (  **     i    H    pos i      ue T       eRtf                                 of r                         @     um o                                                                        0   `"       r     `                       i           i               t wi                            P      cccc                      8   @                             p                                                     `"      h    `                (       i    H    ----i      rray        '                                  6  n                         @     atab                                                                        0   `"       	    `                  ..     i        ode i        `     2  M 0	      wnum                      	     h	                              P	                         p	                         	                         	   `"     mp tH
    `                (
         i        x    `                         F
                                
    H
      rown                      
    J0                                          Lp      amec                              P       `                         i          id        `       c @                                (     x                                `                                                                              `"         X  	  `                8         i          `     sup>                                            K T                                                                                                       `"     <sup
  `            |           i       <sup`h     $  `j     <sup`l       `       <sup   H       +                       0                     h                                                                               `"     K T (            @             H         @        x  H          @          l         @           @        @                  @        H           @               	  @        H  	     (      X  P    H
  x      P    h        h    x  8  H  	     (      X  P    H
  x      P    h        h    x  @    
                X    P                    3A $ * \ R f f f f * 1 6 4 3 5 a 7 6 9 0                                                             	 	               	       <           H        `        x    	      	       (       	               <       	                     	      	     "        
       
   (    
                                                                                                                                                                                                                                                                   	 4   x   	 L             	     	 $         0   	        8   	     	      $   P       x                      	       $      	 8      
   0	   	        @	   	 *   X	   	(   	   	     	   	   	4   	   	   	   	    
   		     	   
   	
   
   	     	    
   	   0
   	   @
   		     	   X
   	     		     	   x
   		     	    
   		        
      
   	 B   
   $   
   	 :       
   `   	        p   	 *      	(      	      	4      	   (   	   0   		     	   8   	
   @   		     	   P   	   `   	   p   	     	      	     		     	      		     	       		                             	          (      8   	    @      X   $   `         &            &            &            $          H   &   P      x   &            (            &            $         8   &   @      h   &   p         (            &            &          (   &   0      X   (   `         (            &            &            &          H   (   P      x   (            (            &            (         8   (   @      h   *   p         (            &             (         0   (   8      `   *   h         (            (            (          (   *   0      `   *   h         (            (            6          8   
   @   	     	 *   P   	       2       2      	       2       2   (   	       2   `    2      	       .       2       	      	      	      	 6   8       p          	              (           H   	      	          P   
   X   	        h      x                     	      
      	      	                                                 
              	    (   	 "   @   	 .   h           X              8   (    <   `                 	             2                     
   (   	      	    8   	    @   	    H       P       h       p   	        x   	     "                             
      	     	       	    h    .      	                    	                     8          @       X       h   	     p   	      	 ,      	 ,      	 <      	      	 "   0   	      	       .   X    .       ,       ,       $       &   @   	      	 "   h    $       $      	                             
        	          0        8        @        P    	         h           	                                 
       	                     	      !   	 $    !   	 $   H!       p!   	     	 4   !   	 $   !   	 (   !   	    "   	     	 $   ("      P"   	        X"   	     	 F  p"   $   #       #      #        $      $   	    $   $   8$   	 8   `$   
   $   	        $   	 *   $   	(   $   	     	   %   	4   (%   	   `%   	   h%   		     	   p%   	
   x%   	     	   %   	   %   	   %   		     	   %   	     		     	   %   		     	    %   		        &      &   	 B   &   $   `&   	 :   &   
   &   	        &   	 *   &   	(    '   	   H'   	4   X'   	   '   	   '   		     	   '   	
   '   		     	   '   	   '   	   '   	     	   '   	     		     	   (   		     	    (   		        8(      @(      H(      `(   	    x(      (      (   	    (      (   $   (      (   &   (       )   &   ()      P)   &   X)      )   $   )      )   &   )      )   &   )      *   (   *      @*   &   H*      p*   $   x*      *   &   *      *   &   *       +   (   +      0+   &   8+      `+   &   h+      +   &   +      +   (   +      +   (   +       ,   &   (,      P,   &   X,      ,   &   ,      ,   (   ,      ,   (   ,      -   (   -      @-   &   H-      p-   (   x-      -   (   -      -   *   -      .   (   .      8.   &   @.      h.   (   p.      .   (   .      .   *   .       /   (   /      0/   (   8/      `/   (   h/      /   *   /      /   *   /       0   (   0      00   (   80      `0   6   h0      0   
   0   	      2   0    .   0   	       2    1    .   X1   	       .   1    .   1   	       .   1    .   2   	      	         H2   	    2   	     	     	     	 0  3   	    84   	          X4       `4    (   h4       4       4   
   4   	     	         4      4      4      4      4   	     	         4       4        5       5         5       @5    
   H5       X5   	    `5   	 "   x5   	      8   5    <   5       6        6   	         06    2   H6       6       6    
   6   	      	    6   	    6   	    6       6   	    6   	     	         6      6  "     7       7       7       (7    
   07   	     	      	    @7    6   `7   	          7       7   	    7      7       7    8   7        8       88       H8   	     P8   	 ,   p8   	 0   8   	 <   8   	      	 "   9   	      	       ,   89    ,   h9    ,   9    *   9    *   9    *   (:       X:    $   x:   	      	 "   :    $   :    $   :   	          ;       (;       @;    
   X;   	          h;       p;       x;       ;   	         ;      ;   	        ;      ;      ;       <   
   <   	         <        <   	     8<   	 $   X<   	 $   <       <   	     	 2   <   	 $   <   	 (   =   	    @=   	     	 $   `=      =   	        =   	     	 F  =   $   >       ?       ?       8?   	         @?   	    P?      p?   $   ?   	 8   ?   
   ?   	        ?   	 *   @   	(   @@   	     	   h@   	   x@   	   @   	   @   		     	   @   	
   @   	     	   @   	   @   	   @   		     	   @   	     		     	   A   		     	    A   		        8A      @A   	     
   HA   	     	        XA      pA   	    A      A      A   	    A      A   $   A       B   &   B      0B   &   8B      `B   &   hB      B   $   B      B   &   B      B   &   B       C   (   (C      PC   &   XC      C   $   C      C   &   C      C   &   C      D   (   D      @D   &   HD      pD   &   xD      D   &   D      D   (   D       E   (   E      0E   &   8E      `E   &   hE      E   &   E      E   (   E      E   (   E       F   (   (F      PF   &   XF      F   (   F      F   (   F      F   *   F      G   (    G      HG   &   PG      xG   (   G      G   (   G      G   *   G      H   (   H      @H   (   HH      pH   (   xH      H   *   H      H   *   H      I   (   I      @I   (   HI      pI   6   xI      I   
   I   	      2   I    2    J    2   8J    .   pJ    .   J    .   J    .    K    .   0K    .   `K    .   K    .   K   	      	      	   K   	    M   	      	     	     	        0M   	    N   	          0N   	          8N    (   @N       hN       pN   
   xN   	     	        N      N      N      N      N   	      
   N   	      	         N       N       N       N        O       (O    
   0O       @O   	    HO   	 "   `O   	      8   O    <   O        P       P   	         P    2   0P       hP       xP    
   P   	      	    P   	    P   	    P       P       P   	         P      P  "    P       P       P       Q    
   Q   	      	     Q    8   @Q   	          xQ       Q   	     	    Q      Q       Q    8   Q        R       R       (R   	     0R   	      	 ,   PR   	 0   R   	 <   R   	      	 "   R   	      	       .   S    .   HS    .   xS    .   S    ,   S    ,   T    ,   8T    ,   hT       T    &   T   	      	 "   T    $   U    $   0U   	          XU       hU       U    
   U   	          U       U       U       U   	         U      U   	        V      (V      8V      @V   
   HV   	         XV       `V   	     xV   	 $   V   	 $   V       V   	     	 2   V   	 $   0W   	 (   XW   	    W   	     	 $   W      W   	         W   	     	 F  W   $   0Y       XY      `Y       xY      Y   	    Y      Y   $   Y   	 8   Y   
   (Z   	        8Z   	 *   PZ   	(   Z   	     	   Z   	   Z   	   Z   	   Z   		     	   Z   	
   Z   	     	   Z   	   [   	   [   		     	   0[   	     		     	   P[   		     	    X[   		        x[      [   	     
   [   	     	        [      [   	    [      [      [   	    [      \   $   \      @\   &   H\      p\   &   x\      \   &   \      \   $   \       ]   &   ]      0]   &   8]      `]   (   h]      ]   &   ]      ]   $   ]      ]   &   ]       ^   &   (^      P^   (   X^      ^   &   ^      ^   &   ^      ^   &   ^      _   (   _      @_   (   H_      p_   &   x_      _   &   _      _   &   _       `   (   `      0`   (   8`      ``   (   h`      `   &   `      `   (   `      `   (   `       a   *   (a      Xa   (   `a      a   &   a      a   (   a      a   (   a      b   *    b      Pb   (   Xb      b   (   b      b   (   b      b   *   b      c   *    c      Pc   (   Xc      c   (   c      c   6   c      c   
   c   	     	      2   d    2   @d    2   xd    2   d    .   d    .   e    .   He    .   xe   	       .   e    .   e    .   f    .   8f    .   hf    .   f   	       f   	    g   	           h   	          h    (   h       8h       @h   
   Hh   	     	        Xh      hh      ph      xh      h   	      
   h   	      	         h       h       h       h        h       h    
    i       i   	    i   	 "   0i   	      8   Xi    <   i       i       i   	         i    2    j       8j       Hj    
   Xj   	      	    hj   	    pj   	    xj       j       j   	         j      j   	     "    j    
   j       j    8   j   	          k       k   	      	    (k    6   Hk   	          k       k   	      	    k      k       k    8   k       l        l       0l   	     8l   	      	 ,   Xl   	 0   l   	 <   l   	      	 "   l   	      	      	       ,    m    ,   Pm    ,   m    *   m    *   m    *   n    &   @n    &   hn    &   n    $   n    $   n   	 "   o    $   0o    $   Xo   	          o       o       o    
   o   	          o       o       o       o   	         p      (p   	        Hp      Xp      hp      pp   
   xp   	         p   	    p    8   p   	     p   	 $    q   	 $   (q   	 &   Pq   	     	    xq   	 0   q   	 N   q   	    r   	     	 $    r      Hr   	        Pr   	     	      $   hr   	         r      r       r      r   	    r   	        r   $    s   	 8   (s   
   `s   	        ps   	 *   s   	(   s   	     	   s   	4   s   	   (t   	   0t   		     	   8t   	
   @t   	     	   Pt   	   `t   	   pt   		     	   t   	     		     	   t   		     	    t   		        t      t   	     
   t   	 B   t   	        8u      Pu   	    hu      u      u   	    u      u   $   u      u   &   u      v   &   v      @v   &   Hv      pv   $   xv      v   &   v      v   &   v       w   (   w      0w   &   8w      `w   $   hw      w   &   w      w   &   w      w   (   w       x   &   (x      Px   &   Xx      x   &   x      x   (   x      x   (   x      y   &   y      @y   &   Hy      py   &   xy      y   (   y      y   (   y       z   (   z      0z   &   8z      `z   (   hz      z   (   z      z   *   z      z   (    {      ({   &   0{      X{   (   `{      {   (   {      {   *   {      {   (   {       |   (   (|      P|   (   X|      |   *   |      |   *   |      |   (   |       }   (   (}      P}   6   X}      }   
   }   	     	 *   }   	       2   }    2   ~   	       2   H~    2   ~   	       2   ~    2   ~   	       2   (    2   `    2      	       2       .       2   8    .   p    2       .   ؀    2       .   @   	      	      	 6   p   	 8      	 "       :     	      	      	          H   	          P    (   X          	            
      	                                 ȃ   	      
   Ѓ    p      	     	    P   	    h   	       	       	 ,      	 
      	       	        	     	 .          @    \   `          	       B   ؅    <           `   	     	      ,   h    (             	      
   І   	      	       	       	       "                  8       @   	        H   	     "    P   	    X   	    p   	       	       	      	      2   Ї                        	         	 $   @   	    h    $       $          Ј          	 .         (   0   @      p      x   
             	      	 ,      	 0   ȉ                 	 2   (   	 >   `   	     	      	 2      	 <   ؊   	      	      	 :       (   X   	       	        	 2      	 "      	 d      	 
   p   	     	     	             	      	       	            $   Ȍ                                     (      0      8   (   @   8   h   (      	      	      	      	      	     	        ȍ   	       	       	        	    (   	    8   	    X   	    h   	                   	                    Ў   	                           (   "   8   R   `   R                      (      H   "   X   R      R   ؐ      0      8       @   *   `   	 D      	     	 >   ؑ   	 (      	 D   @   	 (            	     *      L      L   8               	                 	     
             
      	    Г   	 P      	 P   @   	            "                         Д          	             	                 (       8      P      `      p         	             "      "   ȕ   "                   	     	        8   	        H      X   
   `      p   
   x         
            
                     Ȗ      Ж      ؖ                                  	                 	     	     	            	    8   "   H      p   "      "      	     	      "   З                 .          P   	      	    X      x   $      	     ,                  
   (   .   8      h      p       x   
      	     	     	     	                            ș      Й                                           (      0      @      H      X      `      p      x                                          К      ؚ                                            0      8      H      P      `      h      x                                          ț      ؛                                           (      8      @      P      X      h      p                                          Ȝ      М                                           (      0      H      P      `      h      x               	       	     	 2      	       	       	      V      	             
   0      @    @   P               
   ȟ      ؟   
            	                               (       0       8       @      H   	     "    P   	         X   	     	          `       p   	      	        (      	          Ƞ       Р   	      	    ؠ                 8          P       h       x   	        	      	 ,      	 0   С   	 <       	      	 "   @   	      	          h                        Ȣ    (       "       "   8    ,   `    *       "       *       (       $   @   	      	 "   h    $       $      	                            
   (   	          8       @       H       X   	         p         	                    ȥ      Х   
   إ   	            	        8      	     @   	 $   `   	 $      	 &      	     	    ئ   	 0      	 N       	    p   	     	 $            	           	     	     	         ȧ   	     	 *   ا           2        
   X   	          h    2       2       
      	               t              6       
   Щ           D          0    6   H    
             	      	      	      
      	                           Ȫ      Ъ   	      
   ت   	      	     	       	        	       	    0   	 ,   H   	 
   x   	       	       	     	 .          ث    J          H       `       h           B           H    <   P          	     	      ,       (   ȭ          	      
       	      	       	       	        "   (       P       h       p   	        x   	      	     "       	            	     	                    	      	        .   Ю   	                     	      	          0       @    8   P                        	        	      	 ,   د   	 0      	 <   8   	      	 "   x   	      	      	       $       $   Ȱ    $       $       $   @    $   h    $       *      	      	 "       $       $   8   	          `       p           
      	                        Ȳ       ز   	                  	        (      8      H      P   
   X   	         h   	    p    8      	        	 $      	 $      	 &   0   	     	    X   	 0   p   	 N      	       	     	 $          (   	        0   	     	     	         H   	     	 *   X           2       
   ص   	              2        2   8    
   p   	      	      	                 (    6   @    
   x   	      	      	      	      
      	                                    	      
   ȷ   	      	     	    ط   	       	       	        	 ,   8   	 
   h   	    x   	       	     	 .          ȸ    \          H   	       `   `   	       <              	     	      ,       (   8       `   	      
   p   	      	       	       	       "                 غ          	          "                                 x          	       2   (    P   `    N      	       0        >   0    B   p   	       0       >       B   (   	      	          p   	     	          x       h   	      	        B      	                     	      	          (       8    8   H                        	        	      	 ,   о   	 0       	 <   0   	      	 "   p   	      	       8       8   п    8       8   @    8   x    8       8       8        8   X    :       :       :       :   P    :       :       :       :   P    :       :       :      	      	 "   P    $   x    $      	                            
      	                  (       0       @   	         X      p   	                             
      	            	        8      	     (   	 $   H   	 $   p   	 &      	     	       	 0      	 N      	    X   	     	 $   h         	           	     	     	            	     	 *      	      	              2       2   @    
   x   	      	      	              6       
      	      	 L      	      	      	      	      
   8   	         H      X      `      h      p   	      
   x   	      	     	       	       	       	       	 ,      	 
      	    (   	    8   	     	 .   H    &   x           "                                              8    
       <          (   	     	      ,   0    (   `          	      
      	      	       	       	       "       "                         8   	          @    
   H   	         X      ]    ]    (    (  to num of codes in _symm_equiv_pos loopg
I]           ue T]       P  eRtf]       x     ]         to num of rows max ]   ]         # "  array: (num of rows, num of cols)x   ] H  ]       $   r    $   r    '$   r  %  '$   r  x  $   r    $   r    $   r  % H  $   r       ' o X   P    $   r     $   r  ]   ]      '      start with none ]         ]    8  in    cccccccccccccccccccccccc    _geom_bond_distance   %       |   k       ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (     $ t ( 8  '     --------------------------   &  now have an array loophead(headcount) '    )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each datanameatab     list of possible datanames x   _geom_bond_atom_site_label_1  +  ox tmp  _geom_bond_atom_site_label_2  +  !   _geom_bond_site_symmetry_1  +    _geom_bond_site_symmetry_2  +    _geom_bond_distance   +  d      _geom_bond_publ_flag  +  iction    ccccccccccccccccccccccccccc d      '    UBound(CifLoopData, 2)    '    UBound(CifLoopData, 1) aut                rmatio     $  $    +  or                     	  
                                               !  "  #  $  %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  4  5  6  8  9  :  G  <  =  >  ?  @  A  B  C  D  E  F  7  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  h  u  j  k  l  m  n  o  p  q  r  s  g  v  w  x  y  z  {  |  }  ~      Acta C   ' _        '       
  G x j   !                 $    $    r '                 +     y   d F   k      `   h      Dim pubbonds()               ccccccccccccccccccccccccccc      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)  '   $    ' 
  
     data  -  MsgBox "There are no _geom_bond_publ_flag's"  Ms  F  GoTo finished ' no pub flags"                      'ccccccccccccccccc$ k      first determine no of pub rows       '                    $   $    [Yy]*  '               G  j       k `       '       analyse sym code here        $   $    [0-9]* '       2  MsgBox CifLoopData(rownum, loopdatanamecolnum(3))                            # codeflag contains code found before           $   $    $      '                  $   +   =   codetmp to be printed    y    d   k                              '         $   +      $   $    +    d F   k     no flag - do nothing     d X  k P    <  now repeat to get codeflagid(rownum, loopdatanamecolnum(4))          $   $    [0-9]* '       3   MsgBox CifLoopData(rownum, loopdatanamecolnum(4))                                   # codeflag contains code found before           $   $    $      '                  $   +   =   codetmp to be printed    y   d   k                              '         $   +      $   $    +    d F   k     no flag - do nothing     d (  k                       $   $  '     MsgBox Number      $           K T     do nothing!        K T   <sup>i</sup>    $   +        K T   <sup>ii</sup>     $   +      K T   <sup>iii</sup>    $   +      K T   <sup>iv</sup>     $   +      K T   <sup>v</sup>    $   +        K T   <sup>vi</sup>     $   +      K T   <sup>vii</sup>    $   +      K T   <sup>viii</sup>     $   +   	 K T   <sup>ix</sup>     $   +     
 K T   <sup>x</sup>    $   +        K T   <sup>xi</sup>     $   +      K T   <sup>xii</sup>    $   +      K T   <sup>xiii</sup>     $   +    K T   <sup>xiv</sup>    $   +      K T   <sup>xv</sup>     $   +      K T   <sup>xvi</sup>    $   +      K T   <sup>xvii</sup>     $   +    K T   <sup>xviii</sup>    $   +    K T   <sup>xix</sup>    $   +      K T   <sup>xx</sup>     $   +      K T   <sup>xxi</sup>    $   +      K T   <sup>xxii</sup>     $   +    K T   <sup>xxiii</sup>    $   +    K T   <sup>xxiv</sup>     $   +    K T   <sup>xxv</sup>    $   +      K T   <sup>xxvi</sup>     $   +    K T   <sup>xxvii</sup>    $   +    K T   <sup>xxviii</sup>     $   +          K T   <sup>xxix</sup>     $   +    K T   <sup>xxx</sup>    $   +      K T   <sup>xxxi</sup>     $   +     K T   <sup>xxxii</sup>    $   +   ! K T   <sup>xxxiii</sup>     $   +         " K T   <sup>xxxiv</sup>    $   +   # K T   <sup>xxxv</sup>     $   +   $ K T   <sup>xxxvi</sup>    $   +   % K T   <sup>xxxvii</sup>     $   +         & K T   <sup>xxxviii</sup>    $   +         ' K T   <sup>xxxix</sup>    $   +   ( K T   <sup>xxxx</sup>     $   +  S      <sup>   $      </sup>     $   +    n 
                # ccccccccccccccccccccccccccccccccccc           $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $  $ T     $   +        $   $    %      $   +           /  cccccccccccccccccccccccccccccccccccccccccccccc       $   $      $   $    	 {\emdash}      $   $       $   $     \cell      $   $     \cell    +         d     {\cf6   $     }    +  k                      
      '   d x    p  k h                 '        '          
            '   \cell \cell      +  d      '       k       ' then loop to a     tablecount = tablecount + 1          ' ccccccccccccccccccccccccccccccccccccccc       \par\par\pard A@        . <it>Geometric parameters (&Aring;, &deg;) for   $  !    </it>  A@    	 \par\pard A@    ) {\cellx2000\cellx4000\cellx6000\cellx8000 A@     {\*\s     	 \cbpat17   A@  5   start style    ]     \intbl  ' "                 "  $        $     \row   ' "          "A@     \intbl  ' "                                
 }}\par\parA@ k       o       ]    h    ]        ]   $   r            If CifTools.GetCifLoopData("_geom_contact_distance", datablock(datablocknumber).CifBlockStart, datablock(datablocknumber).CifBlockEnd) = False Then Exit Sub          cccccccccccccccccccccccc      _geom_contact_distance  %       | @  k 8      ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       &  and an array loopitem(rownum, colnum)       6  need to determine which colnum equiv to each dataname         list of possible datanames         _geom_contact_atom_site_label_1   +      _geom_contact_atom_site_label_2   +      _geom_contact_site_symmetry_1   +        _geom_contact_site_symmetry_2   +        _geom_contact_distance  +        _geom_contact_publ_flag   +        ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)         (                    $    +              ' _        '      
  G x j    	             $    $    r '                +     y 8  d F   k       		           H         now have col num of each     dataname (1 to ...) stored as L       loopdatanamecolnum(1 to ...)     $    ' 
   - '  If l = 0 Then GoTo finished ' no pub flags       need to change to double col      !  divide totrows by 2 and round up     do loop to that num 2      first determine no of pub rows   '                ?Print #1, CifLoopData(rownum, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum, loopdatanamecolnum(2)) & " " & CifLoopData(rownum, loopdatanamecolnum(5)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum + a, loopdatanamecolnum(2)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(5))       $   $    [Yy]*  '             G  $j   k        '       analyse sym code here       $   $    [0-9]* ' R    2  MsgBox CifLoopData(rownum, loopdatanamecolnum(3))                  hS    # codeflag contains code found before   S      $   $    $      '        
         $   +   =   codetmp to be printed  y   d   k         
          T       '        $   +      $   $    +    d F   k     no flag - do nothing  	 d   k     <  now repeat to get codeflagid(rownum, loopdatanamecolnum(4))        $   $    [0-9]* ' 0V    3   MsgBox CifLoopData(rownum, loopdatanamecolnum(4))    	                         # codeflag contains code found before  @       $   $    $      '                $   +   =   codetmp to be printed X  y h  d `  k X                          '         $   +      $   $    +    d F   k     no flag - do nothing 8Y  d   k                    $   $  '     MsgBox idnumber	   $          K T     do nothing!   	   K T   <sup>i</sup>    $   +      K T   <sup>ii</sup>     $   +  	   K T   <sup>iii</sup>    $   +     K T   <sup>iv</sup>     $   +     K T   <sup>v</sup>    $   +   	   K T   <sup>vi</sup>     $   +     K T   <sup>vii</sup>    $   +  	   K T   <sup>viii</sup>     $   +   	 K T   <sup>ix</sup>     $   +  	  
 K T   <sup>x</sup>    $   +   	   K T   <sup>xi</sup>     $   +  	   K T   <sup>xii</sup>    $   +    K T   <sup>xiii</sup>     $   +    K T   <sup>xiv</sup>    $   +    K T   <sup>xv</sup>     $   +    K T   <sup>xvi</sup>    $   +    K T   <sup>xvii</sup>     $   +    K T   <sup>xviii</sup>    $   +    K T   <sup>xix</sup>    $   +  	   K T   <sup>xx</sup>     $   +  	  K T   <sup>xxi</sup>    $   +    K T   <sup>xxii</sup>     $   +    K T   <sup>xxiii</sup>    $   +    K T   <sup>xxiv</sup>     $   +    K T   <sup>xxv</sup>    $   +  	   K T   <sup>xxvi</sup>     $   +    K T   <sup>xxvii</sup>    $   +    K T   <sup>xxviii</sup>     $   +    d    K T   <sup>xxix</sup>     $   +    K T   <sup>xxx</sup>    $   +    K T   <sup>xxxi</sup>     $   +     K T   <sup>xxxii</sup>    $   +   ! K T   <sup>xxxiii</sup>     $   +      " K T   <sup>xxxiv</sup>    $   +   # K T   <sup>xxxv</sup>     $   +   $ K T   <sup>xxxvi</sup>    $   +   % K T   <sup>xxxvii</sup>     $   +  B  & K T   <sup>xxxviii</sup>    $   +     ' K T   <sup>xxxix</sup>    $   +   ( K T   <sup>xxxx</sup>     $   +  S     <sup>   $      </sup>     $   +   n X               $   $    %      $   +    g      $   $  $      $   +        $   $    %      $   +  	         $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $ T     $   +        $   $  $      $   +        $   $      $   $     {...}      $   $       $   $     \cell      $   $     \cell    +    i      MsgBox pubbonds(pubrows)     * pubbonds(pubrows) = "<entry>" & CifLoopData(rownum, loopdatanamecolnum(1)) & codeflagid(rownum, loopdatanamecolnum(3)) & "&ctdot;" & CifLoopData(rownum, loopdatanamecolnum(2)) & codeflagid(rownum, loopdatanamecolnum(4)) & "</entry><entry>" & CifLoopData(rownum, loopdatanamecolnum(5)) & "</entry>"    MsgBox pubbonds(pubrows)       d     {\cf6   $     }    +  k h   $`              
   '   d 0    (  k         '      '          
  k        '   \cell \cell      +  d 
     '   hl  k 
      ' then loop to a     tablecount = tablecount + 1      ) {\cellx2000\cellx4000\cellx6000\cellx8000 A@     {\*\s     	 \cbpat17   A@  5   start stylehm  ] P    \intbl  ' "           m    "  $        $     \row   ' " ,       "A@     \intbl  ' "      .                        
 }}\par\parA@     End If p    	  o  	  h    ]       ]         ] X  $   r   8       cccccccccccccccccccccccc     _geom_angle_atom_site_label_1   %       | `  k X      ------------------------       '     @t     $  ! 0  _    $  ! (   _Table#  '     $ t (       $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)t     )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname       list of possible datanames  ,     _geom_angle_atom_site_label_1   +       _geom_angle_atom_site_label_2   +       _geom_angle_atom_site_label_3   +       _geom_angle_site_symmetry_1   +  	      _geom_angle_site_symmetry_2   +        _geom_angle_site_symmetry_3   +        _geom_angle   +        _geom_angle_publ_flag   +          ccccccccccccccccccccccccccc   (y    '    UBound(CifLoopData, 2)    '    UBound(CifLoopData, 1)                      H{       $    +              ' _        '       
  G x j   |             `}    $    $    r '           ~      +    y    d F   k        ~                      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...) p    $    ' 
   ,   If l = 0 Then GoTo finished ' no pub flags        need to change to double col     !  divide totrows by 2 and round up     do loop to that num       first determine no of pub rows       '                ?Print #1, CifLoopData(rownum, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum, loopdatanamecolnum(2)) & " " & CifLoopData(rownum, loopdatanamecolnum(5)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum + a, loopdatanamecolnum(2)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(5))       $   $    [Yy]*  '             G  &j  &   k         '       analyse sym code here     (              ($   $    [0-9]* '      2  MsgBox CifLoopData(rownum, loopdatanamecolnum(3))                           # codeflag contains code found before           ($   $    $      '                  ($   +  y h?  d `?  k X?                             '         ($   +      ($   $    +    d F   k     no flag - do nothing     d >  k >     (                           $   $  '     MsgBox idnumber    $           K T     do nothing!        K T   <sup>i</sup>    $   +        K T   <sup>ii</sup>     $   +      K T   <sup>iii</sup>    $   +      K T   <sup>iv</sup>     $   +      K T   <sup>v</sup>    $   +        K T   <sup>vi</sup>     $   +      K T   <sup>vii</sup>    $   +      K T   <sup>viii</sup>     $   +   	 K T   <sup>ix</sup>     $   +     
 K T   <sup>x</sup>    $   +        K T   <sup>xi</sup>     $   +      K T   <sup>xii</sup>    $   +      K T   <sup>xiii</sup>     $   +    K T   <sup>xiv</sup>    $   +      K T   <sup>xv</sup>     $   +      K T   <sup>xvi</sup>    $   +      K T   <sup>xvii</sup>     $   +    K T   <sup>xviii</sup>    $   +    K T   <sup>xix</sup>    $   +      K T   <sup>xx</sup>     $   +      K T   <sup>xxi</sup>    $   +      K T   <sup>xxii</sup>     $   +    K T   <sup>xxiii</sup>    $   +    K T   <sup>xxiv</sup>     $   +    K T   <sup>xxv</sup>    $   +      K T   <sup>xxvi</sup>     $   +    K T   <sup>xxvii</sup>    $   +    K T   <sup>xxviii</sup>     $   +          K T   <sup>xxix</sup>     $   +    K T   <sup>xxx</sup>    $   +      K T   <sup>xxxi</sup>     $   +     K T   <sup>xxxii</sup>    $   +   ! K T   <sup>xxxiii</sup>     $   +         " K T   <sup>xxxiv</sup>    $   +   # K T   <sup>xxxv</sup>     $   +   $ K T   <sup>xxxvi</sup>    $   +   % K T   <sup>xxxvii</sup>     $   +         & K T   <sup>xxxviii</sup>    $   +         ' K T   <sup>xxxix</sup>    $   +   ( K T   <sup>xxxx</sup>     $   +  S 6    <sup>   $      </sup>     $   +    n H6                 $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $ T     $   +        $   $  $      $   +        pubbonds(pubrows) = CifLoopData(rownum, loopdatanamecolnum(1)) & codeflagid(rownum, loopdatanamecolnum(3)) & "{\emdash}" & CifLoopData(rownum, loopdatanamecolnum(2)) & codeflagid(rownum, loopdatanamecolnum(4)) & "\cell " & CifLoopData(rownum, loopdatanamecolnum(5)) & "\cell "         MsgBox pubbonds(pubrows)      $   $      $   $    	 {\emdash}      $   $       $   $    	 {\emdash}      $   $       $   $     \cell      $   $     \cell    +            MsgBox pubbonds(pubrows)       d 1    {\cf6   $     }    +  k 1   &1                  
      '   d X1    P1  k H1                 '        '          
            '   \cell \cell      +  d 0     '       k 0      ' then loop to a     tablecount = tablecount + 1          ) {\cellx2000\cellx4000\cellx6000\cellx8000 A@     {\*\s     	 \cbpat17   A@  5   start style    ]     \intbl  ' "                 "  $        $     \row   ' "          "A@     \intbl  ' "                                
 }}\par\parA@ k 0/    (/  o  /      ]   
 h    ]   
     ]   $   r            cccccccccccccccccccccccc      _geom_torsion_atom_site_label_1   %     | .  k x.      ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname         list of possible datanames         _geom_torsion_atom_site_label_1   +      _geom_torsion_atom_site_label_2   +      _geom_torsion_atom_site_label_3   +      _geom_torsion_atom_site_label_4   +      _geom_torsion_site_symmetry_1   +        _geom_torsion_site_symmetry_2   +        _geom_torsion_site_symmetry_3   +        _geom_torsion_site_symmetry_4   +        _geom_torsion  	 +        _geom_torsion_publ_flag  
 +        ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)         (                      $    +                ' _ H*       '      
 
  G x j                        $    $    r '                  +     y )  d F   k             )          H         now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)      
 $    ' 
  +  If l = 0 Then GoTo finished ' no pub flags           need to change to double col       !  divide totrows by 2 and round up     do loop to that num         first determine no of pub rows       '                  ?Print #1, CifLoopData(rownum, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum, loopdatanamecolnum(2)) & " " & CifLoopData(rownum, loopdatanamecolnum(5)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(1)) & "-" & CifLoopData(rownum + a, loopdatanamecolnum(2)) & " " & CifLoopData(rownum + a, loopdatanamecolnum(5))      
 $   $    [Yy]*  '               G  *j       k &       '       analyse sym code here       (                ($   $    [0-9]* '       2  MsgBox CifLoopData(rownum, loopdatanamecolnum(3))                            # codeflag contains code found before           ($   $    $      '                  ($   +  y (%  d  %  k %                             '         ($   +      ($   $    +    d F   k     no flag - do nothing     d $  k x$     (                           $   $  '     MsgBox Number      $           K T     do nothing!        K T   <sup>i</sup>    $   +        K T   <sup>ii</sup>     $   +      K T   <sup>iii</sup>    $   +      K T   <sup>iv</sup>     $   +      K T   <sup>v</sup>    $   +        K T   <sup>vi</sup>     $   +      K T   <sup>vii</sup>    $   +      K T   <sup>viii</sup>     $   +   	 K T   <sup>ix</sup>     $   +     
 K T   <sup>x</sup>    $   +        K T   <sup>xi</sup>     $   +      K T   <sup>xii</sup>    $   +      K T   <sup>xiii</sup>     $   +    K T   <sup>xiv</sup>    $   +      K T   <sup>xv</sup>     $   +      K T   <sup>xvi</sup>    $   +      K T   <sup>xvii</sup>     $   +    K T   <sup>xviii</sup>    $   +    K T   <sup>xix</sup>    $   +      K T   <sup>xx</sup>     $   +      K T   <sup>xxi</sup>    $   +      K T   <sup>xxii</sup>     $   +    K T   <sup>xxiii</sup>    $   +    K T   <sup>xxiv</sup>     $   +    K T   <sup>xxv</sup>    $   +      K T   <sup>xxvi</sup>     $   +    K T   <sup>xxvii</sup>    $   +    K T   <sup>xxviii</sup>     $   +          K T   <sup>xxix</sup>     $   +    K T   <sup>xxx</sup>    $   +      K T   <sup>xxxi</sup>     $   +     K T   <sup>xxxii</sup>    $   +   ! K T   <sup>xxxiii</sup>     $   +         " K T   <sup>xxxiv</sup>    $   +   # K T   <sup>xxxv</sup>     $   +   $ K T   <sup>xxxvi</sup>    $   +   % K T   <sup>xxxvii</sup>     $   +         & K T   <sup>xxxviii</sup>    $   +         ' K T   <sup>xxxix</sup>    $   +   ( K T   <sup>xxxx</sup>     $   +  S H    <sup>   $      </sup>     $   +    n                  $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +        $   $  $      $   +       	 $   $  $     	 $   +       	 $   $  $ T    	 $   +        $   $      $   $    	 {\emdash}      $   $       $   $    	 {\emdash}      $   $       $   $    	 {\emdash}      $   $       $   $     \cell     	 $   $     \cell    +        MsgBox pubbonds(pubrows)       d     {\cf6   $     }    +  k    *                  
      '   d       k x                 '        '          
            '   \cell \cell      +  d       '       k       ' then loop to a     tablecount = tablecount + 1          ) {\cellx2000\cellx4000\cellx6000\cellx8000 A@     {\*\s     	 \cbpat17   A@  5   start style    ] P    \intbl  ' "                 "  $        $     \row   ' "          "A@     \intbl  ' "                                
 }}\par\parA@ k `    X  o P  h    $   r        ]      '   *  dont reset if combining with other tables]     	    ]    8	        cccccccccccccccccccccccc      _geom_hbond_atom_site_label_D   %       | x  k p      ------------------------       '      @t 	    $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname         list of possible datanames         _geom_hbond_atom_site_label_D   +        _geom_hbond_atom_site_label_H   +        _geom_hbond_atom_site_label_A   +        _geom_hbond_site_symmetry_D   +          _geom_hbond_site_symmetry_H   +          _geom_hbond_site_symmetry_A   +          _geom_hbond_distance_DH   +      _geom_hbond_distance_HA   +      _geom_hbond_distance_DA  	 +      _geom_hbond_angle_DHA  
 +        _geom_hbond_publ_flag   +          ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)         	                      $  $    +                  ' _        '       
  G x j                       $    $    r '                  +     y   d F   k             p      Dim pubbonds()            	     ccccccccccccccccccccccccccc      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)          'l = Len(loopdatanamecolnum(11))      '  If l = 0 Then     * '  MsgBox "There are no _bond_publ_flag's"   H '  GoTo finished ' no pub flags"                      'ccccccccccccccccc     	 '  End If    first determine no of pub rows       '                    $   $    [Yy]*  '               G  ,j       k H       '       analyse sym code here       (                ($   $    [0-9]* '       2  MsgBox CifLoopData(rownum, loopdatanamecolnum(3))                            # codeflag contains code found before           ($   $    $      '                  ($   +   ?   codetmp to be printed    y   d   k                              '         ($   +      ($   $    +    d F   k     no flag - do nothing     d (  k       (          <  now repeat to get codeflagid(rownum, loopdatanamecolnum(4))                         $   $  '     MsgBox Number      $           K T     do nothing!        K T   <sup>i</sup>    $   +        K T   <sup>ii</sup>     $   +      K T   <sup>iii</sup>    $   +      K T   <sup>iv</sup>     $   +      K T   <sup>v</sup>    $   +        K T   <sup>vi</sup>     $   +      K T   <sup>vii</sup>    $   +      K T   <sup>viii</sup>     $   +   	 K T   <sup>ix</sup>     $   +     
 K T   <sup>x</sup>    $   +        K T   <sup>xi</sup>     $   +      K T   <sup>xii</sup>    $   +      K T   <sup>xiii</sup>     $   +    K T   <sup>xiv</sup>    $   +      K T   <sup>xv</sup>     $   +      K T   <sup>xvi</sup>    $   +      K T   <sup>xvii</sup>     $   +    K T   <sup>xviii</sup>    $   +    K T   <sup>xix</sup>    $   +      K T   <sup>xx</sup>     $   +      K T   <sup>xxi</sup>    $   +      K T   <sup>xxii</sup>     $   +    K T   <sup>xxiii</sup>    $   +    K T   <sup>xxiv</sup>     $   +    K T   <sup>xxv</sup>    $   +      K T   <sup>xxvi</sup>     $   +    K T   <sup>xxvii</sup>    $   +    K T   <sup>xxviii</sup>     $   +          K T   <sup>xxix</sup>     $   +    K T   <sup>xxx</sup>    $   +      K T   <sup>xxxi</sup>     $   +     K T   <sup>xxxii</sup>    $   +   ! K T   <sup>xxxiii</sup>     $   +         " K T   <sup>xxxiv</sup>    $   +   # K T   <sup>xxxv</sup>     $   +   $ K T   <sup>xxxvi</sup>    $   +   % K T   <sup>xxxvii</sup>     $   +         & K T   <sup>xxxviii</sup>    $   +         ' K T   <sup>xxxix</sup>    $   +   ( K T   <sup>xxxx</sup>     $   +  S     <sup>   $      </sup>     $   +    n h                # ccccccccccccccccccccccccccccccccccc           $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +            $   $    %      $   +          $   $  $ T     $   +        $   $    %      $   +            $   $  $ T     $   +       	 $   $    %     	 $   +           	 $   $  $ T    	 $   +       
 $   $    %     
 $   +           
 $   $  $ T    
 $   +       /  cccccccccccccccccccccccccccccccccccccccccccccc      1 MsgBox CifLoopData(rownum, loopdatanamecolnum(7))     MsgBox loopdatanamecolnum(7)          $   $      $   $    	 {\emdash}      $   $       $   $     ...      $   $       $   $     \cell      $   $     \cell      $   $     \cell     	 $   $     \cell     
 $   $     \cell    +             d |    {\cf6   $     }    +  k x|   ,p|                  
      '   d @|    8|  k 0|             a \cell {\i D}{\emdash}H\cell H...{\i A}\cell {\it D}...{\it A}\cell {\i D}{\emdash}H...{\i A}\cell    +      a = pubrows / 2       b = pubrows Mod 2     If b > 0 Then         a = Int(a) + 1       & pubbonds(pubrows + 1) = "\cell \cell "        Else         
 a = Int(a)    'End If      ' ccccccccccccccccccccccccccccccccccccccc       \par\par\pard A@        2 <it>Hydrogen-bond parameters (&Aring;, &deg;) for   $  !    </it>  A@        	 \par\pard A@    3 {\cellx2000\cellx3500\cellx5000\cellx6500\cellx8000 A@           {\*\s     	 \cbpat17   A@  5   start style    ] 	                col heads in idx 0       \intbl    $     \row   ' "    "A@                                    } A@     close style         	 }\par\par A@ k x    x  o x  	        Dim symcode(20)       Dim symcodepart(20, 3)        Dim symcodenum(20, 3)         Dim symcodexyz(20, 3)         _symmetry_equiv_pos_as_xyz  %           | w  d w  k w     For rownum = 1 To totrows    MsgBox CifLoopData(rownum, 1)        Next rownum         '    UBound(CifLoopData, 1)      ' .   UBound(CifLoopData, 2)      ' 0 
  default     .  
         (  need to identify which col has cifcodes          .            $    _symmetry_equiv_pos_as_xyz    ' 0k v             k hv     %  set up arrays of symmcodes from loop        )  store as num and chars x 3 for each code                    0$   ' 2       + 'remove 1st invert comma - no need any more          8 symcode(rownum) = Right(CifLoopData(rownum, 1), lli - 1)     , commapos = InStr(1, symcode(rownum), "'", 0)         5 symcode(rownum) = Left(symcode(rownum), commapos - 1)       4 need to remove spaces   labelled @ by arraymixedloop          0$    @    $    +     Do   lsc = Len(symcode(rownum))  , spacepos = InStr(1, symcode(rownum), "@", 0)         If spacepos = 0 Then Exit Do        ^ symcode(rownum) = Left(symcode(rownum), spacepos - 1) & Right(symcode(rownum), lsc - spacepos)       Loop        $   ' 
    For idx = 1 To 3      $    ,     ' 4    4     $    ,     ' 6      4   
      d r   8r  k r    6   
      d r   8r  k r    $    4   $       +    $    4     6     4 $       +    $    
  6 $      +     :               Select Case partno   Case 1       searchchar = "x" 'chr(120)   Case 2       searchchar = "y" '121        Case 3       searchchar = "z" '122       
 End Select w ' <_ Xq    <   ' <    < {   G x j         <$   ' >      :$   ' @      +   > ' B      :$    B    ' D  D   
          :$    B     :+            :$    D   $       :$    @  D    $       :+            :$    D   $       :$    @  D    $       :+        d o    -   > ' B      :$    B    ' D  D   
          :$    B     :+            :$    D   $       :$    @  D    $       :+            :$    D   $       :$    @  D    $       :+        d n    >' B      :$    B    ' D  D        ' e.g. y,x,z as symm op!        >  don't do anything coz probably not meant to be in this part?!      8 symcodexyz(rownum, partno) = symcodepart(rownum, partno)    "  MsgBox symcodexyz(rownum, partno)  = symcodenum(rownum, partno) = Val(symcodepart(rownum, partno))       "  MsgBox symcodenum(rownum, partno)d Hm      :$    +    B     :+            :$    D   $       :$    @  D $       :+          :$    D   $       :$    @  D $       :+      k pl  k hl  k `l   Xl     :         8@l                For n = 1 To rownum         I MsgBox symcodenum(n, 1) & " " & symcodenum(n, 2) & " " & symcodenum(n, 3)   I MsgBox symcodexyz(n, 1) & "," & symcodexyz(n, 2) & "," & symcodexyz(n, 3)      Next n   o Xk  H
    ]   2 
    ]    
    ]       
      ]       8                       $   ' N  N          $    $   '   5   + H   5   + H   5   + H d xj    $    $   '   $      $     + H         $      $     + H         $      $     + H       k i     :              :$ H '     $          K T    ' P        K T    ' P        K T    ' P        K T    ' P        K T    ' P  K T   ' P  K T   ' P  K T   ' P 	 K T   ' Pn h     P  :+ H     :$   ' R        fracs:         :$    /     ' T        T   
          :$    T   $   ' V          :$    R  T $  ' X        X  :$ H $       V ' Z        Z  /    X     :+ L d g      :$  $     :$ H      :+ L   k g      test to see if val = 0       :$ L   0     ' \    \     G         :+ L j         :$ L     :$       :+          :$    +* ' ^          :$   ' `      ^             :$    `   $      :+    d f  k f   f     :            MsgBox Number           K T   (i) ' b      K T   (ii)' b      K T   (iii) ' b    K T   (iv)' b      K T   (v) ' b      K T   (vi)' b      K T   (vii) ' b    K T   (viii)' b   	 K T   (ix)' b     
 K T   (x) ' b      K T   (xi)' b      K T   (xii) ' b    K T   (xiii)' b    K T   (xiv) ' b    K T   (xv)' b      K T   (xvi) ' b    K T   (xvii)' b    K T   (xviii) ' b  K T   (xix) ' b    K T   (xx)' b      K T   (xxi) ' b    K T   (xxii)' b    K T   (xxiii) ' b  K T   (xxiv)' b    K T   (xxv) ' b    K T   (xxvi)' b    K T   (xxvii) ' b  K T   (xxviii)' b  K T   (xxix)' b    K T   (xxx) ' b    K T   (xxxi)' b     K T   (xxxii) ' b ! K T   (xxxiii)' b " K T   (xxxiv) ' b # K T   (xxxv)' b   $ K T   (xxxvi) ' b % K T   (xxxvii)' b & K T  	 (xxxviii) ' b       ' K T   (xxxix) ' b ( K T   (xxxx)' b  S b    (      )  ' bn `b     Next idx    , <tfn id=" & Chr(34) & "tfnu1" & Chr(34) & ">          <p>Symmetry codes: (i) <fi type=" & Chr(34) & "tex" & Chr(34) & ">-x,-y,1-z</fi>; (ii) <fi type=" & Chr(34) & "tex" & Chr(34) & ">"x-1,y,z</fi>.</p>          </tfn>      b         $     ,      $     ,      $     + F        MsgBox publsymcode         $ F $    + F                       
         2 {\par \pard\plain  \sa120\f0\fs20 Symmetry codes: A@                 $ F   ;  A@                    $ F   .} A@        V        d F   k    '   r    r    r    r    r    r  o _  x    ]   ]        ]    H        cccccccccccccccccccccccc      _atom_site_label  %     | 0_  k (_      ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname         list of possible datanames         _atom_site_label  +      _atom_site_fract_x  +    _atom_site_fract_y  +    _atom_site_fract_z  +    _atom_site_U_iso_or_equiv   +    _atom_site_adp_type   +          _atom_site_calc_flag  +          _atom_site_calc_attached_atom   +        _atom_site_refinement_flags  	 +          _atom_site_occupancy 
 +          _atom_site_disorder_assembly  +          _atom_site_disorder_group   +    _atom_site_type_symbol  +          ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)                               $  $    +                  ' _ Z       '       
  G x j                       $    $    r '                  +     y 0Z  d F   k             Z      Dim pubbonds()                 ccccccccccccccccccccccccccc      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)          'l = Len(loopdatanamecolnum(11))      '  If l = 0 Then     * '  MsgBox "There are no _bond_publ_flag's"   H '  GoTo finished ' no pub flags"                      'ccccccccccccccccc     	 '  End If    first determine no of pub rows       '                     '      # ccccccccccccccccccccccccccccccccccc          f                f$   $    % T     f$   +           f           f                f$   $    %      f$   +            f$   $    %      f$   +           f          d    f \cell {\i x}\cell {\i y}\cell {\i z}\cell {\i U}\cell \cell \cell \cell \cell \cell \cell \cell \cell    +         f              $      f$   $     \cell    +       f        d V   5 \cell {\i x}\cell {\i y}\cell {\i z}\cell {\i U}\cell    +         f              $      f$   $     \cell    +       f        k hU                  
      '   d 8U    0U  k (U                a = pubrows / 2       b = pubrows Mod 2     If b > 0 Then         a = Int(a) + 1       & pubbonds(pubrows + 1) = "\cell \cell "        Else         
 a = Int(a)    'End If      ' ccccccccccccccccccccccccccccccccccccccc       \par\par\pard A@         <it>Atomic site parameters for    $  !    </it>  A@          	 \par\pard A@   d       {\cellx600\cellx1200\cellx1800\cellx2400\cellx3000\cellx3600\cellx4200\cellx4800\cellx5400\cellx6000\cellx6600\cellx7200\cellx7800A@ d  S     3 {\cellx1500\cellx3000\cellx4500\cellx6000\cellx7500 A@       k R      {\*\s     	 \cbpat17   A@  5   start style    ]                 col heads in idx 0       \intbl    $     \row   ' "    "A@                                    } A@     close style         	 }\par\par A@ k Q    Q  o Q      ] X  ]    p    ]            cccccccccccccccccccccccc      _atom_site_aniso_label  %       | P  k P      ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname         list of possible datanames         _atom_site_aniso_label  +        _atom_site_aniso_U_11   +        _atom_site_aniso_U_22   +        _atom_site_aniso_U_33   +        _atom_site_aniso_U_12   +        _atom_site_aniso_U_13   +        _atom_site_aniso_U_23   +        _atom_site_aniso_type_symbol  +            ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)                               $  $    +                  ' _ 8M       '       
  G x j                       $    $    r '                  +     y L  d F   k             L      Dim pubbonds()            8     ccccccccccccccccccccccccccc      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)          'l = Len(loopdatanamecolnum(11))      '  If l = 0 Then     * '  MsgBox "There are no _bond_publ_flag's"   H '  GoTo finished ' no pub flags"                      'ccccccccccccccccc     	 '  End If    first determine no of pub rows       '                     '      # ccccccccccccccccccccccccccccccccccc          f                f$   $    % T     f$   +           f           f                f$   $    %      f$   +            f$   $    %      f$   +           f          \cell {\i U}{\super 11}\cell {\i U}{\super 22}\cell {\i U}{\super 33}\cell {\i U}{\super 12}\cell {\i U}{\super 13}\cell {\i U}{\super 23}\cell \cell    +         f              $      f$   $     \cell    +       f                        
      '   d HH    @H  k 8H                a = pubrows / 2       b = pubrows Mod 2     If b > 0 Then         a = Int(a) + 1       & pubbonds(pubrows + 1) = "\cell \cell "        Else         
 a = Int(a)    'End If      ' ccccccccccccccccccccccccccccccccccccccc       \par\par\pard A@        2 <it>Anistropic atomic displacement parameters for   $  !    </it>  A@        	 \par\pard A@    Q {\cellx1000\cellx2000\cellx3000\cellx4000\cellx5000\cellx6000\cellx7000\cellx8000 A@     {\*\s     	 \cbpat17   A@  5   start style    ] @                col heads in idx 0       \intbl    $     \row   ' "    "A@                                    } A@     close style         	 }\par\par A@ k  E    E  o E  X    ]   ]   ]      n  A  C            _geom_extra_table_head_   n$    A@         $  !   MISSING   G   Extra table heading missing   $  ( j   <b>Table</b> #SPW#  $  !         $  !    #/SPW# ' h      _geom_table_headnote_   n$    A@   $  !   MISSING   G  	 ---------   $  ( j     #SPW#   $  !         $  !    #/SPW# ' j          _geom_table_footnote_   n$    A@   $  !   MISSING   G  	 ---------   $  ( j     #SPW#   $  !         $  !    #/SPW# ' l      ]    ]           ' \    cccccccccccccccccccccccc      _geom_extra_table   n$      _col_1   %             A  k A      ------------------------       '      @t     $  ! 0  _    $  ! (   _Table#  '     $ t (         $ t ( 8  '     --------------------------   &  now have an array loophead(headcount)       )  and an array CifLoopData(rownum, colnum)    6  need to determine which colnum equiv to each dataname         list of possible datanames         _geom_extra_table   n$      _col_1   +    _geom_extra_table   n$      _col_2   +    _geom_extra_table   n$      _col_3   +    _geom_extra_table   n$      _col_4   +    _geom_extra_table   n$      _col_5   +    _geom_extra_table   n$      _col_6   +    _geom_extra_table   n$      _col_7   +    _geom_extra_table   n$      _col_8   +    _geom_extra_table   n$      _col_9  	 +    _geom_extra_table   n$      _col_10   
 +          _geom_extra_table   n$      _col_11    +          _geom_extra_table   n$      _col_12    +          _geom_extra_table   n$      _col_13    +          _geom_extra_table   n$      _col_14    +          _geom_extra_table   n$      _col_15    +          _geom_extra_table   n$      _col_16    +          _geom_extra_table   n$      _col_17    +          _geom_extra_table   n$      _col_18    +          _geom_extra_table   n$      _col_19    +          _geom_extra_table   n$      _col_20    +            ccccccccccccccccccccccccccc         '    UBound(CifLoopData, 2)      '    UBound(CifLoopData, 1)                               $  $    +                  ' _ :       '       
  G x j                       $    $    r '                  +     y @:  d F   k              :      Dim pubbonds()                 ccccccccccccccccccccccccccc      now have col num of each     dataname (1 to ...) stored as          loopdatanamecolnum(1 to ...)          'l = Len(loopdatanamecolnum(11))      '  If l = 0 Then     * '  MsgBox "There are no _bond_publ_flag's"   H '  GoTo finished ' no pub flags"                      'ccccccccccccccccc     	 '  End If    first determine no of pub rows       '                     '      # ccccccccccccccccccccccccccccccccccc          f                f$   $    %      f$   +            f$   $    %      f$   +           f           f              $      f$   $     \cell    +       f           E pubbonds(0) = "\cell {\i x}\cell {\i y}\cell {\i z}\cell {\i U}\cell"                     
      '   d 6    6  k 6                a = pubrows / 2       b = pubrows Mod 2     If b > 0 Then         a = Int(a) + 1       & pubbonds(pubrows + 1) = "\cell \cell "        Else         
 a = Int(a)    'End If      ' ccccccccccccccccccccccccccccccccccccccc       \par\par\pard{\cbpat17  A@       hA@       }\par\pard{\cbpat17 A@           jA@       }\par\pard{ A@                        \ @     ' \      \cellx  \ A@   | 600\cellx1200\cellx1800\cellx2400\cellx3000\cellx3600\cellx4200\cellx4800\cellx5400\cellx6000\cellx6600\cellx7200\cellx7800"                   {\*\s     	 \cbpat17   A@  5   start style    ]                col heads in idx 0       \intbl    $     \row   ' "    "A@                                    } A@     close style          }\par\par{\cbpat17  A@           lA@      
 }\par\pardA@ k 2    2     n        o 2  2        (   ]   h     p2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         Attribut e VB_Nam e = "CIF GeomTabl es"

Dim rtftD count As  Integer>symcode(200)<S  ng ' to num of >@s in _ Xm _equiv_pos loope!EpartI, >3L
" S!
xyzyflag(10	row s maxtotref
r"Did#, 2uarray: (wE-,~ls)2p ubbonds(,headSub CleDarVarErase 
 '

		49	
C,GC-M= 0@nd 1A3E4GetFB@=(daoDck(ber[, jgedite@msonlyBoo DnN. cI$UTϫA@+~ɱK0@ st with none20n(6qcolAa	'c 
If C ifExtractUniv.@N@AM, "_g@"__di,nce") FalThen.Exi
tdE@fIf
'- 
 Rtf StyleC~=O+ 1
Re!Preserve(m4B?G
!'`tmpD'`A=).bli E &`" fw3b# (.?Ik G"ParagraphTru`FNum!]O)x1--N' Pw ha`,an ¦\@,' a;f (L!,( ^@Q,ARbneed!determ ine whichD Bea*!' l`M si@ s#jd1R)Uatom_s>_label_13*2=2-@Šרamettry/4-5m
J`}`|l_@`=5
f9 H7FCol s 'UB`qd(h:`8== R21 wqF(fFor = 1 To  (M1TrimI	(06&Nex6t!npaDod
 n bD On > 6 J JcH    '#check StrComp(1n),2d,  vbBinaryare
 {0"	cYs(n 3  X: W`!~DPYvUE) cG%B	1<#e: (1=...)nor@a;=BEPLenT6)Alp' Ms@gBox "reKe 
 :`#2&'!wGop'finish	O 0s"q? O 'first NnoBL !`  ( S@10 
0=9W#@) L ike "[Yy]*A0!z0g} 2getn 6S}D r6analyӃ`9de=r`j?R4!3)0-9um( pu8aQ qK`g' containscfU bef0 bSE3PdeSde	H0F G
P@æ=' @>@be prid8;KEKbA Mwl<> ~@ C+@-medHG (\m*_b2M! - d@othing`d1w repeat1A""p|; d@4))
  s ymcodefl ag = Cif LoopData (rownum, l @d @namPecol L(   Like "[0 -9]*"'  MsgBox(If True Then#	For ref 0 To to6t&'co@ntains5  found before
* StrComp(-,.7(E), 0 r=2 ]
q id=b'tmp j printedl`Exit  		lNs>IFIfNxext5<<> 6gV+ ~1l?(	)sRE@P: EMKG' no - do thingHGHidx@/3%4G
idbe^rNH'EvNum
Sele ct Case pVal(Yb0G'h!H<"<sup>i</ F 2


3
Ki
6v 5
6

t 7


8

9ix61gAA
m|+x_;6g/Zah}6t= Axi6A166Gxi1#7s/7x?O7o777Dc7727x777o27788/8?838~3?8O8"3O8_8o8|8_ flagid(r ownum, l oopdatan@amecol ( idx)) =  "<sup>xx xiv</("
  Case 35 code0Y6?Yi7@--8-.9>.ix40TElse" & ValC@ber)"1End SelectGNext  G
'c  

CifLm@D@ƙ1 E xtractUniv.Rep@XsF(@$)oR tfWrite.Translaptionă2' 	-m(c
ߖ!3E		a4?B=		 ?=$=5FormatNumosYc@ _;;3x' })
 pubbonds( s!& _1A1AJ& " {\emdash}Aa0G\cell 6!w
If ~ Then]PPcf6P}[Ifq
getnZq:Zr[   0 > 0geomtableЊTrufgGoT o finished  f:  a/ 2
bMod!@	b!Int(a) + 1o$QB

l'' tA to a`'count	 O2m/
6  1, "\par5 dParaA<it>Ge`tric t ers (&Ar ing;, &d eg;) forbblock(W @/{.@.BI~D|8
	{Abx2000 45 6 8 {\(*\s/T"StyleM1\cb pat17' `startP `
Dim A pn@g As S 
G`\intb5
R)1 `( &3?#@%8 ??	4	4,6 'q$3 j }}E 02%4q9)Suba`   GetContpb 1eger, Cged@msonlyBooleanZљ(6)Si6head21
r(X  `:e'T s.a"_@_c_di  nce", _,k],S"/?FaF Exit p_f;J	<aϛ'- ""Pr3CG."HRePreserve H(8MmQ"^)CE;_1=tO"`4_R#4U	1	
"Tle)1TgraphjwH=Y ! ' now haan arra6ybb0(0 ' ad: item(row num, col p)
' ne ed to de termine  which equiv|ea ( dataname
tlist  of possiPble <s> 
loop$(1 ) = "_ge om_contact_at s  _label_1"42 42434dsymmetrZy3425d anceH6 publ_flag  c 
h eadcount! CifLNu mCols 'URB d(D ,D 2totsQRowT1@
ReDim mA( For= 1 To F;l(ĕ#(0aNextn
0
Do
n + 1
 If n > 6  Then Exit A
   Z"check StrComp(1n),8+,  vbBinaryare; #=E0$I(n?yB.+Dls e: End I~fC
CCvbbonds(r G&ow have}R   (1A...) Pstor ar'?& 9&Lefnj&6)"@'2   l ! GoAfinishk @ [@   changredo_A!' divid!V@by 2 a@%rѡ[ upopthatafLirǘnobub `ADb@N-aI(Z-` 'Prin#1, Hl@1)) & "-" _ᰔ(2C _me15Zha\M=@(.AAE!! M Like "[Yy]* #`pAgedmsponlyEq@Fa`l"Rgetn 
o@DA%@Ulyse ǀk@Rherݡsa code䍄53.0-9"	' MsgBoxK"( 	 *@True"d.ref;o`4vtg'Rinscf8befD bSP%Wy(umacdf Z0FQGXid:`=R' tmp!QEbe p?ed8k\Ep&]D^w`i<> ~0I C+b@ ^BG g mX pbrd(- do nothing v1w repec@A""y;4"or	 AEL?@t?O+G+????@?b#> ?A?rsus??>>XolT, ^ >¥> & >b(??oY? _,4(=08	11>U)X >>>t>.iTdx3q4Gidpber#?#`(@zuSelect CaVal(lb0VM!b0Ф??0
`"<sup>i</a UCavse 2
   codeflag id(rownu m, loopd atanamecol L(idx) ) = "<su@p>ii</"iCa 3=W4<Wv5;+*6*m7=++89;ixm10V1TA1x1< Umxi4c1n
_n
5!n5n>Uo[5o2?oTo2_o
4!2o5o>Uo;]d2oXxxb27愀88/8׿?8 3?8O8O8_8o8828888888488BElse??5" & ValCber) ".End SelectNext  
CifLPDPog1bExtract Univ.RepqsF( =)_SRt fWriteTr anslationum(2O
CSt 

code flagid(r ownum, l oopdatan@amecol L( 3)) = Rt fWriteTr anslatioPnsF(&)%4>m A m
CifZL D 58F ormatNumbers('437 pubb`onds( sKѤ"1 x& &  "{...}" & 2|\cell m
'MsgBoxOF
    I'R"<e`ntry>#U&ctdot;(0V</2o4$,"z,0
IfA) T hen
Else
1U"{\c\f6=:}`E nd If
g etnextco@ntact:`7N} !9c Aa > 0$geo@mtableTru   Go To finis8hed%C
a"
/ 2
bModAbAInt(a) + 1Ou~"]D^% '' t`)² to a'cou|nt be 1,@wx2000#4&6&8 @.*\sAST'Styleã @bpat17@8' start   
Dima3st ring As 2S"
)= "\intb}
`5"-= 1 2g&!,o -`0  ,	vLd?'.c j$}}\para `'G 
%K@V! Sub
  GetAngle*(block@`!&@Heger," aigedmsonlyBooplean!-(t8)S-8a$head2$&rxase	a >c >`Extr@9Univ.`=P(_Q8_aa_atom_s@ _label_1r"11FaBd; 	xit  0- `0"*Cd1.	1ReQPreserve1u(0/ѐ6mps!m).Q2_3tOBA"+z_R#3+ R	.
	

ParagraphQw>up! now haan `arrayK'(V'' a603+needP determine which`+A equivea@;' l ist oios,si`s
J41Z**,2/m,.2Z3/,3-4.24symme`4l	5AN	6
.	7=I^PUl_qM"E
")!@)Cols 'UB>d, 2"tot]RowP, 12RA:*iC(iF	d*G20,)@ec1'n0rho
 n2UnЄ8RP E!PD Ncheckp_Comp2(&n)
,  vbBinaryarep
֔Y(nQ ?
: ϶q 
? "~[	'wE> r1=>p$= (1A@) or0C~aP>0@pL|en:@ua  Ш lۣ 	72{ $Kchŀoeq	douG' dividCC+by 2BQrQ- upTot8hatfi&rMGQnoNub?B!1'`}  $r ownum =  1 To tot rows
   'Print  #1, CifL oopData(  , l @d @namecol & (1)) & "-" 
$d22 (252 + a0P R pubfXlag$8mL ike "[Yy ]*"
If !geditem sonly Then. 0FalDse Gog etnextan gle
End If
II# + 1'  analy sy m code her  ForP scn 46D :;0-9B;' MsgBox%3))G#E$TruCFGGA5/ref@607D	'A8co@ntainsHfouVbefoJ C@StrComp($BF,A(#), 09&@v1SivdC2=!(Exit @%IM)M N Q
(@6)&<> .`  *W[hH"0)8_	
HE(: s&&'' noA" - dothing(Ga	0'1&G'bidx}id`ber@$Jsf{gSelect CaVal(%^b0G'"!$*"<sup>i</ `2
2w


3
i
4
Q.Dv_5oO 97
_W8em"x@d= 
v?b7


gr8x9ixOA13o
16g


x_s6K&x?1E16A/#617s/7xO7o777'~27727x777o277?8t anamecol num(idx) ) = "<su p>xxvii<B/("
  C@ase 28@c odeflagi d(row , loopdat%9=[ix30=Y,1>,32,-3@-4vq5U6C7}3|q}xq4q]qElse-" & Val ber)"QEnd S electNext  
ChifL@D@y1Extrac tUniv.Rep sF( 	m( 	)2#( 	E3? 	#,Rt fWriteTr anslation+Hc+**||m(4Bm(5um06/;7For@matNumFs>
0v/0/C
 
' pubbonds( @%sQ8& m(q-& "{\emdash}qYoo`!8o,`\cell ?)wpMsgBoxA "aQ = __(x(TopipNDooM  m(q9??=P+{ϴ?,1If Then!Ä/P{\cf6"
}P!If
getnangle: bXf!a4 > 0g eomtable1Tru$Go To finishedP&uf  a/ bMod!`b!Int(a) + PύQV


0'' t" t(o a`'count	 2uL 1,Aq;x2000x4 6 8 *\s>TStyle#X#bpat17' startP 
Dim 1 tring Asd S 
G!\0intbD
] 1 Pp &U?01 ?	4	' ws

 '0RtfWrit e 1, "}}\par"
@End If  
finished:TSub
  GetTor sionTabl e(dat oc knumber  As Integ er, flagged jmsonlyBoole an)
Dim  loopAna@me(10)!S tringcol c%head count rase coderid( ^
'c 
If Ci fExtractUniv.kEi _geom_t{_at sj _label_1 ") = Fal!AThenEx8it '-  ʀ?StyleCj(	+ 1
RePre@serve (?BX tm:pD@me:).	blt & "|_"@ EqB#{ Z'.@&*@:tf@#B6Par@agraph 7True
Nä=IIBW b--o ' now ha@Xan arra6y(F X' na  ,LW(row ,
 need to  determine which@ equivea T#list  of possi@ 
-A"2_2K:*3_34i_45psymmetry qm,6^7^8^n9O=oJpubl_a
T cRa Cols 'UB`d(U, 2 T(totVs*Row41 B!cForE[= 1 To #5"!"	(0gNext+	an0o2
An `n > 10  "D@   Z check  Comp(\n),, vbB inaryare!	%

(n!cc": & !#a%1`Dbond|s(9	M IDF$D (1G...) snJaE'E
cpLen:U0)q' lYGo e 	 7B  Rchange	do 0~l' dividc+by 2EXr- upTothat1firpUXnoBVub 0!@	410'
$ !d-'0 'Pt >#-#$))s-v//um(:2# /Sg&(5/jP4a1c	mo
pd@
 @aN"O
A
p& Like "[Yy]* R 81( 2)getn G 0Q G*ana<lyhpJ)her91 #scJ5AP8  e? & 0-9' Msg8Box񭞈?!(39	T cQrefP=om6tg'contains#Bf2:befo bSPX_ c([0QHd	 IP<meT+#=\}E ]ؔ
 ^d$qdA.<> It  +O_m(ug Ah 0~x Qq"e'- do th vw0 idx>id0=a"	%D`:=ͷSelect CaVal(u@/p  Case 0
' do  nothing!X1<code flagid(r ownum, l oopdatan@amecol &( idx)) =  "<sup>i<j/"2<UV3=V+4+v5;+m*6*@78K9;ixm1qĕ<xTA1xim: 5m<4c1n
_n
5!n5n>Uo[5o2?oTo2_o
4!2o5o>{27xxio27788/8?8 3?8O8O8_8o8828888888~488BExlseߟߕ" & ValPPber) ".E nd SelectNext `C" CifLpD7p1bEx tractUni`v.Repqs<F( )
um(2______P3__^ loopdata namecoln um(3)))
CifL D l(row `, @4)) =  XE xtractUn@iv.Rep "codesF( $'u1uRtfWr iteTranslation'o B'o27 !7 oO 7
A}flagid5Twf
6~@f7~@f8~ t9_E FormatNumbers?@ 
 pubbonds( `&sDߒm(!& LZ& "{\ emdash}" &!m(YX?W\cell ?&C 
'MsgBoxo=

If ThenAElse
1C 88cf6b@}" 
End If 
getnexttors:`MN Oa aaO > 0ag eomtableQTru@ #  GoTo finished@	E	ף	MF @a	"/ 2
bModAb! Int(a) + 1Q3"'' tr to a`'count	 2Uh 1,4Aq!x2000x4 6 8 0(*\s$TSt8yleC09 bpat170' s0tartP 
Dimstring As S 
C= "\intb* IÑ= 1 `	 &H?@- O	D	"(s. 'q3 J}}\par1 0%U',QSuba`   GetHydr`ogenBU(block@P Zap$eger, 17gedPmsonlyBooleanYEraseU0!head#" 
totXref#0 ' do@$reset if`mb2pwith o'tr &sq	(11)S԰TFFc rF@p m-_!<_h _atom_sp_label_D"6Fa5=Exit `6- /NC7.b7RePrve H('5QQ<mqy).@2"7_9tOH$Ba"0_R#0U	.
	

 ParagraphSYwdD=Y(' now haan arrayQ.(&/ ' ae6>C)needUd etermine which0@ equivea@%list oqossiAh313__+Y+
*2/.H *3/,A-4.4 symmetry{4l	5AN	6W
.	7dance_D8uH910anglA  oopdatan ame(11)  = "_geom _hbond_p ubl_flag "
'c 
 headcounBt CifL N umCols 'UB 0d(,D  , 2)
totrows
1R11 1
ReDim l ^q(v For colnum Q1 Tor 
1!Trim	(0,B)&Next

n)0
Don + 1 
If n > 16hen Exit 
   H 'check -StrComp(Sn),t[, vbBinaryare U5'G(0 T I*#(n.@,Dlse: End IfCCCyD d |s(#hFEy L) ' now PhaveA^ Arof eachE  (1 to . ..) stored asJ	'D9F
'lYLeVnX	1| A	 @< 
P''   MsgBox "1Tre @] * _'s Gofinish&4  C s"AN E"`a'fir st determine!Gџ 3  R= Bd 
`a#(t(cP*% Like "[Yy]* `Ogedi temsonlygeP@FaK" aB%getnm"~
F `%Bn ' lyse HsymDde|re+ascAv:46c!@co<deBC@	))0-9$	dC'!(3MB"MTruee&dgref`5So`6t$'!co@ntains$fa bef@f 
吿"#C*(0䒡aDl blidYPC2=!'"tmpAbe printed(EP(Byde(<> .n# -Z AhH	(;x QbP! - do@Kthing OL 0Aw repeat1 @E"!w=496iLdx=DidTber_hm(`=8'dPSelect CaMVal`s4]cG!bTo]ud
@"<sup>i</a ]sR2W^o}b3o@9Y2
ir4`Cv_5oooe_
xjv?b7



3*~8x9ϏixOA~13o
1ݏ6g


x_s߯6۔L;1xs166/#617s/7xO7o7  Case 19
code flagid(r ownum, l oopdatan@amecol L( idx)) =  "<sup>xihx</"2V0<W1=WiX2[>,,3,-4>-vmC5}6>C78i63p3pxx!3p>Up_up~e3q]5?q>!_q_uqq3q54q]q0Else" `& Val} ~b(er) "aEn d SelectNext 00
'c 
@
CifL D7	1Ex tractUni`v.Rep!sF( )_rVRtfWrite. Tra nslationǿoum(2??????O
V??op;&??23??????3V???
ϴϴm(4%pm(5t.-o}b65m(?&7_=##G/@ @FormatNum`VsKOװ(8????3??@:BB?69???oc??l*m(?610OOOsP CifLoopD ata(rownum, l d namecol L (10)) =  FormatNu@mbers(()D
' c*  
'MsgBoxr $k7) i37 pubbonds(  sl%e & codeflPagid4" {\emdashP}" &b2(35Q3...(03(06\cell b@<"89& *
If y ThenElse
@@ycf6BG}"
End  If
 
 getnexth:@N  C	 > 0geomtabDleTru@# % GoTo finishedHC2D+0` @{\i D}&WHc8H`L!A}`tt  !   'a `b(/ 2 }b(Mo6db@bH In t(a) + 1e	`'$'$'" 
RtfWri te 1,Fpa4r\d dPara<it>H ydrogen--= t  ( &Aring;,  &deg;) forHblo8ck(&).% B!IDk</_{""x2000#35%k d6f8{P\*\sTQS0tyle£}bpat17' s0tart  
HDimA\st! As S"@UB  6 aB]o_ol  heads i n idx 0
aF= 0intbfACy Fbna"n' e 
<lose? Ip!{~Sub  syms;!" [eger!ء%D(20, Ht, 3!20xyz"jHExtrac tUniv.Ge^t&	P._m etry_equ iv_pos_as_`"6FaQDExit 7=&6'0
>1 Jtot_~u1@ '*Rp0 (Rows '@UBound,. sCoFl`, 2 sFc 1 '~ault2a>  ra' need to)entify which`+as cif"p  ! nra	C֘pnLD` 
j v p5O se t up arrays of))` from2rtore Pqa l chars x 3Jeadh#lliLen/঒r'reHmovUst>veCcomma - nocany m 		10	`Right?01)`P-  h,	InStr( ]</'", 8Left(fE%"spaceslab`#@ bymix$ed
/rexpin0TO0@I0""r3Do%'lsc,27A+T8"A '*( ?om Fcp- A2A30 l!`q)cb=;o 3EAr1,<`( B ,u]Ro@P;BɠtAbS2P _W
+E26M B;10 	Qk	? u	lBra<BUQ
PBg 'S elect Ca7{'  'searchM"x" 'ch`@]w s}yp12%-z"?sq@119`b3=PZ
pP !23`h8{7pCpKQK lpart =  Len(symcode(row num, `no ))
 findxyz "+"  & searc`hchar 8 0pos 6InStrP(1, ,,D 0YIf ?> 0 Then Q?  e&\CC CLeft,!J- 1)wRigh-	B efCElseF-K   Rr?s
@Ŕss3t{@"Du@vJ@=. 1:=s ' ' e.g. y,x,z asA3`m op! L '@ don't   anything  coz pro bably no t meant  to be in s?D	Gs' MsgB<oxEGЉsKValݣ  mP	cg6 _de0CD?	!  ,  @$d_ӴEnd@"ffLoopC@ Next
getn@!:c'For n`1 To 'KM0n,c" B23a('V	,	B 	s	' S0ub
 Ebfn( Dim publ(50) @As Str;
transf`ormA(Q!new g20, /arDef5tot

lc!Aflag(H-.!@@W= "5"[ _c;
*
Mid;R3ef), 43)
{5/A9n6o@+3P# idber!)PSelect Case 1Q%5B1@Tu"-4 2 :50 67F8v	9 24r  l1vQ1 /Q l` ( ' fracsH aY?|`""/"ȵ@eraWadenomڰb-"=  C(*$O')) + F>0&  q;8@h~?
df  ' tesBsePf val)Pzero=QUC0omp(, "0X3Ң'"ANp	d])oQjfOlead0bpluo) Like "+*1	l?H0/s^*TrueULetul = o,-" Sescape&1no@# <!   NumTv yS+orKqJ	C i@+tifiX"(i)Kk(i3n"
  Case 4xiden tifier =@ "(iv)5V6ViX7,--8-.9.ixَD101C123x1sxOs1sxv"ttkuxPu2Xuu2ux"2uxivXvv2vv2x;/Nd2;5߸;0;;3;<3<0<39<Q<3Y<mr<3y<<3<<3<063<6/<!=3=1=4:=O=Else" &  coderef "	End S elect'Next idx@A@ '<tfn=Chr(34)u1l>
 '<p>Symmetrys:  (i) <fi typeex -x,-y,1-z</fi>;>"x-1,y,.</pb	/  publsym!(t)& " & T part(row@num, 1,23)@  MsgBox 		RtfW riteTran slationsF(_f) d0If tot  > 0 Then
E 1{\ 
 A d\p lain  \s@a120\f  s20 -1Forv%= 1 To\- Gif;> |0.}сClo#a0$: A-If  $
= P5Er
 q, 1xyzQfldag id5u b

Sub  GetCoor dinatesT able(datQp ock@bA s Intege r, allloDopPms B@oolean 
Dim headcountd nam e(13)QStrin
coloU`*c 
`%CifExt ractUnivr.if1 &_@atom_s_@label"q-FaPK( xit  -  "StyleC)r= .+1(RePreserveI(R`AtmppDɽ).blqQ_LOB2R#,		.	
2=Par@agraphTrupcwNum(A'' now haan array A(q*(* ' a16} L.&V)needPE det ermine w0hichpG1+ equivea@%list of possi6 s
+2)"n*\]0Xf/<_x6t_y}tt_z}5	U_iso_Xor_6aXdp_w7calc_!M8attped-9- m"s10occupanc1Pxd r0_as sem bly"
lo opdatana me(12) =  "_atom_ site_dis order_gr(oup3^ty pe_symboBl X
'c  
headcount uCifL  NumCols H'UB d(D , 2)
t@otrows
1R11 1
ReDim q(v For colnum(1 Ton (vTrim	J(0,B)&Next

n)0
Don + 1 
If n >  13 Then@ Exit L
   H 'check -Str Comp(n),t[, vbB inaryare U5#E0$I(nA@.@,Dlse: End IfCCCyD dpubbonds(#h'FEy L) '  now haveA^ Arof each (1  to ...)  stored a~sJ	D9F
'blYLenX	1Ձ| A	 @< 
P ''  MsgBox "@yre S@] * _A<_9l_flag's	Gofinish&4  	 s"AN E"`a 'first d etermine!GhA`DjU9  P@a)= b2` [["~E
A)E ,2o5
}(oY,4)aQE xtractUniv. 
mat@berst	@PUg13uFmRepcodesFbd	 !g?# *RPtfWr.T ranslatiton?e#`allA msĆ@z03"\cel l {\i x}gyhzhUd# l c h5f ͠?s!o& +ù:& EE 
"b=o-j:f @'
CB>
b @@lc geomtable'TruepBs Ma%bpe$Da @AP / 2PNbMod2p	b	'Q@Int(a)cw' 
ax*$'SqUVU M$8 1,#par\4 dpe9ParaA<it>Aitc  Pp[s4 f`" Pblpock( pN)J.,BID<~/H<
5	{"x600) 12 8 24Y 30 44]5`67=7 	lx154670'D'*\u& T+Stylec1\cbpat1 7 " 'Par>tP Ћ(tring As  *" H'1ofr's in pidx vW\intbl&=+q:p @2b:a:a5 }close)%:BA0Sub	Q
  GetxAdp)a7egercp<!@39(8)LC99F@2	4:hapo_label"!CFa _FJRbEB`- @P&C.CPreserH>( ',Rtm!AzCD._FO1 GhF")_R#)U	1	
Rle)Rgraphfwd;= ',anpray+ ' a0D6 .S)ne0ǗwhichQ@ equiv1͑ %liAossiu ?mRl**ƶ m_site_a niso_U_1 1"
loop dataname (3) = "_Hato224T33T5T1UV6*U7*2*8*type_symbol Y
'c 
head count CifLNumCo@ls 'UB d
(D , 2) 
totrowZsR1
ReDim 8(; For @colnum(1p To (CyTrim	J(0,)@Next

n 0
Don  + 1
If  n > 8 Th en Exit 1A
   # 'Acheck@StrComp(n),:-, vbBinaryare@*#E0$I(n@.@,Dlse : End If_CCCxDcp ubbonds(#ChFyK) ې ' now have^ rof 0eachE ( 1 to ... ) stored asJ	D9F
'lYLenXU	1A|    A(''  Ms@gBox "<rLe .  _!_l_flag'&sdGo Ofih`a  as"!'o "C00 'first d etermine#hA`$j`U9  P@a)= b2` a[Ϣ["~E
A)E ,2n7
}(oY,4)aQE xtractUniv. 
mat berst	@PU78um#BRepcodesF"d	`? g# *Rt(fWr@.Tr anslation?e#!$>w0!1"\cell  {\i U}{ \super 1$1}2233112߀k9&  Cso& .& 4@$@12s(`W`W geom tablepTrue6EU` JBawV2ee\Q9a @! / 2BbbMod2p	b	'QInt(a)k' BZ0S @'SII? oB{, 1B,Ppar\4 dCp-Para<0it>ATppic ` displaceme# Qs f " & 1FblockN( OD). BIDp"<//xJ		
{x1000 2 3 4 5 6 7 N8 .*\`b& Tq#StyleSP
\cbpat@17 " 'oa|rtP p@x t ring As  "" 3)o^'RvAs in idx PcWq intbl&Q"#2p 2}R2a2ю5 5}closeo!&u:BQSub
@  Ge>t2dA/eger0PA r91|notefootQ(ĄX)sharSd0<65t6t~
*'-,3_UE_2_2F_Q_/Chr(c$`@tmk1g`dmo1C`valuJ" MISSING"RG )5H5B Omiss Go&<b>R< /b> #SPW#"2m=!2*,#/*?ck<"\//& |ifA+aL- 2)?a=?"?/$+	?if,erv,3E4???/^??aڵ ifDatava lue = "- "
extr blefootnot#SPW #" & tmpCitem(dTocknumb er).RtfStyleNum 9 b" !nT& H"#/q
D im headc ount As  Integer
 loop name(20)%String
Re@	!col X&
'c 
If  RE ctUniv.Get:, "@_geom__ta Chr( charcode
)_D_1")False TheniGoTo  finishe d
End If'   H%C= 	+ 1Preserve		()
T/BAW* !bl B9dpB#@H$O'&*@:tfDPara graph 7True<@@ MF@	b--j now ha@Xan a`rray A(Ƴ X' aw ,LP(row@, C
need  to dete rmine which equivea T# list of possi`R s
id(1RXX,2?+a2=j3?+3-4?+4-5?+5-6?+6-7?+Z7-8?+8-9?+9-1_B0nRͫ1nwSm.S1_SmnS1wSmS1SmS1*/k+k*1/*?;>*1O*?;^*1o*?;~**le/|;"|2q*Ʉ
&_d4^eCols 'UB {d(_, 2^tot `bsRow,| 1}qTfForub= 1 0F	[f@TrimI	(0hNcn 0
Do
 n p@n > 20 `Exit ! L  		 '#c0heckComp(
bn),7ut, vbBinaryare
Q #	SYs(nO 3 : ,
|p!Dpubbonds(#U ) ?g$G	 }~| (1...@) stor a} ~'E'blpLen:u1)qQ   ''  MsgBox "reЎRe
 __pl_flag'sX '@ 1s"? oa0'fir0noub q4!$5*B!A( T10 - g - 	y? !
P72(?֞((a))IReفwsF:1,3umPWr߁ Translation &3/@
p4?&aU \\cell )'cS@{\i x} y z U @p"c1A4  sQ?H Bkp" EF(lG *a @r ows / 2 
'b = puDbrModI f b > 0 PThen a I nt(a) + 1 @ bonds(r ,) H"\cPell 
" PE8lse  'E nd If
  c# 
Rtf Write 1,@ "\pard {\cbpat17  q&Para*extrata bleheadingI}1#not/jH#Bx0@
For n 1 To ?count
x 8000 ņ)ux" & x '600x12  	24	3)U	3445WF	D6F7F7k@@5N S 
>{P\*\s'TYS tyleNumber@,Ef ' `start@@ 
Dim trd As SBANBN' colQs in idx  YG= intbl #@è@&@		7a
 ' y" 2close2Efoot@]E
fin ished:
*charcod	
A	Sub 
                  ---------------x     .   p ' vk      z  v ' |     & 'iucrlogmsgcount = iucrlogmsgcount + 1   |            r le   V        | p    th      # MsgBox Err.Number & Err.Description         x! z     7 K T     file already open   V         S       n   o   8       # NB: dont forget final closing brace    	 ]   ]   ]     z            {\rtf1\ansi \deff0\deflang1024          	 {\fonttbl        {\f0\froman Times New Roman;}            {\f1\froman Symbol;}         {\f2\fswiss Arial;}            {\f3\froman MS Serif;}           {\f4\fswiss MS Sans Serif;}  	           }        {\colortbl;   
         \red0\green0\blue0;           \red0\green0\blue255;         \red0\green255\blue255;          \red0\green255\blue0;  x        \red255\green0\blue255;  	       \red255\green0\blue0;  $         \red255\green255\blue0;        \red255\green255\blue255;        \red0\green0\blue127;           \red0\green127\blue127;        \red0\green127\blue0;         \red127\green0\blue127;          \red127\green0\blue0;  0	        \red127\green127\blue0;  	      \red127\green127\blue127;        \red192\green192\blue192;        \red243\green243\blue243;   &   grey - 5% (no 17)      \red230\green230\blue230;   &   grey - 10% (no 18)    		      \red204\green255\blue204;   '   light green (no 19)         \red153\green204\blue255;   '   light blue (no 20)    	      }        {\stylesheet    	      {\*\cs0 default;}               $ t ! 8  `        {\*\s           $ t !    ;}   	d         {\*\cs          $ t !    ;}     k x          	       }        \par \pard\plain \f0\fs20        \par                     M         0                                                                                       x                                       ME                                 (                  P                      1 < 4 1 0            1   8                    $ $      ip          ir      um o@|     x   @v                                                    x  E E      i|        @~         @       r @       @                            i|      @                              i|           i          +                           i      4   zH                   H                    H  8  @    h       #  P        H  8  @    h       p               h                           3A                                                             e                          	     "        	      	                   (        0    	         8        H        P    	 4   X                                    	 4                             	 ,   (       X      h   
   x                 	 *       
               
             	                               (   	     "    0   	 *   8       h       p       x           ,      	              ,       "       "   0    $   X    *                     "       $       &   0    $   X    &       $       &       (       $        &   H    $   p    &       $       &       (       (   8    @   `    B       B       B   0       x                  	                     :          8    :   @           
      	              (             	      	                	   
   	   	 0   (	   	 ,   X	   	     	   	 &   	   	     	   	    	   	     	     
   	    
    
   0
   	         @
   	     "    H
       P
      `
   	     "    h
    "   p
    *   
    *   
       
              8       X       x   	             	                          	      	      	     B       	      	      	                  (       H   	      	    h    (   x    &       "               (           8    ,   X    *       &      	       (      	 :       (   H    *   p    *       *      	 @        ,   @   	 >   p   	       ,       *       *       ,   @    ,   p    *       *       ,        *   0    *   `    ,       ,       (       (       ,   @    (   p    ,       *       ,       *   (    *   X    ,       (       *       *      	       ,   @    *   p    *       ,       *        *   0    ,   `    *       *       ,       ,        (   P    (   x    ,       (       ,       *   (    ,   X    *       *       ,       (       *   @    *   p   	      	               (                      (   (    (   P   	    x   >      >      >      >   P   >      >      >      <   P   >      >      >      >   P   >      >      <      <   P   >      <      >      <   P   >      <      <      <   P   <      >      <       <   P    <       <       <   !   >   P!   >   !   >   !   <   "   >   P"   >   "   <   "   >   #   >   P#   >   #   >   #   >   $   >   P$   >   $   >   $   >   %   <   P%   >   %   >   %   >   &   >   P&   >   &   >   &   <   '   >   P'   >   '   >   '   <   (   <   P(   >   (   >   (   >   )   >   P)   >   )   <   )   >   *   >   P*   >   *   >   *   >   +   <   P+   >   +   >   +   >   ,   >   P,   >   ,   >   ,   >   -   <   P-   >   -   >   -   >   .   >   P.   >   .   >   .   <   /   >   P/   >   /   >   /   <   0   <   P0   >   0   >   0   >   1   >   P1   >   1   <   1   >   2   >   P2   >   2   >   2   >   3   <   P3   >   3   >   3   <   4   	      	      	      	       "   P4       x4    $   4       4   	          4        5        5       @5   	          `5       5   	       "   5       5   	       "   5        6   	       4   06    $   h6   	       $   6   	      	          6      6  6  ]    ] H  ]     h      tX   ]    ]      p     f E    ' vd (      . ----------------------------------------------         '      @ 0    r  +    | 8      . -------------------------------                $               *   rtftmpfilenameB = IucrRtffilename & ".1"  &   Open rtftmpfilenameB For Input As #2          Do While Not EOF(2)          Line Input #2, tmprtfline          Print #1, tmprtfline  
       Loop  
   Close #2    Kill rtftmpfilenameB     V  &   o         |  } A@ o   @             #PAR# $  '             $      $   $  '   H         
 $     
 $   $  '         $       $  '      
 $       $  '           $  '   h            $  ' (             $  '        %  '      $  '     |    \par A@ o             rtf reserved chars:(       \   \\$  '        {   \{$  '   `      }   \}$  ' (      
  entities:    &Aring;  	 {\f0\'c5} $  '     &deg;  	 {\f0\'b0} $  '       ---   &mdash; $  '         --  &ndash; $  '     &times;  	 {\f0\'d7} $  '     &z-dbnd;  ==$  '     &z-tbnd;  {\f1\'ba}\f0  $  ' 6       &sime;  {\f1\'bb}\f0  $  '         &sim;  	 {\f0\'7e} $  '     &plusmn; 	 {\f0\'b1} $  '    3 textstring = repinstr(textstring, "-+", "&mnplus;")        &ne;  {\f1\'b9}\f0  $  '     &rang;  {\f1\'f1}\f0  $  '         &lang;  {\f1\'e1}\f0  $  '         &rarr;  {\f1\'ae}\f0  $  '   h     9 textstring = repinstr(textstring, "\\leftarrow", "larr;")     &infin;   {\f1\'a5}\f0  $  '      8 textstring = repinstr(textstring, "\\ddb ", "z-pdbdtd;")      &alpha;   {\f1\'61}\f0  $  '        &beta;  {\f1\'62}\f0  $  ' &       &chi;   {\f1\'63}\f0  $  ' $       &delta;   {\f1\'64}\f0  $  ' &       &epsiv;   {\f1\'65}\f0  $  ' &       &phiv;  {\f1\'66}\f0  $  ' &       &phis;  {\f1\'66}\f0  $  ' (       &gamma;   {\f1\'67}\f0  $  ' &       &eta;   {\f1\'68}\f0  $  ' (       &iota;  {\f1\'69}\f0  $  ' &       &kappa;   {\f1\'6B}\f0  $  ' &       &lambda;  {\f1\'6C}\f0  $  ' (       &mu;  {\f1\'6D}\f0  $  '     &nu;  {\f1\'6E}\f0  $  '     &omicr;   {\f1\'6F}\f0  $  '      &pi;  {\f1\'70}\f0  $  '     &thetas;  {\f1\'71}\f0  $  ' (       &rho;   {\f1\'72}\f0  $  ' (       &sigma;   {\f1\'73}\f0  $  ' (       &tau;   {\f1\'74}\f0  $  ' *       &upsi;  {\f1\'75}\f0  $  ' (       &omega;   {\f1\'77}\f0  $  ' 
       &xi;  {\f1\'78}\f0  $  '     &psi;   {\f1\'79}\f0  $  '   J      &zeta;  {\f1\'7A}\f0  $  '   K      &Alpha;   {\f1\'41}\f0  $  ' K      &Beta;  {\f1\'42}\f0  $  '       &Chi;   {\f1\'43}\f0  $  '       &Delta;   {\f1\'44}\f0  $  ' @N      &Epsi;  {\f1\'45}\f0  $  '       &Phi;   {\f1\'46}\f0  $  '   N      &Gamma;   {\f1\'47}\f0  $  ' N      &Eta;   {\f1\'48}\f0  $  '   N      &Iota;  {\f1\'49}\f0  $  '   (O      &Kappa;   {\f1\'4B}\f0  $  ' `O      &Lambda;  {\f1\'4C}\f0  $  '  P      &Mu;  {\f1\'4D}\f0  $  '     &Nu;  {\f1\'4E}\f0  $  '     &Omicr;   {\f1\'4F}\f0  $  '        &Pi;  {\f1\'50}\f0  $  '     &Theta;   {\f1\'51}\f0  $  ' P      &Rho;   {\f1\'52}\f0  $  '       &Sigma;   {\f1\'53}\f0  $  ' xQ      &Tau;   {\f1\'54}\f0  $  '   Q      &Upsi;  {\f1\'55}\f0  $  '   R      &Omega;   {\f1\'57}\f0  $  ' PR      &Xi;  {\f1\'58}\f0  $  '     &Psi;   {\f1\'59}\f0  $  '         &Zeta;  {\f1\'5A}\f0  $  '         &minus;   - $  '     &ndash;  	 {\endash} $  '     &emsp14;    $  '     &emsp;    $  '       &ge;  {\f1\'b3}\f0  $  '     &le;  {\f1\'a3}\f0  $  '      Roman font:     &hellip;  {\f0\'  $  $     }  $  '       &dagger;  {\f0\'  $  $     }  $  '       &Dagger;  {\f0\'  $  $     }  $  ' 	     &permil;  {\f0\'  $  $     }  $  '       &Scaron;  {\f0\'  $  $     }  $  '       &OElig;   {\f0\'  $  $     }  $  ' 	     &Zcaron;  {\f0\'  $  $     }  $  '       &bull;  {\f0\'  $  $     }  $  ' Z      &ndash;   {\f0\'  $  $     }  $  ' 	    &mdash;   {\f0\'  $  $     }  $  '       &trade;   {\f0\'  $  $     }  $  '     &scaron;  {\f0\'  $  $     }  $  '     &oelig;   {\f0\'  $  $     }  $  '       &zcaron;  {\f0\'  $  $     }  $  '       &Yuml;  {\f0\'  $  $     }  $  '      &nbsp;  {\f0\'  $  $     }  $  '        &iexcl;   {\f0\'  $  $     }  $  '       &cent;  {\f0\'  $  $     }  $  '      &pound;   {\f0\'  $  $     }  $  '       &yen;   {\f0\'  $  $     }  $  ' _      &brvbar;  {\f0\'  $  $     }  $  '     &sect;  {\f0\'  $  $     }  $  '        &uml;   {\f0\'  $  $     }  $  ' `      &copy;  {\f0\'  $  $     }  $  ' 0     &ordf;  {\f0\'  $  $     }  $  ' "       &laquo;   {\f0\'  $  $     }  $  '       &not;   {\f0\'  $  $     }  $  '         &shy;   {\f0\'  $  $     }  $  '         &reg;   {\f0\'  $  $     }  $  '         &macr;  {\f0\'  $  $     }  $  '         &deg;   {\f0\'  $  $     }  $  '         &plusmn;  {\f0\'  $  $     }  $  '       &acute;   {\f0\'  $  $     }  $  '       &micro;   {\f0\'  $  $     }  $  '       &para;  {\f0\'  $  $     }  $  '         &middot;  {\f0\'  $  $     }  $  '       &cedil;   {\f0\'  $  $     }  $  '       &ordm;  {\f0\'  $  $     }  $  '         &raquo;   {\f0\'  $  $     }  $  '       &frac14;  {\f0\'  $  $     }  $  '       &frac12;  {\f0\'  $  $     }  $  '       &frac34;  {\f0\'  $  $     }  $  '       &iquest;  {\f0\'  $  $     }  $  '       &Agrave;  {\f0\'  $  $     }  $  '       &Aacute;  {\f0\'  $  $     }  $  '       &Acirc;   {\f0\'  $  $     }  $  '       &Atilde;  {\f0\'  $  $     }  $  '       &Auml;  {\f0\'  $  $     }  $  '         &Aring;   {\f0\'  $  $     }  $  '       &AElig;   {\f0\'  $  $     }  $  '       &Ccedil;  {\f0\'  $  $     }  $  '       &Egrave;  {\f0\'  $  $     }  $  '       &Eacute;  {\f0\'  $  $     }  $  '       &Ecirc;   {\f0\'  $  $     }  $  '       &Euml;  {\f0\'  $  $     }  $  '         &Igrave;  {\f0\'  $  $     }  $  '       &Iacute;  {\f0\'  $  $     }  $  '       &Icirc;   {\f0\'  $  $     }  $  '       &Iuml;  {\f0\'  $  $     }  $  '         &ETH;   {\f0\'  $  $     }  $  '         &Ntilde;  {\f0\'  $  $     }  $  '       &Ograve;  {\f0\'  $  $     }  $  '       &Oacute;  {\f0\'  $  $     }  $  '       &Ocirc;   {\f0\'  $  $     }  $  '       &Otilde;  {\f0\'  $  $     }  $  '       &Ouml;  {\f0\'  $  $     }  $  '         &times;   {\f0\'  $  $     }  $  '       &Oslash;  {\f0\'  $  $     }  $  '       &Ugrave;  {\f0\'  $  $     }  $  '       &Uacute;  {\f0\'  $  $     }  $  '       &ucirc;   {\f0\'  $  $     }  $  '       &Uuml;  {\f0\'  $  $     }  $  '         &Yacute;  {\f0\'  $  $     }  $  '       &THORN;   {\f0\'  $  $     }  $  '       &szlig;   {\f0\'  $  $     }  $  '       &agrave;  {\f0\'  $  $     }  $  '       &aacute;  {\f0\'  $  $     }  $  '       &acirc;   {\f0\'  $  $     }  $  '       &atilde;  {\f0\'  $  $     }  $  '       &auml;  {\f0\'  $  $     }  $  '         &aring;   {\f0\'  $  $     }  $  '       &aelig;   {\f0\'  $  $     }  $  '       &ccedil;  {\f0\'  $  $     }  $  '       &egrave;  {\f0\'  $  $     }  $  '       &eacute;  {\f0\'  $  $     }  $  '       &ecirc;   {\f0\'  $  $     }  $  '       &euml;  {\f0\'  $  $     }  $  '         &igrave;  {\f0\'  $  $     }  $  '       &iacute;  {\f0\'  $  $     }  $  '       &icirc;   {\f0\'  $  $     }  $  '       &iuml;  {\f0\'  $  $     }  $  '         &eth;   {\f0\'  $  $     }  $  '         &ntilde;  {\f0\'  $  $     }  $  '       &ograve;  {\f0\'  $  $     }  $  '       &oacute;  {\f0\'  $  $     }  $  '       &ocirc;   {\f0\'  $  $     }  $  '       &otilde;  {\f0\'  $  $     }  $  '       &ouml;  {\f0\'  $  $     }  $  '         &divide;  {\f0\'  $  $     }  $  '       &oslash;  {\f0\'  $  $     }  $  '       &ugrave;  {\f0\'  $  $     }  $  '       &uacute;  {\f0\'  $  $     }  $  '       &Ucirc;   {\f0\'  $  $     }  $  '       &uuml;  {\f0\'  $  $     }  $  '         &yacute;  {\f0\'  $  $     }  $  '       &thorn;   {\f0\'  $  $     }  $  '       &yuml;  {\f0\'  $  $     }  $  '         <inf>   {\sub $  '           </inf>  } $  '       <sup>   {\super $  '         </sup>  } $  '       <it>  {\i $  '       </it>   } $  '       <i>   {\i $  '       </i>  } $  '         <b>   {\b $  '       </b>  } $  '         #SPW#   {\*\cs$  '           #/SPW#  } $  '       #SPWP#  {\*\s $  '           #/SPWP#   } $  '    	 #fnstart#   \plain{\*\footnote  $  '         #fnend#   }\pard$  '         #PAR#   \par\par$  '       ' i 8	  0	     Attribut e VB_Nam e = "Cif RtfWrite "
Publi@c Iucr TfilenAs S ngB :F :Line() > countDIn teger
`
Sub  Bv(Hrtfium%,b  tex9|)9
On Er ror GoTo 9opene 
Dim8mpR tum
 
If:= 0 The8n
 El@se
'-* v
=w	+ 1 eXPreserve	(! 	X
Epxit  0]@." &J@nd If
Y͌L& G!'ilogmsgEDMD^OrF {AJp d#2p    Pri#2FClose /	Az:@#MsgBox.Nu0mber@9 .D escriptio Select8 CaC

!55 ' already  Resum C N RubAnd %>H er}No@'NB: do DforgetA&nal c@#ing brac"cAQfBff<l@|?n@΂2Yd21, "{\1\a nsi \deff0 lang1x024@k`#8fqtbl f roman Times 'w R$;}N1\DSymbol02\f swiss Aria3EMS Serif4acolo
r ;\red 0\green0@\blue0255WTQF 127WF p192Da	 243 ;" y - 5% (no 17B86(23$( 3@108204d55'04`light 915E`- !205 stylesheetA*\cs0B 0Hault=
Ks`k1 @puupSCъH(s). Par@agraphTrueJK*\sqssPe"  q& "2	b|c?
I	$zAf seHl\par A d\plain \Ws20 \Jq  nzPxp(non ul~BO".1`eBInpur'A  Do Wh0  Not EOF(2%L`m !nAwLoop3Q P!Kill-r?tEndo~2Nov!0󞻵*Bs2@T= re8pin C, vbCrLfp- #PAR#"	tr0Chr(13),  >00)	q  "Q o"P/ng{r#1?ExttUniv.RepcodesF[5#Trla_%!IBP8H&q@Func(R)ۤ1'2&d chars_ HWP\\\p({{5.}} entiti.e		&ng;!{T'c5%z&de|b0!#&mdash;_
 C tr(texts tring, "--" (&ndash;")
t  = repin &times;p{\f0\'d7}%tz-dbnd;=='4t4 p1\'ba} x %?s b3u7eu#plusmnb1'-+mn"Y&ne6t9*trHangHf1jlKekrarraeJ\\leftowMla$infih MaB5ddb Az-pdbdt @Aalpha=6+MbetJ2F.ahchiI3ǆ&hdelk4eppsiv._"&ph6 >6&gatmm.7)&8sio{)khapp*BlambdCmu	>DhnjEhomici,6Fpd70hth tiM7|)6rhoh&7{sig
U73a97=ngT|&u==6&omeg&7/6x6|6zX7A`"&A`4"uB4"C]`4"D`4"Ek4"P\G\N4&Et*4&I\4&uK\4\L]\4\MA4\N\O\4\PAn5\T\hM59R\59uS\5:T]\59U959O\56=X
6Ps5ZT5\\\"&minu=- {\|enQOp
\emsp14)  (textstr ing, "&e msp;" H ")
 = r0epin ge^{\f1\'b3}\f0&vl	va;' Roma n font:
 !helli 0\'" &  LCase(H ex(133)) "}"QdagXgern(4(D(5(permi
lQ7(ScaronX8mOElig40-Z(D42mbulQ49ndash<*5<m1m(trladFo[5esM25e,
oeF56z]_[LhYumF5F	n6bįR6F	ie4xc6F
ce4ntZ6o	po8und
P
yex6	brvbax6P,
seco9(	:P6?ZcopyEt6-ordf7-
laqu>o-
no;F7-sh,res/Umac,o1d	71plusm;
1acuvton8'
micr''
para,,8(
dd/-W8?(ced/_(
0Am/&o#r?A8_#
frac14/
&
oU2U3?
(9-iquesP-Agrav7-=Z9-circ9-til}29_V?~92y$` f0\'" &  LCase(Hex(197))  "}")
 t extstrin g = repi
n 4(T, "&AElig;" {\8-Cce(dilQ9-QEgraveQ200(acut(1(PcircQ2.(um203'IQ4nQ5nQ6.cQ.ETHxNtildO<1_eO<1_e-
ݻ<1_e
(1e-
F1_e	times7G1?eslash8
_e,
U=Ge-
=Ge,
u<GeM<2e	Y\2eA,
THORN<22t~U~sz~y222fagy(222_I222#*
2/G+
2(i2a #222e#
32
ccY32eg(2(z32(*
2#i2igO
2OK2O*
2OI23etyE242nF42og_)42_;
2_*
2o+
2w#x#42divi242   textstr ing = re(pin h(,  "&oslash;" ,{\f0\ '" & LCa se(Hex(248)) ""}")
"ugrave9.QacutQ50-QUci$rcQ51.Quml'2'yy3(thorn(4(e<5
C  <inf>Csubv Aa/©asuppergIB
iti(43iBBy <bd2!/Ce#SPW#!?*\cs?ng#/?)PF?%_Ff art\pla in{\*\footnoteBd fnend}\ppard#?PPdARarA# 
RtfWrit eTran ti0onsFŧZ
 End Func
                                                                                                                                                                                                                                                                                                                                                                       1 = 4 1 1 b 3 3 8 b \ 2 2                                                             	      	                                                    (        0        8        @    	          H        P        X        `        h        p        x    	                                                              	                                                                      	                                           	      	              	      	      	      	      	     "    (   	      	 &   0   	      	    X       x                                            	                 	                     (      0      8      H   	        P   	        X      h   $    n    R  .             K                                                                                       x                                      R    R              R   R              RP  R              ME                        (    @0   @   @    <                 0           h0         hH         h^`         hx        	 h        h"         h      P         h(        h         hX        	h8        h     	  h      hn       	 h       	 (         	               W      (         W              F  W       %     h        x               x                P                                         %                                               `     0                                    (                                            h   P                                            %                %                     P P       `         @         @                                                           +                     I I      iZ    8        i          `         `         `         @         @         @                           in          @         @L         @L         @L         @L         @L         @L         @         @          @                                   +                            ih            i            i          +X	                           i    @       i    `       i      8  `     h  `       `     (  @     p  @        `       @       @       Pu`     iffi	                  	          Id    	    P   Ih    	      I        +$                 8
       i    X
      i    x
     i    
     I         
      $                       
                                     `     ( ^@       @     <  i`     ctur@     atab`                                       +                            i    @    _pd_i    `     ! i        ( )        h   %     %   `     The `     s we`        @         @       `       @      dat@       `       +                             in           %   `     p  @L         @L      @L     G  @L     foun@L     os o@L         @     ta_ @                                 +                (  P         )H        $  %     %   `      
 @       @         `       `      `      @         @                                *`               ꀎ(               P                 0              ꀎ                8                               V                x    @            X	  P    P    (     P  	  (    8  8       `           ok   x    @            X	  P    P    (     P  	  (    8  8       `              x  
 
                 8    P                ) (  3A ( * \ R f f f f * 1 = 4 1 1 b 3 3 8 b \ 0 ( * \ R f f f f * 1 = 4 1 1 b 3 3 8 b \ 1 ( * \ R f f f f *                                                                                                                                                                                                                                                                 (                  	     	            	              (       
   8       H   	      	 B   `   	             	      :                            (   	     8   0      h      x               	      
      	     	     	      	     	              6             	            D      	        `      p         $             
             	     	      	           B                                    	     	             	      *   8   	 $   h    "      	      $             	       4                8   <   X                                 
             	      	       
      	 $      ,      	     	        @      X   6   p                     :      	 2   	      P	      h	      p	      	      	      	      	   
   	   	     	        	   	        	       
   *   
   "   H
      p
      
      
      
   
   
      
   	         
   	          
       
   	     	      	         
  "    
       
           $          H   *   `   		                                   	                 	 6      $   @      h               	           	     
      	           	     	     	           	     B       	                         0   	         @       H       P       X       `    
   h   	         x   	      	      	     B       	 "      	 &      	 @                         (       0       @       H       P   	          X   	          `          	      *      	 (             	      (          8   	       4   @      x         <                                     
          (   	      	          0   	      	 &   H   	 ,   p   	             
             4                            4   8    >   p                                            (      @   	     	          H       P   	    X       p                 	      	 :      	 ,      	       	        	 :   0    B   p    0             	 
              	            >   (      h   	 0   x          	 "                  	 ,       
   P   	    `   "   x               	             	             	             	           0   	    8      H   
   P   	 
   `       p   	    x          	 .      	 .      	 6      	      	 &   (    >   P                         (       N        4   P          	 (                    	 8          (       0       8       @   	          H   	    P   	 ,   `   	      	      	       
                           	                         	     	     
      	          0       8   	    X      x         &      	 "                  "      	 (         8      @   
   H   	    X      p      x         	                   	                   	              <      	 &   H   	    p                                  	 .                   	      
      	       &           H       h       p   	          x   	                                  	      	             	                                   	      	    0       P       X   	          `   	             	 2      	                        6          8      @      H   	    P      h      p                                                         	                  b         H    	         P        X    	       
   `        p                    	              	              	        	 4           !       (!       H!       h!   	          x!       !    b   !        "   	          "   	          "   	     "       0"       H"   	 "   h"       "       "    P   "       "        #        #       (#   .   H#   	    x#   	     
   #   	    #   
   #      #      #      #      #      #   "   #   	        $   	         $      ($   	    0$      @$      H$    
   P$    
   `$    $   p$    2   $       $       $       $   	 &    %   	 :   (%   	 @   h%   	    %   	 D   %   	    %   	 P   &   	 
   `&   	 P   p&   	    &   	      	 .   &    (    '       ('       H'       X'    .   h'       '    "   '       '       '       '       '   	          '   	      	         '   	    (   	           (   	        8(   	     .   P(   	    (      (   	        (   "   (      (      (   	         )   	        )    
   )   	           )   	      	 (   ()       P)   	          `)       )    "   )   	          )   	          )       )        *       *        *      8*      P*      h*      p*      x*      *    
   *   	          *       *       *       *       *       *       *       +      +   	      	      	     B     +   	 :   (+       h+       p+       x+       +      +      +      +      +   	       D   +       8,       H,   	          P,       X,   	      	          `,       h,   	         p,   	      	      	     B    x,   	 D   ,   	    ,   	      	    ,   	 ,   -   	 <   8-   	 D   x-       -       -   	 ,   -       .       .        .       (.       0.       8.   	    @.       X.       `.       h.       p.   	    x.    *   .       .   	          .       .   "   .      /      0/      8/    H   P/      /    P   /      /      /   	         0      0       0   	 &   0    "   @0   	    h0       0       0       0   	 h   0       1    f    1       1       1       1   	 &   1   	    1      1   >    2      @2   	         P2   	      	 "   p2      2      2   	 ,   2   
   2   	    3   "    3      H3      P3   	    `3      p3   	    3      3   	    3      3   	    3   	 p   3    J   H4      4      4      4      4   
   4   	 
   4       4       4       4        5       5   	      	 .   5   	          @5   	 h   P5    B   5        6       6       6        6       (6       06   	    86    $   X6       6      6   	         6       6      6       7   	     	      	 ,   7       @7       P7      h7      x7      7      7      7   :   7      7      8      88      @8   
   H8   		     	 T   X8      8      8   .   8      9      9      89      @9      H9   	 B   P9   	     9      9      9      9   
   9   2   9      :       :      (:    
   0:       @:   	      	      	 *   P:   	 *   :   	     :   	 &   :   	 8   :       0;   	      	 $   8;   	       
   `;       p;       x;       ;       ;   	       H   ;   	    ;       ;   	      	         ;   	       
   <        <       (<       0<       8<       P<       X<       x<   	      	    <        <       <       <   	      	      	 &   <   	 *   =   	          H=       X=       h=       p=    *   x=       =       =       =   	    =    "   =    "   >       0>   	      	      	      	         H>   
   X>      h>      p>      x>       >   	          >   	    >   	         >       >   	 "   >   	         ?       ?   	           ?   	 2   @?   	    x?   	 >   ?       ?   	     .   ?   	    @   	     
   0@   	    @@   
   X@   0   h@      @      @      @      @   "   @   	     	        @   	        @      @   	    @      A      A    
   A    
   (A    $   8A    2   `A       A       A       A       A       A       A       A    "    B   	          (B       0B   	          8B   	      	    @B       HB   	         XB       hB      pB      B      B      B   	     	    B       B      B      B   	 (    C      (C      8C   	        @C   .   `C   	 
   C   	        C   	     C      C   	        C      C      C      C       D      D   	     	     	        D       D      @D   ,   `D      D      D   	        D   	    D      D      E       E   	    0E      HE      hE      xE      E   *   E      E      E      F   	    F      8F      XF      `F      pF      xF      F   
   F      F   
   F      F      F   	    F      G       G      0G      @G      XG      xG      G   	    G      G      G      G      G      G       G   	      	           H    
    H   	     0H   	      	    PH       `H   	      	      	     xH   	 $   H   	          H   	          H       H    t   H       hI   	    xI       J       J       J        J   	          (J   	         @J       HJ       `J       pJ      J       J    "   J       J    &    K       (K       0K    "   PK       xK    &   K       K   	      	        K    
   K       K   	           L       L    0   8L    
   hL       xL   	          L       L   	      	         L   	          L       L       L       L   	          L       L       L       L       L      M      (M      @M      HM      PM      `M    
   hM      xM   	     B    M   	 >   M   	 D   M   	      	      	 "   N   	 &   8N   	 @   `N       N       N       N       N       N       N       N   	          N   	          N   	          O        O      @O      PO      XO      `O      hO      pO    
   xO   	       *   O   	 (   O        O   	      (    P       (P   	       4   0P      hP      P   <   P      P      P      P      P       Q   
   Q       Q   	      	           Q   	      	 &   8Q   	 ,   `Q   	         Q    
   Q       Q   <   Q       R       R       R    4   8R    >   pR       R      R      R      R      S       S      (S      @S   	     	          HS       PS   	    XS       pS       S       S   	      	 :   S   	 ,   S   	    T   	     T   	 :   0T    B   pT    0   T       T   	 
   T        U   	         U   >   (U      hU   	 0   xU       U   	 "   U      U      V   	 ,    V   
   PV   	    `V   "   xV      V      V   	    V      V   	    V      V   	    W      W   	     W      0W   	    8W      HW   
   PW   	 
   `W       pW   	    xW       W   	 .   W   	 .   W   	 6   W   	      	 &   (X    >   PX       X       X       X    (   X    N    Y    4   PY       Y   	 (   Y       Y       Y   	 8   Y       (Z       0Z       8Z       @Z   	          HZ   	    PZ   	 ,   `Z   	      	      	       
   Z       Z       Z       Z   	          Z      Z      Z   	     	     
   [   	    [      0[       8[   	    X[      x[      [   &   [   	 "   [      [      [   "   [   	 (   \      8\      @\   
   H\   	    X\      p\      x\      \   	    \      \      \   	    \      \      \   	    \       ]   <   ]   	 &   H]   	    p]      ]      ]      ]      ]       ]   	 .   ]       ^      ^   	      
   ^   	       &    ^       H^       h^       p^   	          x^   	          ^       ^       ^       ^   	          ^   	    ^       ^       ^       ^       _   	      	    8_       X_       `_   	          h_   	      	         _   	 2   _   	         _      _       `   6   `      @`      H`      P`   	    X`      p`      x`      `      `      `      `      `      `      `      `      `   	         `      `      `   	 J   `       @a       Ha   	       
   Pa       `a       xa       a   	          a   	          a   	    a   	 4   a       a       b       8b       Xb   	          hb       b   	 H   b       b   	          b   	          b   	    b        c       c   	 "   8c       `c       hc   	 >   xc       c       c    $   c   $   c   .   d   	    Hd   	     
   `d   	    pd   
   d      d      d      d      d      d   "   d   	        d   	        d      d   	     e      e      e    
    e    
   0e    (   @e    6   he       e       e       e   	       ,   e        f        f       0f    2   @f       xf    &   f       f       f       f       f   	          f   	      	         f   	    f   	           g   	        g   	     .   0g   	    `g      xg   	        g   "   g      g      g   	        g   	        g    
   g   	           h   	      	 (   h       0h   	          @h       `h    "   h   	          h   	          h       h       h       h       i       i      @i      `i      hi      pi      i    
   i   	          i       i       i       i       i       i       i       j   	     B    j   	 "   j       8j       @j   $   `j      j   *   j   		        j      j   	        j       k   	     	        k      (k      @k   	     
   Hk   	         Xk       hk   	      	      	         xk   	     B    k   	          k       k       k       k       k   	     	 <   k   	         k        l       l       l        l       (l       0l       8l       @l   	 <   Hl      l    &   l       l   	         l       l       l       l       l    
    m    *   m   	 $   @m    &   hm   	      $   m       m   	       4   m      m      n   <   0n      pn      xn      n      n      n   
   n       n   	      	       
   n   	 $   n   4   n   	     	         o      8o   6   Po      o      o      o   :   o   	 2   o      0p      Hp      Pp      `p      p      p      p   
   p   	     	        p   	        p      p   *   p   "   (q      Pq      `q      xq      q   
   q      q   	         q   	          q   	 0   q   	     	     	    q   	 :   q   	 6   0r       hr      xr      r      r      r      r      r   	        r   	        r   B   r      s      0s      Hs      hs   	     	         ps   	          xs    0   s    
   s       s       s   	 B    t   	      	 "   Ht   	      	 l   pt   	 2   t   	    u   	 2   (u   	    `u   	     	 j   pu   	 8   u   	    v   	 :   (v   	    hv   	     	    xv   	     	     	      	     	      	 (   v   	 F   v   	 "   v   	      	 .    w   	 ^   Pw   	     	 0   w   	 D   w   	    (x   	 @   8x   	    xx   	    x   	    x       x       x       x   	         x   	      y        ^    ^ 0   ^ H   ^ `   ^ x   ^    ^    p 8        ^    ^    ^   ^    ^ 8  p     P    ^ h  ^   ^   ^   ^   p H   ] 8  ] `  ] (  ]   ] P  ] x  ]   ]   ]    ] 8  ] (  ]   ] P  ]            PutCifInArrayOfLines ciffilename    ReDim datablock(30)  ] P  ] h       '    '    ' *_ P       $  '          ,   $ '         $ 
  not found         $   '            x   d        ' k   d        '       @           $    $  (        $   $     $  (   $  !    ' k                       $  !      $  ( ^          $  ( ^     <  if more than one structure need to identify datablock names           _atom_site_   $  !   $  ! ^$     
          $  ( d      $  ( k    	 _pd_proc_   $  !   $  ! ^$     
    $  ( d      $  ( k h                 P    * The following data blocks were identified:A@J                    $  !      .    $  !     (contains structure data) A@J       *   ' *    $  !   *+ P d p      .    $  !  A@J     k @                 A@J   o       ] X  ] p  ]   ]         data_   Z  $  '            G  j  %   i.e. not found            get pos of data_ in cifline:         $    data_   $ '                 line starts data_    '   d   ,  check leading chars - allow spaces and tabs                  $      $           	 $   K  
 $   K   $   K     K T  '   allowed    '   S X    '   y H   n @              k (                  trim line from data_ onwards    $    $         $  '                    $      
 $   K   $   K T     end of datablock name        $   '    ' y     exit   	 $   K     K   # K T     end of datablock name     ,  but check that following chars are the sameilenam       $   '   ' y     exit  AS     valid string so far Not    $   '   Line   ' n 8                
  , tm          Loop      $      K 	 $   K     K T     keep looking     # K T    ok - stop looking @    y     exit  S   
  not valid       ' n X       $   k @  k 8   0      ,     '  i       ] 0  ]  H    `    x  ]                  ]            Scripting.FileSystemObject$  .  '    n     %  .        '    '    !  b ar     '      @ 8     !   +  (     0  nb following used for displaying in wd textbox:'   $   
 $       $  ' (       $       $  ' ;      ' $      '   P     B@B   } $   ' o 0  @        returns line number             '     $    h  $ ' p} $   p   
      ' y   d      ' k        ba}\f0i           returns MISSING if not found '      returns value as string if found   : returns MAYBELOOPED & lineno as string if possibly in loop]   ]   ]   ]     ;"]   ] 	  ] (	    ' _     loop to find dataname       $  ' '        G  j  %   i.e. not found  '    !  get pos of data_name in cifline:     $      $ ' ring          line starts dataname '   d   ,  check leading chars - allow spaces and tabs8 te              $      $    d;")   	 $   K  
 $   K   $   K     K T  '   alloweda; '   S      '   y   n        {\f1\'k        G  j         trim line from dataname onwards     &  check if line only contains dataname!&     $        \'    '  ' d 0    $    $             $  '   k     '         G     ' j       $     _   G  j  @   i.e. no good a;     $     [A-Za-z0-9]   G  j  M   i.e. no good f0    $        K T     ok {\f1 
 $   K T     ok   $   K T     ok  	 $   K T     ok S         i.e. no good n   x           look again       '      
  G  j '  `     4  Start preliminary loop analysis  ------------------{\f1\'   &  check that not a single-dataname loop{\f1     e.g.      loop_      4       _pd_proc_wavelength       1.540562    1.544390{\f1\'  '   4 XXXXXXXXXXXXXXXXXX this is where the dataname starts
     '  . "  record this and return it somehow   '     'Do }\f0       '        $  ' f1\'   	 $       $  '  0   replace tabs with spaces    $  '     *  see if previous line starts with "loop_":    $     loop_    '      probably a loop, but check:44}\f0                  $    f0    %  only spaces or comment chars allowed f0      K T   N      keep looking {\f1 # $   K T     comment char ta;  y X
    $   K T '     move on  
 $   K T \'    move on'  	 $   K T   	  tab char f1    move on S 	    
  no good - '     	 ' Exit Do n 	       u;       OK f0  $ '       'Exit Do d p	     (  nb loop analysis wont identify pos loopf0   (  if dataname is last loop item, therfore$    /  see if previous line contains a dataname only:        remove any paragraph marks etc '     $       $  '  /   replace tabs with spaces     
 $       $  ' '   $  '        #  ' f0       
  G     $   $  ' j     #     9  nothing on line except comment (not likely to be a loop)   '   (  or perhaps should look upwards to checkf1\'            
 e    !  contains spaces - not a dataname  '       _*_*[#A-Za-z]  e      2 dataname only so possibly looped (or syntax error)'   d    '   k   k       ' Loop     &  End loop analysis  ------------------     ellip;  MAYBELOOPED    '    z 8  k 0   (             $       $    $     K T       keep looking  $   '  ' $   K T     apostrophe     find next apostrophe $   ' y x   " $   K T    double apostrophe $     find next double apostrophe    ' y    # $   K T     comment char ' 	   "  move down a line and keep looking  ' y     ; K T       look for next ;  ' y     $   K T       move on;   '  
 $   K T     move on  '  	 $   K T   	  tab char $     move on   '   _ K T   +  could be start of another dataname in loop $     or could be a CIF syntax error $     need to see if looped  ' y `  S X    '            $  '   (  value only so look for next space or cr y   n        uml;           could be in a loop    MAYBELOOPED    ' {\f0\'z   k               '    $  ' f0 P  k H        $     i.e. apostrophe ] @	   '        ' $     $ '          $  '   $     lookfornextapostrophe:    ' _        ' $     $ '  }     
  _     ,  check that following char is a space or eol $      	            $   '           K  	 $   K  
 $   K   $   K   # K T  '   x    S        look for next '\' '        ' }      
    '   x `   k X   n P   d H   '   x 8   k 0   d (    '     Closing delimiter  ' $       not found for         (line        )   A@J       x   k                       $   ' d p  k h  k `                i.e. double apostrophe     .  put in error handler if no closing delimiter!         " $     $ '             $  '            " $     $ '         
             $   ' d h    Closing delimiter  " $       not found for         (line        )   A@J       k   k                 i.e. ;         ;   $ '         $  '            now examine following lines      _ h             " Closing delimiter ; not found for       (line        )   A@J     k              $         $      $        K  	 $   K  
 $   K   $   K T       keep looking       ; K T          possibly found               '   y (  d    '   k    # $   K T     comment char       y   S    '     
  move downy   n                               $    ;   $ '                 $       $    '        '     i.e. reset val     x   d         bug fix for some Unix lineends      4 MsgBox Asc(Right(CifFileline(currentlineno + 1), 4))         9 If Right(CifFileline(currentlineno + 1), 2) = vbCrLf Then     ok   > ElseIf Right(CifFileline(currentlineno + 1), 1) = Chr(13) Then        MsgBox "13"          I CifFileline(currentlineno + 1) = CifFileline(currentlineno + 1) & Chr(10)     Else         I  CifFileline(currentlineno + 1) = CifFileline(currentlineno + 1) & vbCrLf     End If       '  assume blanklines are to delimit paras        $    $      $  '    
 $      $  '       $  '                          $     #PAR#  '   d `              $   '       k 0       '   k      k                 i.e. value                           $            K  	 $   K  
 $   K   $   K T      end of value             $   ' y H   # $   K T     comment char              $   ' y    S   n              k      "  remove any para marks from string     '       $       $  '      
 $       $  '       #PAR#      $  '         $  '     $    V(           V( (        V(         V(                      $  !         $  !   V( X  y   d        V( X    k p             z X   P    MISSING '   MISSING   V(          V( (         V(          V(          V( X    i   X	       3 replaces ALL occurences of a string within a string         ' _       d  h    '        
             h    d         d     $      ' d  x   d F   k   d     $        d  d      h     $   ' d          ' d   x   k        d' i   	       >  returns false if fails and reports reason as cifloopdata(0,0)         reasons for failure:          otherwise returns true      %  and returns an array of looped data:        6  cifloopdata(1 to cifloopnumcols, 0 to cifloopnumrows)       >  NB col heads contained in cifloopdata(0, 1 to cifloopnumrows)    ]    
    ]    N
       % Dim tableloopitem(2000, 20) As String     ] (  ] @  ] X  ] p  ]    '       Dim headcount        ' ]         '     first find loop       
      already have looplineno        ' d 0        $  '       $     MAYBELOOPED                 $  '       d       MISSING        	 Expected      % to be in a loop, but not found at all   A@J d `     +  found but not in a loop as expected (line     V!    )   A@J k    ' $  z   k   k         from now on have found dataname     '     coz not found yet!           move up to find loop_    _ p       '       
         b response = MsgBox(dataname & " not found in loop or loop too large", vbOKOnly, "CIF syntax error") ' $     E  not found in expected loop or loop too large (>20 data names) (line        )   A@J       V(     z `  k X      i.e. allow max 20 looped items       NB replace tabs       $  '        	 $       $  '  0   replace tabs with spaces     $  '       $     loop_            probably a loop, but check:                          $          %  only spaces or comment chars allowed         K T           keep looking      # $   K T     comment char       y     $   K T       move on   
 $   K T       move on   	 $   K T   	  tab char       move on  S 8    
  no good -  j response = MsgBox("Possible syntax error: " & CifFileline(looplineno - lno), vbOKOnly, "CIF syntax error") ! Possible loop syntax error (line       ,       )   A@J           V(      ' $  z H  n @                  OK            '   x   d    k 
   
     '  should now have line no of loop_ start                 b response = MsgBox(dataname & " not found in loop or loop too large", vbOKOnly, "CIF syntax error")   "  not found in expected loop (line       )   A@J           V(      ' $  z 	  d 	    ' k 	      find loop headings                    max allowed    '     initial assumption      '        $    +          $  '      	 $       $  '     $  '      %  test tmp to see if it is a loophead:         _* '         exit         '   y   d x                      $            K  	 $   K  
 $   K   $   K  # $   K T              $     +            $  '       y   n                M  check to left of dataname as values could be on line if single-dataname loop                         $            K  	 $   K  
 $   K   $   K T   '    # $   K T     comment    '   y   S     <  seem to have values on line so trim dataname to first space          then analyse rest of line '   y 8  n 0                   % "  don't look for any more loopheads      y   k   k                   '      $  up to here has given the loop heads         $  now determine if line starts with ;           if does loopitem = ; ...;      else analyse line for '...' etc     1  repeat this procedure until numitems = headcount    '      first analyse leftovertmpstr                  ' d        '   k h              0  i.e. end of file, but should escape before then   	 MsgBox dc            
  G y j              ' '   d        $  '     k      	 $       $  '     $  '       remove double spaces:                      b           $  '               ignore blanklines and comments      $  finish when find data_, loop_ or _*                      '       k       $    # $      "   # char            '     @  k 8       end of loop:         $     data_   G y j           $     loop_   G y j           _*  G y j         $      ; K T         ' S     ' n x                i.e. ;         ;   $ '         $  '            now examine following lines      _         '              $       , MsgBox CifFileline(loopdatastartlineno + dc)          MsgBox n     7 MsgBox Mid(CifFileline(loopdatastartlineno + dc), n, 1)        $      $        K  	 $   K  
 $   K   $   K T       keep looking       ; K T          possibly found               '   # i.e if found another ; on same line y `?  d X?  '   k H?   # $   K T     comment char       y ?  S ?   '     
  move downy >  n >                              $    ;   $ '                 $       $    '          	 $       $  '     $  '        '       +     '   x >  d  >              $   '       k =   =  k =                     $  '   _ =          G x j         $     ' $   K T     '     find next chr(39) 0=       ' $      ' 
      
   
        "  check following char is space etc  
       d <      
     $              K  	 $   K  
 $   K   $   K T       ok       S X<      look for next apostrophe   
   '        
    d <   F   k  <  n ;  k ;       '       
   $     +      $  $    +          $    $      $    +        $  $    +               
 $  '       d (;      treat as value only              $  '       k :   " $   K T       find next chr(34)     " $      ' 
      
   
           '       
$     +    $   " $       $    +          $  $    +               
 $  '       d 9      treat as value only              $  '       k 9    $   K T   x 9   
 $   K T   x p9      K T               $  '         # K T       x (9  S     value only         find next space             ' 
  
   
           '       
$     +    $  $    +               
 $  '       d `8      add complete line:            '       +    x 8  k 8  n 8    8  k     delimtercode = 2                      For n = 1 To loopitemcount    Next n            '          Now convert to 2D array:      determine dimensions of array         '                  '  Z The number of data values in a loop does not correspond to the number of data names (line      )   A@J         V(         response = MsgBox("The number of data values in the loop does not correspond to the number of datanames", vbOKOnly, "CIF syntax error")    ' $  z 5  d 5  k 5              _ 5        G x j            '                       '     $    $     .       $    $      $  '          
 $      $  '       $    .   G      +  j   k 4    $    $     ?       $    $      $  '          
 $      $  '       $    ?   G      +  j   k 84    $  $      +                 4                   $  $       +         $   	 $      $       +               3    '    '   '    '   '    ' ' $       V(         V( (        V(         V(                      $  !         $  !   V( X  y 2  d 2       V( X    k 2             i 2         8  NB this used for dictionaries etc there4 no logging yet     >  also useful to extend this to loops etc for general cif tools        returns MISSING if not found           returns value as string if found     : returns MAYBELOOPED & lineno as string if possibly in loop]   ]   ]   ]       ] (  ] @  ] X    ' _     loop to find dataname                       %      $ ' p  p   
        ' y 0  d 0     ' k 0                    G  j  %   i.e. not found          !  get pos of data_name in cifline:       %      $ '           line starts dataname '   d   ,  check leading chars - allow spaces and tabs                    %      $       	 $   K  
 $   K   $   K     K T  '   allowed    '   S /   '   y  /  n .             k .       G  j             trim line from dataname onwards     &  check if line only contains dataname!        %                  '       d 8.      %      %             $  '     k -    '         G     ' j         $     _   G  j  @   i.e. no good         $     [A-Za-z0-9]   G  j  M   i.e. no good       $        K T     ok      
 $   K T     ok   $   K T     ok  	 $   K T     ok S ,        i.e. no good n ,  x ,   ,       look again            '       
  G  j      `,     4  Start preliminary loop analysis  ------------------         &  check that not a single-dataname loop         e.g.         loop_        4       _pd_proc_wavelength       1.540562    1.544390        '   4 XXXXXXXXXXXXXXXXXX this is where the dataname starts        '  . "  record this and return it somehow   '     'Do            '          %  '    	 $       $  '  0   replace tabs with spaces     $  '      *  see if previous line starts with "loop_":    $     loop_            probably a loop, but check:                          $          %  only spaces or comment chars allowed         K T           keep looking      # $   K T     comment char       y X)    $   K T       move on   
 $   K T       move on   	 $   K T   	  tab char       move on  S (    
  no good - '     	 ' Exit Do n (                  OK       '       'Exit Do  d p(     (  nb loop analysis wont identify pos loop     (  if dataname is last loop item, therfore     /  see if previous line contains a dataname only:        remove any paragraph marks etc       $       $  '  /   replace tabs with spaces      
 $       $  '     $  '         #  '          
  G     $   $  ' j     #     9  nothing on line except comment (not likely to be a loop)    '   (  or perhaps should look upwards to check                
 e    !  contains spaces - not a dataname  '       _*_*[#A-Za-z]  e          2 dataname only so possibly looped (or syntax error)'   d %   '   k %  k %      ' Loop       &  End loop analysis  ------------------                MAYBELOOPED      (   z 8%  k 0%   (%                      $            K T           keep looking       '  ' $   K T     apostrophe     find next apostrophe       ' y x$   " $   K T    double apostrophe       find next double apostrophe        ' y $   # $   K T     comment char         "  move down a line and keep looking  ' y #    ; K T           look for next ;    ' y #    $   K T       move on    '  
 $   K T       move on    '  	 $   K T   	  tab char       move on    '   _ K T   +  could be start of another dataname in loop         or could be a CIF syntax error       need to see if looped      ' y `"  S X"    '            $  '   (  value only so look for next space or cr  y !  n !                       could be in a loop     MAYBELOOPED      (   z !  k !                 '       %  '        H!  k @!                i.e. apostrophe  ] p   '        ' $     $ '             $  '           lookfornextapostrophe:      ' _         ' $     $ '         
         ,  check that following char is a space or eol           	             $   '              K  	 $   K  
 $   K   $   K   # K T   '   x   S       look for next '   '        '        
     '   x X  k P  n H  d @  '   x 0  k (  d     '   x     C   FacifitateLog "Closing " & Chr(39) & " not found for " & dataname       k                       $   ' d   k x  k p                i.e. double apostrophe     .  put in error handler if no closing delimiter!         " $     $ '             $  '            " $     $ '         
             $   ' d x     A FacifitateLog "Closing " & Chr(34) & " not found for " & dataname k (  k                  i.e. ;         ;   $ '         $  '            now examine following lines      _       !      8 FacifitateLog "Unable to find closing ; for " & dataname   @  k 8               %               %      $            K  	 $   K  
 $   K   $   K T       keep looking       ; K T          possibly found               '   y X  d P  '   k @   # $   K T     comment char       y   S    '     
  move downy   n                                 %    ;   $ '               %       $    '    '     i.e. reset val     x 8  d 0         %    $      $  '        
 $      $  '       $  '                            %     #PAR#  '       d                 %   '   k P       '   k 8   0  k (                i.e. value                           $            K  	 $   K  
 $   K   $   K T      end of value             $   ' y h   # $   K T     comment char              $   ' y    S   n              k      "  remove any para marks from string     '       $       $  '      
 $       $  '       #PAR#      $  '         $    (         $    (           ( (        (         (                        %  !               %  !   ( X      y   d        ( X    k x             z `   X    MISSING   (          ( (         (          (          ( X    i            do this to accept filename       ]   ]           8  ]   P     h           ]          Scripting.FileSystemObject$  .          n     %  .           '    !  b        '        @          !     ,          B@B             (       n  ( n    i       ] X  ] p         '    '    '   5 cifdatastr = FindDataBlock(startln, CifFilelinecount)     ]   ]   ]   ]        _      '    '  '      '    5 lineno = FindCifLineString("data_", startpos, endpos)             !          %    data_   $ ' p    p   
        ' y   d      ' k                      G  j  %   i.e. not found            get pos of data_ in cifline:           %    data_   $ '             line starts data_    '   d   ,  check leading chars - allow spaces and tabs                    %      $       	 $   K  
 $   K   $   K     K T  '   allowed    '   S    '   y p  n h             k P                 trim line from data_ onwards         %      %         $  '                         $         
 $   K   $   K T     end of datablock name         $   '    ' y     exit    	 $   K     K   # K T     end of datablock name        ,  but check that following chars are the same             $   '   ' y     exit   S     valid string so far        $   '          ' n X                  
                          $         	 $   K     K T     keep looking         # K T    ok - stop looking       y     exit   S   
  not valid         ' n x             k `  k X   P     * FindDataBlock = lineno & "," & datablockid   
 ----------   4  commapos = InStr(1, cifdatastr, ",", vbTextCompare)         /  If commapos = Len(cifdatastr) Then ' not found                '            x h  d `       '   k H  d @       '           @ 0   J !  plus 1 coz array starts at zero?             %  (         %  (       %  !    '     k                         %  !        %  ( ^             !     %  ( ^          (        <  if more than one structure need to identify datablock names          For n = 1 To datablockcount          f     If FindCifLineString("_atom_site_", datablock(n).CifBlockStart, datablock(n).CifBlockEnd) > 0 Then       ,         datablock(n).CifStructuredata = True              Else    ,        datablock(n).CifStructuredata = False         
     End If   d     If FindCifLineString("_pd_proc_", datablock(n).CifBlockStart, datablock(n).CifBlockEnd) > 0 Then         2         datablock(n).CifStructuredataPowder = True        Else     3         datablock(n).CifStructuredataPowder = False          
     End If    Next n       " ReDim datablockids(datablockcount)   ? FacifitateLog "The following datablocks were identified:", True       For n = 1 To datablockcount         (    If datablock(n).CifStructuredata Then    X    FacifitateLog n & ". " & datablock(n).CifBlockID & " (contains structure data)", True    *        structurecount = structurecount + 1  =        datablockids(structurecount) = datablock(n).CifBlockID          Else      9    FacifitateLog n & ". " & datablock(n).CifBlockID, True      End If      Next n        FacifitateLog " ", True     ! n  ( n  !   (   %     ,       i        y Attribut e VB_Nam e = "Cif Tools"
Public  Type  hDa tablock

 4BID AHs S ng*Start0Integer2End. <uctured ^B ean4
Powder"CCBHatxoms
BIpxitemEOnxvalue* WiLinDNFileLf Ll 30couns().A:Bz
	P-stryOVIUCr";Htitl
eύC>6idHD!WPO3
G	pLoopUNumC iK@RowµPKCz$Extracted!]!cf(,C
Subp Set` )'Put`InAr rayOf!^s cifXReDim &B(30)
AsAlnA& L, c ommapos
= 0
	#2bRbDo
	FindB(
,Aafl@  a In /$(1`if	,  ",", vbT extCompadre!If Len(g) Th en ' nott fydb'LeftH  - 1B  `0
	 Exit    Els   %+ 1$ If`@  ae,;Preserve<2(). I= Righ+ (-&,
= Val(+	%#!%)
~A`For n A1 To'$g* :Y(n!a	=y*n `N' @v
kB=.b: if mo re than o m5 need  to identifyW	 [9
Oa!( +7B4 v("_q|_sJ_47,*) > 0}= Tru1'2if}Fa5p2P ng pd_procif"/>j
ĕOL

& rq ^i@w("aPitateLog "PPllow   we(D'ied:!s&&fOu	Fn & ". "` y9@  (containsU)F
Q 1 iD;)D	IDC(,&ID,Y14a"oQD
0Subunction vt|~, end+
D`yno. furth galiJ0J𼪄мidEmā#vkEixt=RK<Bbuc
0@CI Gop_rensi.e.)' g(et o+_ lin:#b= v`	e\(#) 	N	chsӁs,_
g5D pOpcheck  lead:ch(ars@a; spaces a#Pa,:bkS elect Case Mid(?0n,VChrL(9pq 10 3 p)0
es qr2IiO 5p
 1u`q#IF' m fro_vwardblB)P>Cpѐ9 e(lineno )) - datapos H4)
   0  F or n = 1  To Len(1blkR   Select Case Mid	B@, n, 1N   HChr(10), 3)   ' end ofblock name7y id Leftj 	k3furth@ervali >ionneede?0\Exitv E X9 X" " , "#"X' but che e that fol@lowing 
ars are  M ssnsElp' K str+so farKb;|aEÑNe8xt C.If s> 0 TheB
ƮUVAi͉keep lookQG%ok@sto
Fmnotn	l""G,/& /If

returnDues:
FindD@BBw= # &e" 3 	
! a	Functr
Su b PutCif InArrayO$fLs( file As SbRKDim tmpclB ConswReadV B,@Writ2App@#3i Tristate UseDefau4lt-TrDueA1, EF2ae= dafs, fCSe "sCre`Obj ("Scrip.F`Systemc"	gh@fs.O`T@c)#"$`A' )z= @Do Wh f.At2Of,eamh <> u	n0 + 1 Re!APres@e s$?(nk.@!dac' nb)usfdi splay!5in  wd t boxMaTb?	ReceIn#C"dDa@DU 1% & vbCrLb &TLoop# f.Clos,C&coun!QqSub{iEi Aqgc(!`g,hart1AIntegeXr, <)
'S?s= numbepaSt53pU
= "(3`"*C	,`-Compq _^F*`uRp`9og`0	> MENcH
Public fGetNI:RI, d0CrtQKTM ISSING if A\f@drV8 as%y`-MA YBELOOPEfD WanoPsibly 4@i0(;

a/ssc}	idi@aBoolea3_ratabi`srch!Mcifc		6
=M'qwp t%b(͐=2f, sPC
4)"3 Go /	qi.er. g`D_$`M2պ3A	w@@# :s~=^3 tc"h- a! sppace  PsHz-b͔)@	PȪʔY0
e %`QrёC
I{cC1A
uBuC&P tOl' wm!Tfrom onward'T@>bon0;contain!	(1@=):@ Right*uaonA!04ecurrenBh4&)[iP@}Q_~"s2:o	$: xgoo$L ike "[A- Za-z0-9]80_+oks("0o' 9)Z    GoTo  keeplook ingforda taname '  i.e. no good
   End Select<

 Exit Do
:
'   again
 srchstar tpos = line c+ 1
If 
> dblke tThenreturn values
Loop' SR prelim inarytp  lysis  - Lcheck  thattt a s le- ]0' e.g. _ _p d_proc_wav ngth   1.5405624390 
currenty~'X  I ZA wheree I ~cif$A' rec,a R osomehow (lb= *''tch 
t mpstr CifFil\ne(i6- )FRaceInSt
r@Y(, Ch r(9), " ")r	 ta bs with sp <  @0Trim ' @see ifvious J"Bn"@Left5) w@ubably@, but @AVFor cn@6 LenG#C Case Midcn, 1E :on@C7b omma rs alloweD H'/ RBR3 4' >c-13move o`t!	10965' o	ElsNeL -PosS lee\z`+Fae'' c-Nex3@'  OK

Tr2u`''f	' nbwont id1ify a@ACLFq tlastcitem,AurRc   <OGzA KreB'anaragra ph marks etcoi:i{xZ	0DsHoAMchar{(1 !s#" Hn> 0bm,z
sa)C"#"@78othG W~excepA`(no3ike@mto <beDz 
Nsr  perhaps @should<k  upwards 	"`T O!E;f?~-J7W/DaU  L " _*_*[#A-Za-z]"`fTeoaXsiAYed (Gsynt ax errormet8c32O0x:9If1y ;a!oyy1 `
Ge4tD I7@"M AYBELOOPED" &!n>FunctiMy	
l]q]1u]=v0G]), %^MMT["dm@rcotdep52]2Va6trophEa' fip|nOO!or40\doubl1_V/r4~jDcdown1:뀡p"dn 0 ";"p'k Y ;c2cr_r(1to_@@HuHzӂ'_"crKPOCof0ot@gink'NR0CIF YBUne DPQ=M	63O Eq)=335 Right(6ӡ) @U :' ao#\v rX"$1Z
qB>
R@ni&aoJoJpdoJ"P_śb	402hQP	0F#]?R$HDim@7undcloշ As Boolea fo/h4dopIFv9EC3QvbTPCompare/$, /$-3FkC0#C c	@VQ

,7%e> sнgfoq @Q-eolt6tV	<! (dataite mline) T@hen
  t estfollo wingchar@ = Mid
,  delimpo s + 1, 1)~Select Case L" ", Chr(9)10"3 "#"0foundclos a ytrophe! True&Ex`it DohEls#' loo k for ne0xt '2Fa
!srch=
#&If > Len%CxA
nd IfEE̃	DUJAE
HNFac ifitateLog "CCsCO r " &39)@" noti ~kAname=(nostart)0-CA1Loop

iBC	΀Left-BGLB=codA4' i .e. double o' p ut in err@handler if@K ȇT!
ȩInStr(@	Co34 nvbT bComparezRighY-`t!<= `2F> 1#0`0OF !HOO?b?2m?;7, ";\66 6'`w examAb Als
3currentn 1@CifFil=nect$.;?-?-GoTo r eturnvalue /FA@Hoh( )`FIA, n'' keep_c #;$'isiblyáCd"!H peMC16R!B	225) ' comm  a d V6T	= 	' moveOwd!lN{@ueDGE,_5PIH&`@i`	b Z_rese<t ,`cU' bug fixbqdsopUn 8end/'MsgBox Asc(S[o	k	4Q/'2, 2) 'vbCrLf'ok
'
One_6ff1A$13e"13/'_Y 
`	`  /?Los!1aassublanks 0t tos8P0uatmpqReplacerq?(		"J}q!"Trim(Tϐ @	""3./op1#PARa+ E4?9'[)= ^*U`@J3 %8rdL nd NcYacRQOHs'@= of@p	
Fq[cKY\\?͟np?_S?\1'C`|2`any a3  marks fr@om str@.
&1!75 2: f32, T& p
GetD8I`;2ExtracXted3i. , mline)
 Extracte dCifDataitem. Xd ,name = (StartL  Zcifnos#(fEnd1en d
For n! G1 Tozbl ockcountH
   If(tn)B" 8dblk{ Then3x/ID'y	+ID!it  Nlse	-""nd I f
Next  N+unctio return values:
Get$I P "MISSING &h#y(UV=k0t	F FF@
A  Re placeInS@tring(A,s tr, Findrep'@
s ALL o ccurences of a  within
 posK1
DoB u(,0@B > 0- 1 + Len(,) 2)ftG;) & "/E@A.AE : 3AT
 Rilgh-`%B -+ 1@!C Bd@AA;Ex
Loop
=`	`gD eK&As G8{ Intege`IB@ 	Opral Śumber)aBoolea@v'"vs f"a/ if ils a orts@asoNs"	A(0,aH fail W 
' othe rwisetrZu@'a r(ray!]ledU`'1 tonumcols,Vrows5 ' NB   hHeadonn? g!G[Dim a(20b&C1ld`00'atabley, "h7tmacheckCdelimf}`d*:Eـh= F<@3	CF/VeFoOn Err =Resu A
g=4 4`Mc|' fi8rst `J"
 e Blr 6y have0c@E,5+Ot:g4-4 p30#H`	LeKl, 11N"MA YBELOOPED"N:	GG )F`Nr
3' qFa@it ateLog "Expe "`N#7A& "+be 2a, buyo!at all"p_LKi s% as e(	ww
)oETa	KP *WGTu & rom now  KR$
aBT$0'cozPeyet!3' mo(upGfP{R)_8vlnop
Q w@dB- >>T@}spon P= MsgBox(p"	 5r too@ large@v bOKOnly,  "CIF syLx eq8"+E#{ P(>20Y s) wd!!^==bu i.e.A, maxQ\psQ^j} WBSuFiX@I(
- b?|(, C hr(9) ") 	 sp@[TrimB!۲EU5E	_EE1sprobcy@_=R_ q!/1cA6AƁFb  Se"lB Ca@'MidFcnL4y$d!'commen@t charlplowe" P ' keezpk#213  {or|13261S9 r?:N;good -re:"Possi{6f:rN$ne$, :t+:9wq6Q61(&8<LU77C;3Cb|919C&cOKUy>p@7!Ep>cA0should`Jw;  R _ start 

If loopxlinen o = 0 Th en
'res ponse LMs gBox(dat aname &  " not fo@und in ortoo l arge", v bOKOnly,  "CIF sy ntax err or")
Fa cifitateLog _expected`(] & ) pF alse
Extra1CifDA item. S=Luj}
GetL #it Functio E.Y$ ? If
   ' fi 6 headinLgs|hc1  To 20 ' mallowedo Trueini tial assumpJ +cŎt + 1@
&()
@<File2(A0  + hc htm=r
PRe placeInStr@8(, Chr(9) {  TrimD	 ' test to se e if _is, azA/:G3check&Like "_*"FB;	t¶  'exi@Ag 	O-OE  ForTBA  cn"sLen6Sel Ca(Mid	,, 1A

" Q10 T335l (Lef:t qover5Righs cn0/&E a ')Nextg G' =`Bl of'as values `^ld be o|`Gs Qle-!"
o6m78gam8GA!a E7Ca	?@commenZ	% 5_i 'tmauhave%10s4o `m5 8fir |sp@@ϲ `ly d t=ᓏL$-P%.Pぃ0H' don'tkry more`?E`hcgendBAlȂ` up0
e h`bgivepn th'w determ21s wi0th ;3do05s`C; ...eO6flB'' et '@ repea\h[procedu	until n4um!s0vW
row00`s" 6CA?I=pzB\aQ
u#|d!| o tz.e. A,fv, but shouJescape KNe1 dPgetn@Q o/Vme
+ >q 'Zq-
^46?
dvomK*rem [8uble rEsDo Wh (1,tqt0) <>Or Null		" qxPa'aA(2gnQ?blank nX27Пish wM)_,(_A_*-f""D%@ 'Goh!@aD09j}1)4ab ' #Pta//<_v-5!"_
&"_f C+yT
Ix,#bj"6;0dFrcod,m]2 iq>Q Psemicolonpo!N'";vbT=Co`mpare %R{_)P0\edxa\fo B(BDo
	1j;taf;IHM nװ	op(
, y!1<q1q s' keezp9k3S %'siblyC#/r"s= B7j'#Qa@her ;As0-AQ ' commen t char
  0Exit FopCase ElseVdel imfound = Fa.' m ove downP
E \Sele ct
Next"  $If 
LTr@ue The s emicolonpos fInSt r(1, CifFil ne(l oopdatas tartline no + dc) , ";", vbT hCompa re)
tmpstr&& " & Left(#$,K- 1	+Re placeUing(3Yhr(9	J "	Trim fitemc tQ+ 1.
	|)h
͂Do
>= A?
 rIf
L@_`
'
Et@'rcode&2DtD= K?'  LenDC	A60B 1 Ð ¤n
-,BcCC\39	U a srchÑ2@! ' fì1nr(
W0kfortrophe:@V5,S!#@IE> 5heck fo0llow  is sp etc
=@n(rmp)Z HAGA'Midg-,#qEM-eY١10Z3a-` ' okG'b3爡' .@r 1/,I*1ba ' %>$$$+GoToUABd`aC+ada# @p -Y}}^j"o9Right,b-U $5(f9 B&)@#'?' t reat as valonly?K&@^Ad34a.5j8= #24 n<E(8AhWo&BtpD0{q/	tDq!	+4)$	!!ZO_!_!^__i_!1Sn#Ut*Q"r`X)o0t)#"xu '+0+i* *b*er?p!*uf^O$&** "K _%_%Uv_% y ' addplpete T_ob_1/37%'?A(jEete+d@' n1 Cr	'ucifepr=tp`q Now nvert  to 2D arhray'm disio`ns ofnumofrow;/ headR%C SInt() <>  aX"FaitateLog "@q!ber1	3s` in a0es noorr0espopPthenam(ײ )P ExtracteZdD@+. SL s = MsgBox(a	p rOKOs ]CIF syn tax errorGetp
'q$unct  )S
ReDimߕg,W1\
Ric1<0#@ or(l.8$ 2@ 0G5(ib18"."@9l`Oq>s`tyotrsB"?!Ly( opitem(i c) = "" 
End If 
If Left(lo, 1 ?" Then`
tmpl~ vR eplaceIn@StringnChr(13), Ħ)lQ, 202 Trim(	 	
   A CifL D ata(rownum, col&.	$SNext	


For	 51 T o headcount
10/(; 19
Xfinished:Ztot̀ys Y}
 0HDNumR|owA
@
C<ol
@GetD]TrueExtract\edA.vpalue
	d@qnam	 StartLin!Acifl@nosMendn 'B~blo\ck  (n)5B!  DID	IDExit  DlsZ-DI|AFunctio
P@ublic E <A8I From8(3As , dblkcInteger + i fileׁF)dE 
' NB t his used$ f sdiaries etcere4 noDgg  ye u'  alsoful to @}	!
general G`^AXreturns  MISSING if t uAE'Zas sbfIFMAY BELOOPED( & #T *po ssibly in
Dim%'further i(6nee>d@$" Boolea@</ 6!4ataBPi`srchb929Mlf,'
=gCaDo 'B2djIp*KAXA= (1 ifJwar!Jsh, vbT@ACompare 	
8> 0Hv K= &o,l" GoCH4uY' i.e.AJL get !of$_AD.!9!s(3dA
GPVB!s&= _I @check  'da9chars -p9low sps a'sM#Wa- 1Se lect Case Mid(XDFnR!t b " al	e 01QrEWIFGXzZ@?yWQ/ (h"keookJ' 0GsB fY onward|' KPFc`ontaiM!#	Lenle_$q)

 Fr  Right,p	b	-#=	+`Pcurrent= 9
Q@0")%_#C>R<>0 gooP'neLike "[ A-Za-z0-9]!,D3_-"0ok*310)`o3o9^g3O__84/XDo
qQBfk agp.
i!>jf8Z'Џ pr1minarymanalys - 9that^a s=le-$be.g.p  _ A _pd_pr@oc_wavPQngthr  1.540562  4390i?/ne/\'X pweѕ/"	_
~0$l ' repcord_  RsomehowM l8
''1c b "@r _I- B~p}׃x "+r i withk?!1#`@' see vio\us0 "s3"b")>, 5FT'P%obpy aB%, bu_Quasc6OqQO"   3 ect Case  Mid(tmp str, cn,@ 1)
   '  only sp aces or  comment  chars al`lowedV" "rkeep lookingB Chr(35) '
 Exit HFor.13mXove  0 91otab<' !KElseno good -PosS dled atanameL oop = Fa'' _DoEnd SelNexn
@' OK
(TdruA''%J'H nbp >lysis wo id ify pos/if SB  lasti tem, therfor3 see previDouine@fnptain x:$
reNan@aragrap h marks `etc
C GRepl@InStr O u, 5Afr	 @h5itfhD0)TrimI= #(1 Bm"#" 	If	 > 0 Then 3Left2a)F 1noth?  lWexcep ӈ(nogikeڀto be ak Ѐperh aps shouldk upw ards @check
A 8> ") E;cJb?~- aA7WDa$ L "_ *_*[#A-Za-z]""`fTŃoaXsib  ped (sy`Qx error"fa sIfAYAt!@wyAl - aa  *xPGetDI`oFromCif.` AAvalued" MAYBELOO@PED" &DnbFunctio 
ceI'`r! n@	1 To Len(+}a&a'I,^ žd mrcod5antroph ' fi@0nm-
1#
!34doubl@fT4ɰdownv{a%p";`Qk  %;#-	2bZ_uBbvvJvh"_"cLPstart of8oqkiinBRPSCIF CUne`EPQdo>M	63 SF,=33509Righ*t
9,/: V +AQ{ Y򘴒Z
3qB
C
? KnRJ)g
oKKKK
K/ 5R
currg1K=  f
TfiS	F3 s( PGoQxS qP:s`?	 pT' i.e." JDim09un`dclos}  As Booleafo/hqRr`K "vy, DT , vbTRCompare\&&)&n1%EEdsrch	0X1^
,9i@n0(>0ъ at oaqacq/eolx18<5%1 testfo={ '9t"A 3v{Эs9Uï#T^!"s!S ARWI!'3Fc'g	_T)1  >Qooq1 M'B;5O`ܯwJS/	' cifitatg "CۣB &e="ҵ /r(JéR3,$9:< s - 1)
Else Pnd If
	HIf  delimite rcode =  4 Then
   ' i.e.  double  apostroph 6put i n error  handler  if no cl osing!
f B aInSt r(1, data ymline,  Chr(34) , vbTextCompare 	& >Right(;Len
) q q3>> 1g] JLefIx	'Facif itateLog "C" &"t fou f xnam'2;aa";"`sL`'@4w exam@6llow~s
Do
@Zcurrent= Ciffile>.Fc FtD7TUnaAto fi@O;r Q GoTo ret urnvalue!EF ]nu{o T"s(,+   Sel ect Case  Mid(h, n," @eM9103' keep 0look V  S #;"' Ysibly "K\CN= TrueGf yeFaaExit `%ÌB_i	+A!35) comm ?` char kI' move w 	=ѣ4
N  !y= &:ne YB, _k=JAV_Hfc7reset _9q*
tmptest`ReplaceKY|U3U""@U
$[Trim>( 	@5 ""Uae& )_)F)a0#PAR#g" 󖱅.GLoopbEWe36<|rNNit6MLYZJ3;FJJe@ofq'vu Fapt n0}ьCAEE?19GvK  7sD'`fHany Pa mar ks from P[po= }9t47 7:=38= "3aCrLf 4vb `%
GetDItemF8}!)`b>om0kA|A 	ifStartL1ifsA  
7blockC-`<ms(n:)	Ba	QblkB	>  aIDp|ID7t"?21%w`Mbunctio0x):oc#"MISSING QOA0o/q+F   Put@InA0rrayUu
As @pA)  @"
' this  accep1`ile1PimPRIntege1Con@|'Re<adp Wr$it 2,QApp*39% teUseDefaul1-@= -p%R`qRD	fs, % S@fsCr"eObj("Scrip1	.SysPBL2 	2 fs.O1Qibd D1	Do Wh f.At Ofeam <>ҰSan  Y Re1Pr0a!	Cq5s/%.dS  Js
 z ilelinec ount = n 
PutCif InArray. Pf name x	4
End Functio xD
 SeD atablocks(xd " As  File)QDim startlnInt@eger
cif=str,  commapos
-= 0
"r 5uctur  
 '*pFindYjBY(-,V)O  J	noUf urthervaliY neededitemBoolea#,ublk/, ido
 [""
83= False
\'@fL String("_",e\`, endAF0or n  aToJAyABcCIn (1Ws(n), F vbTextCo mpareIf > 0 T|heMdc²Exit (
E<If
N@ Go3re nOues  ' i.e. `not fb'  get A!ofBi_ in !:iA= ;.=7)V1=%%hsC!
|Tru@|A@check d x ch ars - al low spac az@wk   <o- 1`   Select  Case Mi&d)})@s(n, 1G@ChrL(9  103 " " Be-  <^'BeAeCO-M'  dmAP from/ onward'A5x@^Right# Len) 6A- 4)5	.6(, 3$f4i3 2  ^B Ca 
"  Left(KeAeZ 9A`}'o&J`H #I'0 but bcth^a|bd`  ^s @&nonĂ ^  T so fa^1!5o3l"cAq233B 3sx[M1 +_S0Y-_-Dt\-1}"`keep lookP%N"q$oksto) ddA~5bmp@_PN 
li'ڎ9Y & ","P 	3 '- 
'vn`7,{|' P!G)EmhvTXSoТ=Xn 5*rDT!a Xe+m 
'?CRePreserEr,s())plus 1`z as Jzero?	)ABID sSѼ0%w
ifg9
Loop{jp/?>n7q=xn VCe:ckp
Ү=if mHorenan@e&r aj to  identifyR
 d8P:"_atom_sPaǦhѹ) e'p"  *Cd>V!_h_pd _proc?if82#??":Powder   Else
'  databl ock(n).C ifStructure`Powder = Fa End If
 Next nG 
 8R eDim ids(count) $Facifi tateLog  "The fol@lowing;s  were ident .ed:" , TruFor n 1 To-1c` If{u ;cHn & ". " K^ BID  (contains s8)S?FT _+ ~1 G=)Lŀ <6YV A~'E}'" ;SetDsfilena|me+A-I

FlineJ[s(K 9Functio 
                                                                                                                                                                                                                                                      0( q     *B@          *! 4     G | j     *! 4' zL k        now have filenames ' f    .    .   8  &( 6           ?  B@       B@v  L     t     x  B@    ' b    :  &( 6      &A@r    *A@r         
 Load FmCif  B@      RB@  d     :  &( 6   CIF not found     $  '     . | `  k X  o P       >@        Place settings in the registry.    	     B  Startup  D  DoNotShowRtfInfo F  v HA@@     	     B  Startup  D  DoNotShowRtfToCifInfo  F  p HA@@   	     B  Startup  D  DoNotShowTableToCifInfo  F  t HA@@   	     B  Startup  D  DoNotShowUpdateInfo  F  r HA@@      >  o   X     J         B  Startup  D  DoNotShowRtfToCifInfo  F  False  N$ L ' p       B  Startup  D  DoNotShowRtfInfo F  False  N$ L ' v       B  Startup  D  BM       v   (                                                                              333303333333303333             u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                              3   3   3   3    3333333    30  DoNotShowTableToCifInfo  F  False  N$ L ' t       B  Startup  D  DoNotShowUpdateInfo  F  False  N$ L ' r J`  o X         3  Remove section and all its settings from registry.  R     -  appname has been publcif, pubcif, facifitate      Startup A@T  R  o       o        Attribut e VB_Nam e = "Cif WdMain" 
Public  Const Fa cifitate!As S |nghprintCIF f
Sub ()"App ation.A ctiveWin dow.View .ShowHiddenText R`False XF laggedGe@ometry Tru Coor(din s9DontP=Ackn owledgement"SortedComp  rProgram/Saved: Redisplaying WH RtfBuildLo Regis _GetStu@ff
Fm.elect
EHnd  
Star aocessDim resp ~
'Me.[monDi alog1.FiPlterT"|*.  <CancelErro.O	CTitlS* a y@@yOpen 
With FmAOpsA
   .Cap/̚& " - Please s!BButtonsibB,5qExtensLabelH"AR 3f-mE-l
ffs, f, nu
If7.ReturnA!Af" Th@Ex,itzISet fCre@Obj("Sc$ri@FngxeSystem" fs.filedex s(U) back  up C@M qget44f`Npy 5.$$$? work on tmp 
: spwIUCrc&t$Pf.+Gn2q	ucr r$Left, Le&n4 P3)
rtf`a)see itf   /2IK1O'zque{@fr	IMousePo b|fm	CustoRmWabK0.5Defaxult }Rich Format   $An RTF"E A out C3~	_b R>d 3type agF6.	,($"`cP1 HQ|*pAFK~' pv hrRsq1 OsA~3ONothutIPzs90O1A1DractUnXiv.1CPfr ArraysEtc
Re]CpStyle(1@W Tools.P$ut InOfLines KQ!sEditif? >>"?9UnploadXCy
6q1#u'LV$qDk bRA
~E2			U MsgBox(as lound",  vbOKOnly,|a'Q?rS ' Q5#"QOn Go To quitrery[Plac1tt@'s ijhe Y.`(,C	 app:b=, Spz:="Bup_32#q1 KeyDo,9Infopse:=n3, To 	__ee Ta`g+ UpdЖs'
Z$p@
`Ͻ(
( (	 05C"(("((w(F #2JA)_	I	m'2	
	;"					"f$#		#						Eo	+7' ry:
End  Sub

 ` Regist ryDelete Stuff()
' `move  section a all its &ttings from r .
On Er ror GoTo  quit 8delappnam e has be en publcif,fa itate
Reh FN B,  "Startupp"
d	E xamineControlsՊ~                                                                                                                                                                                                                                                   g         n                                                                                       x                                       ME                     (     <     <     <     <               printCIFH    %   X      `                          (    `                 h h       @     @     @      @2                               <X    `                         $    `                 
 
       P    `                         V  `                             H                      X   X                      `                        p                 @  3A                                                                        	      	      	      	      	     "        	                   8        @        H        P        X        `        h        p     
   x          "                	      	 ,       	 *       	 4       	 $   8   	     `          $      
      
                    
      	             	                         (   	       *   0       `   	      	    x                	                             ,   (   	      	    X      p   	                         	     	     	 8      	 D      	 $   P   	     x   	           :      
      
                   
         (      @      P   	      	      	      	    X   	      	      	          x   	      	      	                    	      	      	      	                     
                    	      	                     
        
      	         
   0    
   @   	          P       X    $   h                      	      	      	      	      	      	            	      	     "              	 &       F       L   0    N       J      	      	      	              	         (   	     "    0   	          8    V   @    P       X       T   @	       	      	   	     "    	   	 :   	       	   	 4   	       0
       H
      P
  "    X
   	         `
   	      	      	      	      	      	      	      	      	     p
  ]$  printCIF  0           ! !  ( "   ' 0   ' .   ' 6   ' 2  ' l  ' f     ' A@$      &B@  Px   o p   X     ]       % Me.CommonDialog1.Filter = "CIF|*.cif" X     # Me.CommonDialog1.CancelError = True P     - Me.CommonDialog1.DialogTitle = "Select a CIF"   Pu    Me.CommonDialog1.FileName = "" Re    Me.CommonDialog1.ShowOpen   *      - Please select a CIF 9 P   5 ,(  '  5 .(      CIF 5 0( q      *B@  
  not]                *! 4     |   k      Scripting.FileSystemObject$  .         *! 4  %            back  up cif     *! 4  %  .    *! 4  .$$$    B@          work on tmp file:  *! 4  .spw    B@      ! '     *! 4  .spw ' x    *! 4  *! 4    $     rtf  ' z      see if rtf exists  z  %       request name for rtf       8  &( 6          ?A@   :  &( 6     2 Me.CommonDialog1.Filter = "Rich Text Format|*.rtf"  > Me.CommonDialog1.DialogTitle = "Select an RTF file for output"       Me.CommonDialog1.FileName = ""    Me.CommonDialog1.ShowSave   *    ,  - select or type an RTF filename for output 9  5 ,(     5 .(      RTF 5F m C i f                                                            
                                               F m C i f C l i p b o a r d                                                                                   q      F m C i f I n f o                                                                                    O   
      F m C i f N o t e s                                                                                         z   ;          	      	      	      	      	      	      	      	      	               	                      	              	      	      	      	      	      	      	      	      	      	      	      	     "             (     &   8        `        h     
   p           	     "        	       
                       	                            	              	      	              
                                  	          0      @      H      X      `      p      x                                                               	                         	      	            	      	      	      	      	      	         #       #           G                                                                                      x                                       ME                      P    SP   S   S   S   <     <     <     <      hj t hle  0 { F 2 B 9 7 8 D 0 - A 8 F 1 - 4 6 2 B - 9 8 9 E - 6 5 A 9 9 0 E D E 8 B 8 } { 6 1 F 8 C F 6 F - F E 7 C - 4 0 5 9 - A 5 5 3 - 9 1 9 4 B 8 9 5 1 E 2 4 }       p   0    (                  %   X   0             %   B\               0   @\         `^         `                            b@                  2 2        d                            )f             %   il        p                            ir     (         il     H       i\     h     i           H                            ir             il           	 i\     (     [  i                                                                                              H                                                                                                             ir     (         il     H       i\     h     *  i                                                                  ir     (     +  il     H     D   i\     h      	 i        X,  x                  h h        `      	 @     B `      	 @      	 @       	 @2                             X   8                    
 
       ir          X.  il             i\            i        .  x                  
 
        8	                            ir            il          @0  i\     	        i          x	                           8
                  	          ir     	     "   il     	      	 i\     
     3  i                             e e        `     3  @     H4  `     4  @     4  @      4  @2     4                    H          ir     h     P5  il             i\            i        86                             H                  
 
                                                               )         H8    %                     0          ir     P        il     p      	 i\          9  i        2                              0                           p                                                                        D D        @      	                   H          ir     h       il          <  i\             i         	                            H                                                                                                            H                                                      H                            ir              il              i\     (         i                                       H                    
 
       ir              il              i\     (         i                                       "H                    
 
       ir              il              i\     (         i                                       `$         &`                    
 
       ir               il               i\     @         i            (                           ,`                    
 
       ir               il               i\     @         i            .                  
 
        0`                    
 
       ir               il               i\     @         i            2                           8`                    
 
       ir               il               i\     @         i                                        >`                    
 
       ir               il               i\     @         i            @                           F                  & &        R                     	 	       ir     @         il     `         i\              i            T                  	 	        V                            X                  `  	 	       ir              il              i\              i            Z`                     + +       i    @        i\          ^                         @`         bX               BZ`                b^                 H  `     `      `  p    `     H  `  H  @             8                8
    `      x	    H           x      0      H      8	              x    `  H    H  H          0      H  `     `      `  p    `     H  `  H  @             8                8
    `      x	    H           x      0      H      8	              x    `  H    H  H          0  ? ?                    `    0               e   3A                                                                 	      	      	      	      	  "                   @    
   P   	 "   `   
                                             	     "                                                0      @   	      	      	      	      	      	      	     "    H       P       h       p                           	     <      4         @      H   
   P       `   	         h   	     "    p       x    
                     
       (                              &            H       h       x    (                                    .          (       0   	         8       @        H      h   	      	      	      	      	     "    p   	          x    &                    	             	                   	     "                     	     "                     	     "    (       0      8   	     "    @       H       h                                                    	      	             	     "                          0       @      P   	     "    X   	          `    
   p         	     "                                                	      	      	      	      	      	      	      	      	     "                   	   	          	       	       	   	           	   	    0	       @	   	    H	   
   `	      p	   D   x	      	   
   	      	      	      	       
      
       
      (
      0
       8
       @
       H
    (   X
   	      	     	      	 ,   
   	 *   
   	 4   
   	 $      	     @       `   $   h   
      
                    
      	             	      	      	             	 J           P       `       h       p           *                    	        
       
             	            8      P   	    p                              	      	       	              &             	       
           0       @       P   	      <   p                                $                  	                (   	      	      	      	      	          0       8       @      P   	     "    X       `       p                              	      	      	     "               $                            	                 8   	     "    @       H       X       h       x                	     "                      $                             
                  0       @      H   	     "    P       X       h       x                       	     "                                   	              $                     	         (       0    (   @   	          h   	      	 ,   p   	 *      	 6      	 R      	     `                 
      
                    
      	             	      	      	             	 J          h       x          	       "              
                                   	       *          @   	       H   X                                        	 &      	      	      	           (       8    
   H    
   X   	    h          	     	      	       
      	                    	                          	      	      	      	             	                     	          0   	      	     	      	      	          8       @   	          H   	         X   	     "    `       h       x                              	      	      	      	      	      	      	     "                    	     "                                     .   (       X       x         	     "                      .                           	     "        
         (   	     "    0       8       H       X       h       x                	      	      	      	      	     "                    	     "       	                          	     "                    	     "                     	     "            (       8       H       P       X    &   h                 	             	      	 Z      	      	 4      	 8   H   	 D      	               6      
   (   
   8      H      X   
   `      p          	                            *              b         X      h   6   p   
      
                  
                   	       	    0      @       H   	      	          P   	    `       x   	      	             	       	        
      	      	       	                                       (   	     "    0       8       H       X       h       x                	      	      	      	      	     "                    	     "        
       
                   	     "                      	     "                             0        @        P        `        p                           	     "                                            !       !       (!       8!       X!      `!   	      	      	     "    h!       p!      x!   	     "    !       !       !       !       !       !       !        "       "        "       0"       @"       P"      p"   	     "    x"       "       "       "       "       "      "   	     "    "   	 (   "       #    &   #       @#       H#       P#       h#       x#       #       #    
   #   	    #      #   	     "    #       #       #       $       $       ($       8$       H$      X$   	     "    `$       h$   	          p$       $    \   $       $        %       %       (%       8%   	          H%       P%      X%   	     "    `%       h%       x%       %       %       %       %       %      %   	     "    %       %       %        &   	          &        &       @&       `&       &    ^   &       &       &   	      	 (    '       ('      8'   	     "    @'       H'       X'       h'       x'       '       '       '      '   	     "    '       '    
   '      '   	     "    '       '       (       (       ((       8(       H(       X(      h(   	     "    p(       x(       (    &   (       (       (    
   (   	         (   	     "    (       (        )       )        )       0)       @)       P)      `)   	     "    h)       p)       x)   	       
   )       )    
   )   
   )      )      )      )      )       )    
   )       )        *    <   *      H*   	     "    P*       X*       h*       x*       *       *       *       *      *   	     "    *       *       *    
   *        +    
   +   
   +      (+      0+      8+      @+       H+    
   P+       `+       h+    <   p+      +   	     "    +       +       +       +       +        ,       ,        ,      0,   	     "    8,    
   @,    
   P,       `,   	         h,   	     "    p,       x,   	          ,       ,       ,    
   ,   	      
   ,      ,      h-      x-      -      -      -       -    
   -   
   -      -      -      -      -      -       -   	      .   	       
    .       0.       @.       H.       h.       x.       .       .       .    <   .      .   	     "    .       .        /       /        /       0/       @/      P/   	     "    X/       `/       p/       /       /       /       /      /   	     "    /       /       /       /        0        0       00       @0       P0       `0       p0       0       0      0   	     "    0       0       0       0       0       0        1      1   	     "    1   	 (    1       H1       X1       h1       x1       1       1       1       1      1      1      1      2      2   
   2      2      2       3      3      3      3   
    3   	     	     	     
   03      @3   >   H3      3      3      3      3      3   
   3   
   3      3   
   3      3       4       4      4   	     "    4        4       (4       84    
   H4       X4       `4   	         h4      x4      4   B   4   	 h   4   	 z   @5   	    5      h6       p6      x6  6  ]   ]   ] `   ]          x           No CIF is loaded    $  '   |    k      RB@|        o x          f      ' f   ' b  d H    ' l  ' b  k 0     b     d  log1.Cd      ! B@      ! !     K T     do nothing         :  <L T ' d    >  @L T     ' d    B  DL T E   ' d    F  HL T ' d    J  LL T ' d    N  PL T ' d    R  TL T ' d    V  XL T    ' d  S    n     k   k   o   @      l        alt pressed    f$    R    \ K T        MsgBox Me.CifTextBox.SelText     z    @S    ! ! n  RB@ k H  S @  n 8  k 0  o (         ! t(     ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( zo          ! !      	 d                           (U       ! (   xU  y @   k 8     $  !   ! !    ! !   $  ! ^	            ! (  #  datablock(n).CifBlockID ssDy   k        0s k   o   H         X       ' X    ! !       K T   ! !    K T      new powder   Go to data block  ! ( d  ! B@       RB@0   ! !    K T    
 new crystl  Go to data block  ! ( d  ! B@       RB@0    ! !    K T     ------------  Go to data block  ! ( d  ! B@  S     ! B@    ! !    $  !      ! (  n   k   |        Go to data block  ! ( do         x       No CIF is loaded    $  ' | H  k @    ! ! d  RB@ ' X  o         ! B@  o          ! B@   o    H    A@    o          !   ! t!  (  	     ! t!  (    (       k p      ! v(   |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( z  ! t!    ! t(    o           ! x( z  |  ! ~( z  |  ! ( z  |  ! ( zo          ! t(     A@r       o x        |  ! ( z  |  ! ( z    ! ( z  |  ! ( z  |  ! ( zo          ! t(      ]   ]    '     x            	  carry on d        close current cif  l        d     Do you wish to save changes to       ?      $  '                 RB@        '   ' l       e     '   d     do nothing     |   k   k   k   ]     ! '       Loading CIF - please wait...  (    % Me.CommonDialog1.Filter = "CIF|*.cif"        # Me.CommonDialog1.CancelError = True          - Me.CommonDialog1.DialogTitle = "Select a CIF"         Me.CommonDialog1.FileName = ""        Me.CommonDialog1.ShowOpen   *      - please select a CIF 9     5 ,(        5 .(         CIF 5 0( q 8    *B@        ]   (  @        *! 4        C response = MsgBox("No CIF file selected", vbOKOnly, facifitatename)           (     |   k       ( 6        B@      Scripting.FileSystemObject$  .         *! 4  %       ' f       kill current cif             xA@~       k        back it up          *! 4  %  .    *! 4  .$$$    B@          work on tmp file:  *! 4  .spw    B@        ! '       .    .      open it    *! 4  .spw ' x     ' z    just to clear previous      '   B@v            t p    x  B@        -        (         ! ( d # &   set by CifTools.PutCifInArrayOfLines     ' b    :  ( 6    d 0    :  ( 6      CIF not found     $  '       .     (     |    k    |            (     o    x        ! ( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( zo H   8      x           No CIF is open    $  '     |     k     ! ! d  RB@       x   B@ o   x      |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( z    ! ( zo `  8	       ! t(     x           No CIF is open    $  '     |   d        ( 6      RB@            B@     :  ( 6    k   o   x	      |  ! ( z  |  ! ( z  |  ! ( z    ! ( z  |  ! ( zo P  8
       ! t(   ] x
  ] 
   '     x           No CIF is open    $  '     |   d   ] 
    ! '       Saving CIF - please wait...   (       % Me.CommonDialog1.Filter = "CIF|*.cif"        # Me.CommonDialog1.CancelError = True          0 Me.CommonDialog1.DialogTitle = "Save CIF as ..."     K Me.CommonDialog1.FileName = Left(IUCrCifFilename, Len(IUCrCifFilename) - 4)           Me.CommonDialog1.ShowSave   *      - save CIF as...  9  5 ,(       5 .(         CIF 5 0( q      *B@        ] 
  
  
        *! 4        C response = MsgBox("No CIF file selected", vbOKOnly, facifitatename)           (     |   k x    *! 4  x  x    $               ( 6      RB@             -        (       :  ( 6    | 
  k 
     Scripting.FileSystemObject$  .         *! 4  %         The CIF file already exits.     
 Overwrite?     $  '             .     (     | 0
  k (
  k  
       if got here - save as new cif:        kill current .spw file       ( 6      x         V          xA@~            assign new name:   *! 4  .spw ' x    RB@           *! 4  %  .     ! '       ! ! d  RB@     .    .      -        (      ' b    :  ( 6    k   |          (     o         |  ! ( z    ! ( z  |  ! ( z  |  ! ( z  |  ! ( zo @      A@    o (        ! ! !  	       ! ! (       \  (     d     ! ! !  ? X  ! ! (     !  ffffff?   (     k   o x  H      ! ! !   
  d P    ! ! !  ? X  ! ! (     !  ?   (     k   o         B@P        o          ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( zo `        Z  (     o @      ' ^   (   (     o   0    A@    o    p      ! B@    o          ! t(      ! v(   ' |       x           No CIF is loaded    $  '   | h  k `    z            S Me.CommonDialog1.FileName = Left(IUCrCifFilename, Len(IUCrCifFilename) - 3) & "rtf"          . Me.CommonDialog1.Flags = cdlOFNOverwritePrompt       2 Me.CommonDialog1.Filter = "Rich Text Format|*.rtf"   > Me.CommonDialog1.DialogTitle = "Select an RTF file for output"        Me.CommonDialog1.ShowSave   *    (  - select or type an RTF file for output 9    5 ,(       5 .(         RTF 5 0( q     *B@          *! 4     G | j     *! 4' z    d `  k X  ]      Scripting.FileSystemObject$  .         z  %     The RTF file already exits     (    z   ).     
 Overwrite?     $  '                   *    (  - select or type an RTF file for output 9    5 ,(       5 .(         RTF 5 0( q      *B@          *! 4     G | j     *! 4' z       Set fs = Nothing     Exit Sub  k   k     ! ! d'     FmCifOptions.Show   ! ! d  RB@      '     Start = Timer         Me.hide     RB@            finish = Timer        MsgBox finish - Start      ' |  |         ' |  o           ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z    ! ( zo `       A@    o H         !          B@        k    o    H    A@    o          ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( z  !        @  Z 	        !  ?   (     k H  o @         ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( z  !  d 
    !  ?   (     k   o       A@     o   H      !   ! v!  (  	      ! v!  (    (       k 0     ! t(     |  ! ( z  |  ! ( z  |  ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z  |  ! ( z  ! v!    ! v(       o          ! t(     |  ! x( z    ! ~( z  |  ! ( z  |  ! ( zo (  H       ! MsgBox Asc(Me.CifTextBox.SelText)   x           No CIF is loaded    $  '   |   k     ! ! d  RB@      ! v(     ! ! n   
      ! ! n  ! ( dk P    B@            FmFindRep.Show    o          |  ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z    ! ( z  |  ! ( z  |  ! ( zo   H          ! v(     ! B@       Enter line number (line count =   ! !     )       - go to line  $  '                  ! B@      X     ! (     ! (    ! (   k      o         |  ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z    ! ( z  |  ! ( z  |  ! ( zo    H       ! v(   ]     ! ! n' $  $$  ' $    $  $      $  ' $      $ 
 $      $  ' $      $ 	 $      $  ' $      $           Please select a data name by     highlighting it using the mouse      $  '   |   k       " CifEdit.LookupNotes lookupdataname  $  RB@   o         |  ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( z    ! ( zo @  `       ! v(     *B@        o         |  ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z  |  ! ( z    ! ( z  |  ! ( zo   `       ! v(     x           No CIF is loaded    $  '   | 8  k 0    RB@|        o           ! ( z  |  ! 
( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( zo   `     4     ! v(     p        d `    6B@          x         ' x  d 0  | (  k    k     RB@         |     4    Unable to complete process       error $  '     o         |  ! ( z  |  ! 
( z    ! ( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( zo 0  `     :      ! v(     t        d     <B@          x         ' x  d   |   k   k     RB@        |    :    Unable to complete process       error $  '     o H        |  ! ( z    ! 
( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( z  |  ! ( zo   `      ! B         B@D        k   o        H     ! t(      ! v(     8  ( 6      r          d         ? Warning: you are about to replace the _publ_section_ data items     1 in the CIF with text generated from the preprint.    J  $  '         L        :  ( 6    | p  k h  k `  d X    NB@          x         ' x  d (    :  ( 6    |   k   k        FacifitateRtfBuildLog = ""  RB@          :  ( 6     ' d    z$  ! !             z$  B@P  k   | x   Hp    :  ( 6      Unable to complete process       error $  '     o          ! t(      ! v(     |  ! x( z  |  ! ~( z    ! ( z  |  ! ( zo          ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( zo 8          (       !   (   ! ' Z      ! ' \      Go to data block  ! ( d   ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( z  :  ( 6    o X          ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( zo          " code to prevent accidental closure   ! t(      ! v(     |  ! x( z  |  ! ~( z  |  ! ( z  |  ! ( z  x         d @        !          ! $    z$          ! !          4 Changes to the editable sections of the RTF preprint    3  have been detected since the CIF was last updated.      # Do you still wish to close the CIF?      $  '                   B@P        '   |    k   k   y   k                l        d    ( Do you wish to save changes to this CIF?    $  '       L      '   | X  k P              RB@          RB@        d     RB@        k    k   k   o   `    ]      ! t(      ! v(     ^         ' ^  d     ! ' `      ` d 	      d p    ! !    ! !   !      !  >    ! B@b         a   Me.MaxBut.Move Me.Width - 5 - Me.MaxBut.Width, Me.MaxBut.Top, Me.MaxBut.Width, Me.MaxBut.Height   s   Me.MinBut.Move Me.Width - Me.MaxBut.Width - Me.MinBut.Width - 5, Me.MinBut.Top, Me.MinBut.Width, Me.MinBut.Height            Me.SpinButton1.Move Me.Width - Me.MaxBut.Width - Me.MinBut.Width - Me.SpinButton1.Width - 5, Me.SpinButton1.Top, Me.SpinButton1.Width, Me.SpinButton1.Height    k 	  k 	  o 	  x	    { Attribut e VB_Nam e = "FmC if"

Basp0{F2B9 78D0-A8F 1-462B-9 89E-65A9 90EDE8B8 }{61F8CF 6F-FE7C- 4059-A55 3-9194B8951E24}@GlobalSpacoFalseCreatablPredeHcla Id TruBExpose0Templ ateDerivCustomizD
 Dim  combobo xente P A s Booleanstart height
AwidthMini<ingForm!P e i Sub Ch eckBut_C lick()
If IUCr} Filen" The%responMsgBo x("No CI F is loa ded", vb OKOnly, FacifitCrExitA 
End If
@Edit.Parse C 'A.*ifText _Change+A,RedisiyA@A	{-|Aed!    SaAC/A60S	QP ublSectiT	-BF!Me.D)@.SetFo cus
A	Se2l C	CuprLin	0' do noth@MCSyn@opsisSO To  6 AbstractCommch |pfkRefI?(Ack`?hIBf=Fig`E&O L\]bubA_g xKey Up(ByValB `CodeMSAs.ReturnIger, ShiftG#= 4} ' alt p	 
icChr(d@^"\'Ù mllAynA8TeXt s!x.R unTmptexY	%&,'xb)T(MouseMove(@tonW#&xaS lze%Y'  `MnuFr`.Visi
w T`ks_$'.Bord erSty"{fm NoAJxUpde.@rintjdh,"i,+tex- {'	 Pbo_1.Li stCount p<= 1tn$3 fn*Po 0+ockc+ 1,1DInd-= -D|#*q@F(n)kBl#If}r.j A@l <uven -'/	 	IDD/0N 0es:"Z!x On Error Go uescape= yM?ЕF^$R ne w pow9
!P$"Go t% bQ`Sq'PAddNewDs@r 2	,- 2 'qcry(stltcks+y3 '- @$9Os{0=(/- @=5 )<e `6x(://#0Q/ox1_גVo"o ooooŀ&ify#b AllLy-]/6spy^GӜopy{Cut/P_  DicUwLookupo 4|'dH`UM e.FileMn uFrame.H eight +  40 Thend
MP=  ,
End If` ToolsVi sible = `FalseBO pen.Bord erSty#fmNon
/SaveAs)1Exit-aqNot
 SubPrivate
   _Mou seMove(B yVal But ton As I nteger, AShiftx	SingleY	)sCBEsqEUpd4~bPreprint[Nz_Click( 99hDUnload k adBeeс4h?S!o_:`[no$//i c#g<p$<On Erro r GoTo e rrhandlerDim Ki llCurrenPtCif3B earespon
If` IUCr$n@@/""d' c@arry o 
EB lose c ci     	,d True?dc!e`Ms gBox("Do  you wis@h to s@ "c ges" "&Itit&  "?", vbY esNoCancel,itwN h!a !`Ed `
a N'A`iANoa ' do noth@(?ׁ!A Aol@dcaptiSbtg
CCd@5"L   CIF - pHlea`@wa &.T."Q  ' ZC ommonDia log1.Jter! |*.3#8]= C,
T"@= "Select aQ	_e  Show19
With FmA0OpsAec.Fa% )"mws{.co.g=##d?E xtensLabel"A
W. fs, f, n9!>Retu\rn)'9"SP+  f` ed7OKOnly?PC`7a &= ?&pjV+)iPoPt"fm	Hou rGlass
6@ractUniv.W'abi t 1
Set fsCre?Obj!("Sc$ri/ngq(eSystem"P
9fs.aexists( ) Redisplay`0Text* kX;Q=WQWs|q;' back up
get
0#f.Copy,.S.$$$0  work] ttmp:S/spwhc3Y= f~.6SK
' o0)?h'ucrRtfWk' justQcc Jr previ 
;@BuildLoZg0"%CA rraysEtc
Re5b(1Q q.Pu	wInOfLi~nkUDDnlgÐU4if!' s.?'A\Pb9t by o	d	 &Pn|edA,4G8{8DefaultY:)j;DKl founD[,#A.!/F`s,1#rFsPQ W/_sPuSOa^Ϗ	я @0Ϭg﯑fD!?7veX0 D	N9 nuPrint_ Click() 
If IUCr CifFilen ame = ""  Then
r@esponsLM sgBox("N o CIF is  open",  vbOKOnly , Facifi`tateN  E xit Sub 
End If
 Edit.Upd & All Me. 	Text a.

App ation.Out Ba ckground:=False us o:=u~Z
 Av q tMMouseMo ve(ByVal  Button  As Integer, Shiftx	Singl FY	 o8O.Bord@erStylfmNone
SaveAs0bB^6Ǡ<Fr .VisibBGx?%_Po erfm	HourGlassG3@ xtractUniv.Wa@b1DefaultCNʁBP%WeWW ]W/?_Q"/)~Yp?/AsW=JDim  KillCurrent EBoo8lea`
`??!b 
oldcapA"t`g
ݨ=C"-C@T K- pBw b..."O n Error  GoTo errhandlera'`Common Dialog1.@8tq"|*.@͠Cancel= Tru 
Tit"ias OaHA Left(, Len) - 4@	Show
With FmOpsA4
   .( & "
s c"unqHV3@ExtenswLabelHA1

.1# fs, f, n~!R+ReturnPV'/@lf} selectedʆfƆAcvG'* U^o	h	m}e*X_ccd_c.aRc.f3"`&tq+6?D'e
Set fsCreObj0("SHcri ?ng7e@System"#0Тfs.Aex`ists( )?4𣀥+aldy ts.QvbCrLfQ. Overwrite?rYesNo?2`	($vb0A-Noth I6:"!hA/yq ' if got here8CPnew PI:/'$ k0_ cC_ .spw 1o=`qoy"<F Se P#CloU c
' ign !
20
K 7F?0aw +"+$!getQ!A?$R,Q.aUfB6_cT#ʯa&55Cd'dԨ#o7o7#	%o"#)weú 2	Ϡ̏Sˏ  !Ϡ̏ʠuP"0veM́8!S Yndw'Ts FindS$:? FontDnlbu+ i&/1. Size <= 9g)A'= 82/Widp= s`tartw 0l < se
Me.C ifTextBo x.Font.S ize = CInt(x* 0.9)|Width ^ T65
E nd IfSu b

Private    UpBut_Click( MIf p> 16 Then Ol:1.11.0\Image1_Dbl\ ByVal Ca ncel As  MSForms. ReturnBo`olean 9W dMaingi stryDeleteStuf6 MouseMove(7ton7 eger, Shiftx	@SingleYCDFileMn uFrame.V isiblAFa5E\T 3sZ.B orderStyBfmNonE"Upd@b Preprint?@ 	MaxJHeight starthcBMin@inimiz cATruD40Ope\ҖPaste3*gv!F4F@acifit;Comma= #" On Error  GoTo errhler
a@IUCr`n V(""DresponsWMsg! ("No F  is loade d", vbOK@Only, 'N 	aExitc!CucrRtffdM
'@! onDialog1.A
@Left(,, Len) - 3) & "rtf"Q!
lags
cd lOFNOver writePromptter "Rich ீrmat|*.#TitBx"Sct an RHTF A  f 3o`utput S@howSav [Wi@Fm!OpsA
   .Capti=/ s`typeb	ZA`LExtensALabelh"A.!RCa/S gKIIr@EBQDim fs`
Set `CregObject("Scri@+ng"PSy~mcF"`[@fs.8ex`hs(l)O4E4 xal@dy Pts"@vbCrLf(  -,).{+?8YexsNo8"PX=vb<、%P% 8%--.%Pq%/%/%h%4%A$%K668'$Nothid*qO(u )DXStwg`qP7F0IFm`O?s2 Edit.} AllA'Z XBuildLo"GSax1TimaHhid%RPo 'f xsARbPM$nip- 
_GiDggi:d?P	md酨_M__Ѧ_ӟ_ ____QZu'__/&_e_SjQ 1  p>d@nTJRedoJq0<anU  Acߡ?\4! D<nuq3
Sp2#1_ Down 4$7&(( < 2.5 * ػ&* @MUp/o)2//roc/? ϴ 
Me.Upda teMnu.Bo rderStyl@e = fmxNonePre print"If  Height  > 100 TXhen*=!*  0.9
End IfSub
Priv    Table But_Clic k()
Tools s
B
>7,>T<I(Frame.V+ 4aBg FilÁ)Visi c 0Fals#Op`tions"=ind*ParsejCWLookupRtfToCif*Goto*qaNot}h_M ouseMove(ByVal   ton As I nteger, AShiftxSingle
Y@ėAu߄߄ъ~}tFZ'u'MsgB2o%c(@"DText .SelA@%yIUCr`"&n xl""resp`kac	("N o CIF is  loaded" , vbOKOn ly, Facihfit`N 	E8xitG{ EditdAllI  )u`8LenTFma"Rep. .  "gSho0w
'1d_]]s ]%%ӟ%&UElea5nD_C\=7On  Error Go To escapegPWy0'&-m0SetFocus
8Inpu<("E0Sr l ine number ( cou nt = " &5LC& ");[;" - go tor"cB<> B4
{XCurAC ^()`1l@=gthHideKec! Ԁ;:CR "9thQjhCjh h9ˍ9PE9?96g69Wp	9I9qC9Qgc9)U	Dim nM arq St g
l;,f>Trim([5ninstr, Chr(13),08= ;t0atx9ew
ς ("Please sel ; a % byIvbPCrLfGhlK` 0us the m__q İz e!
;DicS<?Dte%p?~u_D_D_D_D_D_D_DeOg_D_D^DOA_DZDoG
?D?D?DAJJ_D MnuOptio ns_Click ()
Me.Tools Fra me.Visib le = Fal se
FmCif.Show 
End Sub 

Privhate M ouseMove (ByVal B utton As  Integer, ShiftxSingle*YPar se.BorderStyfmNonfwTass*RtfTo !*Goto*Fi|nd*Θ~{Lookup\{^)If IUCrQFilen   "" Then`
resp@M sgBox("N o CIF is  loaded" , vbOKOnly,@cifitN@ExitC.If
@Edit.B* "5??p_eA_Xlk_X_XexXC|=zgXOn E rror GoT o quitrtxfto MK \D0oNotInfo\True$]Eī)   @0ross 	edQc"b AcA#IdSel|ecAą	!:	2uUna to @comple p@rocessxv & " e-"w{_ss cj˟Y?sYE9psL9 r9Y?99+/c99t'9ό69|99;99=a69fR82	 9k9e"99Qt9~ 9t9v	sߟ9ooo oD2}3Wsn6S
/v996e/39?og99C' Undo'9 5Canm } Ad*f O xUpd 0ȟ>>uBu?5 _GZdPoir"	Custom
	CS
B
!<APublSss{  "Warn@: you  are aboutQtrepla ce the _p_s_   a items"@:vbCrLf:inwith  text generd frTompr.y cel an 1 	ofmiDefault׺ " XXXX@//&Zu 'Fa DBui ldLog&""a,uAllE@	?)&R+cu ments(Iucrfio lename). Revision s.Count  >= 1 The n
Docum ents(Iuc@rRtffiA cceptAll|
End If xit Su b
quitu pdate:
 Me.Mouse Pointer = fm	Def ault
resp e !Msg Box("Una ble to c omplete  process" , vbOKOn ly, Faci(fit oN  &  " error")
PrLiv #Q UOMnu_EMove (ByVal B utton As IWger, AShiftx	SinglenY	 AF 6FrO.V k= \lseTools!.BorderSty Non&"BY7*Preprr@+_serFo rm_Click(?IQ?I@QT"I_Hb UHInitializeICapt@age.HeighstarthwidthWAbCombo p1.Text1"Gop za block"-Z76eZ6f6nF	#4___s _e_44~m444}/Q ueryClos e(CancelA&Mode'cAprev  accid c`	ur&cc&M(%8߱@?Ld1g6If  IUCrCifq ""dEn   _ Each  adoc`v ATppp`aQM.և
0UCaP.Full1~)c-"ChangesO T ed@{sec
s of RTF)"vbCrLfhave been dcte0d si&rCI F was laHst d.D o you st ill wishG&`he ?YesNo +q HvbNoA1 $3= Tru /eq EfZD59A 0!#Ng	_ &S0d!'"tsacis3/b*qDC1 D_y E=*. 2if߂RM'i0Q?1  y /ResDim minÈe.i7@Minimi6z $m[ FaBHd
pQ5!< 100%pPq >+Left, ;Top"" - N4  62' QMaxɆ5`0R2OTin_-u15sCv8}Sp 1.);	?		Y'
  	.d .                                                                                                                                                                                                                                                                                         ME                   (    SP   S   S   S        0 { 1 8 5 F E D 6 F - F 7 5 F - 4 4 1 5 - 8 A 5 9 - 5 6 A 3 5 3 1 8 C 4 2 1 } { E 9 5 0 E 7 3 2 - 6 E 0 3 - 4 1 B F - B 9 9 2 - 9 0 D 6 C 3 1 C 0 B 0 5 }      0    (                  %   X   0             %                               d                            f                            `                                             
 
        V                           ^                            `         `               `         `                          `         0                X  3A .                                                            Y  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                        	     "             (       8    	     "    @    	         H    	     "    P    	           X        x                   	     "                                       	      	      	      	      	     "                        (   	      	      	     "    0    B   8    J       J      	      	            0  `       ! B@  .9o `          ! B@  rio @        o 0          !        @  !  	    !  ?   (    k `   o X   `      !   
    !  ?   (     k    o          !   (      - clipboard   ( ino          ! !    ! !   !      !  2    ! B@b F  H  ! !    ! !   ! !      ! !  2    ! B@b T   ! !    ! !   ! !      ! !  2    ! B@b       o       P Attribut e VB_Nam e = "FmC ifClipbo@ard"

Bas0{185 FED6F-F7 5F-4415- 8A59-56A 35318C42 1}{E950E 732-6E03 -41BF-B9 92-90D6C 31C0B05}dGlobalSpacoFalseCreatablPredecla Id TruBExpose0Temp lateDerivCustomizD
 P G K Sub Co@pyBut_ c k()
Me.New TextBox.
E\ndJ2T2Label4CSpin)ton1_DownA+
If , Height <@ 2.5 *ATag ThenB4=
* 1.1IfUpA > 2000.9xTUser Form_Initialize40
Caption Fac0ifitv& " - cHqr1FResDUMu ltiPage1`.MoveLeft,lTopABWidth8â/- 500LE?Ne20(*S,.                        L                                                                                                   x                                       ME                   (    SP   S   S   S        0 { 9 B 7 A 4 A 0 5 - B 7 F 2 - 4 5 A C - B 3 C F - 1 1 A 8 2 1 D 4 8 6 B 7 } { 2 3 1 9 C 5 9 1 - 6 0 3 F - 4 0 0 A - A F E 2 - 7 6 D 2 A C A 7 D 7 F B }      0    (                  %   X   0             %   h                            l                            V                            Z                `          i        i\      `            8   `                           `          0                  3A                                                             7  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                                      (     
   0       @    	      	      	      	      	     "    H    	         P    	     "    X     "   `           	     "                                 
                `       ! j!    ' v  k X   ' x    A@r       o 8        o (             - RTF preprint    ( x   o p          ! j!  ' v  k H     B@<      o 0   (      Attribut e VB_Nam e = "FmC ifInfo""

Bas0{ 9B7A4A05 -B7F2-45 AC-B3CF- 11A821D4 86B7}{23 19C591-6 03F-400A -AFE2-76 D2ACA7D7FB}dGlobalSpaco FalseCr@eatablPredecla DId TruBE`xpose0T emplateDerivCus tomizD
 P 6 : Sub  Image1_ Click() 
If Me.C heckBox1 .Value T hen
DoN otShowRt܆xEnd If
ross'hUnload
@	/	$Label6$
	
UserFor m_Initia0lize0A/aption'Fac0ifit ;&  " - RTF  preprint#QueryCl@q(Canc el As Integer, pModeHQ W dMain.Re gistrySaveStufX+                                                 p     L  w  	         G                                                                                      x                                       ME                   (                                                                                                                                                                                                                                                                                                                                                                                              SP   S   S   S        0 { 3 D E 3 6 5 0 5 - 5 E D D - 4 C A D - B 4 A 4 - 0 F 3 B F 7 8 D D 1 E 9 } { 5 D 7 A 9 8 7 5 - 0 4 D E - 4 A 1 F - B D B 9 - 6 B 1 C D 4 A 9 0 F 3 3 }      0    (                  %   X   0             %   n                            p                            `t         v8                           Vx                           Z                            i        i\      x                         `        x  8       `        x  8     8               `         0               
 h  3A                                                             :  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                         	     "    (        0        8        @        X        h        x                            	      	                     	     "        	             	     "                       	     "                
             	     "    (    
   0      @  P  `       !   RB@       o X         rH   ]      ! ! dX' t         ! v(     ! B@      ! B@      t     ! (       ! (    ! (    r8   o 0        o     8        (     o     x    '     B@L        o          RB@        o         f Attribut e VB_Nam e = "FmC ifNotes"D

Bas0 {3DE3650 5-5EDD-4 CAD-B4A4 -0F3BF78 DD1E9}{5 D7A9875- 04DE-4A1 F-BDB9-6B1CD4A9 Z3}dGlobaBlSpacoFalseCre atablPr@edecla I"d TruBEx0pose0Te mplateDerivCustomizD
 P 0 4 Sub  DicButto n_Click()
 Edit.Lookup   Me.Tagp
End5!Goto " On  Error Go To escap@ethisg  
Dim lin o As Int@eger
= C (Lin eNoBox.Text %.To olsMnuFr.Visi
d	/SetFo cus
Cur qB%- 1lLength	HideSelection|;ND:Uā2_C`hangegU serForm_ InitialiFzRCap cpifit~AQ@ueryCl (@Cancell, ModeHC
= C  hBV@5PRunV9h         8     L  ?  	                                                                                               x                                       ME                   F m C i f O p t i o n s                                                                                             F m C i f S e l e c t                                                                                         F m C i f W a i t                                                                                                  F m F i l e O p s                                                                                         2      i 3 4                                                             $   ,   *     n`  `                f                                                                                                       0      o                                                                )   +                                       i  8       C o m p O b j                                                                                       g  p       (    SP   S   S   S        0 { 0 6 8 D B B E E - 3 2 D 6 - 4 D 1 8 - B 7 6 E - 0 F F C A 1 8 5 2 5 D 3 } { C 9 8 3 B 7 4 A - 0 D 6 8 - 4 8 0 3 - A 4 8 2 - 8 2 A B E A B C 7 D D 1 }    `  0    (                  %   X   0             %   z                   % %        T                            V                            `            `                          `          0                @  3A "                                                            N  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                                      (        0        8        H        P        X        `        h        x                                                                                                                                                  
   (   	    8      P   	      	      	     "    X   	         `   	     "    h       p          `       ! j!     ' 0  d X   ' 0  k H     ! |!    ' .  d (    ' .  k      ! ~!    ' 4  d x    ' 4  k h     ! !    ' 2  d H    ' 2  k 8     ! !    ' 6  d     ' 6  k      ! !    ' z  d     ' z  k      B@L            FmCifSelect.Show  o         o            
  - options   (     o h   `     4 Attribut e VB_Nam e = "FmC ifOptions"

Bas0{068DB BEE-32D6 -4D18-B7 6E-0FFCA 18525D3} {C983B74 A-0D68-4 803-A482 -82ABEAB@C7DD1}dG lobalSpacoFalseCreatablPredec$la Id TruBExpose0TemplateDeriv Customiz5D P ; ? S ub Cl TBu tton_Cli ck()
If  Me.Chec kBox1.Va lue Then
 ntFla ggedGeometry sEJEnd If2 Coordin +sZNE!3Synopsi4 ortedComp@rProgr\amU
5DontB\Ackn owledgement	6EnATeXLdIhidd'B Select.Show
A QZ veSUserF8ormSRIn itializeYXaFac0ifit& `" - oƑ                                                   h     L  o  	         [                                                                                      x                                       ME                   (    SP   S   S   S        0 { 7 3 4 8 5 2 9 5 - 1 7 0 3 - 4 B 5 F - 8 3 E A - C 3 E 3 F 8 4 0 F 0 3 F } { 4 3 2 C 3 B 9 3 - 7 9 2 B - 4 4 B F - B D 1 D - B D F 2 4 3 6 5 9 F E 6 }      0    (                  %   X   0             %                                                                                       f`                                                      T                           V                            `          `              `          `                         `         0                X  3A                                                             D  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                        	     "         
           0    	     "    8     
   @       P    	     "    X    	         `    	     "    h     
   p    	      	      	      	             	      	      	      	      	      	      	     "        	             	      	     "                 <                   `     g p   o h                	  
                                             !  "  #  $  %  &  '  (  )  *  +  ,  -  .  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~                A@r  "Welco H          B@(  & ", ao (        o    `      B@(        o x       o h           (       Welcome to       , a simple tool to:    ! (     o          ر Attribut e VB_Nam e = "FmC ifSelect"

Bas 0{734852 95-1703- 4B5F-83E A-C3E3F8 40F03F}{ 432C3B93 -792B-44BF-BD1D  F243659FE6}dGlobalSpaco FalseCr@eatablPredecla DId TruBE`xpose0T emplateDerivCus tomizD
 P 6 : Sub  Cancel_ Click()
End/Lab	Unlopad M |ontinue  WdMain.S tartProcessB4*
B toRtf?Q/?Us@erForm!
InitializeWMe.CaptionFacifitbYA
 91" Welco@to` " &  "@, a si e tool :3                                                       8     L  ?                                                                                                 x                                       ME                   (    SP   S   S   S        0 { 8 3 2 2 3 B C A - E 5 D 2 - 4 5 1 B - 9 D F 5 - B 2 5 5 3 2 B 5 1 9 F 5 } { B 7 6 8 A C D 6 - 4 1 E F - 4 8 7 0 - A A 6 8 - 0 D 9 2 4 5 C A 3 6 D B }    `  0    (                  %   X   0             %                               T                            V                               `            `                       `          0                @  3A                                                              +  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                        	     "        	              	     "    (     2   0       h   x   `     g p   o h        o X             is processing - please wait...    (       o         t Attribut e VB_Nam e = "FmC ifWait""

Bas0{ 83223BCA -E5D2-45 1B-9DF5- B25532B5 19F5}{B7 68ACD6-4 1EF-4870 -AA68-0D 9245CA36DB}dGlobalSpaco FalseCr@eatablPredecla DId TruBE`xpose0T emplateDerivCus tomizD
 P 9 = Sub  CancelB utton_Cl ick()
E<nd5UserForm InitializeAMe.Ca ption@NFa`cifit#&  " is pr ocessing@ - pleAwq... t'C&                                                                    L    
         Me           %     B@L  sgBox d x     File not found    $  '    k H   o @        ] `  x      ! !   $  $    .   ! 0!  $           0 Please provide a file name of the correct format    $  '   d      B@L        k    o x         B@        ]          0  H       Scripting.FileSystemObject$  .          .  Set dc = fs.getdrive(Me.ComboBoxDrives.Value)      ! !              desktop:      $    %  .           $  '      !   :    ! (       ! !    e         my docs:     $    %  .          $  '      !   :    ! (     d       ! ! $    %  .         ! '       !        Drive   !   
  not ready   $  '            ! ( | @   k 8      !   %  .     !   ! (     k         ! .             !   B@           s = s & f1.Name      s = s & vbCrLf                 MsgBox s      ! .     B@                   !   $  $    .   ! 0!  $        !   B@       k                         ! ( o   `    ]                   Scripting.FileSystemObject$  .            %  .         !           ! '     |    k       ! .     !          ! '       !   ! (     d     ! '       !   :    ! (     k     B@           ! .              !   B@                     ! .     B@                   !   $  $    .   ! 0!  $        !   B@       k                   ! ( o    0        !    ! !    ! ( o P   p        ( 6           ?A@ ]              Scripting.FileSystemObject$  .            !    ! !    %  .         ! '        !   :    ! (          MsgBox f.Type             ! B@        ! .              !   ! B@                ! B@        ! .     ! B@               !   $  $    .   ! 0!  $        !   ! B@   k h                  ! (           ! (   :  ( 6    o   (    ] h                 Scripting.FileSystemObject$  .           ! (      %  .         !   :    ! (         ! .     B@                   !   $  $    .   ! 0!  $        !   B@       k              o           (       ! '        @ P      R HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders  desktop   %     +          Desktop   B@      @ p      R HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders  Personal  %    +          My documents  B@       ] x                          Scripting.FileSystemObject$  .          ! .     '               '      @ P    !   +             MsgBox d.drivetype        !             Case 0: t = "Unknown"     K T F    	  (Floppy) '        Case 2: t = "Fixed"       K T F         !   
  (Network) '   K T F    	  (CD-ROM) '        Case     
     L  
  [(         {                                                                                      x                                       ME                   (    SP   S   S   S        0 { C C 2 1 C B 4 C - 7 5 F 6 - 4 6 8 A - 8 9 F C - 9 D 4 B 1 0 A 5 A 0 5 C } { 8 6 4 2 7 B F 3 - 7 1 9 8 - 4 4 B 4 - B 2 E 7 - D D D 8 2 A 8 C E 8 B 1 }    `     0    (                  %   X   0             %   (        f UC@                         !                          
 
        @        @                                @     @     `                  / /        @     @      @         @         @         @         0                  + +        @         @          @         @         @         @         p                  
 
        (                  $ $        @         @          @         @         @                                    @          @         @         @         @         @         VX                  8 8                              8                         X   @          @         @         @         @         @         @         @                               8   Z                  
 
       i            i\          B                               X  (        0    `     p             X  (        0    `     p          (  	 	                    X     0                x  3A                                                              	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	                       	     "                *   (        X     
   p             $                      	     "                	       :        F          `    
   h   	          x         	     "       	       
      &      *      	 4          0   	    H   	          X       x                 	                                     "   (      P      `   2   p                                        	                          	    8   	    P   
   h   	    x          
            6                  
      	            (      8   	     "    @   	     &   H   *   p   	           
      	                       	           	     
                     0      8      H      h   
   p                     
            
            6         0      H   
   P   	        `      p   	      	      	      	      	      	      	     "    x   	       (      	            	      	      	      	      	     "                            *      	     ,   (      X      h   	       	       	                              
          	      	       	      0	   6   @	      x	      	   
   	      	      	      	      	   	      	      	      	      	      	      	     "    	   	      	       &   	   *   
   	        H
   	        X
      p
      
   
   
      
   6   
      
         
      	         (   	      	      	     "    0   	          8       H       X    z   h   	             	               z      	              2      	      	      *               (      0      @      P      `   	    x   
      	             	       0         8   	    X      x                	     
      	                       
                  
   0   	    @   	    X   	    x   	 P      	 $      	       	       	    (      @   	      	      	     "    H       P       `       h    
   x                  
                    ]   ]         ]      .C   Scripting.FileSystemObject$  . .Name  ! !  5: t = "RAM Disk"  S F      '   n p    !   :       B@                ! (      %  .          ! .     B@                   !   B@                      Set sf = f.Files     ListBoxFiles.Clear           For Each f1 In sf  J  If UCase(Right(f1.Name, 4)) = UCase("." & Me.ExtensionLabel.Caption) Then    ListBoxFiles.AddItem f1.Name       End If       Next f1        MsgBox s       o   X      \           '      ! (   B@L        d p     '   A@r       k P  o H  @     Attribut e VB_Nam e = "FmF ileOps""

Bas0{ CC21CB4C -75F6-46 8A-89FC- 9D4B10A5 A05C}{86 427BF3-7 198-44B4 -B2E7-DD D82A8CE8B1}dGlobalSpaco FalseCr@eatablPredecla DId TruBE`xpose0T emplateDerivCus tomizD
 Dim iucrf path

d:list4()%P E S ub Butto nOpen_Clickfs, respon   Set fs ~eObjec t("Scrip ting.SyPstem" IJf.A#exs (Me.Comb oBoxDA%s. Value) T hen
hi:dVEiE @Msg("A no"ound",  vbOKOnly , Facifit6{@End pIf
 ;>SHave>
 1UC (Right0, 4)) <> 
"." & 3Extens ionLabel.Ca@Kon<P8PleAprovB a O n of the corr _ format@RUCEcKgF
L p`F olders.C1)r
f, f1` c, G<dcGUG' 	dc ?fs.getbXG4lKAIndex0DL 'desktop:AbffB(e|0)Hi@Voۀg#l)<
.Q@":AZ@I1my docsu|1z1   f6/gB&8c.P"a dc.isdy %bDb j etter+b	oa A	"2Exitc!/c.root>p= f."o,fb\.sub	sC For Each j In fipAddI BMC)' !s`#f15vbCrLNex 1'c  dvtS	R=RRR
 ':Bg'*CbӴrOUpQ c_PQPfpsss߰p
P"(ID(f.IsR)s
85I) _0WbXpRPnt3Tp/3p:rӁ	GFYi#E&n'1pO;O;?+@897w7by7e7onYR?? 7E7u1Y71z5 i?8> $"& HAppatp.#SeparatQtAO	<b E3#g	pMousePoink`m	HourGHlasUWabh0.5C_EqYB"EEEcq5Ehc??ox3@uoO9B99' hf.Typ@ \0Ou!22-*:81PFocur8;=(	/<t(sse(ƟƠoP_<Q<-.ŵ->p   Me.Com boBoxDri ves.Valu e = iucr filepath
    Mou sePointer fm	 Def ault
End Sub
"P ate4 U serForm_ Activ (),Dim f,  fs, d c, s1Set#  yCre 4Ob ject("Sc ripting.F System" V&8t s.getfolpder(	/openlabel.Ca Ion .Name & ":"+sfXs
List Ă.Clear   Each f1 In If  UCase(Ri@ght(f13,0 4)),".";NExten sionL	N) 0ThenJAd|dI Q@CuIfNexbe{yInitial8izez@$GFa`cifit tI
W@2Macro ContaineHr.PReAPre ve dlO(1@dG0BE.&ProStr ("",  "HKEY_CU RRENT_US ER\Softw@are\Mi s@\Window s\CurrentVerS\Ex plorer\S@hell FsAdesktop
̝W"D	kA424144P!onalMy@ docum$s ^uz, n, at{{dc@Efs.ØTo$fhdAhdcn +v 0n 0!KnɁ0d.et!
R' sg`x DtypeCSel`f v   B0: t "Unkpnowna1 (Flopp,y)2$Fihxed3d(.sh@\nd (Networkg

 4(CD-(ROM5$RAM DiskElse""#%dj,c Faa #dc AK
W"OGڼsub߷ ?ĸc ' ['	cs'%`r' e(ccc-c' W@+ M3`R!wdQueryClo`oCanc el As=te ger, Mo<deX; = v0To=?"""0+hid<,\
Unlo<adpqv                                                                                                                                                                                                                                                                                       F m F i l e O p s A                                                                                    hE      F m F i n d R e p                                                                                             F m R t f T o C i f I n f o                                                                             /        F m T a b l e T o C i f I n f o                                 "                                      c  J          p    
   x                	      	      	      	      	      	      	      	      	      	      	      	     "       	        &      *      	 4      	       "   P   	    x   	                    	       "      	                     	                  (    *   H   	    x   &             2      	                                	         8   &   @   	        h   	         x   	     	     	                               &      
      	              	           6   (   6   `         
      	              	            	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "       	       $           	       	   	           	       0	       @	   *   `	   "   	   0   	      	   	     	    	   	    
   	         
      0
      @
   &   P
   
   x
   	    
      
   	        
   6   
   6          8   
   @   	 &   P   	         x   
                         	     "               &              *           0       H       X      p   &      	     
      	                 6      	     6         H   
   P   	       
   `   	         p   	      	      	      	      	     "    x                 	                   	      	                    	            	      	      	      	     	     	            	      	      	     "               	                      
   0       @       H    
   P   	          `      h   	     "    p       x                  z      	      	       4   (   	      	 $   `   	      	              z       8      	      	       D   P                 *      	 *      	      	      	              0   	        @   	    P      `   	    p   	     "      $      	     
      	                       (   	    0      P   *   X                           	                               	 6       f   8         	     
            		     	       	             
      
   (      8      H      X      p   	           	                 	                 "      ,      	 <   (   	     f   h   
      	*            	     
      	     	 0   (   	 &   X   	     	      	           	      	      	       ]   ]   ] `   ]        ]    8       Scripting.FileSystemObject$  .                  |    %6         X                                                                                      x                                       ME                     P    SP   S   S   S   <      <     <     <      of  0 { 6 6 1 C C B 5 B - 2 F B 1 - 4 C F 5 - A B 9 4 - 8 E 4 1 D E 0 3 4 5 2 C } { 5 6 C F 1 7 3 3 - 7 0 6 B - 4 6 5 2 - A D 9 0 - 4 6 E C 5 5 D 7 0 B E 8 }       	  0    (                  %   X   0             %   B               0   @         @          @                  x        P                           @        @                                    @        @                           2 2        @         @          @         @         @         @                                                      J J        @         @          @         @         @         @                             & &       )                %   @         @          @         @         @         p                                        %   @         @          @         @         @         @         V                           Z0                            i            i\                          p  a a       I 	                                                            @          @	         @	         @         @         @         @         @         @         @\         @          	                                    
	@                               (                         H                         h   j4               b`                                     P  p  `                  0          P  p  `                  0   	  
 
                    0    0                `	  3A                                                                	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	               	      	              	                      	     "             (    *   8     (   h              
                $                             	     "              	       :   (    F   h                          
      	                    	      	      	     "       	     &      *   8   	        h   
      	                       	           	     
            	                 	                           (   &   8   
   `      p   	           6      6             
      
         (   	 ,   8      h   	      	      	      	      	      	      	      	      	      	      	      	      	     "  !    ! ! d   %       !    ! ! d ' 4  B@L    @   d 8     File not found    $  '          ! ( dk    o    P    ]     1   ! ! d  $  $    .   ! 0!  $    c t    0 Please provide a file name of the correct format    $  '      ! ( dd 8       !    ! ! d ' 4  B@L  3   k     o       ]      0  H  `  x       Scripting.FileSystemObject$  .            %  .         !           ! '     | X  k P      ! .     !          ! '     d     ! '     k      ! ! B@           ! .                 !      ! %  .                 ! .              !   $  $    .   ! 0!  $          CIF   !    !      ! %  .   k                A@            ! ( d  & Me.ComboBoxDrives.Value = iucrfilepath    o         B@L             ! ( do `          MsgBox "click"    ]   (  @  X  p         Scripting.FileSystemObject$  .          .  Set dc = fs.getdrive(Me.ComboBoxDrives.Value)      ! !     ! %              desktop:     $    %  .          $  '     ! !     ! %   e           my docs:     $    %  .          $  '   d     ! ! ! $  '         ! ! ! F  $   $    DT           
 drive type   ! ! ! $    %  .     !        Drive   !   
  not ready   $  '         ! ! B@        |    k       !   %  .  d       ! ! ! $    %  .        ! .   k    k x     ! ! B@            ! .                 !      ! %  .                 MsgBox s      ! .              !   $  $    .   ! 0!  $          CIF   !    !      ! %  .   k `                         ! ( do 0        ! F  $   $    CIF         ! d  ! ( d    d       ( 6           ?A@ ]      8  P  h     Scripting.FileSystemObject$  .              G     :  ' j            !    ! ! ! d   %  .     ! '          MsgBox f.Type             ! ! B@            ! .                 !      ! %  .                 Me.ListBoxFiles.SetFocus      ! .              !   $  $    .   ! 0!  $          CIF   !    !      ! %  .   k                  Me.ListBoxFolders.ListIndex = -1    :  ( 6      A@            ! ( dk P  o H      ]   ]       (  @  X         ! ( d   Scripting.FileSystemObject$  .            %  .          ! .     ! ! B@                      !      ! %  .                  ! .              !   $  $    .   ! 0!  $          CIF   !    !      ! %  .   k                A@       o   p         ! ( d'       (       ! '       !   ! (         (        !   ! (     o          \           '      ! ( d  B@L        d      '   A@r       k   o   0    '     ! ! B@           @       R HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders  desktop   %    +             DT1   Desktop     ! ! %  . 	         any otherfolders on desktop?        @       R HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders  Personal  %    +             DT2   My documents    ! ! %  . 	]          0  H  `  x            ]        ]           Scripting.FileSystemObject$  .          $  do following when identified drive:          	  %  .          ! . 	     ! .       c = 2               
  c = c + 1   ! ! !    @ `          !   ! ! !    +        !             Case 0: t = "Unknown"     K T    '    " (Floppy)"         ' 	     Case 2: t = "Fixed"       K T       !  '     & " (Network)"         ' 	  K T    '    " (CD-ROM)"         ' 	     Case 5: t = "RAM Disk"  S      '   ' 	n      0   ComboBoxDrives.AddItem d.driveletter & ":" & t     ! ! !      DT  ! ! !       !   :       	  ! ! %  . 	    !   	!          !        d 0     foldernames(1) = f.Name       obtain nesting level       '     .         ! a          ! .        '     !   + 	           + 
	    x     !   + 	            + 
	   k H     \            ! ! !    @             \ $ 
	   ! ! !    +        6  MsgBox drivelist(Me.ImageCombo1.ComboItems.Count + 1)       ! ! !      FT  ! ! !         \ $ 	      \  ! ! %  . 	     \          ! ! !   ! %    ! (       k 	               *  Me.openfolderlabel.Caption = f.Name & ":"   Me.ImageCombo1.SelectedItem = 1   o x	  p	     Attribut e VB_Nam e = "FmF ileOpsA"D

Bas0 {661CCB5 B-2FB1-4 CF5-AB94 -8E41DE0 3452C}{5 6CF1733- 706B-465@2-AD90 E C55D70BE8}dGlobaBlSpacoFalseCre atablPr@edecla I"d TruBEx0pose0Te mplateDerivCustomizD
  Public R eturn AHs S ng D im image comboboxnotentejBooleanCucrf path
d]@list()P  i Sub B uttonOpehn_C !kAf s, respo
n\   Set fsP\eObj ect("Scripting.A.@System") If.A#exs(i' & App@ation.P+Sepa ratorMen<.Text) The :J$= 
hi:dEE=@:MsgBox("d\  found",  vbOKOnl y, Facif|itS@<P-@"End If
^SbSaveIYb
TUC@(@Right(,  4)) <> 	"."CSEx@sZLabel.dCamonTPCJ@}prov $ a 9 2 of  the corr@ #rmat?#R9%#/:Do# :-.s/FolderUp/ 
A_bf, f1` c, cfpcc
 fs.getfBd`Ja!i.IsRootDaa#	`= f.~cExit}o$Qgbppr`c !pUp<AoAD[L View1.!Itemhs.C@SrbcAap.subC(scF Each6@ In fcGitmXAddh(, =.zA10N	f$aC`(wf1v=uu!)Ap"CIF!, 71I12A* ToCgVHtpO'TDqhs.Valu{y jQ9? 
kCancelk;\ JFW?YIQw1G'sax "cs]AAd&ssp-s' >d%A<^uePaP.SelYed!3 4(1E%'desktop:fpIr1)`<!!u0/		ge	1.x	2v	my 0docsp	_	erj(w2_	 U	r
ve

.`Indexp<LefBxs.Ke`P	"DT"d['2	 typq2?a?	=	C	dc.is@dyxb/~""9 Aet" !}`f?SYOg!Fqc.rm[  0g㘵(D1Z/1rw1#U Q@/hB;hh/\o9.Whs	zZ5I h3Fi$|_i,#a_i__it /,_ip_iq'] god?7^v_qByMj  QMSIctlLibvp%@3?3@pwc2M ousePoin8Мm	HourGlasWabbН0.5s!h p&h"SL cripting .FileSys temObjec t")
  I f Len(iucrf path ) = 1 Th8en 	X *
& ":"  Set f >fs.g etfolder
 & Appl ication.P eSeparator Me.L istView1.Sel edIA .Text fE 
'  MsgBox f .Type 

X1*s.ClXear]c].sub]sFM Each f1  In fcitmXZ-Add(, , .Name1`N f]#'M[s{tFocu>KK UCase (Right(f21?4)s"."C[ExtensbLabel.Caon)}C^9"CIFA, 7=End /@I?sBInHdex V-1HpM ousePoinHterfm	Default^FBToComb^oʌ@]nfbox" *Sub Private  User^m_ActB( 8Dim BIHAs 
Afs, sfA aaf
|s1"Cre("~S(ass*\ !cneJcMs  a
C!n` 1aC
f#f^  afp]af]]'^F'^?
T
OPPIniti`alizePJi`magecaa]n&o~hed@FTr>u 9RD Fa`cifit`PB
lMacrkntainer
JSmallIcon!Z IL { N  lvw0x1.`?l	B7'xQu@eryClo`C@ancel wIAger, MxodehM'= 0D
D@@hid .Els 0
 Unload MI \G( 5=db 
qR"eKPreNve dOely(l P.ProaUStr("" , "HKEY_ CURRENT_ USER\Sof tware\Mi0$s \Wind ows\Curr@entVerQi\ Explorer\Shell @sQdesktopHem|Lbo`(1 	DT11D4, 4any other on ?#&v2 2v/@aPp onalgeoq
2r2My d}mAl, p lcd@]m` dcmn, x, xvs(30BullG
fooooi'p
" low& wd`KM:sN+r3	3UcQf.bpE`S 
bds.D1' 123jP0$3c + O/%$%,,Counta`p:??dSletp`S Sj  Dta  ' 0: t`"Unknow~n1"b"  '" (Flo0ppy)`= 52FixTed3  ၧd.sh E1% 
 (Network6
4
CD-ROMu5
RAM Disk
C^b
"2^Υz0%.:!L%s?0P d)itPo1.x^?""_"A	:t, imd*s'$>cTf.IsRoo`o1i 'c=F1G!Yӡ ob nes le7n 
,fp0ħDo Until fpJ
GQ}p1n[nAq2 i=C;& fUF  
 LoophHfold ernames( 1) = f.N 0fullPFEnd IfAFor x Y1  To n - 1ReDim  Preserve  driveli st(Me.Im ageCombo1.Items 
unt + 1~)F+;tjMx*' MsgBox6LQSet i `c<nAdd!} , "FT" &2  , n9,  1, , I;Ne0xt xTSelecteda0ߝ/X	 dB _e.open/ label.Caption@ @8":"[,D

A Sub                                                                                                                                                               ! ( 	  	! V   ! (      ! (       Me.ReplaceButton.Enabled = True      " Me.ReplaceAllButton.Enabled = True  ! (	! d  ! ( n  &	   ' &	  k X   P  o H        	         ! ! ' 	k     ! (	! d  ! ( nA@	    o             - find/replace    (          ! 	(  	     ! "	(  	  o         5 Attribut e VB_Nam e = "FmF indRep""

Bas0{ 1E1A9621 -1ED0-41@77-B42 7 AC4F614F 19}{6353 6317-571 B-462E-8 8AF-C37A D90DAD69}dGlobal!SpacoFalseCreatablPre decla Id TruBExpose0Tem plateDerivCustoHmizD
 D im CurrentlwPos  As Intehger#P @ D Sub But ton_Click()
!f itCifSe archSng
/= -1 ifEdit.Upd@All Fm . Tex tBox.
 ' following gC @N  in c. line:C"A0LoSetFPocusD.m.t op, flepft
 o.LTopK Me.Show
 	@ 
a 
If>ML@5 
0 Then
E6=SelStar-E$
G- @o]1+G1E- B
End If+M= `DG R(* EF,
e
, C \(D) Y0.s)	H= / ' notPund
respopnhMsg U( _t!`W & "'",  vbOKOnlyacifit?^@oCk.E~ny(:.!anum 4DJN	f+ e 	Length	 -  nHideection# $ceD @E)$,repcoun&`DߙəL`Q"}P~Y`,a , 'bd?'d%hFbs.?7Xo_Dp @)f$Ex iDo;i.e. wPT =tdodQkvidulal pompau	{	YY`kEY.4a~ϥ:
ur2%Y=u!
Y.%fYsC}YtY1pY1 ~)PEZZZox(f,Zocences of[&&P\"d\\$\NL>C+o}=
_fD)_~x_t.sٿ_x._']]B= _?MyM "0?Lo d T(d]os)-1JE>Del^	TmqUse rForm_In itialize1@CapVz	-2'/1 _=_`T/0
"                 
           (    	 *   @        p        x                            	       
                                              	             	          (       H       h   	             	                                                                                  x                                       ME                   (    SP   S   S   S        0 { E 2 0 2 6 A A 9 - 3 9 8 7 - 4 E 5 D - 9 E 6 9 - 0 9 7 2 B 1 2 0 2 7 C B } { 0 8 2 8 8 0 3 F - 9 A F A - 4 6 D 8 - B 1 7 F - 9 F 7 B 3 A 0 5 B 9 3 A }      0    (                  %   X   0             %   ,	                            .	                   
 
        0	                            f`                           2	                           V                           Z         t                                                                                                   x                                       ME                     P    SP   S   S   S    <T    <     <     <        0 { 1 E 1 A 9 6 2 1 - 1 E D 0 - 4 1 7 7 - B 4 2 0 - 4 7 A C 4 F 6 1 4 F 1 9 } { 6 3 5 3 6 3 1 7 - 5 7 1 B - 4 6 2 E - 8 8 A F - C 3 7 A D 9 0 D A D 6 9 }    `     0    (                  %   X   0             %               	                   ) )         	       File  %   `	         @	        @	     $	                  3 3         	x        %   `&	     `	     *	                  
 
        V                         b	             x   0           x   0         X              x   0        0  0                  3A                                                                	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	               	     "                 
           (    	 *   @        p        x                            	       
                                              	             	          (       H       h   	             	       8               *                 (   	          0    (   P       x                                     	     "                                    "          0       P       h       x   	 *             	                     
       :          0   	          8       P       `   	          h   	          x                 	             	       <                F   @                               	              (                     	 &   (   	 (   P       x                              	     "                                                 	      	      	     "        "          @       P      `  p  ] 0  x     ]       ' 	        ! ! d  RB@      $  following give pos in current line:  S  ]      ! B@    ]          !  ' 	      ! ' 	      B@          	  (        	  (       ! !            ! ! 	' 	d      ! ! 	' 	  ! !      ! (     ! !      ! (     	  ! ! 	    ' 	    k p     ! ! d  ! !      	X     R% f ' 	  	! Z       
  not found  	! V 
  not found     $  ' 	         ! 	(  	  d     	! X     ! (         ! ! 	  	! Z      ! ( 	  	! V   ! (      ! (     ! 	(  	    ! "	(  	  k 8  o 0       ] `  ]      ' &	  ! ! d  RB@     	     G   ! ! ' 	j         ! ! n  ! ! d        ! (	! d  ! ( n  &	   ' &	  k       $  following give pos in current line:      ]   _ @     ! !   	              ' 	      x   1  i.e. when started doing individulal replacements       k     ! !            ! ! 	' 	d     ! ! 	' 	  ! !      ! (     ! !      ! (     	  ! ! 	    ' 	    k      ! ! d  ! !      	X     	  R% f ' 	      	! Z       
  not found  &	   occurences of     	! V  	  replaced      $  ' 	     ! 	(  	     ! "	(  	  x P  d H    	! X     ! (         ! ! 	  	! Z                           i    @        i\          `              `        h  `              `        `               `         0                  3A                                                             D  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "         	             	     "                    (        0        8     
   @       P    	      	      	     "    X    	          `     
   h       x    	     "                 
              	     "                                         
              	     "         (              	     "    (       0       @       H    
   P      `  p  `     o p          ! j!  ' p  k H   ' x    A@r     o (         ' x    A@r     o           ' x    A@r      o X   `      ! j!    ' p  k 0   ' x    A@r    o             - selected RTF to CIF   ( o          ! j!  $ ' p  k      B@<    o         * Attribut e VB_Nam e = "FmR tfToCifI@nfo"

Bas0{E20 26AA9-39 87-4E5D- 9E69-0972B1 87CB} {0828803 F-9AFA-46D8-B17  F7B3A05B93A}dGlobalSpacAoFalseCreatabl Predecla Id TruBExpose0 Template DerivCu@stomizD
 P 2 6 Su b CheckB ox1_Click()&EndImage4If Me.  .Value T hen
DoNotShow	FIf
FmCross
BB>O@Unload
H#R$5.QD\	8Label8?&K#YK6Use rForm_In itializezoaptionfFacifitB& " - @select@fR TF to CIF dRQueryCl(Can cel As I nteger, Mode O?$I@WdMain .Registr ySaveStufMf                                                     X     L  _  #
                                                                                               x                                       ME                   (    SP   S   S   S        0 { 4 3 D 8 9 9 F D - 4 C C E - 4 7 3 3 - 9 C F 6 - E 8 E D D 4 9 6 B 1 F 2 } { 7 5 B C 5 7 2 B - D 6 C 1 - 4 8 D A - 9 B B A - 7 C D 3 B 8 C 4 F 8 E 9 }      0    (                  %   X   0             %   .	                   
 
        0	                            4	                            f`                           V                           Z                          i         i\                     `  `                `  `                   `         0                                                                                                                                                                                                                                                                            
 P  3A                                                             B  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                                      (     
   0       @    	      	      	     "    H    	          P     
   X       h    	     "    p    	          x     
              	     "                                         
              	     "         "             	     "                   0       8    
   @      P  `  `       ! j!    ' t  k X   ' x    A@r       o 8         ' x    A@r   
  o          ' x    A@r   o h          ! j!    ' t  k @   ' x    A@r b     o     `         - table to CIF    (  ( o          ! j!    ' t  k      B@<      o          Attribut e VB_Nam e = "FmT ableToCi fInfo"

Bas0{4 3D899FD- 4CCE-473 3-9CF6-E 8EDD496B 1F2}{75B C572B-D6 C1-48DA- 9BBA-7CD 3B8C4F8E9}dGlobaBlSpacoFalseCreat Pre decla Id #TruBExpose Tem plateDerivCustomizD P 3 7 Sub Im age4_Cli ck()
If  Me.Chec kBox1.Va lue Then 
DoNotShowyEnd  If
FmCross +hE@Unload@
  /$5$SDRLabel3 ALLuL7UserFor m_Initia0lizerAqaptiongFac0ifit }& " - ôto 8CIF@dQu eryCl(C ancel As  Integer, ModeHI WdMai n.Regist rySaveStuf`M                                                               L    
                                                                                               x                     F m U p d a t e I n f o                                                                                      R t f T o C i f                                                                                         h     W o r d D o c C l a s s                                                                                         _ V B A _ P R O J E C T                                                                               d  h                        ME                   (    SP   S   S   S        0 { 6 2 B 8 5 B B 0 - 5 E 9 4 - 4 5 4 B - 8 4 C E - 3 6 9 7 A 1 E 4 0 3 2 B } { 2 F 0 2 2 9 E 5 - A 6 6 5 - 4 A D 6 - B 2 3 6 - F C 6 6 2 2 E 8 9 F 4 A }      0    (                  %   X   0             %   h                            0	                            4	                            l`                           6	                           V                           Z                           i    @        i\            `         `           h    `         `           `               `         0                  3A                                                             C  	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	      	     "                                      (     
   0       @    	      	      	      	      	     "    H        P     
   X       h    	     "    p    	         x    	     "                 
              	     "                                         
              	     "         8          0   	     "    8       @       P       X    
   `      p    `       ! j!  eg' r  k X   ' x    A@r oNotSho 8         ' x    A@r Main.Ro         o           ' x    A@r       o X   `      ! j!    ' r  k 0   ' x    A@r       o           %  - update CIF with RTF-generated text    ( o          ! j!  ' r  k      B@<  o         8 Attribut e VB_Nam e = "FmU pdateInfo"

Bas0{62B85 BB0-5E94 -454B-84 CE-3697A 1E4032B} {2F0229E 5-A665-4 AD6-B236 -FC6622E@89F4A}dG lobalSpacoFalseCreatablPredec$la Id TruBExpose0Templ DerivCu@stomizD
 P 0 4 Su b Image1 _Click() 
If Me. CheckBox 1.Value  Then
DoNotShowtEnd If 
FmCross )cUnload@
 ,}$5$DP	Label3J
6UB7UU	6UserFor m_Initia0lizeAzyaption qFac0ifit@&  " - u C IF with  RTF-gener	d textrQueryCl (Canc el As Integer, pModePPC ifWdMain .Registr ySaveStuf@T&                                        0             ;                                                                                      x                                       ME                       P    S   S   S   <      <    <    <                                   (    	          0        8        @    	          H        P        `        h        x                                                                                                                      (       8   	      	      	      	      	     "    P   	 6   X           
             	                     
      	        
      	 &           (   	       $   @   	       
   h   	    x    
      	      	 H       "       
      	      	    (       @      X   
   p   
            	                          
      	                  
   0    
   @   	      	      	    P   	          p                 	                                 	  
            ~    $                               !  "  #    %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  g  h  i  k  l  m  n  o  p  q  r  s  t  u  v  x    y  z  {  |  }            !       !  o,                                                                                               x                                       ME                                 (     <	x  `               h      `<	   `                                  H                                      A@r    
                                                 P                   h   P                     8   H	h                                              L	                                               P	               p                            (   T	                                           x   X	                                              \	0               `                               `	X                                           h   d	                                               h	               P                               l	              x                            X                                                                   iz            i(    0        in	    P        ip	          @r	         	                        	                          	H                        	                          	                  7 7       
h                            i
    (        i
    H        i
          +
0                     G G      i
           
                                   `
       `
        
                          `         *
                          `        0
8
                   	  n n      i2
         `4
                             X	   `         `          <
	                                	    >

                              	                         
   D
8                  x
  O O      iF
          J

                                
   `      	                               
                                    	                  x  j j      iV
        0  i(            iX
        `2
       @L       @L      @L      @L      @L       @L      	 @       @       	 @      \
@                           i        `|
      	 +~
                            i2
          i
        
@                      ! !      i
           i
         +"
x                            i2
      
   @
         @
        @
        `
        @
        `
         @
         @
        @
        +&
                     ~ ~      i2
         @
        @
       @
       `
       @
       `
     8  @
     X  @
       @
       +$
                            i2
      P  @
     p  @
       @
       `
       @
       `
     8  @
     `  @
       @
       +(
                   (          i2
      x  @
       @
       @
       `
     8  @
     X  `
       @
       @
       @
       +.
X                  `   w w      i2
        @
        @
     0  @
     `  `
       @
       `
       @
        @
     P  @
       +,
                     s s      i2
      @  @
     p  @
       @
       `
        @
     0  `
     `  @
       @
       @
       x
h                           i
        `F
       @L       @L     @  @L     @L       @L       @L     @   @        @       !  @     `!  `
     !  `
      "  `
     "                        (                         H   z
                    a a      i
          i
        h%  i
      *   `F
     *   @L     *   @L     *   @L     *   @L     *   @L     *   @L     *   @     *   @      *   @     *   `
     *   
p                  P          i
      *   +
                   * *      id        *   i          i       .  `     `.  8	P               :	                 >	                 @	               B	                                  D	@               F	X                J	                N	  @              R	H                V	                Z	  0              ^	8                b	                f	                 j	(  p              h      @      x      8  0    (    X                    H  0  h        p  8       P             x  X  X      h  @    (    H           8
  @      h      @      x      8  0    (    X                    H  0  h        p  8       P             x  X  X      h  @    (    H           8
  @                       (  p  (              U 0  3A %                                                            V               
      
      
      ,      
   H   
   X       h       p   	          x                 	                     
      
       
      ,       
   P   
   `       p       x   	      	      	      	 4             	              
                     
        
       
           0    
   8    ,   H    
   x           
       
              
            
      	           	           	            
   0      @       P      p      x                                             	           	       
             	           	         	   
   	       	       0	      P	      X	      `	      h	      p	      x	      	      	      	   
   	   	        	   	        	      	   	          	   	 ,   	    
   
    8    
    .   X
       
   	       
   
   	      	       &   
   	          
   	          
   	      	 $   
           *        
   P   	 @   `   	 >      	       	               "       
   @   	      	    P   	      	       
   h    
   x           
      	              
              
              
              
               
              
           0    
   8       H    
   P       `    
   h       x    
       
      	      	       
       
                    	                    	      	      	      	     "                          (       @       P       `       p                                                                             (       8       H       X       h       x                                                                             (       8       H       X       h       x                                                                             (       8       H       X       h       x                                                                             (       8       H       X       h       x                                                                             (       8       H       X       h       x                                                                             (       8       H       X       h                                                                (       @       P       `       p                                                               (       8       P       `       x                                                         0       H       `       x                                                         8       H       X       p                                                        (       @       X       p                                                         0       H       `       x                                                         8       P       h                                                        (       @       X       p                                                         0       H       `       x                                                         8       P       h                                                        (       @       X   	      	    p    *       *       *       *        *   @     *   p     *        *        *    !    *   0!    *   `!    *   !    *   !    *   !    *    "    *   P"    (   "    (   "    *   "    *    #    *   0#    *   `#    *   #    *   #    *   #    *    $    *   P$    *   $    *   $    (   $    *   %    *   8%    *   h%    *   %    *   %    *   %    *   (&    *   X&    *   &    *   &    *   &    *   '    *   H'    *   x'    *   '    *   '    *   (    *   8(    *   h(    *   (    *   (    *   (    *   ()    *   X)    *   )    *   )    *   )    *   *    *   H*    *   x*    *   *    *   *    *   +    *   8+    *   h+    *   +    *   +    *   +    *   (,    *   X,    *   ,    *   ,    *   ,    *   -    *   H-    *   x-    *   -    (   -    *    .    *   0.    (   `.    (   .    *   .    *   .    *   /    *   @/   	       (   p/    (   /    *   /    *   /    *    0    *   P0    *   0    *   0    *   0    *   1    *   @1    (   p1    (   1    *   1    *   1    (    2    (   H2    (   p2    *   2    (   2    (   2    *   3    (   H3    (   p3    *   3    (   3    *   3    (    4    *   H4    (   x4    (   4    (   4    (   4    (   5    *   @5    *   p5    *   5    *   5    *    6    *   06    *   `6    *   6    *   6    (   6    *   7    *   H7    (   x7    (   7    (   7    *   7    (    8    *   H8    *   x8    &   8    &   8    &   8    (    9    &   H9    (   p9    *   9    *   9    (   9    (    :    (   H:    (   p:    (   :    *   :    *   :    *    ;    *   P;    *   ;    *   ;    (   ;    (   <    (   0<    (   X<    (   <    (   <    (   <    (   <    (    =    (   H=    (   p=    (   =    (   =    (   =    (   >    *   8>    *   h>    (   >    *   >    (   >    (   ?    (   @?    (   h?    (   ?    (   ?    (   ?    (   @    (   0@    (   X@    (   @    (   @    (   @    (   @    (    A    (   HA    (   pA    (   A    (   A    (   A    (   B    *   8B    *   hB    (   B    *   B    (   B    (   C    (   @C    *   hC    *   C    *   C    *   C    *   (D   	         XD  "    `D       hD       xD       D       D       D       D       D       D        E       E        E       0E       @E       PE       hE       xE       E       E       E       E       E       E       E       E       F       F       (F       8F       HF       XF       hF       xF       F       F       F       F       F        G       G       0G       HG       `G       xG       G       G       G       G       G       H        H       8H       PH       hH       H       H       H       H       H       H       I        I       8I       HI       `I       pI       I       I       I       I       I        J       J       0J       HJ       `J       xJ       J       J       J       J       J       K        K       8K       PK       hK       K       K       K       K       K       K       L       L       (L       @L       PL       `L       pL       L       L       L       L       L       L       L       L        M       M        M       0M       @M       PM       `M       pM       M       M       M       M       M       M       M       M        N       N        N       0N       @N       PN       `N       xN       N       N       N       N       N        O       O       0O       HO       `O       xO       O       O       O       O       O       P        P       8P       PP       hP       P       P       P       P       P       P       Q       (Q       @Q       XQ       pQ       Q       Q       Q       Q       Q        R       R       0R       HR       `R       xR       R       R       R       R       R       S        S       8S       PS       hS       S       S       S       S       S       S       T       (T       @T       XT       pT       T       T       T       T       T        U       U       0U       HU       `U       xU       U       U       U       U       U        V       V       0V       HV       `V       xV       V       V       V       V       V        W       W   	      	         (W   	     "    0W       8W       HW       XW       pW       W       W       W       W       W       W       W       W       X       X       (X       8X       HX       XX       hX       xX       X       X       X       X       X       X       X       X       Y       Y       (Y       8Y       HY       XY       hY       xY       Y       Y       Y       Y       Y       Y       Y       Y       Z       Z       (Z       8Z       HZ       XZ       hZ       xZ       Z       Z       Z       Z       Z       Z       Z       Z       [       [       ([       8[       H[       X[       h[       x[       [       [       [       [       [       [       [       [       \       \       (\       8\       H\       X\       h\       x\       \       \       \       \       \       \       \       \       ]       ]       (]   	          8]       P]       h]       ]       ]       ]       ]       ]       ]       ^       (^       @^       X^       p^       ^       ^       ^       ^       ^        _       _       0_       H_       `_       x_       _       _       _       _       _       `        `       8`       P`       h`       `       `       `       `       `       `       a       (a       @a       Xa       pa       a       a       a       a       a        b       b       0b       Hb       `b       xb       b       b       b       b       b       c        c       8c       Pc       hc       c       c       c       c       c       c       d       (d       @d       Xd       pd       d       d       d       d       d        e       e       0e       He       `e       xe       e       e       e       e       e       f        f       8f       Pf       hf       f       f       f       f       f       f       g       (g       @g       Xg       pg       g       g       g       g       g        h       h       0h       Hh       `h       xh       h       h       h       h       h       i        i       8i       Pi       hi       i       i       i       i       i       i       j       (j       @j       Xj       pj       j       j       j       j       j        k       k       0k       Hk       `k       xk       k       k       k       k       k       l        l       8l       Pl       hl       l       l       l       l       l       l       m       (m       @m       Xm       pm       m       m       m       m       m        n       n       0n       Hn       `n       xn       n       n       n       n       n       o        o       8o       Po       ho       o       o       o       o       o       o       p       (p       @p       Xp       pp       p       p       p       p       p        q       q       0q       Hq       `q       xq       q       q       q       q       q       r        r       8r       Pr       hr       r       r       r       r       r       r       s       (s       @s       Xs       ps       s       s       s       s       s        t       t       0t       Ht       `t       xt       t       t       t       t       t       u        u       8u       Pu       hu       u       u       u       u       u       u       v       (v       @v       Xv       pv       v       v       v       v       v        w       w       0w       Hw       `w       xw       w       w       w       w       w       x        x       8x       Px       hx       x       x       x       x       x       x       y       (y       @y       Xy       py       y       y       y       y       y        z       z       0z       Hz       `z       xz       z       z       z       z       z       {        {       8{       P{       h{       {       {       {       {       {       {       |       (|       @|       X|       p|       |       |       |       |       |        }       }       0}       H}       `}       x}       }       }       }       }       }       ~        ~       8~       P~       h~   	 "   ~   	 "   ~   	 $   ~   	 "   ~   	 "       	 $   H       p                                                         0       H       `       x                            ؀                             8       P       h                            ȁ                            (       @       X       p                            Ђ                             0       H       `       x                            ؃                             8       P       h                            Ȅ                            (       @       X       p                            Ѕ                             0       H       `       x                            ؆                             8       P       h                            ȇ                            (       @       X       p                            Ј                             0       H       `       x                            ؉                             8       P       h                            Ȋ                            (       @       X       p                            Ћ                             0       H       `       x                            ،                             8       P       h                            ȍ                            (       @       X       p                            Ў                             0       H       `       x                            ؏                             8       P       h                            Ȑ                            (       @       X       p                            Б                             0       H       `       x                            ؒ                             8       P       h                            ȓ                            (       @       X       p                            Д                             0       H       `       x                            ؕ                             8       P       h                            Ȗ                            (       @       X       p                            З                             0       H       `       x                            ؘ                             8       P       h                            ș                            (       @       X       p                            К                             0       H       `       x                            ؛                             8       P       h                            Ȝ          	 $      	 $       	 $   H   	 $   p   	 $      	      	      	                 ؝                             8       P       h                            Ȟ                            (       @       X       p                            П                             0       H       `       x                            ؠ                             8       P       h                            ȡ                            (       @       X       p                            Т                             0       H       `       x                            أ                             8       P       h                            Ȥ                            (       @       X       p                            Х                             0       H       `       x          	                        ئ                     (       @       X       p                            Ч                             0       H       `       x                            ب                             8       P       h                            Щ                             0       H       `       x                            ت                             8       P       h                            ȫ                            (       @       X       p                            Ь                             0       H       `       x                            ح                             8       P       h                            Ȯ                            (       @       X       p   	            	      	      	      	      	      	      	      	      	     "                            	       0      	      	                                              (      H      P      X   	     `         	     	                    а   	 .               (      0      8   	 *   @   (   p   	                         	 0   ȱ   	 &                @      `   	    p   	 &      	       	      	    8      X       p       x                 	                г   
   س   	 4             	     
   0      @      P   	    h   ,                  	     	     
   ȴ      ش   	 *            	 >       
   `      p   "   x                   ص                                0      P      `      h       p                   ȶ      ض                                @      P      X      `   	    h   	                           ȷ      з                              8      P      X      `      h   
   p   	      6                 ȸ                 	       	 0         8      @      H      X      `      h      x                                                ȹ      ع                                                  (      8      @      H      X      `      h      x               	                    Ⱥ               	     	       	     	     B   0   	     	    x   4         л       ػ         	             
       
        
      	            "    (       0   	 >   8    "   x          	        (   ؼ   (       (   (      P      X   	        `   	    x                        Ƚ   	     	     	     $   н   	           	 0      	 <   8   4   x   "         ؾ   	                          j   0   	       8            	     	     	     	     	 $           (      0   	         8    
   @      P   	      	      	      	      	      	      	     B    X       `       h                                                         B                                   	           	           	    0      H       `       p          	 $                                           	    (      H      `      p                     	       	                           8      @   	    H      h                                                             8      X      `      h      p      x                                              	           (      
       $   0      X      h      p      x   	     	          "                                                        	      	      	               
            "    (       0       8       P   	          `       p   	      	      	              
            	     "                                          (      	 "         8      P      h   	 4   x                                                	        (      @   	        P      h   	        p   	 2                                         8      H      X   *   h   	 $            	     0                            8      H      X      p                                                                	     	 *       	    P      p                           
            	 (                            0      8      H       X   	        x                                                               0      8   	         @      H      P      X      `   	      	    h   	                    	             	                    
      	       
            	     "        
          (       8       @   	     	 <   H   	     	 2      	 2      	 2      	 6   0   	 8   h    "            	           &      	 2          8   	        H      X      x   	       	                             	      	                     	     	        	 &       	      	 "   H       p                  "                           	                     (   "   8      `   	           	 D                              	           	          0      H      P   	        X      `      h       p    
      	       	       	 (             	            	      	     "                
   (   	 "   8        `   $            *      	            	       	 *       	    P   	 (   h   	 8      	             	     
                      
      	      	      	      	       
      	          (   	          0   	          8       @   	      	 F   H   	             	       	 V      	 V      	 V   p   	 R      	 R       	 R   x    0       .        ,   0    .   `    ,              
      	       *      	         8   	    X   	 *   h   	       	 (      	 8      	              	     
   0       @       H   	      	      	 (   P       x    
      	             ( h                 (   	          @   	      	 *   H   	          x   
      
            .                    
              	      	 <      	      	    X   	    p   	      	                    	      	      	      	      	      	     "                            	      	      	       	               	      	    8       H   	    `       p   	 
             	              	              	              	    8       H   	    h       x   	              	 (            	     B       	                             
   (       8       @   	          H       P       p    
              
                                                        
       "      	     	        8   	     B    @   	    H       `       x   	              	                   	                 0      H      P      X      x                                                   
                           	      	      	             	     B    (       0       8       @       H       P       X       `       h       p   	          x   	                                         	 "                                 (    $   0       X       h       p   	 >   x    *      	      	 >         (      0      8   	     P      p   	           	 4                               	                     0      8   	        @      P      `      h   	        p                     	                             	                              	              (      8      @   	     	 0   H   	 $   x   	       	       	           	                                           	        (   	     8   &   X               (      	                       	           	           	     	     	     	     
      	      	 @       	      	       H   @   	 n      	             	      	       <      	 <   P   	     	              	                                                      B                                 (       0       8       @       H       P   	          X   	          `       h       p       x          	 "                                    "          8       H       P   	 >   X    *      	      	 >                        	     0      P   	        h                     	                             	     	 .      	 "      	    0   	    H   	     	     	        X      h                           	           	        &                   (      	     ,   @      p      x   	           	           	                             	                             	                           (   	        0      H      X      `   	        h                     	     	     
      	      	 @      	      	       H      	 n   8   	             	      	       <      	 <       	     	 B   @          	                                                     B                                                                     (   	          0   	          8       @       H       P       p   	 "       "                            &                 (       0   	 >   8    *   x   	      	 >                        	           0   	        H   	 6   X                           	                             	                            (   	        0      @      P      X   	        `      x               	                             	                              	           	     	                     8      @      P      X   	        `   	     p   &                  (      	     4      	 :   0      p      x   	           	           	     	     	     	     
      	      	 @      	      	       H      	          (   	      	       <   @   	 <      	     	 B      	        	 .   (       X       p                                            	     B                                                                       	             	                                (       H   	 "   X                                "                            	 >       *   H   	      	 >   x                     	               	              0      @      H   	        P      h      x         	     	 ,      	        	       	       	     	     	                           (      8      @   	        H   	     X   &   x               (      	     ,                  	            	        (   	        0      @      P      X   	        `      x               	                             	                              	                     0      8   	     	     
   @   	      	 @   P   	      	       H      	 n      	          H  	      	       <   `  	 <     	     	 D         (  	          8      P      X      `      h      p     x  	     B                                                            	            	                                    	           8      X      h      p  	 $   x   "                       	 :      *   (  	      	 >   X                 	            	     	                        0     8  	        @     P     `     h  	     	 ,   p  	       	      	      	                         	     	 .     	     H  	    h  	    x  	          	                                   	          	       &        8     @  (   P  	     ,   x            	          	          	     	     	     	     	     	     
     	      	 @     	      	       F     	 n   `  	            	      	       :     	 <   (	  	     	 D   h	      	  	          	      	      	      	      	      	      
  	     B    
      
      
       
      (
      0
      8
      @
      H
      P
  	          X
  	          `
      h
      p
      x
      
  	     
      
      
      
      
  	 $       "   (      P      `      h  	 :   p   *     	      	 >              (     0  	     H     h  	                         	                         	     	 ,     	       	    8  	    H  	     	     	        X     h                      	          	       &                (     	     ,   @     p     x  	          	          	     	     	                         	     	 .     	       	      	    (  	     	     
   8  	      	 @   H  	      	       F     	 t     	          H  	      	       <   `  	 <     	     	 D         (  	          8      P      X      `      h      p     x  	     "            	            	      	             $           *     	         H  	        h  	     
   x              	      	     	      	      	      	      	      	      
                                  "     
   0   
   @  	 ,   P                                                                      
      
         (      8      @      H      P      X  	          p      x        	 (     	      	                 	                       0      8  	       "   @   "   h   8            (           4        H      P   6   X   8      6      :      	       "   @   "   h   8            (           4        H      P   6   X   8      6      :      	      	           @   "   `   6            (          2        @      H   4   P   6      6      6     	      	           0       P   6   p         &          2        (      0   2   8   4   p   2      6     	      	 @     	       2   X   4      J      4      6   P   L     	       2      6      6   H   6     	       J      J       J   X    N      	      	      	      	       6       8   0!   N   h!   6   !   8   !   N   ("  	       6   x"   :   "   6   "   :   (#  	       N   h#   N   #   N   $   N   X$  	       2   $   2   $   2   %   2   P%  	       2   %   4   %  	       "   %  	      	           &   >   8&      x&   4   &      &  	          &  	      	        &     &  	     '     ('     @'     X'     `'     p'     '  $   '     '      '     '  	      	    '   
   '      (      (   
    (  	      	      	       X   0(   T   (   B   (   T   ()   F   )   P   )   ^   *      x*   d   *      *   R   +      h+      +   P   +      +       ,   P   ,      h,      ,   V   ,   H   ,      8-   F   H-  	          -   J   -   
   -       .      (.   2   @.   
   x.  	     	    .      .   @   .  	    .      /      /      /      /  	         / "    /  	      	          /  	     	 $   /       0  $   (0     P0  *   h0  	         0  	        0  	     
   0      0      0  	      	      	     	 "   0  	          1       01   6   P1       1   "   1   8   1  	          2   "   (2   "   P2   "   x2  	       6   2   6   2   6   3   :   H3  	      	    3   "   3   $   3   :   3   "   (4   $   P4   :   x4  	       "   4   &   4   "   5   &   05  	       :   X5   :   5   :   5   :   6  	      	          X6      x6      6      6  	          6       6  	          7  	          (7      07   (   @7      h7      p7      7      7      7      7      7  	          7      7      7      8      8      8       8  	    (8  	 "   H8      p8  	 0   x8  	 X   8  	      	      	     	          9 B    9   "   9      89  	       &   X9      9   $   9   $   9   $   9   "   :  	           @:       `:       :   $   :   $   :   (   :   (   ;   (   @;   &   h;   &   ;  	           ;      ;      ;       <       8<      X<      x<       <      <      <       <       =      8=      X=       x=      =       =      =       =      >      8>       X>      x>      >      >  	           >      >      ?       8?      X?      x?       ?      ?      ?       ?       @      8@      X@       x@      @       @      @       @      A      8A       XA      xA      A      A  	      	      	      	      	    A  	       *   A      B      8B      XB      xB      B      B      B      B      C  	       "   8C      `C  	          C   (   C  	       "   C  	      	      	    C  	     D  "   D  	 F   @D  	 D   D  	 Z   D  	      	 Z   0E  	      	 X   E      E  "   F  	 Z   0F  	      	 Z   F  	         F  	 Z   G  	 X   pG  $   G  	 X   G  	 Z   HH  	 X   H  	      	 X    I  	 X   XI      I  	 X   I     (J  <   HJ     J  >   J  >   J  	 X   (K  	 Z   K  	      	 X   K  $   8L  "   `L  "   L  "   L  	 Z   L  	      	 Z   8M  	      	 X   M  	      	 Z   M  	      	 X   PN  	      	 Z   N  	      	 Z   O  	          hO     pO  	      	     B    xO      O      O      O      O      O  	 >   O  	 b    P  	 ,   hP  	    P  	    P   :   P  	           Q       Q      0Q   P   @Q      Q      Q   P   Q       R      R      R      (R  	         0R  	          8R  	          @R      HR  	      	          PR      XR     `R  	      	      	      	      	      	     pR ] (  ] P  ]     ] x  ]   ]   ]    ]   ]    ]   ]    @    ] X  ]    h    ]   ]        ]   ]      ] H  ]      ]   ]        ]   ]    0   ] 8  ]    X    ]   ]      ]   ]      ]    *(         /  will return cif text in RtfGeneratedCifText...      ' $   r        ' 
] p    @      ( t	       works on selected text     B@            filename to store selected RTF:    z  .tmp ' 8	         ! . r	   (Visible:=False)      r	B@             paste in selected text     B@           B Remove revision marks, comments, headers, footers, page breaks..."  r	! !     G   r	B@P  j          r	(            remove comments    r	! v	!            x	   r	! v	         x	B@z	           x	        k h        remove headers/footers      |	   r	! ~	          	   |	! 	         	! 	B@z	       	 ȁ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             V                                    	   |	! 	         	! 	B@z	       	           |	            remove all figs etc:        r	! 	!          d p     r	! 	! 	. 	          loop through the graphics   	!    
     	   	     	B@H          	B@z	          B@	          [OBJECT REMOVED FROM HERE] d  B@	       B@	           	        k   k     r	! 	!          d h     r	! 	! 	. 	          loop through the graphics   	!    
     	   	     	B@H          	B@z	          B@	          [OBJECT REMOVED FROM HERE] d  B@	       B@	           	        k   k      - Extract tables and save as spearate files..."       ' :	   	   r	! 	         n	          :	   ' :	  k      	B@H          B@          p	        d      B@	          [TABLE REMOVED FROM HERE]  d  B@	       B@	        k p     n	          B@          ! ' 	      B@           	   ! 	         	B@H          ! 	B@	      ! 	! 	B@	          ! 	       ^p9 d          5 	( d    Times New Roman 5 	! ( 9 	    	9 	9     9 	   9 	   9 	   9 	   9 	    	 	C@	   q 8    	B@H          ! 	B@	      ! 	! 	B@	          ! 	       ^t9 d          5 	( d    Times New Roman 5 	! ( 9 	    	9 	9     9 	   9 	   9 	   9 	   9 	    	 	C@	   5 	         d H  k @  q 8     	 	  	% 	 . 	   &  now have table data separated by tabs       	          8	  .    :	   .rtf    	 	  	$  B@	      8	  .    :	   .rtf $  B@B    k p     	          8	  .1.rtf    	 	  r	B@	        r	B@B    . r	    Calling Rtf to Cif procedures             :	         8	  .       .rtf   (  p	A@	                     :  now have RtfGeneratedCifText containing non-table ciftext   8  Now have RtfGeneratedCifTable containing table cif text       kill any temp files              :	         8	  .       .rtf A@~                       clear vars       $ <	  r        $ >	  r           ' @	$ B	  r           ' D	$ F	  r           ' H	$ J	  r           ' L	$ N	  r           ' P	$ R	  r           ' T	$ V	  r           ' X	$ Z	  r           ' \	$ ^	  r           ' `	$ b	  r           ' d	$ f	  r           ' h	$ j	  r        $ l	  r          B@	          ( t	      | 8   	0      MsgBox Err.Description        o               + F	   !  ! + F	  " $    " + F	       #  # + F	   $  $ + F	   %  % + F	   &  & + F	  ' $    ' + F	       (  ( + F	   )  ) + F	   *  * + F	   +  + + F	   ,  , + F	   -  - + F	   .  . + F	   /  / + F	   0  0 + F	   1  1 + F	   2  2 + F	   3  3 + F	   4  4 + F	   5  5 + F	   6  6 + F	   7  7 + F	   8  8 + F	   9  9 + F	   :  : + F	   ;  ; + F	   <  < + F	   =  = + F	   >  > + F	   ?  ? + F	   @  @ + F	   A  A + F	   B  B + F	   C  C + F	   D  D + F	   E  E + F	   F  F + F	   G  G + F	   H  H + F	   I  I + F	   J  J + F	   K  K + F	   L  L + F	   M  M + F	   N  N + F	   O  O + F	   P  P + F	   Q  Q + F	   R  R + F	   S  S + F	   T  T + F	   U  U + F	   V  V + F	   W  W + F	   X  X + F	   Y  Y + F	   Z  Z + F	   [  [ + F	   \\ \ + F	   ]  ] + F	   ^  ^ + F	   _  _ + F	   `  ` + F	   a  a + F	   b  b + F	   c  c + F	   d  d + F	   e  e + F	   f  f + F	   g  g + F	   h  h + F	   i  i + F	   j  j + F	   k  k + F	   l  l + F	   m  m + F	   n  n + F	   o  o + F	   p  p + F	   q  q + F	   r  r + F	   s  s + F	   t  t + F	   u  u + F	   v  v + F	   w  w + F	   x  x + F	   y  y + F	   z  z + F	   \{ { + F	   |  | + F	   \} } + F	   ~  ~ + F	   ?   + F	   ?   + F	   ?   + F	   ?   + F	   ?   + F	   ?   + F	   &hellip;  + F	     &dagger;  + F	     &Dagger;  + F	     ?   + F	   &permil;  + F	     &Scaron;  + F	     ?   + F	   &OElig;   + F	     ?   + F	   &Zcaron;  + F	     ?   + F	   ?   + F	   ?   + F	   ?   + F	   ?   + F	   ?   + F	   &bull;  + F	       &ndash;   + F	     &mdash;   + F	     ?   + F	   &trade;   + F	     &scaron;  + F	     ?   + F	   &oelig;   + F	     ?   + F	   &zcaron;  + F	     &Yuml;  + F	       &nbsp;  + F	       &iexcl;   + F	     &cent;  + F	       &pound;   + F	     ?   + F	   &yen;   + F	       &brvbar;  + F	     &sect;  + F	       &uml;   + F	       &copy;  + F	       &ordf;  + F	       &laquo;   + F	     &not;   + F	       &shy;   + F	       &reg;   + F	       &macr;  + F	       &deg;   + F	       &plusmn;  + F	     ?   + F	   ?   + F	   &acute;   + F	     &micro;   + F	     &para;  + F	       &middot;  + F	     &cedil;   + F	     ?   + F	   &ordm;  + F	       &raquo;   + F	     &frac14;  + F	     &frac12;  + F	     &frac34;  + F	     &iquest;  + F	     &Agrave;  + F	     &Aacute;  + F	     &Acirc;   + F	     &Atilde;  + F	     &Auml;  + F	       &Aring;   + F	     &AElig;   + F	     &Ccedil;  + F	     &Egrave;  + F	     &Eacute;  + F	     &Ecirc;   + F	     &Euml;  + F	       &Igrave;  + F	     &Iacute;  + F	     &Icirc;   + F	     &Iuml;  + F	       &ETH;   + F	       &Ntilde;  + F	     &Ograve;  + F	     &Oacute;  + F	     &Ocirc;   + F	     &Otilde;  + F	     &Ouml;  + F	       &times;   + F	     &Oslash;  + F	     &Ugrave;  + F	     &Uacute;  + F	     &ucirc;   + F	     &Uuml;  + F	       &Yacute;  + F	     &THORN;   + F	     &szlig;   + F	     &agrave;  + F	     &aacute;  + F	     &acirc;   + F	     &atilde;  + F	     &auml;  + F	       &aring;   + F	     &aelig;   + F	     &ccedil;  + F	     &egrave;  + F	     &eacute;  + F	     &ecirc;   + F	     &euml;  + F	       &igrave;  + F	     &iacute;  + F	     &icirc;   + F	     &iuml;  + F	       &eth;   + F	       &ntilde;  + F	     &ograve;  + F	     &oacute;  + F	     &ocirc;   + F	     &otilde;  + F	     &ouml;  + F	       &divide;  + F	     &oslash;  + F	     &ugrave;  + F	     &uacute;  + F	     &Ucirc;   + F	     &uuml;  + F	       &yacute;  + F	     &thorn;   + F	     &yuml;  + F	        	  subsets:   &Amacr;   &Hc2$   + f	  $  256         &amacr;   &He2$   + f	  $  257         &Abreve;  &Hc3$   + R	  !  258         &abreve;  &He3$   + R	  !  259         &Aogon;   &Ha5$   + R	     260         &aogon;   &Hb9$   + R	     261         &Cacute;  &Hc6$   + R	  !  262         &cacute;  &He6$   + R	  !  263         &Ccaron;  &Hc8$   + R	  !  268         &ccaron;  &He8$   + R	  !  269         &Dcaron;  &Hcf$   + R	  !  270         &dcaron;  &Hef$   + R	  !  271         &Dstrok;  &Hd0$   + R	  !  272         &dstrok;  &Hf0$   + R	  !  273         &Emacr;   &Hc7$   + f	  $  274         &emacr;   &He7$   + f	  $  275         &Edot;  &Hcb$   + f	  #  278   &edot;  &Heb$   + f	  #  279   &Eogon;   &Hca$   + R	     280         &eogon;   &Hea$   + R	     281         &Ecaron;  &Hcc$   + R	  !  282         &ecaron;  &Hec$   + R	  !  283         &Gbreve;  &Hd0$   + Z	  "  286         &gbreve;  &Hf0$   + Z	  "  287         &Gcedil;  &Hcc$   + f	  %  290         &Imacr;   &Hce$   + f	  $  298         &imacr;   &Hee$   + f	  $  299         &Iogon;   &Hc1$   + f	  $  302         &iogon;   &He1$   + f	  $  303         &Idot;  &Hdd$   + Z	     304   &inodot;  &Hfd$   + Z	  "  305         &Kcedil;  &Hcd$   + f	  %  310         &kcedil;  &Hed$   + f	  %  311         &Lacute;  &Hc5$   + R	  !  313         &lacute;  &He5$   + R	  !  314         &Lcedil;  &Hcf$   + f	  %  315         &lcedil;  &Hef$   + f	  %  316         &Lcaron;  &Hbc$   + R	  !  317         &lcaron;  &Hbe$   + R	  !  318         &Lstrok;  &Ha3$   + R	  !  321         &lstrok;  &Hb3$   + R	  !  322         &Nacute;  &Hd1$   + R	  !  323         &nacute;  &Hf1$   + R	  !  324         &Ncedil;  &Hd2$   + f	  %  325         &ncedil;  &Hf2$   + f	  %  326         &Ncaron;  &Hd2$   + R	  !  327         &ncaron;  &Hf2$   + R	  !  328         &Omacr;   &Hd4$   + f	  $  332         &omacr;   &Hf4$   + f	  $  333         &Odblac;  &Hd5$   + R	  !  336         &odblac;  &Hf5$   + R	  !  337         &OElig;   &H8c$   + F	  #  338         &oelig;   &H9c$   + F	  #  339         &Racute;  &Hc0$   + R	  !  340         &racute;  &He0$   + R	  !  341         &Rcedil;  &Haa$   + f	  %  342         &rcedil;  &Hba$   + f	  %  343         &Rcaron;  &Hd8$   + R	  !  344         &rcaron;  &Hf8$   + R	  !  345         &Sacute;  &H8c$   + R	  !  346         &sacute;  &H9c$   + R	  !  347         &Scedil;  &Haa$   + R	  !  350         &scedil;  &Hba$   + R	  !  351         &Scaron;  &H8a$   + F	  $  352         &scaron;  &H9a$   + F	  $  353         &Tcedil;  &Hde$   + R	  !  354         &tcedil;  &Hfe$   + R	  !  355         &Tcaron;  &H8d$   + R	  !  356         &tcaron;  &H9d$   + R	  !  357         &Umacr;   &Hdb$   + f	  $  362         &umacr;   &Hfb$   + f	  $  363         &Uring;   &Hd9$   + R	     366         &uring;   &Hf9$   + R	     367         &Udblac;  &Hdb$   + R	  !  368         &udblac;  &Hfb$   + R	  !  369         &Uogon;   &Hd8$   + f	  $  370         &uogon;   &Hf8$   + f	  $  371         &Yuml;  &H9f$   + F	  "  376   &Zacute;  &H8f$   + R	  !  377         &zacute;  &H9f$   + R	  !  378         &Zdot;  &Haf$   + R	    379   &zdot;  &Hbf$   + R	    380   &Zcaron;  &H8e$   + F	  $  381         &zcaron;  &H9e$   + F	  $  382         &caron;   &Ha1$   + R	     711         &breve;   &Ha2$   + R	     728         &dot;   &Hff$   + R	    729   &ogon;  &Hb2$   + R	    731   &dblac;   &Hbd$   + R	     733         &Aacgr;   &Ha2$   + V	  #  902         &Eacgr;   &Hb8$   + V	  #  904         &EEacgr;  &Hb9$   + V	  $  905         &Iacgr;   &Hba$   + V	  #  906         &Oacgr;   &Hbc$   + V	  #  908         &Uacgr;   &Hbe$   + V	  #  910         &OHacgr;  &Hbf$   + V	  $  911         &idiagr;  &Hc0$   + V	  $  912         &Agr;   &Hc1$   + V	  !  913   &Bgr;   &Hc2$   + V	  !  914   &Gamma;   &Hc3$   + V	  #  915         &Delta;   &Hc4$   + V	  #  916         &Egr;   &Hc5$   + V	  !  917   &Zgr;   &Hc6$   + V	  !  918   &EEgr;  &Hc7$   + V	  "  919   &Theta;   &Hc8$   + V	  #  920         &Igr;   &Hc9$   + V	  !  921   &Kgr;   &Hca$   + V	  !  922   &Lambda;  &Hcb$   + V	  $  923         &Mgr;   &Hcc$   + V	  !  924   &Ngr;   &Hcd$   + V	  !  925   &Xgr Xi;  &Hce$   + V	  $  926         &Ogr;   &Hcf$   + V	  !  927   &Pgr Pi;  &Hd0$   + V	  $  928         &Rgr;   &Hd1$   + V	  !  929   &Sigma;   &Hd3$   + V	  #  931         &Tgr;   &Hd4$   + V	  !  932   &Ugr;   &Hd5$   + V	  !  933   &Phi;   &Hd6$   + V	  !  934   &KHgr;  &Hd7$   + V	  "  935   &Psi;   &Hd8$   + V	  !  936   &Omega;   &Hd9$   + V	  #  937         &Idigr;   &Hda$   + V	  #  938         &Udigr;   &Hdb$   + V	  #  939         &aacgr;   &Hdc$   + V	  #  940         &eacgr;   &Hdd$   + V	  #  941         &eeacgr;  &Hde$   + V	  $  942         &iacgr;   &Hdf$   + V	  #  943         &udiagr;  &He0$   + V	  $  944         &alpha;   &He1$   + V	  #  945         &beta;  &He2$   + V	  "  946   &gamma;   &He3$   + V	  #  947         &delta;   &He4$   + V	  #  948         &epsi;  &He5$   + V	  "  949   &zeta;  &He6$   + V	  "  950   &eta;   &He7$   + V	  !  951   &thetas;  &He8$   + V	  $  952         &iota;  &He9$   + V	  "  953   &kappa;   &Hea$   + V	  #  954         &lambda;  &Heb$   + V	  $  955         &mu;  &Hec$   + V	     956     &nu;  &Hed$   + V	     957     &xi;  &Hee$   + V	     958     &ogr;   &Hef$   + V	  !  959   &pi;  &Hf0$   + V	     960     &rho;   &Hf1$   + V	  !  961   &sigmav;  &Hf2$   + V	  $  962         &sigma;   &Hf3$   + V	  #  963         &tau;   &Hf4$   + V	  !  964   &upsi;  &Hf5$   + V	  "  965   &phis;  &Hf6$   + V	  "  966   &chi;   &Hf7$   + V	  !  967   &psi;   &Hf8$   + V	  !  968   &omega;   &Hf9$   + V	  #  969         &idigr;   &Hfa$   + V	  #  970         &udigr;   &Hfb$   + V	  #  971         &oacgr;   &Hfc$   + V	  #  972         &uacgr;   &Hfd$   + V	  #  973         &ohacgr;  &Hfe$   + V	  $  974         &Bcy;   &Hc1$   + j	    1041  &Gcy;   &Hc3$   + j	    1043  &Dcy;   &Hc4$   + j	    1044  &ZHcy;  &Hc6$   + j	     1046  &Zcy;   &Hc7$   + j	    1047  &Icy;   &Hc8$   + j	    1048  &Jcy;   &Hc9$   + j	    1049  &Kcy;   &Hca$   + j	    1050  &Lcy;   &Hcb$   + j	    1051  &Pcy;   &Hcf$   + j	    1055  &Ucy;   &Hd3$   + j	    1059  &Fcy;   &Hd4$   + j	    1060  &KHcy;  &Hd5$   + j	     1061  &TScy;  &Hd6$   + j	     1062  &SHcy;  &Hd8$   + j	     1064  &SHCHcy;  &Hd9$   + j	  "  1065        &HARDcy;  &Hda$   + j	  "  1066        &Ycy;   &Hdb$   + j	    1067  &SOFTcy;  &Hdc$   + j	  "  1068        &Ecy;   &Hdd$   + j	    1069  &YUcy;  &Hde$   + j	     1070  &YAcy;  &Hdf$   + j	     1071  &bcy;   &He1$   + j	    1073  &vcy;   &He2$   + j	    1074  &gcy;   &He3$   + j	    1075  &dcy;   &He4$   + j	    1076  &zhcy;  &He6$   + j	     1078  &zcy;   &He7$   + j	    1079  &icy;   &He8$   + j	    1080  &jcy;   &He9$   + j	    1081  &kcy;   &Hea$   + j	    1082  &lcy;   &Heb$   + j	    1083  &mcy;   &Hec$   + j	    1084  &ncy;   &Hed$   + j	    1085  &pcy;   &Hef$   + j	    1087  &tcy;   &Hf2$   + j	    1090  &fcy;   &Hf4$   + j	    1092  &khcy;  &Hf5$   + j	     1093  &tscy;  &Hf6$   + j	     1094  &shcy;  &Hf8$   + j	     1096  &shchcy;  &Hf9$   + j	  "  1097        &hardcy;  &Hfa$   + j	  "  1098        &ycy;   &Hfb$   + j	    1099  &softcy;  &Hfc$   + j	  "  1100        &ecy;   &Hfd$   + j	    1101  &yucy;  &Hfe$   + j	     1102  &yacy;  &Hff$   + j	     1103  &dagger;  &H86$   + F	  $  8224        &Dagger;  &H87$   + F	  $  8225        &hellip;  &H85$   + F	  $  8230        &permil;  &H89$   + F	  $  8240        &trade;   &H99$   + F	  #  8482      o ;             + N	   !  ! + N	   &forall; " + N	     #  # + N	   &exist;  $ + N	     %  % + N	   &  & + N	   &ni; ' + N	         (  ( + N	   )  ) + N	   *  * + N	   +  + + N	   )  , + N	   &minus;  - + N	     .  . + N	   /  / + N	   0  0 + N	   1  1 + N	   2  2 + N	   3  3 + N	   4  4 + N	   5  5 + N	   6  6 + N	   7  7 + N	   8  8 + N	   9  9 + N	   :  : + N	   ;  ; + N	   <  < + N	   =  = + N	   >  > + N	   ?  ? + N	   &sime; @ + N	       &Agr;  A + N	       &Bgr;  B + N	       &Xgr;  C + N	       &Delta;  D + N	     &Egr;  E + N	       &Phi;  F + N	       &Gamma;  G + N	     &Hgr;  H + N	       &Igr;  I + N	       &thetav; J + N	     &Kappa;  K + N	     &Lambda; L + N	     &Mgr;  M + N	       &Ngr;  N + N	       &Ogr;  O + N	       &Pi; P + N	         &Theta;  Q + N	     &Pgr;  R + N	       &Sigma;  S + N	     &Tgr;  T + N	       &Ygr;  U + N	       &sigmav; V + N	     &Omega;  W + N	     &Xgr;  X + N	       &Psi;  Y + N	       &Zgr;  Z + N	       [  [ + N	   &there4; \ + N	     ]  ] + N	   &perp; ^ + N	       _  _ + N	   &macr; ` + N	       &alpha;  a + N	     &beta; b + N	       &chi;  c + N	       &delta;  d + N	     &epsiv;  e + N	     &phis; f + N	       &gamma;  g + N	     &eta;  h + N	       &iota; i + N	       &phiv; j + N	       &kappa;  k + N	     &lambda; l + N	     &mu; m + N	         &nu; n + N	         &ogr;  o + N	       &pi; p + N	         &thetas; q + N	     &rho;  r + N	       &sigma;  s + N	     &tau;  t + N	       &upsi; u + N	       &piv;  v + N	       &omega;  w + N	     &xi; x + N	         &psi;  y + N	       &zeta; z + N	       \{ { + N	   |  | + N	   \} } + N	   &sim;  ~ + N	       ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   ?   + N	   &Upsi;  + N	      ' $     + N	       &le;  + N	        	 &z-urule;   + N	   &infin;   + N	     f   + N	   &clubs;   + N	     &diams;   + N	     &hearts;  + N	     &spades;  + N	     &harr;  + N	       &lArr;  + N	       &uarr;  + N	       &rArr;  + N	       &darr;  + N	       &deg;   + N	       &plusmn;  + N	     &Prime;   + N	     &ge;  + N	         &times;   + N	     &prop;  + N	       &part;  + N	       &bull;  + N	       &divide;  + N	     &ne;  + N	         &cong;  + N	       &sime;  + N	       &hellip;  + N	     &mid;   + N	       &mdash;   + N	    	 &z-arrdl;   + N	   &aleph;   + N	     &beth;  + N	       &Rx;  + N	         &weierp;  + N	     &otimes;  + N	     &oplus;   + N	     &empty;   + N	     &cap;   + N	       &cup;   + N	       &sup;   + N	       &sepe;  + N	       &nsub;  + N	       &sub;   + N	       &sube;  + N	       &isin;  + N	       &notin;   + N	     &ang;   + N	       &nabla;   + N	     &reg;   + N	       &copy;  + N	       &trade;   + N	     &prod;  + N	       &radic;   + N	     &middot;  + N	     &not;   + N	       &and;   + N	       &or;  + N	         &iff;   + N	       &larr;  + N	       &uArr;  + N	       &rarr;  + N	       &dArr;  + N	       &loz;   + N	       &lang;  + N	       &reg;   + N	       &copy;  + N	       &trade;   + N	     &sum;   + N	       &mid;   + N	       &nid;   + N	       &mid;   + N	       &lceil;   + N	     &mid;   + N	       &lfloor;  + N	     &mid;   + N	       \{  + N	   &mid;   + N	       &mid;   + N	       &squ;   + N	       &rang;  + N	       &int;   + N	       &mid;   + N	       &mid;   + N	       &mid;   + N	       &mid;   + N	       &mid;   + N	       &mid;   + N	       &rceil;   + N	     &mid;   + N	       &rfloor;  + N	     &mid;   + N	       \}  + N	   &mid;   + N	       ?   + N	 o (             + l	   !  ! + l	  " $    " + l	       #  # + l	   $  $ + l	   %  % + l	   &  & + l	  ' $    ' + l	       (  ( + l	   )  ) + l	   *  * + l	   +  + + l	   ,  , + l	   -  - + l	   .  . + l	   /  / + l	   0  0 + l	   1  1 + l	   2  2 + l	   3  3 + l	   4  4 + l	   5  5 + l	   6  6 + l	   7  7 + l	   8  8 + l	   9  9 + l	   :  : + l	   ;  ; + l	   <  < + l	   =  = + l	   >  > + l	   ?  ? + l	   @  @ + l	   A  A + l	   B  B + l	   C  C + l	   D  D + l	   E  E + l	   F  F + l	   G  G + l	   H  H + l	   I  I + l	   J  J + l	   K  K + l	   L  L + l	   M  M + l	   N  N + l	   O  O + l	   P  P + l	   Q  Q + l	   R  R + l	   S  S + l	   T  T + l	   U  U + l	   V  V + l	   W  W + l	   X  X + l	   Y  Y + l	   Z  Z + l	   [  [ + l	   \\ \ + l	   ]  ] + l	   ^  ^ + l	   _  _ + l	   `  ` + l	   a  a + l	   b  b + l	   c  c + l	   d  d + l	   e  e + l	   f  f + l	   g  g + l	   h  h + l	   i  i + l	   j  j + l	   k  k + l	   l  l + l	   m  m + l	   n  n + l	   o  o + l	   p  p + l	   q  q + l	   r  r + l	   s  s + l	   t  t + l	   u  u + l	   v  v + l	   w  w + l	   x  x + l	   y  y + l	   z  z + l	   \{ { + l	   |  | + l	   \} } + l	   ~  ~ + l	   &nbsp;  + l	       &iexcl;   + l	     &cent;  + l	       &pound;   + l	     &yen;   + l	       &brvbar;  + l	     &sect;  + l	       &uml;   + l	       &copy;  + l	       &ordf;  + l	       &laquo;   + l	     &not;   + l	       &shy;   + l	       &reg;   + l	       &macr;  + l	       &deg;   + l	       &plusmn;  + l	     &acute;   + l	     &micro;   + l	     &para;  + l	       &middot;  + l	     &cedil;   + l	     &ordm;  + l	       &raquo;   + l	     &frac14;  + l	     &frac12;  + l	     &frac34;  + l	     &iquest;  + l	     &Agrave;  + l	     &Aacute;  + l	     &Acirc;   + l	     &Atilde;  + l	     &Auml;  + l	       &Aring;   + l	     &AElig;   + l	     &Ccedil;  + l	     &Egrave;  + l	     &Eacute;  + l	     &Ecirc;   + l	     &Euml;  + l	       &Igrave;  + l	     &Iacute;  + l	     &Icirc;   + l	     &Iuml;  + l	       &ETH;   + l	       &Ntilde;  + l	     &Ograve;  + l	     &Oacute;  + l	     &Ocirc;   + l	     &Otilde;  + l	     &Ouml;  + l	       &times;   + l	     &Oslash;  + l	     &Ugrave;  + l	     &Uacute;  + l	     &ucirc;   + l	     &Uuml;  + l	       &Yacute;  + l	     &THORN;   + l	     &szlig;   + l	     &agrave;  + l	     &aacute;  + l	     &acirc;   + l	     &atilde;  + l	     &auml;  + l	       &aring;   + l	     &aelig;   + l	     &ccedil;  + l	     &egrave;  + l	     &eacute;  + l	     &ecirc;   + l	     &euml;  + l	       &igrave;  + l	     &iacute;  + l	     &icirc;   + l	     &iuml;  + l	       &eth;   + l	       &ntilde;  + l	     &ograve;  + l	     &oacute;  + l	     &ocirc;   + l	     &otilde;  + l	     &ouml;  + l	       &divide;  + l	     &oslash;  + l	     &ugrave;  + l	     &uacute;  + l	     &Ucirc;   + l	     &uuml;  + l	       &yacute;  + l	     &thorn;   + l	     &yuml;  + l	       &Amacr;   + l	     &amacr;  + l	     &Abreve; + l	     &abreve; + l	     &Aogon;  + l	     &aogon;  + l	     &Cacute; + l	     &cacute; + l	     &Ccirc;  + l	     &ccirc;  	+ l	     &Cdot; 
+ l	       &cdot; + l	       &Ccaron; + l	     &ccaron; + l	     &Dcaron; + l	     &dcaron; + l	     &Dstrok; + l	     &dstrok; + l	     &Emacr;  + l	     &emacr;  + l	     &Edot; + l	       &edot; + l	       &Eogon;  + l	     &eogon;  + l	     &Ecaron; + l	     &ecaron; + l	     &Gcirc;  + l	     &gcirc;  + l	     &Gbreve; + l	     &gbreve; + l	     &Gdot;  + l	       &gdot; !+ l	       &Gcedil; "+ l	     &Hcirc;  $+ l	     &hcirc;  %+ l	     &Hstrok; &+ l	     &hstrok; '+ l	     &Itilde; (+ l	     &itilde; )+ l	     &Imacr;  *+ l	     &imacr;  ++ l	     &Iogon;  .+ l	     &iogon;  /+ l	     &Idot; 0+ l	       &inodot; 1+ l	     &IJlig;  2+ l	     &ijlig;  3+ l	     &Jcirc;  4+ l	     &jcirc;  5+ l	     &Kcedil; 6+ l	     &kcedil; 7+ l	     &kgreen; 8+ l	     &Lacute; 9+ l	     &lacute; :+ l	     &Lcedil; ;+ l	     &lcedil; <+ l	     &Lcaron; =+ l	     &lcaron; >+ l	     &Lmidot; ?+ l	     &lmidot; @+ l	     &Lstrok; A+ l	     &lstrok; B+ l	     &Nacute; C+ l	     &nacute; D+ l	     &Ncedil; E+ l	     &ncedil; F+ l	     &Ncaron; G+ l	     &ncaron; H+ l	     &napos;  I+ l	     &ENG;  J+ l	       &eng;  K+ l	       &Omacr;  L+ l	     &omacr;  M+ l	     &Odblac; P+ l	     &odblac; Q+ l	     &OElig;  R+ l	     &oelig;  S+ l	     &Racute; T+ l	     &racute; U+ l	     &Rcedil; V+ l	     &rcedil; W+ l	     &Rcaron; X+ l	     &rcaron; Y+ l	     &Sacute; Z+ l	     &sacute; [+ l	     &Scirc;  \+ l	     &scirc;  ]+ l	     &Scedil; ^+ l	     &scedil; _+ l	     &Scaron; `+ l	     &scaron; a+ l	     &Tcedil; b+ l	     &tcedil; c+ l	     &Tcaron; d+ l	     &tcaron; e+ l	     &Tstrok; f+ l	     &tstrok; g+ l	     &Utilde; h+ l	     &utilde; i+ l	     &Umacr;  j+ l	     &umacr;  k+ l	     &Ubreve; l+ l	     &ubreve; m+ l	     &Uring;  n+ l	     &uring;  o+ l	     &Udblac; p+ l	     &udblac; q+ l	     &Uogon;  r+ l	     &uogon;  s+ l	     &Wcirc;  t+ l	     &wcirc;  u+ l	     &Ycirc;  v+ l	     &ycirc;  w+ l	     &Yuml; x+ l	       &Zacute; y+ l	     &zacute; z+ l	     &Zdot; {+ l	       &zdot; |+ l	       &Zcaron; }+ l	     &zcaron; ~+ l	     &acaron; + l	     &gcaron; + l	     &gacute; + l	     &caron;  + l	     &breve;  + l	     &dot;  + l	       &ring; + l	       &ogon; + l	       &dblac;  + l	     &Aacgr;  + l	     &Eacgr;  + l	     &EEacgr; + l	     &Iacgr;  + l	     &Oacgr;  + l	     &Uacgr;  + l	     &OHacgr; + l	     &idiagr; + l	     &Agr;  + l	       &Bgr;  + l	       &Gamma;  + l	     &Delta;  + l	     &Egr;  + l	       &Zgr;  + l	       &EEgr; + l	       &Theta;  + l	     &Igr;  + l	       &Kgr;  + l	       &Lambda; + l	     &Mgr;  + l	       &Ngr;  + l	       &Xgr Xi; + l	     &Ogr;  + l	       &Pgr Pi; + l	     &Rgr;  + l	       &Sigma;  + l	     &Tgr;  + l	       &Ugr;  + l	       &Phi;  + l	       &KHgr; + l	       &Psi;  + l	       &Omega;  + l	     &Idigr;  + l	     &Udigr;  + l	     &aacgr;  + l	     &eacgr;  + l	     &eeacgr; + l	     &iacgr;  + l	     &udiagr; + l	     &alpha;  + l	     &beta; + l	       &gamma;  + l	     &delta;  + l	     &epsi; + l	       &zeta; + l	       &eta;  + l	       &thetas; + l	     &iota; + l	       &kappa;  + l	     &lambda; + l	     &mu; + l	         &nu; + l	         &xi; + l	         &ogr;  + l	       &pi; + l	         &rho;  + l	       &sigmav; + l	     &sigma;  + l	     &tau;  + l	       &upsi; + l	       &phis; + l	       &chi;  + l	       &psi;  + l	       &omega;  + l	     &idigr;  + l	     &udigr;  + l	     &oacgr;  + l	     &uacgr;  + l	     &ohacgr; + l	     &thetav; + l	     &Upsi; + l	       &phiv; + l	       &piv;  + l	       &gammad; + l	     &kappav; + l	     &rhov; + l	       &Bcy;  + l	       &Gcy;  + l	       &Dcy;  + l	       &ZHcy; + l	       &Zcy;  + l	       &Icy;  + l	       &Jcy;  + l	       &Kcy;  + l	       &Lcy;  + l	       &Pcy;  + l	       &Ucy;  #+ l	       &Fcy;  $+ l	       &KHcy; %+ l	       &TScy; &+ l	       &SHcy; (+ l	       &SHCHcy; )+ l	     &HARDcy; *+ l	     &Ycy;  ++ l	       &SOFTcy; ,+ l	     &Ecy;  -+ l	       &YUcy; .+ l	       &YAcy; /+ l	       &bcy;  1+ l	       &vcy;  2+ l	       &gcy;  3+ l	       &dcy;  4+ l	       &zhcy; 6+ l	       &zcy;  7+ l	       &icy;  8+ l	       &jcy;  9+ l	       &kcy;  :+ l	       &lcy;  ;+ l	       &mcy;  <+ l	       &ncy;  =+ l	       &pcy;  ?+ l	       &tcy;  B+ l	       &fcy;  D+ l	       &khcy; E+ l	       &tscy; F+ l	       &shcy; H+ l	       &shchcy; I+ l	     &hardcy; J+ l	     &ycy;  K+ l	       &softcy; L+ l	     &ecy;  M+ l	       &yucy; N+ l	       &yacy; O+ l	       &ensp;  + l	       &emsp;  + l	       &emsp13;  + l	     &emsp14;  + l	     &numsp;   + l	     &puncsp;  + l	     &thinsp; 	 + l	     &hairsp; 
 + l	     &dash;  + l	       &ndash;   + l	     &mdash;   + l	       UnicodeEnt(8216) =  "lsquo;"          UnicodeEnt(8217) =  "rsquo;"          UnicodeEnt(8218) =  "lsquor;"         UnicodeEnt(8220) =  "ldquo;"          UnicodeEnt(8221) =  "rdquo;"          UnicodeEnt(8222) =  "ldquor;"       &dagger;   + l	     &Dagger; ! + l	     &bull; " + l	       &nldr; % + l	       &hellip; & + l	     &permil; 0 + l	     &prime;  2 + l	     &Prime;  3 + l	     &tprime; 4 + l	     &bprime; 5 + l	     &caret;  A + l	     &hybull; C + l	     &DotDot;  + l	     &incare; !+ l	     &planck; !+ l	     &ell;  !+ l	       &copysr; !+ l	     &weierp; !+ l	     &rx; !+ l	         &trade;  "!+ l	     &ohm;  &!+ l	       &aleph;  5!+ l	     &beth; 6!+ l	       &gimel;  7!+ l	     &daleth; 8!+ l	     &frac13; S!+ l	     &frac23; T!+ l	     &frac15; U!+ l	     &frac25; V!+ l	     &frac35; W!+ l	     &frac45; X!+ l	     &frac16; Y!+ l	     &frac56; Z!+ l	     &lArr; !+ l	       &uarr; !+ l	       &rArr; !+ l	       &darr; !+ l	       &harr; !+ l	       &varr; !+ l	       &nwarr;  !+ l	     &nearr;  !+ l	     &nlarr;  !+ l	     &nrarr;  !+ l	     &rarrw;  !+ l	     &Larr; !+ l	       &Rarr; !+ l	       &larrtl; !+ l	     &rarrtl; !+ l	     &map;  !+ l	       &larrhk; !+ l	     &rarrhk; !+ l	     &larrlp; !+ l	     &rarrlp; !+ l	     &harrw;  !+ l	     &nharr;  !+ l	     &lsh;  !+ l	       &rsh;  !+ l	       &cularr; !+ l	     &curarr; !+ l	     &olarr;  !+ l	     &orarr;  !+ l	     &lharu;  !+ l	     &lhard;  !+ l	     &uharr;  !+ l	     &uharl;  !+ l	     &rharu;  !+ l	     &rhard;  !+ l	     &dharr;  !+ l	     &dharl;  !+ l	     &rlarr2; !+ l	     &lrarr2; !+ l	     &larr2;  !+ l	     &uarr2;  !+ l	     &rarr2;  !+ l	     &darr2;  !+ l	     &lrhar2; !+ l	     &rlhar2; !+ l	     &nlArr;  !+ l	     &nhArr;  !+ l	     &nrArr;  !+ l	     &larr; !+ l	       &uArr; !+ l	       &rarr; !+ l	       &dArr; !+ l	       &vArr; !+ l	       &lAarr;  !+ l	     &rAarr;  !+ l	     &forall;  "+ l	     &comp; "+ l	       &part; "+ l	       &exist;  "+ l	     &nexist; "+ l	     &empty;  "+ l	     &nabla;  "+ l	     &isin; "+ l	       &notin;  	"+ l	     &epsiv;  
"+ l	     &ni; "+ l	         &prod; "+ l	       &coprod; "+ l	     &sum;  "+ l	       &minus;  "+ l	     &mnplus; "+ l	     &plusdo; "+ l	     &lowast; "+ l	     &compfn; "+ l	     &radic;  "+ l	     &prop; "+ l	       &infin;  "+ l	     &ang90;  "+ l	     &ang;   "+ l	       &angmsd; !"+ l	     &angsph; ""+ l	     &mid;  #"+ l	       &nmid; $"+ l	       &par;  %"+ l	       &npar; &"+ l	       &and;  '"+ l	       &or; ("+ l	         &cap;  )"+ l	       &cup;  *"+ l	       &int;  +"+ l	       &conint; ."+ l	     &there4; 4"+ l	     &becaus; 5"+ l	     &sim;  <"+ l	       &bsim; ="+ l	       &wreath; @"+ l	     &nsim; A"+ l	       &sime; C"+ l	       &nsime;  D"+ l	     &cong; E"+ l	       &ncong;  G"+ l	     &ap; H"+ l	         &nap;  I"+ l	       &ape;  J"+ l	       &bcong;  L"+ l	     &asymp;  M"+ l	     &bump; N"+ l	       &bumpe;  O"+ l	     &eDot; Q"+ l	       &efDot;  R"+ l	     &erDot;  S"+ l	     &colone; T"+ l	     &ecolon; U"+ l	     &ecir; V"+ l	       &cire; W"+ l	       &wedgeq; Y"+ l	     &trie; \"+ l	       &ne; `"+ l	         &equiv;  a"+ l	     &nequiv; b"+ l	     &le; d"+ l	         &ge; e"+ l	         &lE; f"+ l	         &gE; g"+ l	         &lne;  h"+ l	       &gne;  i"+ l	       &Lt; j"+ l	         &Gt; k"+ l	         &twixt;  l"+ l	     &nlt;  n"+ l	       &ngt;  o"+ l	       &nle;  p"+ l	       &nge;  q"+ l	       &lsim; r"+ l	       &gsim; s"+ l	       &lg; v"+ l	         &gl; w"+ l	         &pr; z"+ l	         &sc; {"+ l	         &pre;  |"+ l	       &sce;  }"+ l	       &prsim;  ~"+ l	     &scsim;  "+ l	     &npr;  "+ l	       &nsc;  "+ l	       &sub;  "+ l	       &sup;  "+ l	       &nsub; "+ l	       &nsup; "+ l	       &sube; "+ l	       &supe; "+ l	       &nsube;  "+ l	     &nsupe;  "+ l	     &subne;  "+ l	     &supne;  "+ l	     &uplus;  "+ l	     &sqsub;  "+ l	     &sqsup;  "+ l	     &sqsube; "+ l	     &sqsupe; "+ l	     &sqcap;  "+ l	     &sqcup;  "+ l	     &oplus;  "+ l	     &ominus; "+ l	     &otimes; "+ l	     &osol; "+ l	       &odot; "+ l	       &ocir; "+ l	       &oast; "+ l	       &odash;  "+ l	     &plusb;  "+ l	     &minusb; "+ l	     &timesb; "+ l	     &vdash;  "+ l	     &dashv;  "+ l	     &perp; "+ l	       &vDash;  "+ l	     &Vdash;  "+ l	     &Vvdash; "+ l	     &nvdash; "+ l	     &nvDash; "+ l	     &nVdash; "+ l	     &nVDash; "+ l	     &ltrie;  "+ l	     &rtrie;  "+ l	     &mumap;  "+ l	     &intcal; "+ l	     &veebar; "+ l	     &barwed; "+ l	     &diam; "+ l	       &divonx; "+ l	     &bowtie; "+ l	     &ltimes; "+ l	     &rtimes; "+ l	     &lthree; "+ l	     &rthree; "+ l	     &bsime;  "+ l	     &cuvee;  "+ l	     &cuwed;  "+ l	     &Sub;  "+ l	       &Sup;  "+ l	       &Cap;  "+ l	       &Cup;  "+ l	       &fork; "+ l	       &ldot; "+ l	       &Ll; "+ l	         &Gg; "+ l	         &leg;  "+ l	       &gel;  "+ l	       &els;  "+ l	       &egs;  "+ l	       &cuepr;  "+ l	     &cuesc;  "+ l	     &npre; "+ l	       &nsce; "+ l	       &lnsim;  "+ l	     &gnsim;  "+ l	     &prnsim; "+ l	     &scnsim; "+ l	     &nltri;  "+ l	     &nrtri;  "+ l	     &nltrie; "+ l	     &nrtrie; "+ l	     &vellip; "+ l	     &Barwed; #+ l	     &lceil;  #+ l	     &rceil;  	#+ l	     &lfloor; 
#+ l	     &rfloor; #+ l	     &drcrop; #+ l	     &dlcrop; #+ l	     &urcrop; #+ l	     &ulcrop; #+ l	     &telrec; #+ l	     &target; #+ l	     &ulcorn; #+ l	     &urcorn; #+ l	     &dlcorn; #+ l	     &drcorn; #+ l	     &frown;  "#+ l	     &smile;  ##+ l	     &lang; )#+ l	       &rang; *#+ l	       &blank;  #$+ l	     &uhblk;  %+ l	     &lhblk;  %+ l	     &block;  %+ l	     &blk14;  %+ l	     &blk12;  %+ l	     &blk34;  %+ l	     &squ;  %+ l	       &squf; %+ l	       &rect; %+ l	       &marker; %+ l	     &xutri;  %+ l	     &utrif;  %+ l	     &utri; %+ l	       &rtrif;  %+ l	     &rtri; %+ l	       &xdtri;  %+ l	     &dtrif;  %+ l	     &dtri; %+ l	       &ltrif;  %+ l	     &ltri; %+ l	       &loz;  %+ l	       &cir;  %+ l	       &starf;  &+ l	     &star; &+ l	       &phone;  &+ l	     &female; @&+ l	     &male; B&+ l	       &spades; `&+ l	     &clubs;  c&+ l	     &hearts; e&+ l	     &diams;  f&+ l	     &flat; m&+ l	       &natur;  n&+ l	     &sharp;  o&+ l	     &check;  '+ l	     &cross;  '+ l	     &malt;  '+ l	       &lozf; &'+ l	       &sext; 6'+ l	         UnicodeEnt(64256) =  "fflig;"         UnicodeEnt(64257) =  "filig;"         UnicodeEnt(64258) =  "fllig;"         UnicodeEnt(64259) =  "ffilig;"        UnicodeEnt(64260) =  "ffllig;"          + l	         !   + l	         &forall;  + l	   #   + l	         &exist;   + l	   %   + l	         &   + l	         &ni;  + l	       (   + l	         )   + l	         *   + l	         +   + l	         )   + l	         &minus;   + l	   .   + l	         /   + l	         0   + l	         1   + l	         2   + l	         3   + l	         4   + l	         5   + l	         6   + l	         7   + l	         8   + l	         9   + l	         :   + l	         ;   + l	         <   + l	         =   + l	         >   + l	         ?   + l	         &sime;  + l	     &Agr;   + l	     &Bgr;   + l	     &Xgr;   + l	     &Delta;   + l	   &Egr;   + l	     &Phi;   + l	     &Gamma;   + l	   &Hgr;   + l	     &Igr;   + l	     &thetav;  + l	   &Kappa;   + l	   &Lambda;  + l	   &Mgr;   + l	     &Ngr;   + l	     &Ogr;   + l	     &Pi;  + l	       &Theta;   + l	   &Pgr;   + l	     &Sigma;   + l	   &Tgr;   + l	     &Ygr;   + l	     &sigmav;  + l	   &Omega;   + l	   &Xgr;   + l	     &Psi;   + l	     &Zgr;   + l	     [   + l	         &there4;  + l	   ]   + l	         &perp;  + l	     _   + l	         &macr;  + l	     &alpha;   + l	   &beta;  + l	     &chi;   + l	     &delta;   + l	   &epsiv;   + l	   &phis;  + l	     &gamma;   + l	   &eta;   + l	     &iota;  + l	     &phiv;  + l	     &kappa;   + l	   &lambda;  + l	   &mu;  + l	       &nu;  + l	       &ogr;   + l	     &pi;  + l	       &thetas;  + l	   &rho;   + l	     &sigma;   + l	   &tau;   + l	     &upsi;  + l	     &piv;   + l	     &omega;   + l	   &xi;  + l	       &psi;   + l	     &zeta;  + l	     \{  + l	         |   + l	         \}  + l	         &sim;   + l	     &Upsi; _ + l	    ' $    ^ + l	     &le; ] + l	      	 &z-urule;  \ + l	         &infin;  [ + l	   f  Z + l	         &clubs;  Y + l	   &diams;  X + l	   &hearts; W + l	   &spades; V + l	   &harr; U + l	     &lArr; T + l	     &uarr; S + l	     &rArr; R + l	     &darr; Q + l	     &deg;  P + l	     &plusmn; O + l	   &Prime;  N + l	   &ge; M + l	       &times;  L + l	   &prop; K + l	     &part; J + l	     &bull; I + l	     &divide; H + l	   &ne; G + l	       &cong; F + l	     &sime; E + l	     &hellip; D + l	   &mid;  C + l	     &mdash;  B + l	  	 &z-arrdl;  A + l	         &aleph;  @ + l	   &beth; ? + l	     &Rx; > + l	       &weierp; = + l	   &otimes; < + l	   &oplus;  ; + l	   &empty;  : + l	   &cap;  9 + l	     &cup;  8 + l	     &sup;  7 + l	     &sepe; 6 + l	     &nsub; 5 + l	     &sub;  4 + l	     &sube; 3 + l	     &isin; 2 + l	     &notin;  1 + l	   &ang;  0 + l	     &nabla;  / + l	   &reg;  . + l	     &copy; - + l	     &trade;  , + l	   &prod; + + l	     &radic;  * + l	   &middot; ) + l	   &not;  ( + l	     &and;  ' + l	     &or; & + l	       &iff;  % + l	     &larr; $ + l	     &uArr; # + l	     &rarr; " + l	     &dArr; ! + l	     &loz;    + l	     &lang;  + l	     &reg;   + l	     &copy;  + l	     &trade;   + l	   &sum;   + l	     &mid;   + l	     &nid;   + l	     &mid;   + l	     &lceil;   + l	   &mid;   + l	     &lfloor;  + l	   &mid;   + l	     \{  + l	         &mid;   + l	     &mid;   + l	     &squ;   + l	     &rang;  + l	     &int;   + l	     &mid;   + l	     &mid;   + l	     &mid;   + l	     &mid;  
 + l	     &mid;  	 + l	     &mid;   + l	     &rceil;   + l	   &mid;   + l	     &rfloor;  + l	   &mid;   + l	     \}  + l	         &mid  + l	     o pP  H    A@	    A@	    A@	            @	  !   line 1 contains header   ' 	_ P  ' 	     ' 	   ' 	  	  $ <	   \' ' 	        	       
  not found      ' 	x O  k O      see if at start of line:   	          $ <	   	  $   ' 	      &H  	  $   ' 	        	$   ' 	    '  need to look in previous line for font        $ <	 '       ' 	 	N  k N    #  make sure preceding char isn't "\"         $ <	   	     $     \     
 look again  	   ' 	   	@N  k 8N    *  If got here then looks like a symbol code     determine full code, e.g. \'xx:    $ <	   	  $   ' 	      &H  	  $   ' 	        	$   ' 	     MsgBox symbolcode     tmprtfline = RtfCifFileLine(n)       RtfCifFileLine(n) = Left(tmprtfline, symbolcodepos - 1) & "{\f0 GNOMIS}" & Right(tmprtfline, Len(tmprtfline) - symbolcodepos - 3)    determine active font      $ <	   	$   '  	L     ' 	   ' 	   	               
  MsgBox na    	  $   '          } K T         . ignore everything until openbrace = closebrace      	   ' 	    { K T         	   ' 	    	  	               suspect default font       \f0 ' 	    or determined defaultfont    y @K  k 8K    \ K T         	  	
        #  within another group so do nothing       d J    7  First check for Unicode \u##### if first time \ found:     	         ' 	      	  $     \u#####          
 UnicodeFnt' 	          	  $     $  ' 	     ' 	  y J  k J      	  $     \u####   
 UnicodeFnt' 	          	  $     $  ' 	     ' 	  y I  k I      	  $     \u###    
 UnicodeFnt' 	          	  $     $  ' 	     ' 	  y  I  k I      	  $     \u##     
 UnicodeFnt' 	          	  $     $  ' 	     ' 	  y H  k H  k H      check if \f999 etc           	  $     \f###       	  $   ' 	  y 8H  k 0H      	  $     \f##        	  $   ' 	  y G  k G      	  $     \f#         	  $   ' 	  y G  k G  k G  n G     	          	       $  need to look again in previous line    	   ' 	      	 $ <	 '      	G  k G      MsgBox activefont   )  look up and make appropriate replacement   	     D	K T   	$ F	 ' 	    ' 	  H	K T   	$ J	 ' 	    ' 	  L	K T   	$ N	 ' 	    ' 	  P	K T   	$ R	 ' 	    ' 	  T	K T   	$ V	 ' 	    ' 	  X	K T   	$ Z	 ' 	    ' 	  \	K T   	$ ^	 ' 	    ' 	  `	K T   	$ b	 ' 	    ' 	  d	K T   	$ f	 ' 	    ' 	  h	K T   	$ j	 ' 	    ' 	 
 UnicodeFntK T         	$ l	 ' 	    	  	    ' 	    n 8E    	     G   ? ' 	j         {\f0    	   }  ' 	      $ <	 '      lensymbolcode = 3     	   $     	        	   	 $     + <	           then look in line again    	  	  ' 	 4   or length of any replacement        ' 	 	 D   D   	D             $ F	  r        $ N	  r        o C      A@	       7  e.g. {\field{\*\fldinst SYMBOL 68 \\f "Symbol" \\s 10}     {\field{\*\fldinst SYMBOL ' 	              @	           remove any linefeeds etc   $ <	  	 $      $    + <	   $ <	  
 $      $    + <	   $ <	   $      $    + <	   ' 	_ B    	  $ <	   	 ' 	   MsgBox symbolcodepos        	       
  not found      ' 	x 8B  k 0B    $ <	   	  	    $   ' 	      	$   ' 	    )  at this point determine symbol by lookup   6  then move on looking for }}} (ignoring font for now!)      $ <	   $ <	    	   	     $  ' 	        	  }} '  
 /   was }}}         
       $  problem       ignore this one  x @  d @    $ <	 '       	   $     {\f0     	$ N	    }         	   	     
    $     + <	          MsgBox RtfCifFileLine(n)    	' 	  ) + Len(searchstring) + 3 + fieldendpos + 2 k  @      or length of any replacement      	?   ?   	?             o ?      _ ?      
  
  $ ' 

    

   
        
  
  
$  ' 
  d P?  x H?  k @?   8?    
' 
i (?  h    ]   `    ]    ]      ' 
  
  N 
 b     
 N $   ' 
         see if any crlf:      
   ' 
        
   
        
  
   $   ' 
d p>      check there are some spaces!         
     ' 
      
   
        
  $       b   
  
    $   ' 
       =  d =      break somewhereelse          
  -  ' 
      
   
        
  $    -  b   
  
    $   ' 
       P=  d H=      break at tab?        
 	 $    ' 
  
   
        
  $   	 $    b       
  
    $   ' 
       <  d <      break somewhere else?        
  \  ' 
      
   
        
  $    \  b   
  
    $   ' 
       0<    
  
    $   ' 
      d <      
  ,  ' 
      
   
        
  $    ,  b   
  
    $   ' 
       ;  d ;  k ;  k ;  k ;  k x;  k p;  k h;    
   ' 
    
  
+ 
     
  
   
  $  ' 
      ;     \     
         
  \$ 
     ' 
 4  Chr(10)    \          
  
 ' 
 &   i.e. leftovers       
    
      
' 
   ' 
k :  i x:  0    ] p          @	         $ <	 '     $ "
 '     $ $
 '     $ &
 '     $ (
 '       + <	              o 9      ]           @	         $ <	 '     $ ,
 '     $ .
 '       + <	              o X9      ] @	    `   >	 p	        ] x	  ] 	     ' 4
  2
'    Clipboard.GetText(vbCFRTF)    first try to isolate header            \par   ' 6
      \pard  ' 8
  8
   
        - MsgBox pardinstringpos & " " & parinstringpos       8
  6
	        4
   ' 4
      8
   $     4
+ >	          8
    $  ' k 7  k 7  _ 7        \par   ' 6
  6
   
          6
   $   '   ' :
     N
      +  look again for \pard or \object or \result       ]    	    ]    	          \pard    + <
         \object    + <
       \result    + <
     + >
       + >
       + >
     $ <
   $ <
    $ <
                 have  to accept first choice     d 86    $ <
   $ <
 
   $ <
   $ <
 
  b   $ <
   $ <
 
    $ <
 ' @
    $ <
   + <
       @
  + <
     $ >
 ' @
    $ >
   + >
       @
  + >
   k x5    $ <
   $ <
 
    $ <
 ' @
    $ <
   + <
       @
  + <
     $ >
 ' @
    $ >
   + >
       @
  + >
   k 4   4    $  samllest should be otherposition(1)          but check its not 0                       $ <
    
          $ <
 ' B
  y H4  k @4             k (4    !  now have pos of acceptable break   B
' 6
  $ >
 ' :
      6
  :
 $   ' k 3    4
   ' 4
      4
+ >	          6
   :
 $  ' d 3        \pard  ' 6
  6
   
        4
   ' 4
      6
   $     4
+ >	          6
    $  ' d  3       N
      4
   ' 4
      4
+ >	   x 2  d 2  x 2  k 2  k 2  k 2   2       anyleftovers:        4
   + >	       4
   ' @	     @	 <	 0
          @	         $ >	   + <	                $ >	  r        o 1  8
      F
 ' H
      ]   '
    ] 
     ' L
   5  txtstream should contain #cell# and #row# delimiters        , txtstream = repinstr(txtstream, Chr(13), "")         , txtstream = repinstr(txtstream, Chr(10), "")         + txtstream = repinstr(txtstream, Chr(9), "")          0 txtstream = repinstr(txtstream, "#row#", vbCrLf)     1 txtstream = repinstr(txtstream, "#cell#", Chr(9))   F
   	 $      $  ' F
        F
' _ (0        $    ' N
 %   chr(13)    , splitdelimpos = InStr(1, tmpstr, SplitDelim)        N
   
        L
   ' L
      N
   $     L
+ J
          N
 $  '          End If    d P/  x H/  k @/   8/       any leftovers      L
   ' L
      L
+ J
        now have rows in array        remove any linefeeds from rows        split into array of entries         L
  d  B	        ' P
        L
         $ J
  
 $      $  '           $      $  '        ' R
_  .       	 $    ' T
  T
   
        R
   ' R
      T
   $       R
+ B	              T
 $  '       d x-    =  could be single col (i.e. no tabs) or row not ending in tab:       R
           R
   ' R
        R
+ B	       d ,        
      R
   ' R
        R
+ B	       k ,  k ,  x ,  k ,   ,    R
  P

  G   R
' P
j                 any leftovers        colidx = colidx + 1          ! tmpArray(rowidx, colidx) = tmpstr    L
   P
@B	 0    o +  8    ]      ( t	           read contents of rtf file:       ]             ]   8     P     h      ]              Scripting.FileSystemObject$  .          V
      %  .            n = 0    #    Do While f.AtEndOfStream <> True             n = n + 1        !    RtfCifFileLine(n) = f.Readline   1   RtfCifFileLine(n) = RtfCifFileLine(n) & Chr(10)      Loop       ! Z
' 2
       B@B           .    .   2
A@\
         2
A@0
       A@	    A@	    A@ 
    A@*
       ? ReplaceCells and any other rtfcodes not covered by sumbol stuff           @	           ReplaceCells:        O RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\cell ", "{\f0 #cell#}\cell ")      O RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\cell\", "{\f0 #cell#}\cell\")      O RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\cell}", "{\f0 #cell#}\cell}")      L RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\row ", "{\f0 #row#}\row ")         L RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\row\", "{\f0 #row#}\row\")         L RtfCifFileLine(n) = repinstr(RtfCifFileLine(n), "\row}", "{\f0 #row#}\row}")        $ <	   \minus  &minus; $    + <	   $ <	   \emdash   --- $    + <	     $ <	   \endash   --$    + <	       $ <	   \emdash   --- $    + <	     $ <	   \endash   --$    + <	       ^
  $ <	  ' ^
                    write new rtf to file       Scripting.FileSystemObject$  .          V
      %  .            n = 0    #    Do While f.AtEndOfStream <> True             n = n + 1        !    RtfCifFileLine(n) = f.Readline   1   RtfCifFileLine(n) = RtfCifFileLine(n) & Chr(10)      Loop      ^
   B@      B@B           .    .    !  now open in word to save as text    V
  %  . r	      r	B@          r	! `
( b
    	    # 	 -    V
   d
 	  f
    h
 j
    l
  n
  p
  r
  t
  v
  r	B@	   r	! `
( b
       r	B@B          . r	   #  convert text to specific cif text:         V
  $    .1.rtf        X
          V
A@x
       d @#    V
  (     ;         ;  A@z
   k #  d  #    V
A@x
       k "     5 fmRtfToCif.RichTextBox1.SaveFile tmpRtfCifFilename, 1         Unload fmRtfToCif     ClearAllVars          FmCifEdit.Show     X"  o P"      ] (     	 {\fonttbl $ ~
 ' |
      |
  0   G | j          need to find          ROMAN;     |
  Roman;$ 
 ' D	     ARIAL;     |
  Arial;$ 
 ' H	     SYMBOL;    |
  Symbol; $ 
 ' L	           CE;        |
  CE; $ 
 ' P	       GREEK;     |
  Greek;$ 
 ' T	     TUR;       |
  Tur;$ 
 ' X	     
  (HEBREW);  |
 	 (Hebrew); $ 
 ' \	       
  (ARABIC);  |
 	 (Arabic); $ 
 ' `	         BALTIC;    |
  Baltic; $ 
 ' d	           Cyr;       |
  Cyr;$ 
 ' h	     !  now have font ids of known fonts o    @        2
  
 ' Z        Z   
      d     0 ' ~
      z   k     ' 
      Z     2
          2
    $          { K T         
   ' 
    } K T         
   ' 
  S 0  n (    
  
        ' y   k                 2
  Z    Z    $   ' ~
      i            find fontid          
  
  $ ' 
    
   
         	  found it       
             
  MsgBox na  
    $   '       \         check if \f999 etc         
    $     \f###     
    $   ' 
  y   k     
    $     \f##      
    $   ' 
  y h  k `    
    $     \f#       
    $   ' 
  y    k   d   k              d      ' 
k   i   @    ]   ]   ]   ]   ]    ]   ] 0  ] H  ] `    ' 
_ x     ' 
   ' 
  
  2
  \sub    ' 
        
   
           first check that not sub0:         2
  
  $     \sub0     
   ' 
   
  k     2
  
  $    	 \sub[a-z]         
   ' 
   
  k      8  cut tmp string for analysis (start at "sub" not "\sub")    2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  
        -  no unclosed groups so following can end sub:       
  *\plain         
   ' 
  y    k     
  *\sub0          
   ' 
  y   k     
  *\up    
   ' 
  y   k     
  *\dn    
   ' 
  y h  k `    
  *\super         
   ' 
  y 0  k (    
  *\par           
   ' 
  y   k     
  *\nosupersub    
   ' 
  y   k     *      If AnalysisStr Like "*\sub[a-z]" Then        ClosePos = CharCount - 5             Exit For             End If       k (    
  *{      
  $    \{  d     
   ' 
  k   k     
  *}        first check that not \}:   
  $    \}   1   ignore   d x    
   ' 
    
  
      ;   close sub group  
   ' 
  y (  k    k   k      
           9  if exited for next loop then assume end sub at closepos:   2
  
   $     {\f0 <inf>}    2
  2
   
    $   ' 2
   g RtfStream = Left(RtfStream, SubPos + 3) & "{\f0 <inf>}" & Right(RtfStream, Len(RtfStream) - SubPos - 3)     
  
    ' 
      2
  
$     {\f0 </inf>}   2
  2
   
 $   ' 2
       6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)         set next srchpos   
      ' 
    d     sub not found  x    k    
       2
' "
i   x    ]   ]   ]   ]    ] 8  ] P  ] h  ]   ]     ' 
_      ' 
   ' 
  
  2
  \dn     ' 
        
   
           first check that not sub0:         2
  
  $     \dn0      
   ' 
   
  k     2
  
  $     \dn[a-z]          
   ' 
   
  k      8  cut tmp string for analysis (start at "sub" not "\sub")    2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  *\plain         
   ' 
  y h  k `    
  *\dn0           
   ' 
  y 0  k (    (     If AnalysisStr Like "*\dn[a-z]" Then         ClosePos = CharCount - 4             Exit For        
     End If  
  *{      
  $    \{  d x    
   ' 
  k `  k X    
  *}        first check that not \}:   
  $    \}   1   ignore   d     
   ' 
    
  
      ;   close sub group  
   ' 
 )   i.e. close sub before }    y   k   k x  k p    
  *\up    
   ' 
  y H  k @    
  *\sub           
   ' 
  y   k     
  *\super         
   ' 
  y   k     
  *\par           
   ' 
  y   k     
  *\nosupersub    
   ' 
  y h  k `     
           9  if exited for next loop then assume end sub at closepos:   2
  
   $     {\f0 <inf>}    2
  2
   
    $   ' 2
   g RtfStream = Left(RtfStream, SubPos + 3) & "{\f0 <inf>}" & Right(RtfStream, Len(RtfStream) - SubPos - 3)     
  
    ' 
      2
  
$     {\f0 </inf>}   2
  2
   
 $   ' 2
       6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)       <  set next srchpos to end of replacement before looing again:        
   ' 
  d     sub not found  x H  k @   
8   0    2
' &
i        ]   ] (  ] @  ] X  ] p  ]   ]   ]   ]     ' 
_      ' 
   ' 
  
  2
  \super    ' 
      
   
           first check that not sub0:         2
  
  $     \super0           
   ' 
   
  k     2
  
  $     \super[a-z]       
   ' 
   
  k      8  cut tmp string for analysis (start at "sub" not "\sub")    2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  
        /  no unclosed groups so following can end super:     
  *\plain         
   ' 
  y @
  k 8
    
  *\super0        
   ' 
  y 
  k  
    
  *\up    
   ' 
  y 	  k 	    
  *\dn    
   ' 
  y 	  k 	    
  *\sub           
   ' 
  y p	  k h	    
  *\par           
   ' 
  y 8	  k 0	    
  *\nosupersub    
   ' 
  y  	  k   k     
  *{      
  $    \{  d     
   ' 
  k   k     
  *}        first check that not \}:   
  $    \}   1   ignore   d @    
   ' 
    
  
      ;   close sub group  
   ' 
 )    i.e. close sub before } ---Why?      3 ClosePos = CharCount + 1 ' i.e. close outside group       y   k   k x  k p     
           9  if exited for next loop then assume end sub at closepos:   2
  
   $     {\f0 <sup>}    2
  2
   
    $   ' 2
  
  
    ' 
      2
  
$     {\f0 </sup>}   2
  2
   
 $   ' 2
       6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)       <  set next srchpos to end of replacement before looing again:          SrchPos = EndsuperPos + 12   '  set srch pos to start of replacement!?     
      ' 
    d     sub not found  x p  k h   
`   X    2
' $
i H      ] H  ] `  ] x  ]   ]   ]   ]   ]   ]     ' 
_      ' 
   ' 
  
  2
  \up     ' 
        
   
           first check that not sub0:         2
  
  $     \up0      
   ' 
   
H  k @    2
  
  $     \up[a-z]          
   ' 
   
   k      8  cut tmp string for analysis (start at "sub" not "\sub")    2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  *\plain         
   ' 
  y   k     
  *\up0           
   ' 
  y   k x    %  If AnalysisStr Like "*\up[a-z]" Then         ClosePos = CharCount - 4   	  Exit For     End If     
  *{      
  $    \{  d     
   ' 
  k   k     
  *}        first check that not \}:   
  $    \}   1   ignore   d X    
   ' 
    
  
      ;   close sub group  
   ' 
 )   i.e. close sub before }    y    k    k    k      
  *\dn    
   ' 
  y    k      
  *\sub           
   ' 
  y p   k h     
  *\super         
   ' 
  y 8   k 0     
  *\par           
   ' 
  y     k     
  *\nosupersub    
   ' 
  y   k      
           9  if exited for next loop then assume end sub at closepos:   2
  
   $     {\f0 <sup>}    2
  2
   
    $   ' 2
   g RtfStream = Left(RtfStream, SubPos + 3) & "{\f0 <inf>}" & Right(RtfStream, Len(RtfStream) - SubPos - 3)     
  
    ' 
      2
  
$     {\f0 </sup>}   2
  2
   
 $   ' 2
       6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)       =  set next srchpos to end of replacement before looking again:       
   ' 
  d     sub not found  x   k    
       2
' (
i        ]   ]   ]   ]   ]   ]   ]   ] (  ] @    ' 
_       ' 
   ' 
  
  2
  \b    ' 
  
   
           first check that not \b0:  2
  
  $     \b0       
   ' 
   
  k        then check that not \bin etc       2
  
  $     \b[a-z]           
   ' 
   
   k      4  cut tmp string for analysis (start at "b" not "\b")        2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  
        
  *\plain         
   ' 
  y   k     
  *\b0    
   ' 
  y   k     %  If AnalysisStr Like "*\up[a-z]" Then         ClosePos = CharCount - 4   	  Exit For     End If     
  *\par           
   ' 
  y   k     (  If AnalysisStr Like "*\nosupersub" Then      ClosePos = CharCount - 11  	  Exit For     End If   k p    
  *{      
  $    \{  d @    
   ' 
  k (  k      
  *}        first check that not \}:   
  $    \}   1   ignore   d     
   ' 
    
  
      ;   close sub group  
   ' 
 )   i.e. close sub before }    y P  k H  k @  k 8     
           9  if exited for next loop then assume end sub at closepos:   2
  
   $    	 {\f0 <b>}    2
  2
   
    $   ' 2
     g RtfStream = Left(RtfStream, SubPos + 3) & "{\f0 <inf>}" & Right(RtfStream, Len(RtfStream) - SubPos - 3)     
  
  	  ' 
      2
  
$    
 {\f0 </b>}   2
  2
   
 $   ' 2
         6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)       =  set next srchpos to end of replacement before looking again:       
 
  ' 
  d     sub not found  x    k    
       2
' .
i   X    ]   ]   ]   ]    ]   ] 0  ] H  ] `  ] x    ' 
_      ' 
   ' 
  
  2
  \i    ' 
  
   
           first check that not \b0:  2
  
  $     \i0       
   ' 
   
  k         then check that not \bin etc       2
  
  $     \i[a-z]           
   ' 
   
  k      4  cut tmp string for analysis (start at "b" not "\b")        2
  
     2
   
    $   ' 
         8  Now analyse tmpstream char by char until pattern found:     ' 
   ' 
   
     
         charcount = charcount + 1   
  
$   ' 
        
  *\plain         
   ' 
  y P  k H    
  *\i0    
   ' 
  y    k     %  If AnalysisStr Like "*\up[a-z]" Then         ClosePos = CharCount - 4   	  Exit For     End If     
  *{      
  $    \{  d x    
   ' 
  k `  k X    
  *}        first check that not \}:   
  $    \}   1   ignore   d     
   ' 
    
  
      ;   close sub group  
   ' 
 )   i.e. close sub before }    y   k   k x  k p    
  *\par           
   ' 
  y @  k 8    (  If AnalysisStr Like "*\nosupersub" Then      ClosePos = CharCount - 11  	  Exit For     End If      
           9  if exited for next loop then assume end sub at closepos:   2
  
   $    
 {\f0 <it>}   2
  2
   
    $   ' 2
     n RtfStream = Left(RtfStream, ControlPos + 1) & "{\f0 <it>}" & Right(RtfStream, Len(RtfStream) - ControlPos - 1)      
  
  
  ' 
      2
  
$     {\f0 </it>}    2
  2
   
 $   ' 2
       6 MsgBox Right(RtfStream, Len(RtfStream) - SubPos + 100)       =  set next srchpos to end of replacement before looking again:       
   ' 
  d     sub not found  x   k    
       2
' ,
i       ]     
   ' 
       read table file  ]           8  ]   P     h           ]              Scripting.FileSystemObject$  .          
      %  .         ! Z
' F
       B@B           .    .   F
A@D
       ]     B	    ' 
  B	    ' 
   
     
               B	             
  $ B	 $    
  + B	                     
           &  remove any blank rows at end of table    ]   ' 
  _ h    
  	  G x j               
         
  $ B	        ' 
  d    ' 
  y    k                
          
   ' 
  d   x   k        
  	  G  
j     ]      ' 
   ' 
   !  5. combine array with delimiters    
     
               
           colcount = colcount + 1     
  $ B	          ?   
  + B	      	  k     
  $ B	   <inf> $  ' 
        
  $ B	   </inf>$  ' 
        
  
	  G   <inf>   
  $ B	    
  + B	 j   
  

        
  $ B	   </inf>   
  + B	     
	        <inf>   
     $ B	    
     + B	     k   k     
  $ B	   <inf></inf>    $    
  + B	     
  $ B	   <inf> </inf>    $    
  + B	   
  $ B	   <inf>    <inf>$ 
   
  + B	     
  $ B	    </inf>   </inf>  $ 
   
  + B	         
  $ B	   <sup> $  ' 
        
  $ B	   </sup>$  ' 
        
  
	  G   <sup>   
  $ B	    
  + B	 j   
  

        
  $ B	   </sup>   
  + B	     
	        <sup>   
     $ B	    
     + B	     k   k     
  $ B	   <sup></sup>    $    
  + B	     
  $ B	   <sup> </sup>    $    
  + B	   
  $ B	   <sup>    <sup>$ 
   
  + B	     
  $ B	    </sup>   </sup>  $ 
   
  + B	         
  $ B	   <it>$  ' 
  
  $ B	   </it> $  ' 
        
  
	  G   <it>  
  $ B	    
  + B	 j     
  

        
  $ B	   </it>    
  + B	     
	        <it>  
     $ B	    
     + B	       k   k     
  $ B	  	 <it></it>    $    
  + B	       
  $ B	  
 <it> </it>    $    
  + B	     
  $ B	   <it>     <it> $ 
   
  + B	     
  $ B	    </it>  </it> $ 
   
  + B	     
  $ B	   <b> $  ' 
  
  $ B	   </b>$  ' 
  
  
	  G   <b>   
  $ B	    
  + B	 j     
  

        
  $ B	   </b>   
  + B	       
	        <b>   
     $ B	    
     + B	       k   k     
  $ B	   <b></b>    $    
  + B	         
  $ B	   <b> </b>    $    
  + B	       
  $ B	   <b>    <b>$ 
   
  + B	         
  $ B	    </b>   </b>  $ 
   
  + B	      :  final pure CIF conversions: - do before splitting string!  
  $ B	   <b></b>    $    
  + B	         
  $ B	   <b> </b>    $    
  + B	       
  $ B	   <b>  	 $      </b>  	 $   $    
  + B	         
  $ B	  	 <it></it>    $    
  + B	       
  $ B	  
 <it> </it>    $    
  + B	     
  $ B	   <it> 	 $      </it>   	 $   $    
  + B	       
  $ B	   <b>    <b>$ 
   
  + B	         
  $ B	    </b>   </b>  $ 
   
  + B	     
  $ B	   <it>     <it> $ 
   
  + B	     
  $ B	    </it>  </it> $ 
   
  + B	     
  $ B	   <b>  	 $     	 $     <b>  $ 
   
  + B	         
  $ B	  	 $     </b>   </b> 	 $    $ 
   
  + B	         
  $ B	   <it> 	 $     	 $     <it> $ 
   
  + B	         
  $ B	  	 $     </it>    </it>  	 $    $ 
   
  + B	     
  $ B	   <inf></inf>    $    
  + B	     
  $ B	   <inf> </inf>    $    
  + B	   
  $ B	   <inf>  	 $      </inf>  	 $   $    
  + B	     
  $ B	   <sup></sup>    $    
  + B	     
  $ B	   <sup> </sup>    $    
  + B	   
  $ B	   <sup>  	 $      </sup>  	 $   $    
  + B	     
  $ B	   <inf>    <inf>$ 
   
  + B	     
  $ B	    </inf>   </inf>  $ 
   
  + B	         
  $ B	   <sup>    <sup>$ 
   
  + B	     
  $ B	    </sup>   </sup>  $ 
   
  + B	         
  $ B	   <inf>  	 $     	 $     <inf>  $ 
   
  + B	     
  $ B	  	 $     </inf>   </inf> 	 $    $ 
   
  + B	     
  $ B	   <sup>  	 $     	 $     <sup>  $ 
   
  + B	     
  $ B	  	 $     </sup>   </sup> 	 $    $ 
   
  + B	     
  $ B	   <inf>   ~ $    
  + B	         
  $ B	   </inf>  ~ $    
  + B	         
  $ B	   <sup>   ^ $    
  + B	         
  $ B	   </sup>  ^ $    
  + B	         
  $ B	   <it>  <i> $    
  + B	         
  $ B	   </it>   </i>$    
  + B	       
  $ B	 $ 
   
  + B	         
  $ B	   F 
    ;      
  $ B	       ;       
  + B	   d    ' $     
  $ B	   ' $      
  + B	     k @   	8    
  
  $ B	    K 
      
  $ B	     ' 
          need to split line here:   
  $ B	 $ 
 ' 
  
     
 ' 
    d               
  
  $ B	  ' 
d p    
 	 $      
  $ B	  ' 
    k @    
  
  $ B	      ' 
k       End If                 
   ' 
     ' 
   
          # Start of table datablock        data_ExtraTable1_    
       ' 
  
 ? # This table can be appended to the CIF in a separate datablock     ' 
      
 - # When adding extra tables to a CIF manually,     ' 
        
 ? # it is advisable to include them in the most relvent datablock     ' 
      
 2 # (e.g. if they relate to a particular structure).    ' 
    
 < # A maximum of three extra tables is permitted per datablock    ' 
  
 I # (i.e. ..._extra_tableA_..., ..._extra_tableB_..., ..._extra_tableC_...)     ' 
    
  #     ' 
    
 O # The following datanames can be used for table headings, headnotes, footnotes:     ' 
      
  #     ' 
    
 = #_geom_extra_table_head_A   # (or B or C if for table B or C)     ' 
        
  #;    ' 
    
  #;    ' 
    
 ; #_geom_table_headnote_A   # (or B or C if for table B or C)     ' 
  
  #;    ' 
    
  #;    ' 
    
 ; #_geom_table_footnote_A   # (or B or C if for table B or C)     ' 
  
  #;    ' 
    
  #;    ' 
    
 B # If you use these, include then in the loop below, along with any    ' 
    
 3 # other non-standard dataitems you wish to publish.     ' 
  
   ' 
    
  loop_        _publ_manuscript_incl_extra_item    ' 
          
         
 ' $      _geom_extra_tableA_col_      ' $       ' 
                   
     loop_     ' 
        
         
  _geom_extra_tableA_col_        ' 
                      return table text:          
@ @    
  
         # End of table datablock.    
+      FmCifClipboard.TableTextBox.Text = FmCifClipboard.TableTextBox.Text & vbCrLf & tablehead & tablebody & vbCrLf & vbCrLf & "# End of table datablock."      | `   
X     
@ `       
+    o 0  h    ]        open file containing cif text    ]       8    P  ]   h                ]              Scripting.FileSystemObject$  .          
      %  .         ! Z
' F
       B@B           .    .      final pure CIF conversions:        F
  <b></b>    $  ' F
    F
  <b> </b>    $  ' F
  F
  <b>  	 $      </b>  	 $   $  ' F
    F
 	 <it></it>    $  ' F
  F
 
 <it> </it>    $  ' F
        F
  <it> 	 $      </it>   	 $   $  ' F
  F
  <b>    <b>$ 
 ' F
    F
   </b>   </b>  $ 
 ' F
        F
  <it>     <it> $ 
 ' F
        F
   </it>  </it> $ 
 ' F
        F
  <b>  	 $     	 $     <b>  $ 
 ' F
    F
 	 $     </b>   </b> 	 $    $ 
 ' F
    F
  <it> 	 $     	 $     <it> $ 
 ' F
    F
 	 $     </it>    </it>  	 $    $ 
 ' F
         	  inf sup:   F
  <inf></inf>    $  ' F
        F
  <inf> </inf>    $  ' F
      F
  <inf>  	 $      </inf>  	 $   $  ' F
        F
  <sup></sup>    $  ' F
        F
  <sup> </sup>    $  ' F
      F
  <sup>  	 $      </sup>  	 $   $  ' F
        F
  <inf>    <inf>$ 
 ' F
        F
   </inf>   </inf>  $ 
 ' F
    F
  <sup>    <sup>$ 
 ' F
        F
   </sup>   </sup>  $ 
 ' F
    F
  <inf>  	 $     	 $     <inf>  $ 
 ' F
        F
 	 $     </inf>   </inf> 	 $    $ 
 ' F
        F
  <sup>  	 $     	 $     <sup>  $ 
 ' F
        F
 	 $     </sup>   </sup> 	 $    $ 
 ' F
        F
  <inf>   ~ $  ' F
    F
  </inf>  ~ $  ' F
    F
  <sup>   ^ $  ' F
    F
  </sup>  ^ $  ' F
    F
  <it>  <i> $  ' F
    F
  </it>   </i>$  ' F
  F
$ 
 ' F
  ]     F
$ 
 ' 
    
             $ 
 ' 
_     
  $           
  
    $  ' 
      d P  x H  k @   8  _ 0    
  $          
  
    $   ' 
      d   x   k           return new ciftext           MsgBox Left(newtxtstream, 2)        
'    ) CifEdit.UpdateCifWithNewText newtxtstream    R FmCifClipboard.NewCifTextBox.Text = datanameheader & newtxtstream & datanamefootero         
  &Aring;   \%A $  ' 
        
  &deg;   \%$  ' 
    
  &times;   \\times $  ' 
    
  ==  \\db  $  ' 
    
  &z-dbnd;  \\db  $  ' 
      
  &z-tbnd;  \\tb  $  ' 
      
  &sime;  \\simeq $  ' 
      
  &sim;   \\sim $  ' 
        
  &plusmn;  +-$  ' 
  
  &mnplus;  -+$  ' 
  
  &ne;  \\neq $  ' 
  
  &rang;  \\rangle$  ' 
      
  &lang;  \\langle$  ' 
      
  &rarr;  \\rightarrow$  ' 
  
  &rArr;  \\rightarrow$  ' 
  
  &larr;  \\leftarrow $  ' 
  
  &infin;   \\infty $  ' 
    
 
 &z-pdbdtd;  \\ddb $  ' 
    
  &alpha;   \a$  ' 
  
  &beta;  \b$  ' 
    
  &chi;   \c$  ' 
    
  &delta;   \d$  ' 
  
  &epsiv;   \e$  ' 
  
  &phiv;  \f$  ' 
    
  &phis;  \f$  ' 
    
  &gamma;   \g$  ' 
  
  &eta;   \h$  ' 
    
  &iota;  \i$  ' 
    
  &kappa;   \k$  ' 
  
  &lambda;  \l$  ' 
  
  &mu;  \m$  ' 
      
  &nu;  \n$  ' 
      
  &omicr;   \o$  ' 
  
  &pi;  \p$  ' 
      
  &thetas;  \q$  ' 
  
  &rho;   \r$  ' 
    
  &sigma;   \s$  ' 
  
  &tau;   \t$  ' 
    
  &upsi;  \u$  ' 
    
  &omega;   \w$  ' 
  
  &xi;  \x$  ' 
      
  &psi;   \y$  ' 
    
  &zeta;  \z$  ' 
    
  &Alpha;   \A$  ' 
  
  &Beta;  \B$  ' 
    
  &Chi;   \C$  ' 
    
  &Delta;   \D$  ' 
  
  &Egr;   \E$  ' 
    
  &Phi;   \F$  ' 
    
  &Gamma;   \G$  ' 
  
  &Eta;   \H$  ' 
    
  &Iota;  \I$  ' 
    
  &Kappa;   \K$  ' 
  
  &Lambda;  \L$  ' 
  
  &Mu;  \M$  ' 
      
  &Nu;  \N$  ' 
      
  &Omicr;   \O$  ' 
  
  &Pi;  \P$  ' 
      
  &Theta;   \Q$  ' 
  
  &Rho;   \R$  ' 
    
  &Sigma;   \S$  ' 
  
  &Tau;   \T$  ' 
    
  &Upsi;  \U$  ' 
    
  &Omega;   \W$  ' 
  
  &Xi;  \X$  ' 
      
  &Psi;   \Y$  ' 
    
  &Zeta;  \Z$  ' 
     	  accents:   
  \  ' $      acute;$ 
 ' 
        
  \`  grave;$ 
 ' 
    
  \.  dot;$ 
 ' 
      
  \,  cedil;$ 
 ' 
    
  \^  circ; $ 
 ' 
    
  \~  tilde;$ 
 ' 
    
  \(  breve;$ 
 ' 
    
  \<  caron;$ 
 ' 
    
  \;  ogon; $ 
 ' 
    
  \>  dblac;$ 
 ' 
    
  &oslash;  \/o $  ' 
        
  \/  strok;$ 
 ' 
    
  \?  nodot;$ 
 ' 
    
  \  " $      uml;$ 
 ' 
  
  &szlig;   \&s $  ' 
          Exit Sub       Roman font:        
  &hellip;  ... $  ' 
         ?  ciftxtstream = repinstr(ciftxtstream, "&dagger;", "\\dagger ")      >  ciftxtstream = repinstr(ciftxtstream, "&Dagger;", "\\Dagger")       T  ciftxtstream = repinstr(ciftxtstream, "&permil;", "{\f0\'" & LCase(Hex(137)) & "}")         S  ciftxtstream = repinstr(ciftxtstream, "&OElig;", "{\f0\'" & LCase(Hex(140)) & "}")          R  ciftxtstream = repinstr(ciftxtstream, "&bull;", "{\f0\'" & LCase(Hex(149)) & "}")  
  &ndash;   --$  ' 
  
  &mdash;   --- $  ' 
         S  ciftxtstream = repinstr(ciftxtstream, "&trade;", "{\f0\'" & LCase(Hex(153)) & "}")          S  ciftxtstream = repinstr(ciftxtstream, "&oelig;", "{\f0\'" & LCase(Hex(156)) & "}")         
  &nbsp;    $  ' 
     S  ciftxtstream = repinstr(ciftxtstream, "&iexcl;", "{\f0\'" & LCase(Hex(161)) & "}")          R  ciftxtstream = repinstr(ciftxtstream, "&cent;", "{\f0\'" & LCase(Hex(162)) & "}")  
  &pound;   $   $  ' 
       Q  ciftxtstream = repinstr(ciftxtstream, "&yen;", "{\f0\'" & LCase(Hex(165)) & "}")    T  ciftxtstream = repinstr(ciftxtstream, "&brvbar;", "{\f0\'" & LCase(Hex(166)) & "}")         R  ciftxtstream = repinstr(ciftxtstream, "&sect;", "{\f0\'" & LCase(Hex(167)) & "}")   R  ciftxtstream = repinstr(ciftxtstream, "&copy;", "{\f0\'" & LCase(Hex(169)) & "}")   R  ciftxtstream = repinstr(ciftxtstream, "&ordf;", "{\f0\'" & LCase(Hex(170)) & "}")  
  &laquo;   ` $  ' 
   Q  ciftxtstream = repinstr(ciftxtstream, "&not;", "{\f0\'" & LCase(Hex(172)) & "}")   
  &shy;    $  ' 
      
  &reg;   {\f0\'  $  $     }  $  ' 
      
  &macr;  \=$  ' 
    
  &plusmn;  {\f0\'  $  $     }  $  ' 
    
  &micro;   {\f0\'  $  $     }  $  ' 
     R  ciftxtstream = repinstr(ciftxtstream, "&para;", "{\f0\'" & LCase(Hex(182)) & "}")   T  ciftxtstream = repinstr(ciftxtstream, "&middot;", "{\f0\'" & LCase(Hex(183)) & "}")         R  ciftxtstream = repinstr(ciftxtstream, "&ordm;", "{\f0\'" & LCase(Hex(186)) & "}")  
  &raquo;  ' $   $  ' 
      
  &frac14;  1/4 $  ' 
        
  &frac12;  1/2 $  ' 
        
  &frac34;  3/4 $  ' 
         T  ciftxtstream = repinstr(ciftxtstream, "&iquest;", "{\f0\'" & LCase(Hex(191)) & "}")         S  ciftxtstream = repinstr(ciftxtstream, "&AElig;", "{\f0\'" & LCase(Hex(198)) & "}")          Q  ciftxtstream = repinstr(ciftxtstream, "&ETH;", "{\f0\'" & LCase(Hex(208)) & "}")    S  ciftxtstream = repinstr(ciftxtstream, "&THORN;", "{\f0\'" & LCase(Hex(222)) & "}")          Q  ciftxtstream = repinstr(ciftxtstream, "&eth;", "{\f0\'" & LCase(Hex(240)) & "}")    T  ciftxtstream = repinstr(ciftxtstream, "&divide;", "{\f0\'" & LCase(Hex(247)) & "}")         S  ciftxtstream = repinstr(ciftxtstream, "&thorn;", "{\f0\'" & LCase(Hex(254)) & "}")         
' 
i   p    ]     ' _ h      d      '        
        7    If repposB - 1 + Len(accentcode) = Len(datastr) Then     \    'datastr = Left(datastr, repposB - 1) & Chr(38) & Mid(datastr, repposB + 2, 1) & "acute;"        &    ' do nothing cos string ends \' etc      
    Exit Do      Else: End If     d       $     &    +   looks like entity        d       $   '       $        A  Z L T       d     $           d  d              $   ' d      '  a  z L T       d     $           d  d              $   ' d      ' S        '   n Э  k ȭ  d   x   k        d' 
i        Attribut e VB_Nam e = "Rtf ToCif"
 Dim Iucr H @FilenAs S ngcount D@Line()>tmp"eInt0eger FArray`
Pu blic  BGenerated `Table$exj)>Rom`anFntSont(256)	ArialSymboCe! GreekKTurKHebrewArabicBaltCyG"KUnicodeE P-5000 `To 11 R
E Sub RuVn@}³(Df,B @dataK,  Extract(AnysBo oleanOnlO!' wil l return@ cif tin...
Eras:e(@= 0Cthedo c
On Er ror Resu N
App dation.S"cDnUp "ing False
 orks opn se ghB
SaCopy!f,to storeGRTF:
=E& ".@z  at c Doc`nts. Add '(Vidsi`y:=B@"
c.Activ}pas  0P!!&'Remo4ve7v@ ma@, comme, heade rs, footApage  dalks9I@>..DRes.C> = 1 ThenDceptAll&&T Pk1!r*FC$Q-
   F @E@ach au IEC&.D<>t AF#End Ifd$/D$D
sec(Sbe4onshdr`_c.H-# .rangeo@c f	ftg	>FC6# u	@
_#Bd.a`{figs etcYI/ShapeE=@p"=
EhSet curbRA :dU#'loopA`DroughaE graphic %K=  K@s)s.<L>TypePara"	TLA :="[OBJ ECT REMO VED FROM HERE]2%x25
&'InlB///@%9OeOO6(OB9O$.O\OOO. O>GS$sD tQhs asaTas spe" X^5RڥØQfrtfa2xr>z= TrueD7{f_t + 1%%Cu@7t&rqJTABLE22[7Ew	7j	s0fQpHre%.FullA	~r newE 5-BFin0d.Cl!Pma<tt`DS Replaceqx_DSWith !.^pGR[ F0.AETimes 2w 9@ward7q)8W\PwdStop?@MatchCѠ= tWhWoWiltdcs S dsLikp1
_.Exec!:=wd p& q+>^"|"Pc"wS"d!"t  "  )"".""b A2""7"   False
  .Match Wildcards =Soun@dsLikeBA llWordForm.Exec ute Replace:=wd
 7If .Fid ThenE	nd IfE With 

Set t ablerangnew.Co nvertToT ext(Sepa`ratorNe ByTabs) 
' now have& data sed bBys
N% 1
Docum ents(Atf@doc).S $A s FileNam IucrRtPfCif	n	 `& "."c trtf",3!at[RTF<-).Clo se (wdDoNot,ChQD?X[D< #8A\
the9f91.2?FY$z@@,hing$'Call @X to @Y  proceduLrel@M n1 To [
Pss	
lngA, ExtractOnllʗ )Gen1ted c@ontain0non-Z cift@NI& Ekill anWemp f R "
"K% bb1 clea r var
xEraL _L0ine(@ntmpO+Cb= 0e	A`Array 
RomanFnt <""*aArial-$SymboNdCeM dGreek$TurAHebrewdArabicmdBaltodCy.A2UnicodeEntc,
A pplicati on.ScnRefk`OUpbAY= TruExit Sub }1!Verr [Ms gBox Err .Descrip`:es g :ߠbKa  ?s(32)aA A3!4Chr(34 R5#6$7%8Z&994J0(41)ۋ#*#+l",KS-KS.KS/KS0KR"1J52K3K4K5Km6K7K8K9K:Kj;J6<K=K>K?K@KAKBKmCKDKEJ7FKGKmHKIKJKKKLKMKNKOJ8PKQKRKSKTKmUKVKW[KXKYJ9mZK[K\\[#]K#^Km#_K#`K#a[K#bK#cJ103d\Ce\Sf\Sg\ch\msi\j\k[\l\m[1mn\o\p\q\r\s\t\u\v\w[2x\y\z\ٳ\{l|\\}l~\U12]\3?]]]&hellipc1!&dagger&D(13&permil ont(138)  = "&Sca ron;"
RomanF9p?T40OEligb41b2bRZ4324567t&bullh5v`ndashv&.my45v&t0rade&y&s5|5|&oe55z2A(YumA6Abs
p-6DAiexcÎD~centB`poundR6Q@&ye6Ab`rvbarB&xsec DC;Bc(opy7BordfBlaquoBnoM!7DBLshre7QBmac;7CdDBplusmP7c!V7 8D PacutX8d m(icrm 8d para#8 mid
d.$8 cediML8#!- 4m- r48Bfrac14dB2V9D"3-9d"iPques?9"APgrav)9"AQ-9"AcircCDAtilN9#A_9#ArinN9#A09#RCp420#EP2J0#EP20#E)O20d#E20m$#ID#ID#Id#ID#ETH)120#N121U#O1#O1#O1#ORD#
O1timesl1tOslp21Uo(21]Uouo22U
2Y?(22THORJNl2szs22a_@aKa_22aWa/2a)823a23Ec8(23ew/e/e/23e_3i0ii23iթetܚ2&n(24o
.o
o
24]o/oO4!divi[24]o8@u(2ut#U25u
y?C0thor2	&y4
'  subsets: 
BalticbVal("&Hc2")&AC  '256&H
ea7
Ce3brewU8mefah9ma5og60]b9UaW1]c6UCD2mefch384fch~cfDg7efdhd0strok;"	7ffdh_"c7E74_"kP"e5'b_61
eeۆa6 8VeW"cg8"fehx 3
TurFo nt(Val(" &Hd0"))  = "&Gbre ve;" '28*6fgN7
Baltic	cccedil)90Te*Imacr)8)e)*i)9S1SogonS302Sid(dot'4ino5PK31
ek1
C
e
5QLacut31 eel	2qfF3e
l
bLcarf1@	zl		a3'stroke2Fb	l	@KdFNF2Of	n	Od2'NE2Ozf
n
OIO2OOI	d4eOej332ef&o'#dKOdb Lb2j3fo RnZ8FFOEl\ig	@9oe<cfR74ner@Kdaa%(RG74R(bFrHo(8'
7V4@Lkfrd4wK(SH.2'sNKSG5''^s';f"S5w'<&s('TwH't'Tw't'Edb;Uh6Ef&u'9	rind6fuW	g966'	hx뱅F*Uu7",Fu#&H9fYum378FZ,7zhVae}7EbFz]E8/'Z"8wz"a&iV71\&fƛl72}ffT7N273b61F"73+Greek)^aAacZg9њb$E=.E=FEI'$wh{FUOH`Gkidia1p  Ae&HcBeo`Gammaw91_Delt_vE09uo65MZe7=eE*v#The	29v#ItoF#Ke	fRLambdc%M 5Ne`(Xgr Xir2'(	P P'R`%Sig%DTo=f%Ueo/`f%PhC3o`f%KHpf%PsO`F%OmegS 3oHdi_%^Uv%aF 40
Gree kFont(Va l("&Hdd" )) = "&e acgr;" 'h941eR2URfRi3PeB0(udia|4)1)alpha5(2(bet'6'3gam*m74de*l(85epTsiP96zeP5e7';5Ie8th's%<5e9E
ioERea	kappF5eb
lam,bdD
RecE
muw(dnD	dơxCY5RcƠoĕ5cfFp6bfFrho/6bfƞsigmavC
b^fFB

bfFtaD6QbfƞuŞ6affOphiCE611ffOch"Q1.ffOq1fOom4egD61&Oidi672&O R2OoF722fOu322Ooh'2CyrcfFBcy<10AG;@D0;ZH;	f;Z;F;I`;&;J ;:K!f:L@:zP ]d*Ud*Fm	fkK*/TS	 M*S	o9d+SHC0f+HARCz[+Y	od2SOFTgEVd2Y=	FTYA7e&5bkV2eVXvVe"gVe"dV5ezhf/}zV/|iU8 P[|jVe!kkV/)e!lVoe!mVoe'|VoepV(ttUv9rfV?rk&9Oqts_wos!wo`fvhar&9/$Zfy	/$fsof10fRe10_$fF<yuf/fFyafA Romanq8A2dagge"822`jD%fZhellipq!w823@UpermilѮ9trade48
End@ Sub
@   SetSymbol)@ 32T "[3R!\4R&foral	U+5#,6#exist;7Z%\8\9SnS j40(41R)\*\+\C&minu.|C/\C0\C1[52\3\4\5\6\m7\8\9\:\, 6<r SymbolFo nt(61) =@ "="
	2UT>T3T?T4*&sime;454Agr26B7X8DeltaO9E570Phi37}&Gamme'7&H'&Ithetav6Kapp6LambdM7NO8C8CT/.8CPCSigP8CTOBYO-DBsP8DBOmegMI8BO8BTPs<9BZ!95C[K9Awrej4H9CB]@perpA_@(mac9?alph?9?b@?cο10 dj10Bepsi-110D!phis10dBgj10"I10Bio{1^0"o"k0k1J0#lQk10d#mju1D#n/"oF11"-M11d"B.&1"rhoτ"b"ta"u7d"p:1"RoPl12d"x2d"2d"z0>2"\{k`12!|yc!\}  M2 ,12# 3cCC#j334_14_b_b_b_b_b_b_b_b_a5_b_b_b_b_b_b_b_b_b_aN6_bS&U:16Chr(!$16&l16&z-uru6&infinU96f<6&PclubR6S&0diam&h0eartespadeharmw1lA7Ru17r1J7d17&(deg=7pl(usm7Pri17gN%tGPepro1-ep
8bulldivi6dncoNnO(1h0elli_mid
mdash$#z-0dNŢ0alepet3RxweRi19ott(1ţo##e0mptycae2cussep-2nsub22/tis>H4204n@420Ta&2unab*l2r;21QTcop}2ţtr J`8]*2֣padic4#-dot} olFont(2 16) = "& not;"
S(ymb7hanJdh8hor292iff4204Hlarl21uA2r73d74lozb5angrecopytrade(sum3mi3nlceil6Dflou3DECE\{̏3DDCE4Csqu/4CrPm4Dinα4DC4CQB4DQC4CrlZ55Dl5׈5D\}L65!5!? 

En`d SubA   SetUnico deEnts()
(3 @c!"Chr(34#c1$0%$0/m"9+DQ(P)۬c*c+,,-.m/0K1۫J2J3c4c5c6mc7c8c9{c:c(K6#f<k6c=c>c]
c@lmcAcBcC[cDcE7mcFcGcH۬cI\J\K\L\M\N\O[8P\Q\R\mS\T\U\V\W\VX\Y[9Z\[\\\lm]\^\_\`\a\b\c[10dmemfmmgmhmim#jm3kmCVlmSml1SnmSomSpmSqmSrmSsmmStmSumSvmSwldxmSymSzmS2T12c|c-s~1$^&n(bsp_1^&iXexc6
&ceC&pou##
&yenS
&brvba͊C&secc&um
&iD`&ordRs&laquo=
7zshwͪC&ѪTmac7ddj4plusmt``&acutԩ8micr8para8do84cedS:ۺr(18frac14	$2Uc&39diPques9tAPgrav.9C = "&Aacu te;"
Un icodeEnt@(194) c(ircp5ptildt6:umlr76ring88Eli9 CcediW200Egrav201202cu203f20I:I:6I:I:ETRH20N21OV1HOR+1HOQ+1HOIO21HtimesM31DHOslashNHUS3IVUS3IuQ32IUU+2IY2ITPHORN+2IsRz϶22Ha32mDIaSIa3DIaf2DIaQd$au23d$ae3$cu3$eR3$eR3$eQ3$je3d$i$i[$i$i4$etW4D$n24D$o4D$o4D$o4D$o$oqD$divi24D$o2u4d$u5$u5%U5$u5$y
$thorn5-u5$y
d$Amacr$ad$PAbre5d$a6d$AogoZ6D$aD$C 6$ct(26DCDcTPCdotM6Dc	264Ccar64c
74DDdT@Dstrok7]TdTEO(t27TeE)27e28EE(28etE_8tetGtg G-q .g4G284g294G?hP9tH
(29dhTH qdhtIWtitI$@	i(3ŭI!iID30ino3J0J30j30tJ 	tRj(3խKt;d1k kgreeV3L_RTltLtlL8;lLmi3%lEL_,l%NnNnNnPnapoM3ETNG|a3ue3EO9(35odOdb%.do3dOTo* deEnt(34 0) = "&R acute;"@
Unico1trt2vcedilv3v:4;aron;5;6S7sB8;circ;95Sg5sScg5sT,tmT,DJtSDJTstrokJ5J
tR6JUtiljdN6JuSJUPmacr6JuDJUbrevODJuSDJUrin6gNJuIUdbla6IuR7Iog7IDIW7DIwDI6Y$yd$Yum}7D$Zn7d$zd$ZdotM/Z8$$zq$ZW8U$$z4ePa8g50g71Q72!qP72 O73 P73D73$AO90$$Aacg-m90DEDEDIR$ O1fUOHidia1 APBPGamma,S91DeltHE
 ZP@E2D#TheU2D#Io
2"KPDLambd.2tM2tN2TXgr Xi=2dO1P6PR/SijgO3T1U3Ph3KHo3PsoQmeg3!ITdiO3U(9՛a1D!eket!iwu6alph4b?,t94$g60$dg6$epUzM9595tM6sm,io85kapp5l75mumnx.'o?%pNeqrho=6$sq6v#4ta6u96phi.6c/:6$9՘oo8(9Řd/Ƙo8o2uoh_DR(.EU98?~pi28dl100-t8#4	Bcy~4$GT04D0DZ*H0DZ04I04TJ0DK0DL0u?P0u:U0:F0:K$10:TS06!y  "&SHcy; "
Unico deEnt(1065) =CxB6xHARDz7<Y686SOF*T<9E70YU1A3b4vmgdrzVhqz8qipj2bkm~l?m?nDxp90t)f)kM9*tsQbsR* jharQr9ky10:sofi:10keAy&uBya81Bensp lemDI13$4!nupB2E!puncO2E!thi20!0hairD4dash21,n$m'Ȝ821B" "lsquoAB" "rr2Cd2"BJ2bdagge$ADdAbullKE=ld3^ helli.P24ApermiO4A1prime4_PE$b5[caret.5Dhy1"41Dot@ 45,in6planck$ *n7[copys147weierI147grx8!$trad48Q!ohm5<a(lep85<bejt0g!50-l853fracK53e2M535N33%Z3343s16T5E9lAr 5R9dua5brџ859$d@q?9vnwEe86#nlnrw-t60L$R861L!	t>+N6ga61d%ma961dh^A61T	61lg"&6g"&2'n(86glx,62U6ccu1.=cu1o0	9oluuddu063T!pr4Lrdr4r2.44x)424tP54k!G5l5D)rQ%xnoRnhP865T+~nRAu^d866v	.A		r(875vf2x 
Unicod eEnt(870 5) = "&comp;"6pPpartp78exis:8:n<B9<mptyZ1B1<abla2isin3:ot4epsivniWprod20*cofsumeminusfpmnplfdolowaV2DhA~fR35radic3D& <E3%inf`3DYang90O@4msa3c4sphOpmi4;no@54onIan3PHorHcaeV4GcuGin58con
there4.B5$becaP6dsi\6bA$6wreat/66$6nq7jime}72 2!gOn%P37$VnqESp8D3bE8asy8bu(eDoE8ef3$erdcolon:e/9!eci/c9!`9wedgeqDtrinL8080dequO80M$c6lP/gPDlEi80D/gP.l.gp1Ln *8uxG1twix1tnlR1ng1n)81n81cB881882tl@82%Tgln2t
p>*8*2d
sNs8wpre?2D
scxp"r883*scWn
8E|nſ
85|sub|sOh83%_4/3uT8{(884}n@|184$ 8xuߙq q>4y|84O|s+5!q/88r5!sqOok?05t=o8&5=me851!oso/55odh85o_a "o_886odas86.^6ets6v6!8per!ōvD/887DVo`7V_	74nDn;TntnV	8	lz%rmumߗf85ca'Uveeba]94"<9diaޯ90divonx$bowt_9l&r9lthreGB deEnt(89 08) = "& rthree;"
UnicoB9xbsimt1"0:cuvv11:wed12Sub3pR4Ca5u6forkTldot2rLlqGgoleoge)oels)oegAocuepr73~sc?npry2nsc3D+ln 3+fgSD,pr,sc,ltriO-rQ4Dtn5:4DunDvve(lli65Ba
rѽ6-lceiUO6-rR7-lPflooy7-r-drcro-7Rdl$=uD=u8DtelreP8Dtar4ge/p8d&orn=8&@9&? D"frowO9smi"l-E900Dla.ndr25$b@͕960$uhbl$ld)bloco1n
14-961fk120`3o3Ksqu.4D!=`fD,F-C964mmarke-b96(xuπ5S!P(6D;xdq6d6dSd_Pdn7%#ozci7Fk;.7asm7!5phon379!dfema579C
(982sppaderclubnheart3DiamE3fla*8B33natu8B33sharY1000che^;c5rosm	1/!}	2loz=esexB'6425 "ffli2N	i(Rtrft6
 h
-4063! !(oral7zc<#$"exisp5%~5!nm(OS;)*=+Umi\nu]'	.4m#/#0#1ۏ23456m# 78T>9{:S3m<=>[?&(&AgL#&B40EVX&Delta2&ECH&Ph202&PGamm0ecH#&Id@thetav/2Kapp0ambd012&M40%NO 4016) =  "&Pi;"
 UnicodeEPnt(- 5TPhetax4g
r838SigmUv2<T;1YU0sXvx0B9Omegx0J8X[07Pjs0Z[0there64W]pelrp_mDac399alphGb{s@DGchNG DGdelϊepsimDIphis;@ĒgamϒDJ-Ēio%DKP%8DKkappPK8DKlambdKmu48KnJo398EJ`8ItaQ8JrhoP$%j$%ta07%u;O7$p1?7$ou397$x7$+$zB7#%\{7g c$|#\}c/D#sim3T93U3Chr(39)N:le*39z-uru:infiVnf29c(lubH29diam9heart:spade%har2:llA%us&rs%dsD<deg/)1&plusm0-1$&Prim91$&gq%t %"1%pron39:1%p 1%bull1divid	91nD91con9y29yhelli?9zmidOzmdashR0z-0dO9!zalep90Iet90Rx0wei|-390o438e{o!&89A&empty9I&ca89&cu89s@	%sep89nsub/	9-89is_M38%{nu88%{a)tnabl|8%{r?@cop8E{|tr@Ou{`<_-8V{adic81dot8S{an8u{oŏX8e{iff_E{lTe{uXT%rT%dT%lozO	7tlT6q7;6T%suҁ3867L4%~nNtdlceiN86tuflo585T?oa44sq韧854r_Din185DO/u385$4$4/$r/($E., nt(-3844 ) = "&mi d;"
UnicodeE3p4\}d2 6
 End Sub
 , FindSymbolC  s()
Set RomanFonts  
For n  2 To Rtf CifFileL inecount ' l  1 c Qains header    searchpo"s F1
	DofirstoccurenceTrueback,0	activef3" %so0InS(tr(9,Z(n), "\'"If  0 Then lnot f rd?cExiLt fIf'  see if  at starth of:1I'@=Mid(Ka40, 47hexL&H"  & Rightb(, 2@Val	@	' n eed to l ook in previousfi1tmprtf=b - N1D{DGos`kiponXm`ake s c eding ch ar isn't@y [M#,#J\"Hc'9ag@O4IQ+ .keep &/g@Lhere toANa(aRjd' deterBmmfullB,  e.g. \'<xxDK osEEawEMsgBoxl!' ZCB'wLeft(=,H0J\"{ \f0 GNOMIS}^Len) @9- 3c7/#nt
t
D[6numclosDbracedopenwaBoStep -Q$' $0naes2te= D)"naA`Select CasSD#B"ӡ'igno`Xeveryth  il  eC pNi {z#N&m/)sp defaulE>@M"@@tdu@wS \K[
>1k' wiQ a lE gr oup so do ! ElsEFxSeckp-r t \u# lz time \0und$G|ϐ|q">Fa`(, 7) Li Q"YatFnt!:Qoq, 59!1 len7 + 3nd %  66y(, 6ŀ6 ))* 5
eolcPBne,t,Y1 5dй''@4= 4o'< \ f999 etcs++fp?'31$h h0//UG///   f#A1  #w0Next  
Nc	qbN
 qʋ}0Q;'
S!gaQapp ropriate rme5uRqQC_]B\bAlISooo
ab
 cementsy@mb = S `o@lFont(o lcode)
b   lenL 3XCase CeFntrepla
 8.GreekS.VTurT.)Hebrew*.,Arabic,.,Balt,.CyYWA"UniA"՗Eǭpos- +  End Sele"cIf O"" ThenQ?,tr"{\f0 " &N& "}Dtmprtfline@Rtf CifFileL (n7'CLeft(G, "1),@& RighLen) -.	
	k t'look in againsearc2h6+ 1tr@) ' or9g th of an^yI,c
k !" .keing:Loop#
innext JN@ `ErRoman`C(	`
bIub
 Sub Find Fields(@Setg
' e.g.  E {\*\fldi nst SYMB OL 68 \\(f ""s 10} B&Str@WF%n 2 To Dco
ub' (move)feeds xetc#QK@,ar(, Chr(9), ""˧	_10?pZ,13)L1Do  kc= In ,(,' t, S(1d'MsgBo^xd#0C'@ not f1dbExit EMIfc  H h ?MidOǭ@6, 3$#@Val' at>is po int determM by q6uT7'A'oA9`r }}} (igno2.fPeabnow!D	cMsE03K(2DnL-+
PN1f!:end!1, 9.}}"IwasS00 Or Nullproblem' 2beSoneclsd;>noaBQx- ba'lWK9clP bb#y- 2w4
Ei=K'3-s") + 30 + 2D%5X  gg?f?f?f	c
 Functi1VInfi@n(dataI As C`,f :PkCbF ,5, vbT0pCompar!',J> K
=qxY,I0E,6-LO
u
SplitAtE]ayq"1)`
Dim R~s(60  arqIntege>rY(US= 04#c Do WhbF;!
) > 78dR\ 	e:,q'see icrlfČ 5kI	CrLf 0'uw5w+ AG'@ check[r`0 some spps! 	R Ł 	7	6Fg	I<>еq_F Q_]w9(q' ak whe -@KD-$Q[$       Else
  ' brea k at tab?8pos =  InStr(1 , partli ne, Chr(9))Z Iff > 0 Then>Do Whil e Right(M1) <>S2## Lef	3LenA) - 1pLoopK somewhere e"\"@ -d7AGW\M,QM"cNA
]O,"OO{PASQABBnd IfO$EE4count@+ 1sg)(tmp}v, aoAoJq`g#c	For x 	1 Tonew$
& s(x) & vbCrLf '!10Next x=	' i.e. l overs Ng) KvS!t AtEvy
p"OG4
Functio Sub Re placeInfSup(Dim str As ing
(n(RtfCitfFL@D)d= (n`
g F(cperDnwUpg
! `#
B7 " 
 !BoldItalic""q"
 e0#a=7#`Build"lA rrayFromVar(`St m?Artfno!Integer
RedE A(60  $9

t<&W= N0+tf	' Clipboar@d.GetT7(a`9FRTF ufirsry t o isolate head=<inP -t, "\0J a d{҈d0<8<'MsgBox:& " F:Z<9		 WA`QX+ 4Aa0 S!It)Z@Y--&A7h Doa1 @9X	Xd	S?PD
le nadju$= ~41 QZQZ2.' loo gain fpg$d  object resulte2 0ot(i9QY(34op{+)02p@/	R,>3?r135s
	 nnop(60AK
@+ +P-b	' have ?accept @choicx+/		>	Or?m1 0Bo˰J=r'kuU 2hBq	U P!	ӟmpn(K+wmU3fS   ' @samlleKs hould bel ut ch eck its notwJ3~,nsmab, erpositi on(n)
  Exit Fornd If<@Next n<E6' now have   of  accepta ble breakdparins
t g&= smallest   lenadjust =  op tmprtfline Left(  I, S+7Cg@no B+ 1= 'RtfCifFileL3() =! RighELenK) -L-La#ElseI nStr(1,  ;r"\d"If0> 0 The΁`Tx| =[Z4#C*D?IEC&@8IT> 20  8A9	:C0c Do?m	GGLo op

' anylovers:+ pD	
pcounЌ|	eDim '{p:
 n91 TolM,	nD
ņ
EraseZc`"Suba  @SplitSIntoTaArr@ay(txteam As #t$= bG%arowC1AI)
C@ idx 04g should c ontain # cell#8d ## deli8mit9C'= repG, Ch@~3), "|V'0tm-9"B", vbCrLf'" `9)`]e & $ /( a DqCn() ' cC*'sIb2MD6@ a	A	  BFKbM!
- 1b<ɠ$'`g
@ft"

  2 31p/V~s P/a9remQL Qzfeeds Pfroms1=' "Pto rqen>e RI	, :maxcol
`8Ip9|
S
5nP/2!2(168 ?S'$ Hz/B$Mz& $, FlP${%p$b%qe$`3Mbe sing 	 (i.e.P 0s) orq t end` ks{=ZF r0D@	  	 B@AOJQ6 2!s#7'> +љ =	q":'4Q6V/	"o~Preser x@SCw
   IucryPr`ocess!znamer3ifdatamzD@BooleaDSbfg
Ap	Yca.Scr`eenUpp%= Fa'`sawPCsC  fil2e`'CoRe2a)=  BWrɀng0 2,1$+= 3%Tr istateUseDefaulAF-@Tru-p%	"f s, f,ESePt fsCpxt eObject("0ipt.SystemS	 fs.OpenTextgrt, 	='	A
 Do WhP f.Atp+Of<>u1m%nC't f.a_0@"22?&Î0	3@
=	B 0Clo1ӕNoth@+eGet~F(h3 Bpuild R@FjVarFin dSymbolCodaj FieltmReplaceInfSu BoldItalic!'TCpVsr   eTt,fcUczed@ by su stuf@OD;Z`1' Yr: epinstr( RtfCifFi leLine(n ), "\cell " ${\f0$ #8#}T)
' = rR\\"7Q}Q}4Qrowzy	3P x'w  w'vminus5AO&B;LoemdashM---n!A3|!!newCStreLam & NJ
Next nƀ write @  rtf to "f 
   SePt fsCt eObject( "Scripting.System"  fs.OpenTCA(tmp#n ame, ForW ! , Tri stateFalse  '!n0
aDo Wh  f.AtEnHdOf<>ueAn + 1N A.Readlqo& C hr(10Loopf.B)"ClosC%#Noth`N
,&
!3n |o`' in word3save` as t)#t hedocDocument.- c.Activ,Ettac 	 Templ@.S d
Tra*(As 9N@7:=93 :mat:= _c# wd!A, LockC$om:==, Pass:="@[AddToReFc@s:=a,i
.A:Only# dedEmbedType\Fo@%F Na@$ePictuzr@ras0Data&As AOCELetterB
--EChange  wdDoDada8H# 6H' convertEG pecific  :If Rights6)`
".1." The9`Tablea  *Cia=To NECCEw|#eo /, d@qC & @vbCrLf "4;" ,jDnd If
	48fm =Tq	 .Rich	Box122),GUnload 0ClearAl lVars'Fm`Edit.S how
escapeM SubA7   Get+(D 9Str >DimD f .tbl

= =ndGroupӔa]	]"0! Exi*t
'deJfind  ROMA N;
Roma0nFnt"Nu 9r(B~ ARIALArxial'@ SYMBOSymboeCECeo' GREEK`GreekGTURT<ur`d(H@EBREW)H`ebrew()5ARABIC1Arabic??(5BALTICPBalt5b"4CyrP #rhq$ ids of kPnR064Funponx/{G4, "1n5 C!9rtpo{In7(1,і  9 4> 0RIF21P5G5e
 H 3BraceQh P To LenGҳ Sel  Case Midq, nJ"{"umjkb}jF		g
P= #gendcgFPwլ<d, -   bS
 eW 
k,7!,&idp'  )iPs L#AZ%qlfPp|ar'$ouit
or w- 1 1 Step - @Msg l nar testchar?d!4"\heck i f \f999 xetc|5@) Likef8###1*bf  = Mid(f onttblst r, n, 5)
  Exit ForDnd $If<If4)  Like "\ f##" TheBndGetF Number4@303&AEls
enENext zy0

 FuncHtio 
  ReplaceS ub(RtfSt ream As !ing)
Dim Ope(nBrs	Close	SubPotmp SrchF	Analysis
.sCharCountA9D }1Do

, o@F,SIJn@ (, D, @!", 0@nD> 0ğ' f irst che@ck thagot  0:
Ā"\	ő1D+  4GoTo ke look gfor GzA [a-z]{'  cut  v str@" " aDp  (start ?"" n ^" 'A" `, LenQ) - !
' NtowDe! ALcA by0ar Bil pattern`und 1 FF.A J`@1  /Ad 'acAP gB6e[=ft(F	,G
:.V [p' .@card  groups sollow5can endAS!F*\<inEH&)- 6_*1G0ntC5''Tup3G	~d, Z(super<?r{%aQ+]4}%4Wm9sse%-no2%ol}1W/'&@*^ZX5b-#$<߯	Q1 		{@Right(H:, 2)0"\ '1 K={!_G}Q1 q}}ybi\}PT ' ignorTa1 O@*be um^`"_pB^q\s^K/&"&..'qw   3®@ Hf eedmr nloop en assumeEnposgfPLex-  1) & "{ \f0 <inf>& !`|'GğOaa0MK@3/S @MsgBox/;/&0ᵵ"qseps 
߱ 113D0Ҁ10>fpdP	np!L#
ѿ  0/D/Ӊ<e$Dn@fWT ۣd *5gb"= 2
n RtfStrea m, "\dn" , 0)
If  DnPos >  0 Then 
' first  check t hat not  sub0:`Mid(~, 4)$ =0"Srch=+ 1 
GoTo k eeplooki@ngford tE nd If^Likea[a-z]9e' cut t@mp str B B analys is (starTt {" z"~"~\  v Ar, Len) - !Now58eCs ar byunti l patter"nPund C`harCo  @0 
 Close   For1  H. !	 'ccjADF > Left(,H% p*\pla<inp2G9- 6GExit7HGTdn4H'ʭA
T=D==G-G${0Right(6, 2{a2ElseGaN umOpenBraces@FjKoa}T\~}h "w
 ' ignorLB9	 #'cA} groupk.	//"Ij1.e$. G
bee }onaa 7a-7`"Qup<3v
a % egper?nt??r YaGfi$rJp}*\nosu09nZ,O*&3
Nextk
ayif e #ednppPen  assume ep0
3pos`E?F ORr]1)  & "{\f0@ <inf>PF&~ CHB@@v'C Sub>+ 3-!@dG/ _/SMsgBoxND 
0Aaw' seqs#Щ toof r@ kme05PagЊ@e	}2@p@U!Ѳfd
R)Do G0@Loo\R9Dn0sFu`nctioP  S2 As ) 
Dim x&j3# FtSZP"=#<B%AJp H3E In(, h(UfVϏϟq%, 7@9@"/pwW" RŪZPoD@ " .@_ertOjpMXсq>= @B2 En/=T	X , -` @xds sopjllowAJcani`!pEq  Analysis Str Like  "*\plai n" Then
  Close Pos = Ch arCount - 6JExit For*nd If&:If @super0(7OV#p"Gup(E31E"Cd)WCsubC4Cpar!3L'1noE11EEV*M{M@@Right(q,H 2) ~"\2ElseKNumO penBraceA+ -,7}' firs t check  that notp \}:z
 ' ignorL	 #_'c K groupk/O!"1.eD. G
bef  } ---Whyz?'	@$	outsideua>aC7'-Next
"
f eed ! n!loop`Hen assume eU0J1'posJRt"feameLeft(, S!1- 1) & "{\f0 < 2> M& nLen)&@.);5 `m]x	/	, 	`MsgBox3//ub`
00 S' se@;!srch  toof repcemed+@i`ng agp'S@c	 p2Qa tstartt !0W1yq
@`4 Ef͠dPDo P"юke
ook	S %0er 
L@%|
R #F@unctioJ
  $Up! XAs  ) 
Dim W&!3cJ3Up tmpSS(&)"*1
 0
 
3 In
(t$, 3"\, 1%V> 0aa0 Mid, , 43p<up'#%
GoTo [Zpү㷰[a-z]Um_ _rY@' cut  Xstr!La V(/ L"@""N\ @8 = o~s//@C 16N(ow eqstrqQc@ byyar il p@attern
uLnd=   5$AZ1  _E@1 '1c}=r 5,=M[,Xd /(Ԩq#
s*5b'p,P<upz+' o Td w  /	 up ϞJ %qQ1 $/LB<=fTx(*ּSA n ' igno re
  ElsNumClo seBraces = @+ 1IfLnOpen 6 Thec^ sub gproupMPoCharCount - 1.e. Rbef	  }CExit Fornd IfEAnalysi sStr Lik e "*\dn"!n32].;[4;superd6Hpa<	xno<'\1WzCKNext !

@f "eed   nAloop tp assume e#@Z` atgpos:
RtfeamLeft(, Upp o) & "{\f0 <>}"!RighLen) v`)Sub+ 3infam-(C=$+ n 0%/tr(MsgBox % 100 &Ŷ@ set:src"h@7 to":of  repl@me@?king again<S+=   2"%G  !CnotGund
RDo FAkeoo
@Lup
L LGUpG)Fun`ctione BRBoldGE @As Str@)G
Dim̧F9#cControltmp 
aZFD! %m
%HcJp,BK!'= 0
,b (In(	, ), "\b8", Bh> 0' firs{heck p>\b0@MiT, 7,17=0u[#
GohTo  c"'sGcin et8c
s\b[a-z]?	?	?	!?	cut P! sr&Raz (startQ"b" a 8g$= 'y4, Ok
q<Now ce1*c0 by r  il pattern9'_p"$Lb$BZ1 pa	WV@EE'cr=r B51= a$X} / 1qu@NiM8`gX=ڟsbv1@oio
5f' *\up
0'W' n? \d*\ߔCߔ___=x.0W61o t/¼{?Heq  }h, 2)!"\ O0b@ ?AЛ;7cRP\}GT1gO@4R	HE umD`"qpet V0vE E>(; ˵0 
  Ne xt CharC ount

 ' if exi ted for nloop t hen assu me end s ub at closepos:z 
RtfStr eam = Left( , Co ntrolPos  - 1) &  "{\f0 <b>}" Righ
0Len?) 4A+ A oSubk+ 35inf6-nEnd?b=	g+ C69w
%N/  MsgBox FE100)	' set|srcht tozof r eplaceme nt be@e @king aghainS A@=* 
' @j0Olse  not@@und
E Do If
dkeooc;ÌL !Bold@FFun`ctionA RCItalic As Str 0)
Dim  NumOpenBr <sBxtmp FAnalysis
MCDI[1;P
.G]O.cXIn (		, &*, "\i", aDIf]`> 0 TN firs`heck !;\b05Mid.,Ar=!0"d	@G
GoTo BF'Ócin  etc
Like[a-z]#cut B, sLa? ( start!"b" &"\b" rH= (j, Now eaTc`I by  il pattern#s 8'Fه= @KaF@y1 `5H'}ac! g< c$F	 H`
G<C:*\ inE:k - 6	($e'4i{[3
' upX'I4' ^ oW /	p5*{jX, 2)0"\ E d1-O % V@' qpO1 '/P"P}3Ep trTqignoreWO@K]nan1EXpR"group	5pQ.e."}??71 111  p_DPDar?D4"<i*\nosupersu`b'<U  V.=]__p_B`
__h~tkoo1a'Dof2 ?Țse" s
,
/i//,`m1SU0qNB$!Tf,VӾf#vertTPToTable (txtfilenap7s(BGeneraPCifru :p`d tdl_
$P@Read!= 1,  Writ 2 App4TriteUs eDm efault =  -2, Tri stateTru
e1Fals!L0
   Di m fs, f, n"Set " jCre Obje ct("Scri pting.Fi leSystem6")
t ; :fs.OpenText-(txtf 5name,  ForRead7 J G H .st }mJ.,all f.Close
oNoth's O 0SplitStr IntoT ableArra$y ;
nu mrows As  eger
noof
= U Bound(tmbp, 1 `clolA2 ~ rO1 To &{jc7(`r, c) m/BC
N_ c
.' re move any blank 2 at end of tB?A?Boolea
=u `Do
DIf2 <  6h en Exit AA5nE5EGF2AC4"" T:
NE
 @1If< ,?&L@&- .1@/ELo$op:GorescapeOconvertAD@0bodyAR
= ""
c@ ' 5. combin kwith de limitersV!!R
'F+ %2EK&1/?skip<on@A%%cdrttag+fin} zT, "<inf>!`P/%w<PdG s &L:	>ߍ	 6|n&ycaa -sN.x /^s
+ repin,~<..4 e In=4= "	 #`vth"MyGsupuMa/%M"<M M=YMMjR&	 e&
&gr&#< "PARG?A#"c)F&&=p3?28&'Nit'Q*/&DM* T&zMVv+M&юCMM	c&&rE< @`"=PP &O"&!s&ao&o&8*bO&_q<b?&?&8&/&/&"&&t&u&	&&!"$	\%%%Z	Db></7p	%roPePb>R.%% %@%%|!t%' !al pure CIFp sions: -  do befomsq @!A/J#6ᒿ" *@Chr(9) "4OGEE++qAvI_':D3l!, v,״ ) = repi nstrInfi n(tmpArr ay(r, c) , "<b> "    ")
~ </b> 1<it 	4{9/ / & Chr(9 J"0 ,UQ((AEPJ)
C Vinf></AZOT[0G"C<YJsup@3Aq3@3n3 1	kF3p+$-G@`Eh4={5$?1BX!""B!-Kl`ZG6b?.<3B
m
)B)hpgE~Ҧ?,e^_L*Gti>D/cConve rtEntitiesToCifl=If Le ) > 70 Then ";vbCrLf$& 
Else2i39)und If
skipone:  
    runningl inelen +u/)"5$a<=#?0+ 2C'  need to @split  herR@-SStrAtE`ightyt ablebody 1  cp1a?& KV>oA  E 7^ci
' Next cO#
0t
r"1 head"# S tart of r daq ock-,_Extr$aT1_qTime+V 
	 & `This$can be @append%t he CIF i n a separate	L0w=7W; add01 rapo`manually,_e /`advis0include  m
most lvent__007(e.g. i heyQ	7a `ticular 06ucture). A maximumhree;ppermitt  {i.e. ...__A_ ,]B_CQ)"#__R&e follow1 +name$s $'usfors!La"s, note foot :??	#)_geom_ D_AC# (	B @ Ca 	3#i/-'-o:
"

@+
Aootooo8E/


C CrLf
ta blehead = X& "#;@" & vbD  If you u se these , includn  loo p below,  along with any# o \r non -standar d dataitemswish  to publ .+[_$ "_0_manuscript_w_extra_Fa;
Fo Z 1 To^ofcolsChr(39)3geom+A_FnbNA n-	3L5n)"_&M$  
' returnâ t*:
 ReDim Prrve Rtf GeneratedCifT(count)+ÌBUbodyDG"# End of,AblocHk."3Fm (Clipbo.*T 5Box.ߞE"B&% Exit Sub 
escape
convert---63` "`%
(  CTo!< &(txt filename  As Stri8ng,{a"era1foot) B

AJ`
strHeam
Popen  "bn ci<`
st vR@!A= 1,Writ2Ap 	d#3`  !`Tri teUs eDefault -TrueGA
EFal= 0	!fs, f,y  Set( fsCte Object("&S".F (Sysc"!Ac@fs.O`S."$, & 	!G*= f.allf.Close
bN@?@&41final@re CIFA2@UsionsU@xt8=8pin,  "<b></b>N"@!ire  ?#!#it !VaDmd
In@M 
 ?S_v?<P

R</" #PW, s  $EZ$(!vav0XW!' f sup6+tr inf+P ?D 9<,#p
Q 
?D
E


 "</$
(( E01#x?Rq <UD2//_s#qP/$??_	$80b[_P	1p77fm~77eO,E,P^#ż@t<i>;/;Entes2Bnew&
z= Split AtEighty;r,  
Do
ALeft([2)0TheRA
LLen ) - P 2)
Else Pxit Do @ nd If
Loop

L If Right (newtxts tream, 2 ) = vbCr Lf ThenF
	> 6LeffLen
) - G v' return  _ cift ext
'Ms`gBox eR tfGeneratedCifT 3 	 B Edit0.UpdWi`thNewFmClipboard. B.= "ana meheader< &X footer
 E Sub
 Function  Convert Entities4To6(~ A s String
=pinA
, "&A;B" \%A"(dLegA
%timesC\(==*\db h&z-dbndtts:D}q, gXp lusmnB+-mn-+!~"&ne\\neƅ"&ranH\Ale>lA!rrdr!arrowSrAmreol@$lC)infi<\2\`tyz-pdbdtfbbL"&alphaabetFbchicdeldepsiv?RYphfgammd)nge"hWi:oeioeu"katppD
kulambdlmumOOE:nDnOOEomtic4Doup,pOOEth3T"/V}Nhorsig%sf
at__Uu6C
uooeomeg$"[/&xx&
VzNzUa`U_B]BCUC__UDUDuEgt3E__UP5
F__UGWRGuENH__UIVRIooeKWRKuLXRLMd:MOOENDNOOEOWROuPD:POOE@eQuRERR__USGRSuTERT__UUHUokoeOGRW}۳ stream, @"&Xi;" p\ X")
ciftxt = repin 4(	\PsjY)jZetJaZl
'  accents:Rtfto0CifA"\"  & Chr(39) acute;E`grav1.dot;,cedil0^irc~Ptild1<(brerK<carLon-og>adblaKo slashí/o// okB<eܦ?no34umÙ>szldigC&sA!t' Exit Sub 
' Roma@n fontw whellip...'@dagger\݃ ?D)	permav	@{\f0\',L Case(Hex@(137)) "}
$"OE-
40
buls@?49
00nrdb--m"?traA53##oe.56
?E$bs\T`&iexc561''afyrK62H҃p0oundAAx16.o	yeP`9C465_brvbaA969sec~

?"&copy?uD69

a
ordfOE7IDlaquzoB`>nws7O'/.sh3_G/vrelO!@!74/`<_Cs&macth=plusm{/c7$micr/ 8OC%m?7par3OA?!?!3!mido!c!8\40
!/m//8?rr/t`ҿ@frac14	1/4O"O"F"223S3Siques{N)9i$^^^A寍 (9881uETHB)x(20_$$"&T0HORN$22y/


et

0divfi24	E
c iftxtstr eam = reHpin h(c,  "&thorn;" ({\f0\ '" & LCa se(Hex(254)) ""}" )

Con vertEnti tiesToCif 	
End  Function4
 Rtft3Accen@t(data   As String, acod.e	 ,
')
 Dim test0char	ypos O1o
RB In 7(, B, 2, 0uIfB >@ 0 Thee '   - 1 + Len([)/*)	'
uf,5 (C hr(38Mid+ 2, 1"acute;"
M' d@o noth  c> Mends \' etcD
Exit D E@Else: mIXf
 8-="5 look@s likeOiLtyA|Fc= T10
Select @nc( `65 To 9h0
_N3D&& Righ[]
h-_)@v2 dE@m}̈ 97+122?,?,A_!? @fA3`F^{D  F=HeGLoop
K}`'$8냡a                                                                                                                                                                                                                                                                                                                                                                                                                             <         N 0 { F C F B 3 D 2 A - A 0 F A - 1 0 6 8 - A 7 3 8 - 0 8 0 0 2 B 3 3 7 1 B 5 }        (                  %     %   *0        
                              )
                 %   i        
p                  (          )
H      P     x  %   i      if t
                  	 	       )
             %   `   8   p     B@`   8   p                     `       8   p      8                  3A                                                                >   
        	      	      	      	      	      	      	     "        	            8        P                                	      
               (                                              	     "                                (      0      8      @      H      P      `      h      p      x                            	      	      	      	      	      	      	     "                      
             	            	      	       ] 8     


`         MsgBox FacifitateCommandha  
! `
  !   ecti I If you close this document, you will end the current CIF editing session.     # Do you wish to close this document?    J  $  '     L  O f '   d    k      |  e       
!   z   I If you close this document, you will end the current CIF editing session.     # Do you wish to close this document?    J  $  '     L     '   d H   k @   k 8   k 0   o (          
!   z    
! ! 
 5 
   
9 
  
9 
  
9 
q   q     
! !  5 
   
9 
  
9 
  
9 
q   q   k   o   p      !  Z 	  d     RB@        k h  o `  X     Attribut e VB_Nam e = "Wor dDocClass"

Bas0{FCFB3 D2A-A0FA -1068-A7 38-08002 B3371B5}|GlobalSpacFalsedCreatablPredecla Id CExposeTru`Temp lateDerivCu 
                     Microsoft Forms 2.0 Form    Embedded Object     9q                        VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifClipboard 
   Caption         =   "printCIF - clipboard"
   ClientHeight    =   4965
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7470
   ShowModal       =   0   'False
   TypeInfoVer     =   72
End
 $     '    }  '  R          R  KQ   DBstomizDPubli c WithEv ents App As .`ation	j .VarHelpID Z-1
 P F J Sub)_um0Bef oreClg(ByVal 8 , Cancel	Boolean )
'MsgB ox Facifit,Comma@nd
If!.achedC@% MacroContainer.The 3respLonB("you cA& th@is doc,, will ende curr 3 CIF e diting sess@J." & vbCrLf "DoDsh t"o?",OK݃=,8,>   @'?,HC3M= ;CEB-If

R;@LB G	e.Ful¹@Iucr Rtffilen
TTE6*@!* Q*e  _!b`nt``22!zb_ U.Para graphFor8matcAA".S8hadXA.Textur!wjqbNon e . 
eground PatternColor`Ewd",Au cBackti,#	UEF Ga$.#y LɮM WindowSelecChangeMA K FmCif.He ight < 9.0c`E.F etchDIt>e`$#F                                          0*	 pH  d   Template ProjectQ H  @

=
|	3A J<
 9stdole>s t  d o l eP  h %^ * \G{00020430- C 
0046}# 2.0#0#C: \WINDOWS \System32\Se2.tl b#OLE Au tomation 0 EOfficEO f i c5EE2D F< 4 1 1 b 3 3 8 b _ W o r d D o c C l a s s ;            0    x    `  h         P  8                   H  0  ӳyޚE`Ee#94   9I8Mu~   zSvO5Lخ   vUABK8<:   _J[icOjR   oY}ITˊ߫s   SRDK#yM   y	nC(~8(LR   *A')G.   a9HIEg1   }ŶJ$FM^<ӄ   z]Ww@n<بe   7+p%FqsJ     btm@rfc   'Ļ	fKA-   %AAՎPi[   ^9"B@¸Ѫm   cپ\oJ/؂h     A88B؀^(   h9$Bѵ\   ޺ZLh&|   0pZrNΨ     RUkg)hIBpaw~_           ~         b  Q    fWordk VBA Win16~ Win32 Mac VBA6# Project1
 stdole` TemplateProjectE ThisDocument< 	   _Evaluate Officeu Documentj Module1b CifActaC (!   CifAuthorDataG CifAuthorName1 CifAuthorAddressR CifAuthorAddressID0# CifAuthorFootnote8 (!   CifComputerProgs# CifProgDatavalue]4 RtfProgStyleNo6 (   PrintCifCoordinates( (   PrintFlaggedGeometry? (   PrintSortedComputerPrograms% (   PrintSynopsis1 (   DontPrintAcknowledgements4 (   TeXinCIFt (   SynopsisStart (   SynopsisEnd
l (   AbstractStartC (   AbstractEnd> (   CommentStart 
(   CommentEnd# (   ExpPrepStart 
(   ExpPrepEndl' (   ExpRefStartl 	(   ExpRefEnd  (   AckStart (   AckEnd>J (   RefStart: (   RefEnd\ (   FigStart (   FigEndg 	CifAuthor\A fncountIQ HatomsPresentI 
CifExpData CifExpDataCountY pdmurequiredI prognameH combinedj proglistE (   ActaCBuildPaperE CiffilenameW rtffilename@ DontBuildArray (   RtfCifStyleD (   ClearArraysEtc%6 (   IUCrCifFilename9 (   IucrRtffilenamet rtftmpfilename.  Kill CifTools^ (   PutCifInArrayOfLines"c (   SetDatablocks7 (   ActaCBuildBodyc (   ActaCBuildExpi (   ActaCBuildEndMatterʒ dn\ (   datablockcount{I 	(   datablock CifStructuredata (   GetCoordinatesTable4n (   GetAdpTable[^ (   GetExtraTable CifRtfWrite (   RtfWriteAndPrependHeader (   RtfWriteEnd rtfoutputstring CifExtractUniv 
(   GetCifdataJ ne (   tmpCifDataitem CifDatavalue RtfStyleNummber (   RtfWrite (   RtfWriteParaM (   GetCifauthorsUY (   RtfCifStyleCam   	  	               * \ G { 0 0 0 2 0 4 E F - 0 0 0 0 - 0 0 0 0 - C 0 0 0 - 0 0 0 0 0 0 0 0 0 0 4 6 } # 4 . 0 # 9 # C : \ P R O G R A ~ 1 \ C O M M O N ~ 1 \ M I C R O S ~ 1 \ V B A \ V B A 6 \ V B E 6 . D L L # V i s u a l   B a s i c   F o r   A p p l i c a t i o n s             * \ G { 0 0 0 2 0 9 0 5 - 0 0 0 0 - 0 0 0 0 - C 0 0 0 - 0 0 0 0 0 0 0 0 0 0 4 6 } # 8 . 1 # 0 # C : \ P r o g r a m   F i l e s \ M i c r o s o f t   O f f i c e \ O f f i c e \ M S W O R D 9 . O L B # M i c r o s o f t   W o r d   9 . 0   O b j e c t   L i b r a r y              * \ G { 0 0 0 2 0 4 3 0 - 0 0 0 0 - 0 0 0 0 - C 0 0 0 - 0 0 0 0 0 0 0 0 0 0 4 6 } # 2 . 0 # 0 # C : \ W I N D O W S \ S y s t e m 3 2 \ S t d o l e 2 . t l b # O L E   A u t o m a t i o n             
* \ G { 2 D F 8 D 0 4 C - 5 B F A - 1 0 1 B - B D E 5 - 0 0 A A 0 0 4 4 D E 5 2 } # 2 . 1 # 0 # C : \ P r o g r a m   F i l e s \ M i c r o s o f t   O f f i c e \ O f f i c e \ M S O 9 . D L L # M i c r o s o f t   O f f i c e   9 . 0   O b j e c t   L i b r a r y              * \ G { 0 D 4 5 2 E E 1 - E 0 8 F - 1 0 1 A - 8 5 2 E - 0 2 6 0 8 C 4 D 0 B B 4 } # 2 . 0 # 0 # C : \ W I N D O W S \ S y s t e m 3 2 \ F M 2 0 . D L L # M i c r o s o f t   F o r m s   2 . 0   O b j e c t   L i b r a r y             * \ G { 9 A C A 9 D 6 9 - E B A B - 4 F 4 F - B 6 0 3 - A 0 7 0 4 D 1 1 2 C 3 1 } # 2 . 0 # 0 # C : \ D O C U M E ~ 1 \ s w \ L O C A L S ~ 1 \ T e m p \ V B E \ M S F o r m s . e x d # M i c r o s o f t   F o r m s   2 . 0   O b j e c t   L i b r a r y              .E.`M   * \ G { 8 3 1 F D D 1 6 - 0 C 5 C - 1 1 D 2 - A 9 F C - 0 0 0 0 F 8 7 5 4 D A 1 } # 2 . 0 # 0 # C : \ W I N D O W S \ s y s t e m 3 2 \ M S C O M C T L . O C X # M i c r o s o f t   W i n d o w s   C o m m o n   C o n t r o l s   6 . 0   ( S P 4 )                              
         3A        	                                T h i s D o c u m e n t  1 6 4 1 1 b 3 3 8 7  T h i s D o c u m e n t M          A   C i f A c t a C  1 8 4 1 1 b 3 3 8 b  C i f A c t a C 	         C:  C i f E d i t  1 9 4 1 1 b 3 3 8 b R C i f E d i t       0   *   C i f E x t r a c t U n i v  1 : 4 1 1 b 3 3 8 b  C i f E x t r a c t U n i v g      H      C I F G e o m T a b l e s  1 6 4 3 5 a 7 6 9 0  C I F G e o m T a b l e s .      `   4 
  C i f R t f W r i t e  1 < 4 1 1 b 3 3 8 b  C i f R t f W r i t e 0      x   M   C i f T o o l s  1 = 4 1 1 b 3 3 8 b  C i f T o o l s K            C i f W d M a i n  1 7 4 1 1 b 3 3 8 7  C i f W d M a i n n         m  
 F m C i f  1 > 4 1 1 b 3 3 8 b 
 F m C i f G            F m C i f C l i p b o a r d  1 ? 4 1 1 b 3 3 8 b  F m C i f C l i p b o a r d o            F m C i f I n f o  2 0 4 1 1 b 3 3 8 b  F m C i f I n f o             F m C i f N o t e s  2 1 4 1 1 b 3 3 8 b  F m C i f N o t e s G         	   F m C i f O p t i o n s  2 2 4 1 1 b 3 3 8 b + F m C i f O p t i o n s           	   F m C i f S e l e c t  2 3 4 1 1 b 3 3 8 b ' F m C i f S e l e c t [      8   	   F m C i f W a i t  2 4 4 1 1 b 3 3 8 b  F m C i f W a i t       P      F m F i l e O p s  2 5 4 1 1 b 3 3 8 b  F m F i l e O p s {      h   a(   F m F i l e O p s A  2 6 4 1 1 b 3 3 8 b + F m F i l e O p s A X         +6   F m F i n d R e p  2 7 4 1 1 b 3 3 8 b  F m F i n d R e p              F m R t f T o C i f I n f o  2 8 4 1 1 b 3 3 8 b 7 F m R t f T o C i f I n f o Me         
     F m T a b l e T o C i f I n f o  2 9 4 1 1 b 3 3 8 b =  F m T a b l e T o C i f I n f o          )
    F m U p d a t e I n f o  2 : 4 1 1 b 3 3 8 b O F m U p d a t e I n f o          
   R t f T o C i f  2 ; 4 1 1 b 3 3 8 b  R t f T o C i f          u,   W o r d D o c C l a s s  2 ountT RtfStylename}\ CifStartLine 
CifEndLineE  vbCrLf sj 
CifBlockID)' (   GetCifExpCrystalDataq (   GetCifExpDataCollectionr (   GetCifExpRefinementp CIFGeomTables (   GetBondTable (   GetContactTableIU (   GetAngleTable:V (   GetTorsionTable (   symcodesa 	(   symcodefnS (   GetHydrogenBondTable (   GetComputerProgs 	authorstrU 
allauthors' 
cifaddress[ 	authorcolp 
addresscol footnotecol8 escapeauthors%z 	 dblocknumо (   CifLoopNumCols  Trim@ (   CifLoopDatax  (   CifLoopNumRows_  numcifauthors,  addresscountC  aX 
 newaddress commapos  Right (   repinstrg  ChrK~  footnotestr structureno! 
spacegroup0{ tmpthing anothertmpthing 	(   findinstr (   initcaps  UCase5
  lc^  nrm^ 	(   CifFormat CifStructuredataPowder* (   RepCifcodesF_ (   RtfWriteTranslationsFm numofrtfrows (   AreaDetectorData CifStructuredataCCDi  vbTextCompare	Q enddiffrnstandards Cifdataname=Z (   structurecountG 
progstring dbid> (!   CifDatablock6 (   processprogs_` (   progsortp  grammer msgQ datanamenum? printprogname~ progidxr 	firsttimeq progtypecountD 	 progcountkQ assignedE  structno  previousprog~  sameprog  proglisttmps (   datablockidsh CifEditd (!   CifSearchStringh srchtext linenumֶ startposG WA_ WordDocClassڝ TmpCifFileLineA (   EditedCifText7 (   PublSectionsEditedG (   RedisplayingCifTextI (   FacifitateRtfToCifs (   ActivateRtfToCifHeadings` (   CifSavedM (   DisplayLogMsgs4 (   DoNotShowRtfToCifInfoU (   DoNotShowUpdateInfo (   DoNotShowTableToCifInfo (   DoNotShowRtfInfo, (   FmCrossNotClicked 	(   EnableTeXVa (   FacifitateCommand LastStyleClicked (   RegisterEventHandlerEt Appt  Application* (   UpdateCifAll" newciftextsource  EOF (   CifFileline{ (   CifFilelinecountb (   ListDatablocks esclist FmCif? 	 ComboBox1'  Clear  AddItem  
(   ReBuildRtfX quitrtfbuild| (   FacifitateRtfBuildLog  adoc 	 Documents  FullNameО  SaveChangest  wdDoNotSaveChangesԇ  FileNamej 	FmCifWaitk 	FmCifInfo  Show fmciftopf 	fmcifleftw fmcifheight& 
fmcifwidth0% fmciftextfont  Top5  Height| 
 CifTextBox  FontU  Size (   CifFileStringK  Captionx (   FacifitateName* (   IUCrCifFiletitle   Activate|  ActiveDocument\  TrackRevisions  PrintRevisions  ShowRevisionsu response  MsgBoxR  vbOKOnly (   SaveCifq
 (   CloseCif 
tmpbkupcif>  MacroContainer>  Path2 (   AllRtfToCif7  Contentl RtfToCif6 (   RunRtfToCifu (   UpdateCifWithNewRtfGenText (   RtfGeneratedCifText 	 SelectionZ  Collapseu 	 direction&  wdCollapseStart| (   RtfGeneratedCifTable (   SelectionRtfToCif  wdSelectionIP FmCifClipboard  NewCifTextBoxH, fmciftablesu (   RtfGeneratedCifTablecount!^  TableTextBox 
 MultiPage14?  ValueK (   TableRtfToCifs= CifTextStringR bitofnewcifԪ NewSynK_ NewAbs NewCom NewExp NewExr NewAck NewRefW NewFig CollectingSynm CollectingAbs CollectingCom= CollectingExp? CollectingExrA CollectingAckͮ CollectingRef	 CollectingFigd NewSynCount NewAbsCounty NewComCountY NewExpCount NewExrCount NewAckCountZL NewRefCountF NewFigCountc  sectionmarkg (   ReplaceInCif=  hide9z fetchdatanameI newCiflinesɣ newciflinecount  AlreadyExtractedDataItem (   ExtractedCifDataitem CifDatablockID tmpciflinesܝ xo CifBlockEnd`  Now%  nc^^  oldciffilelinecountS (   CifFindh Findstr srchstartline srchcharposU srchterminateL  linepos  vbBinaryCompare̝ (   CifReplaceAll] 
findthestr repthestring startreppos (   ParseCifIV escapeparser parsereportf 	longlines\ parsefm3 
FmCifNotesf 	 DicButton  Visible 	 InfoLabel 	 NotesTextbK 	 LineNoBox\  GotoBut 
 VcifButton, (   RunVCif 
escapethis/ fsF] d[ ret outfG$ vciffm tmpstr vlog>[  CreateObject  getfile:  Copyƿ  drive  ShellV  vbNormalFocus (   Waitabit 
 fileexists (   LookupNotes;  dataname1 tmpcifu} (!   CifFile 
lookupfile (   PutCifInArray (   SetCifDatablocks2 
tmpcifitemx (!   CifDataitemc (   GetDataItemFromCif(  Tag& 	(   LookupDic (   LookupPowDic (   LookupCoreDic<9 Yl 
newnotesfm 	srchcount  dicfile, 
ForReading8 
ForWritinge9 ForAppendingq TristateUseDefault9 TristateTrueH TristateFalse CifFilelines\  SetFocus lookfordatablockindic CifFiledatablockcount CifFiledatablockszl 
 lastuscorel 	 uscoreposY&  CurLine$ CifBlockStart8 	 SelLength  HideSelections 	(   RunTmptexi ciftexU 	escapetex texf߫ (   FetchDataItemCifr dismsgR rtfstylestrI  Stylep  FetchDblkPosm  fetchdatablockidS;  hashposF  retdataitem (   GetDataItem  nni^ 	 Revisions\  Count0v  ciflooplineno  Val  retloopdata (   GetCifLoopDatau missingcifitemX (   AppendToCIFHZ fileofnewciflineszo newlinestoappendS inputnewline (   AddNewDataBlock appenddatablocktype (!   ExtractedDataitemhm (!   IUCrRtfStyle{ RtfStyleParagraph` (   tmpCifDataitemB datablockidxh secondchoice thirdchoicet 
DontFormat flagdataname flagsecondchoiceʹ flagthirdchoice (   FacifitateLogS( LookinNextDatablockH DontLookFurther 	datavalueW (   FormatChemFormulaC) (   FormatNumbers (   FormatSpacegroupC (   RoundUph (   ConvExpo 
datastringB 	decplaces 
noofplaces 	 dblkindex datastr 	numplacesh i` Isu Istrw ptposܠ numdecplaces6: holdstrp su)_ valsuK vali 	suPresentU cc\ deccommapos beginroundupj@ 	 deccompos  stringIA  remI  addzeros3  zq (   RemTrailingZeroesD nodecplaces  ltmpstr cZ repstr  reppos  repposBHr (   repinstrpairwise repstrA repstrB firstofpair escape(  repstrX (   repinstronce (   InsertInStr findpatternl{ lenfindpattern 
insertstrA 
insertposAw 
insertstrB 
insertposBw 
 tmpsrchstr  patternmatchedj
  newstartposm 	PauseTime Start  TimerX 
tmpformula tmpspacegroup 
textstring (   RepCifAccent (   testaccq 
accentcode entstr( testcharT  Asc!u 
teststring{ (   RtfFileLine (   RtfFileLinecount (   ClearGeomVarsd LogMsg/ DontReportMsgzF  Label1, rtftablecount% symcode'c symcodepart_ 
symcodenum7 
symcodexyz
 codeflag 
totcoderef 
codeflagid, pubbonds  loopheadi! datablocknumber flaggeditemsonlyK 	headcountx totrows8 loopdataname loopdatanamecolnumR  TableStylename  TableStyleNumber1  colnumXE  checko  lc  pubrows  rownummR  pubflag getnextbondOP  symcodeflagC  coderefh  foundbeforeV  idxӝ  idnumber4	  pubgeomtableS finished8 	rowstring? getnextcontactc getnextangle8%  scn getnexttorsion6 getnexthbond	  totcols  sccol  lli 	 commaposA 	 commaposB getnextsymposp  partno2  searchcharcodej 
 searchcharG  lpart  findxyz  xyzposf publsymcodedX 
transformA8 newsymmcodepart` newsymcodenum	  lcf 	 Transform  lnum*  fracpos  numerat:  denom* 
 newnumerat  zerotest  leadingplus"  lnew 
 identifier allloopitemsd  coln+ extratableheading extratableheadnote¶ extratablefootnote  charcode 
rtffilenum rtftext fileopenerror 
tmpfilenum  Erro  Number- 	RtfFileNo rtftmpfilenameA rtftmpfilenameB 
tmprtflinee 	rtfstring  LCase:  Hex CifStructuredataHatoms: (   IUCrCifFile startln{& 
cifdatastr' (   FindDataBlock͔ (   FindCifLineString` endposb linenoG  furthervalidationneededj 	validitem datablklineRs datablockid returnvaluesA  dataposUq tmpcl~  OpenTextFile  AtEndOfStream  readline (   ReplaceInString 	Startline Endlineq
 	dblkstart/ dblkendv srchstartpos ciflinenostart ciflinenoend@ keeplookingfordatanameb  dataitemlinen  currentlineno6  clnok  cn\  PosSingledatanameLoopgF  commcharpos#  commacharpos7 analyseline?  delimitercodeԳ foundclosingapostropheq  delimpos  srchdelimpos0  testfollowingchar= 
delimfound  tmptest datablockstartH datablockendT ciflinenumber$D loopitem7 loopitemcount| loopheadcheck, 
looplinenozb 	ciflineno  retstr.  loopstartlineno8  lnoG  hc]  loopheadonly$  leftovertmpstr2  loopheadendlinenof  loopdatastartlineno dc\ getnextline#  semicolonpos 	 tmptmpstrS  apossrchpos lookfornextapostrophe  delimiterpos 	 rmptmpstrJ 	 numofrows<  ic]  tmplitem Ciffiledatam$  cifdatablockcount  cifstructurecount{ 	CifWdMain (   Main,  ActiveWindow+  ViewI  ShowHiddenTextk (   RegistryGetStuff FmCifSelectgC (   StartProcess 
FmFileOpsA 
 ButtonOpen
 
 ButtonSave  ExtensionLabelW nfa^ 
ReturnFile
  MousePointert  fmMousePointerCustom  fmMousePointerDefault( (   RegistrySaveStuffd quitregistery  SaveSetting  appnameKp                 	  
                                               !  "  #  $  %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~       SectionG  Key  setting| quitgetregisteryK 
 GetSetting  Default (   RegistryDeleteStuff 
quitregdel<  DeleteSetting (   ExamineControls comboboxentereda startheight> 
startwidthd< MinimizingForm	 CheckBut_Click@ CifTextBox_Change, CifTextBox_KeyUp/ KeyCode MSFormsC  ReturnInteger Shift  SelText+T CifTextBox_MouseMove Button  FileMnuFrame;  ToolsMnuFrame  FileMnu  BorderStyleS  fmBorderStyleNone  ToolsMnuz 	 UpdateMnuA  PreprintMnu^ CifTextBox_MouseUpQ 	 ListCount6 	 ListIndexQ ComboBox1_Changea escapecombo ComboBox1_enterOx CopyBut_Click CutBut_Click  Cut. DicBut_Click ToolsMnuLookup_ClickC FileMnu_ClickX  FileMnuOpen  FileMnuSaveAs8<  FileMnuExit|  FileMnuSave FileMnu_MouseMove  fmBorderStyleSingleK FileMnuExit_Clicku FileMnuExit_MouseMoveQ   FileMnuPrint FileMnuOpen_Click-J 
errhandler} KillCurrentCifw  vbYesNoCancelq  vbYesa?  vbNo% 
oldcaptionN  fmMousePointerHourGlass' FileMnuOpen_MouseMove FileMnuPrint_Click]J  PrintOut. 
 Background. FileMnuPrint_MouseMove FileMnuSave_Click FileMnuSave_MouseMove8 FileMnuSaveAs_Click  vbYesNo FileMnuSaveAs_MouseMove%d FindBut_Clickp ToolsMnuFind_Click FontDnbut_Click FontUpBut_Click*b Image1_DblClick Cancel  ReturnBooleane Image1_MouseMoveD MaxBut_Clickz MinBut_Click OpenBut_Click# PasteBut_ClickR  Paste PreprintMnu_Click PreprintMnu_MouseMove PrintBut_Click RedoBut_ClickpN  CanRedo 
 RedoActionc SaveBut_Click# SpinButton1_SpinDownד SpinButton1_SpinUpg TableBut_Click: ToolsMnuTables_Click[s ToolsMnu_Click  ToolsMnuOptionsb\  ToolsMnuFind  ToolsMnuParse  ToolsMnuTables$  ToolsMnuLookup(W  ToolsMnuRtfToCif	  ToolsMnuGotos ToolsMnu_MouseMovee 	FmFindRepCd  FindText ToolsMnuFind_MouseMove ToolsMnuGoto_Clickv 
escapegotoBL  InputBox 	 LineCount| ToolsMnuGoto_MouseMove lookupdataname] ToolsMnuLookup_MouseMoveC ToolsMnuOptions_Click FmCifOptionsq ToolsMnuOptions_MouseMove ToolsMnuParse_Click ToolsMnuParse_MouseMovec ToolsMnuRtfToCif_Click>. quitrtftocif;2 FmRtfToCifInfo	l ToolsMnuRtfToCif_MouseMove[ quittabletocif	 FmTableToCifInfoM ToolsMnuTables_MouseMove UndoBut_Click  CanUndo2 
 UndoActiona UpdateMnu_Click 
quitupdateg 
 vbOKCancelx?  vbCancel' FmUpdateInfo  AcceptAllRevisionse UpdateMnu_MouseMoveU UserForm_Click UserForm_Initialize5c UserForm_MouseMovei UserForm_QueryClose 	CloseMode؟ UserForm_Resize 	minheight  Move>y CopyBut2_Click+{ Label4_Click- Image1_Click 	 CheckBox1 Label6_Click DicButton_Click GotoBut_ClickSo escapethisgoto; linol NotesText_ChangeFT VcifButton_Clickk CloseButton_Clickrw 	 CheckBox2 	 CheckBox3 	 CheckBox4 	 CheckBox5 	 CheckBox6 Cancel_Click CancelLabel_ClickP ContinueLabel_Clickz StartCiftoRtf_Click CancelButton_Click 	FmFileOps iucrfilepath 	drivelist` ButtonOpen_Click  ComboBoxDrives_t ButtonSave_Click ComboBoxDrives_Click3  ListBoxFoldersb f1$] fc6] 	 getfoldern  openfolderlabelwd  getdrive?+  isready  driveletterB 
 rootfolder| 
 subfoldersx=  FileswX  ListBoxFiles ButtonFolderUp_Click fpC]  IsRootFolderb  ParentFolder7@ ListBoxFiles_Click{H  PathSeparator5 ListBoxFolders_ClickE UserForm_ActivateZs sf_  Systema  PrivateProfileString[  tk  Drives[ 	 drivetype, 	 sharenamegx imagecomboboxnotenteredlU  filenamebox 	 ListView19 	 ListItems itmX
|  Addr AddFolderToCombo ImageCombo1_Click  ImageCombo1  SelectedItem* 
 ComboItems0#  Index ListView1_ItemClickU^ Itemz MSComctlLibm  ListItemFk ff9] af\ 
 SmallIconsQ? 
 ImageList1c  lvwSmallIconW7 	 ImageListm| 
folderpath%  itemcPh pf^ cd\ foldernames-~ fullfoldernamesq  im] CurrentReplacePoss FindButton_ClickH findit5r currpos\ 	fmfindtopgp 
fmfindleft  SelStartZ 	 respopnseP  ReplaceButton/  Enabled۪  ReplaceAllButton0 ReplaceAllButton_ClickD repcountJ$  ReplaceText!/ ReplaceButton_Clickw CheckBox1_Clickl Image4_Click Image5_Click Label5_Click= Label3_Click< Label7_Click; IucrRtfCifFilename60 IucrRtfCifFilecount) RtfCifFileLine tmpRtfCifFileLine`- RtfCifFileLinecount tmpArrayr/ RomanFnt 	RomanFont= ArialFnt 	ArialFont^o 	SymbolFnt6 
SymbolFont CeFntOm CeFont GreekFnt 	GreekFont~f TurFnt TurFontU 	HebrewFnt 
HebrewFont. 	ArabicFnt` 
ArabicFontH 	BalticFntN 
BalticFont CyrFnt' CyrFont 
UnicodeEnt
 ExtractAnyTables; ExtractOnlyTables% thedoc+  ScreenUpdating!  Comments) 	 aucomment  Deletex  asecH  Sections  hdrt  Headers"  range  ftr  Footers  Shapes<  curShapeRange` 
 ShapeRange  curshape9  TypeParagraph   TypeText  InlineShapesٚ  rtftablea  Tables  tablertfdoc  newtable %  Findn  ClearFormatting)  Replacement  Forward  WrapWy 
 wdFindStop'f 	 MatchCase  MatchWholeWordX  MatchWildcards  MatchSoundsLike0  MatchAllWordForms  ExecuteY  Replacef  wdReplaceAllu#  Found+ 
 tablerange7  ConvertToText, 	 Separator^  wdSeparateByTabs  SaveAsf; 
 FileFormat  wdFormatRTF' (   IucrRtfCifProcess  ScreenRefreshA
 
tableerrorZ (   SetRomanFonts" (   SetSymbolFont (   SetUnicodeEnts (   FindSymbolCodes 	 searchpos   firstoccurence 	 backlines' 
 activefontc>  symbolcodeposb 
 symbolcode  symbolcodehexl skiponeC keeplooking  numclosingbracesU  numopeningbraces  na\^  lensymbolcode+W  replacementsymb,)  replacementstr~ lookinnextline- (   FindFieldSymbols	  SearchString  tmprtfstring  fieldendposS (   repinstrInfinr datastrI|t FindStrIv repstrI   foundstrW (   SplitStrAtEighty% tmplineo 	partlines@ partlinecount~ partlinep  crlfpos  spaceposz  breakpos  tabposb 
 newtmplineA (   ReplaceInfSup 
(   ReplaceSub^ (   ReplaceSuper< 	(   ReplaceDn 	(   ReplaceUpz	 (   ReplaceBoldItalic (   ReplaceItalicv (   ReplaceBold| (   BuildRtflineArrayFromVar- 	RtfStream 	rtflineno  parinstringposYs  pardinstringpos 	 lenadjust otherpositionњ lenopr  tmppos  smallestpos# (   SplitStringIntoTableArray3 	txtstream  lentextstream rowArray5  rowidxF5  parposf  maxcol5  colidx1(  splitdelimpos); tmpRtfCifFilename 	TableDataU  ReadallU (   GetFontTableB|  newRtfStream{:  AttachedTemplate  Savedd  wdFormatText  LockComments'  Password  AddToRecentFilesV  WritePasswordOW  ReadOnlyRecommended  EmbedTrueTypeFontsUS  SaveNativePictureFormat  SaveFormsDatac  SaveAsAOCELetter (   ConvertTextToTablexb (   ConvertToCifTexto" fonttblstringE5 	(   FindGroup (   GetFontNumberk 	GroupName NumOpenBraces NumCloseBraces/ 
fonttblstr fontid3 	 fontidposj SubPosl 	tmpStream SrchPosPO AnalysisStr 	EndsubPosV ClosePos 	CharCount keeplookingforsubi DnPos' EnddnPos keeplookingfordn SuperPosW\ EndsuperPos~i keeplookingforsuper UpPosc EndUpPos> keeplookingforup{ 
ControlPos= EndControlPos keeplookingforcontrol txtfilenamed numrows  noofrows`  noofcols|  ri blankrow escapetableconverto 	tablebody  colcountA=  noofstarttag\ 
 noofendtag (   ConvertEntitiesToCif-=  runninglinelen]  splitstr` 	 tablehead  Time datanameheaderF datanamefooterI newtxtstream^ ciftxtstream1 (   RtftoCifAccentM Class1+ App_DocumentBeforeCloseS Doc App_DocumentBeforePrint=  ParagraphFormat  ShadingA  Texture  wdTextureNone%  ForegroundPatternColor.  wdColorAutomatic  BackgroundPatternColor App_WindowSelectionChange Self Document_New;E   _B_var_x h   S "   _ +   ' !     + %  &    +          7 4  	 =  	     #   O  h   
 8  3 ' <                       PĈ$     t x#!!*  @-0$  X@D      H     @         @ D",d 	  !@                                                                                                                                                                                                                                       *A$  H @                                                                                                                                                                                                                                                                                                                   d i r                                                                                                         F m C i f                                                            @   #                       0  )            f                                                                                                    #  	      o                                                                "   (                                               8D04C-5 BFA-101B -BDE5EAA5C42Egr am Files \Microso(ft 6\MSO9.DLL# 9.0 Ob  Library#C  MS Forms> ! S Fr  m s 3  D452EE1 -E08FXA-8 -02608C4D0BB4YOFM20'B  \&/ ; "1 fmAm00}#:0m# 50 	 A9AC A9D69-EB AB-4F4F- B603-A07 04D112C316DOCUME ~1\sw\LO0CALS\VBE\S.exda:@  .E .`M @MSComctbl@m> gC em t L i b | 3 831FDD16 -0C5C-11D2-A9FCBLF8754DA3s OMCT L.OCX0Wi@ndows @$monntrols 6K(SP4)@ b~  rThi sDocumenPtG TsiE@LDc uMeT nw2Q`	  H 1A-`",M""+    CifActaCG  )f AA*a C j2CroC: m	!  ean`XEdi@!anCBEi 2r*  ifExtractUnivG !	Eex@r aU 1i v` 2Iga0IFGeomTTabG  1IUG o@DT bmbsN2\/4r5.+q5R tfWriteGq&R&f W jr 8t`v2M$0$WTo`o)WTh>s` i)Wgo)oKk	a4if WdMainG V+W+Mii# j2o nR${;mnAFm G 
F0! 2IGB(`:/Clip`boardS3CQ(i pPXo r2;[S3_bPa#d D4o_
InfosI0f`sfso$}4sNo@tesG *N@A2*256ea%GsgOpQqgOPt(o 1	sg	ٟ	h 	BBSelESDc@EE?	b?	 [?	8$Waqi=GW=tE} a=$er7uOp uF1Asdwka=#{,A,~A ,,+26_XWndXRep>!n GR#pF`[gIMpTo@XF"p1f#YGSTYP_n@oP Me_
Fcx
n HG
 U2. ) JUpdSJUPJd7SJJ  	 	  i f      RtfToC if2 h t T o C " L  H1  u, $(,  ! +
   WordDocClassG "A r d D cA _l a s /2/ h;" s                                                     $ N       }  /  	&          R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                  RF m C i f I n f o                                                x   B                       <?C            f                                                                                                            o                                                                A   C                                         
       C o m p O b j                                                  D                                         a                     	  
                                               !  "  $  %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  W  5  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  N  O  P  Q  R  S  T  U  V  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f    h  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~      i 2 1                                                            &     n`  `    0 0             f                                                                                                     M  T      o                                                                %   '                                       6         C o m p O b j                                                                                       4  p       0000 0        u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                                    w                      u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                       wwwwwwwwp      pppΎppΎppΎpppppp      wwwwwwww  u          Tahoma..HO DH  OOH DDD     u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        DHHHHx1ace  O  Go to a data block or add a new one   0 	    3   B      OpenButt    O  Open CIF  0 	    4   B      SaveButF{  O  Save CIF  4 	    5   B    	  PrintBut  O  Print CIFace  @ 	    E   B      TableButz-  O  Convert RTF table to CIF            
                     Microsoft Forms 2.0 Form    Embedded Object     9q              u          Tahoma.. VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCif C o m p O b j                                                  -                                         a        V B F r a m e                                                                                         G      F m C i f C l i p b o a r d                                      r   0                        )<            f                                                                                                               !     H   /  
     5           Tahoma         {    (      File..."      5           Tahoma.. ( (      Update CIF using RTF _       5           Tahoma..  (   	   Tools...me.      5           Tahoma..     {  O  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                     (      Build preprint q      5           Tahoma..        {  {  R  KQlt     BM       v   (                                                                                           u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                                                 u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        xtDDHDDHDHHDtDDD  KQ   DB Tahoma   H {   @ L             < +/I< +/I90~  uM         (   
     8     CifTextBoxbl        L 	               SpinButton1lW)      Increase/decrease window size     (      
    n`  `   Microsoft Forms 2.0 Frame    Embedded Object    Forms.Frame.1 9q                              (      Open...      5           Tahoma..  (      Savea..      5           Tahoma..  (      Save as...       5           Tahoma..  (      Exita..      5           Tahoma..  (      Print..      5           Tahoma..           R  KQlt     BM       v   (                                                                              333303333333303333                      R  KQlt     BM       v   (                                                                              3   3   3   3    3333333    300000 0                 R  KQlt     BM       v   (                                                                                    w                               R  KQlt     BM       v   (                                                                       wwwwwwwwwwwwwwwwpwwww wp wwwp ww ww wwp wp wwww  wwwwp  wwwwww wwwwwp  wwwww  wwwp wp www ww wp wwwp wpwwww wwwwwwwww                             ( HM            }              	        @ 	       2   8        FileMnuOpen O     Open a new CIF    D 	       2   8       FileMnuSaveCO  O  Save displayed CIF    T 	       2   <        FileMnuSaveAsF  O    Save displayed CIF with new name  @ 	       2   8       FileMnuExitAO  
  Exit publ_CIFF    @ 	    )   2   8       FileMnuPrintO  E  Print this CIF    $     J   "    Image6..        $     K   "    Image7..   O    $     L   "    Image8..   E    $     M   "    Image9..   
                                                         !    FileMnuFrameO  {    (        2   8     Filbedded Object    Forms.Frame.1 9q                              (      RTF to CIFrq      5           Tahoma..   (      Table to CIFnt q      5           Tahoma..  (   
   Check CIFCIq      5           Tahoma..   (      Go to line...t q      5           Tahoma..  8        Find...q      5           Tahoma..  (      Options....q      5           Tahoma..   8        Look up....q      5           Tahoma..                                 	   
                                                               *      !   "   #   $   %   &   (   )   *   +   ,   -   .   /   0   1   2   3   4   5   6   7   8   9   :   ;   <   =   >   ?   @   A   .  C   D   E   F   G   H   I   K   L   M   N   O   P   Q        U   @  w  X   Y   j  [   g   ]   ^   _   `   a   b   c   d   e   Z   h   i   j   k   l   m   n   o   p   q   r   s   t   u   v   w   x   y   z   {   |   }   ~          Tahoma  
        (        2         Label2ue  E  (     Green highlighted headings indicate that the following text can be edited in the RTF. Convert RTF to CIF text by clicking 'Update CIF using RTF' in the CIF window. ?   "    5           Tahoma     *           Texta  "              @       Tahoma     *          Texta  "              @       Tahoma    (   t  Grey shading indicates that the data can only be edited in the CIF. Click to dise  O  Undo  0 	    0   B      PasteBut;  O  PasteBut  , 	    /   B      CopyButt
  O  Copy  , 	    .   B      CutButttE  O  CutB  4 	    7   B      FindButtS  O  Find/replace  @ 	    8   B      DicButtt'  O  Look up CIF data name     4 	    9   B    	  CheckBut+*  O  Check CIFace  @ 	  	  :   B      FontUpButacea$      Increase font sizeam  @ 	  	  ;   B      FontDnbutac 
    n`  `   Microsoft Forms 2.0 Frame    Emplay the CIF item in the CIF window.?   #    5           Tahoma   P(   ? This RTF file is not only a preprint of a CIF-generated structure paper, it also facilitates editing of the CIF. Clicking text in the RTF file will move the cursor to the data name in the CIF (which will be displayed in a separate window). In addition, parts of the RTF can be edited directly and converted to CIF text: !      5           Tahoma             R  KQlt                    (       R  KQlt     BM       v   (                                                                       wwwwwwwwp      pppΎppΎppΎpppppp      wwwwwwww           R  KQlt     BM       v   (                                                                        Ȉ                Ȉ        Ȁ           R  KQlt     BM       v   (                                                                                      DD  DDD  D           R  KQlt     BM       v   (                                                                                                                            ( HI            }  g                    ` 	    #   2   <      *  ToolsMnuRtfToCifO  O  Convert selected text in RTF to CIF formatT   T 	    $   2   @       ToolsMnuTablesifO     Convert RTF table to CIF table    L 	    %   2   <       ToolsMnuParsesifO    Syntax checking (VCIF)    D 	    '   2   @       ToolsMnuGotoO  
  Go to line numberVCI  @ 	    (   2   <       ToolsMnuFindO  ;  Find and replace  H 	    ,   2   <       ToolsMnuOptionseO    RTF output optionsCI  L 	    -   2   @       ToolsMnuLookupseO  E  Look up CIF data name)    H 	    F   "      Image2..      Convert RTF table to CIF table    $     G   "    Image3..       $     H   "  	  Image4..   E    $     I   "  
  Image5..   ;                  e&      Decrease font sizeam  P 	  	  =   L     #  ComboBo  u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        HDDHGDDDHDHDGDDx  u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        DDDDD  O77ODDDssO77ODODDssOOH77ODssDDD@777770p   pp0s sp       u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        DDDDHOHO  H   OHO  H  OHO DH  OOH DDD     u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        DHHHHHHDHHHDH@H    u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                                                                     u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                                      DD  DDD  D  u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                        Ȉ                Ȉ        Ȁ  u          Tahoma..        {  {  R  KQlt     BM       v   (                                                                             p            @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1? @ F               x    0   Don't show this againCIF  5           Tahoma   x (   f  Any CIF syntax errors should be apparent in the RTF preprint, or select 'Check CIF' in the CIF window.  ?   O    5           Tahoma    (     Continue  N    u    o                                                                /   >                                         |       i 1 5                                                             3   pFz?  a     ) )            f                                                                                                             o                                                                2   5                                                                                                                            R                           S             T                 [                                                  	                                                                              	  
                                               !  "  #  $  %  &  '  (  )  *  +  ,  -  .  /  0  1  2  3  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  W  X  Y  Z  \    ]    _  `  a  b  c  l  e  f  g  h  i  j  k  ^  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~      i 1 7                                                            7   <   i*  WJO     ) )            i 2 6                                                             4   6   9   i*  WJO     ) )             C o m p O b j                                                                                        s       x                                                                                                       0                                                                                                                                                                                                                                R o o t   E n t r y                                                 	           F            XW   5     D a t a                                                         
                                               1 T a b l e                                                                                             '   8      W o r d D o c u m e n t                                                                                        .D       
   Caption         =   "printCIF"
   ClientHeight    =   5520
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6960
   ShowModal       =   0   'False
   StartUpPosition =   3  'Windows Default
   TypeInfoVer     =   228
End
                                                          ( H!   @    H    }  x3  6"          R  KQ   DB Tahoma           (   
     #    9 MultiPage1                                                       
  pFz?  a   Microsoft Forms 2.0 Form    Embedded Object    Forms.MultiPage.1 9q                          l 1                          C3      CIF text  Tablesxt          Tab3  Tab5                  5           Tahomaut                                                   $ H !     +    }  C3               p                           $        #     Page1ut25   ,    $        !    Page3ut25   ,                           f                                                                                                              o                                                                8   :                                                C o m p O b j                                                                                         n       f                                                                                                              o                                                                ;   =                                                C o m p O b j                                                                                         n        C o m p O b j                                                  1   ?                                         a        V B F r a m e                                                                                         /       
  i*  WJO   Microsoft Forms 2.0 Form    Embedded Object    Forms.Form.1 9q                                #     H     0      5           Tahomaut D (   4  This table data was generated from the displayed RTFa$      5           Tahomaut         {  {  R  KQlt     BM       v   (                                                                        DDDDHOHO  H   OHO  H  OHO DH  OOH DDD     u          Tahomaut                               $ H !         }  2  6                   (        <      TableTextBox   "    (        2   d     Label3t        , 	    !   B      CopyBut2!/     Copy                                                             
  i*  WJO   Microsoft Forms 2.0 Form    Embedded Object    Forms.Form.1 9q                                #     H     0      5           Tahomaut D (   2  This CIF text was generated from the displayed RTFa$      5           Tahomaut         {  {  R  KQlt     BM       v   (                                                                        DDDDHOHO  H   OHO  H  OHO DH  OOH DDD     u          Tahomaut                               $ H !         }  2  6                   ,        <      NewCifTextBoxcke       (        2   d     Label1         , 	       B      CopyBut !/     Copy                                                               {   L (   :  CIF text shown here can be copied and pasted into the CIF.  /      5           Tahoma         O    (             SpinButton1 1        (        2   l     Label4t2                                     Tahomaue       "  O  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1?        (        2   H     Label1ue   	    (        2   H     Label3ue       (        2        Label4ue      (        2   p    Label5ue       $                 	  
                                     0  "  #  $  %  &  '  (  )  *  +  ,  -  .  /  1  2  3  4  6  8  9  :  ;  =  >  ?  @  A  B  C  D  E  F  G  H  I  l  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  g  h  i  j  k  m  n  o  p  q  s  u  v  w  x  z    |  }  ~         *    Image6ue         (   	     `     CheckBox1 x "  '    (        2        Label6ue      $        8     Image1uek      $        *  	  Image2ue                                                                   
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifInfo 
   Caption         =   "printCIF - RTF preprint"
   Clie V B F r a m e                                                                                         2      F m C i f N o t e s                                              T   J   G                       ?C`&O            f                                                                                                            o                                                                F   H                                         \      ntHeight    =   4110
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5790
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   39
End
               $          }  .  c          R  KQ   DB Tahoma     ,     (   	     <      NotesText          #     H     M.      5           Tahomaue   (     CIF dictionary  	  {    u          Tahomaue  (     Label1ue#  {    5           Tahomaue       H,  {    5           Tahomaue  (     Go to line:a  {    u          Tahomaue  (     Run VCIF	  {    u          TahomaIF                                         H 	  	     @       DicButton   5%    Look up core CIF dictionary   ,   	     2   8     InfoLabel          (   	     4     LineNoBox   5%      $        <     GotoButF      (   
     8     VcifButton         
                     Microsoft Forms 2.0 Form    Emb C o m p O b j                                                  I                                         a        V B F r a m e                                                                                         G      F m C i f O p t i o n s                                          O   h   L                       `&OPRV            f                                                                                                            edded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifNotes 
   Caption         =   "printCIF"
   ClientHeight    =   3975
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6765
   ShowModal       =   0   'False
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   13
End
                                                          ( H   @    
    }  t   &          R  KQ   DB Tahoma     8     (   	          CheckBox1n   x F             P    W  0   Include all geometry in the RTF preprint (not just data flagged for publication)  5           Tahoma    F             V      0   Include atomic coordinates and anisotropic displacement parameters in the RTF preprint    5           Tahoma   ` F             8    {  0   Include synopsis (only required for 'inorganic' papers)   5           Tahoma    Fo                                                                K   M                                       !         C o m p O b j                                                  N                                       5  a        V B F r a m e                                                                                       7  0      F m C i f S e l e c t                                            ^   Q                       PRV@X                         f    O  0   Sort computer programs in journal style (disables the link between the RTF and the CIF computing data)    5           Tahoma    (     OKv  {    u          Tahoma   T F             +    {  0   Omit acknowledgements from the RTF preprint   5           Tahoma    F             \    O  0   Enable TeX previewing (see the file TeXinfo.txt in the printCif folder for more information)  5           Tahoma                 j     (   	          CheckBox2n     "    (   	          CheckBox3n     E    (   	          CheckBox4n         (        4      CloseButton g  '    (   	     t     CheckBox5on        (   	          CheckBox6on                                                
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifOptions 
   Caption         =   "printCIF - options"
   ClientHeight    =   3795
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4710
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   10
End
                 $    0    }  ?   9          R  KQlt                    (       @                                                                                                            f                                                                                                    <        o                                                                P   R                                       J  x       C o m p O b j                                                  S                                       r  a        V B F r a m e                                                                                       t  #                                                                                                                                                                                                                                                                            R  KQ   DB Tahoma     \     (        2   8 (   &  Welcome to printCIF, a simple tool to:        5           Tahoma   D (   2  Produce a preprint of a structure paper from a CIFTF      5           Tahoma   < (   )  Facilitate CIF editing (via the preprint)nt v      5           Tahoma         "  O  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1?       "  O  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1? | (   l  Click 'Continue' to open a CIF and create a preprint in the style of Acta Crystallographica Sections C and E  N    u          Tahoma    (     Cancel    {    u          Tahoma    (     Continue  {    u          Tahomaue         X      Label1ue       (     
   2   d     Label2ue  "    (        2   \     Label3ue  q    $        *    Image1ue   O    $        *    Image2ue       (        2        Label4ue   
    $        8     Cancelueq      ,        8     StartCifToRtfv                                                                
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifSelect 
   Caption         =   "pubCIF"
   ClientHeight    =   2790
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   48
End
                              $          }    i          R  KQ   DB Tahoma     X      (        2   ,      Label1t2              5           Tahomaue       "  O  R  KQlt                    (       @                                                                                                                                                                          F m C i f W a i t                                                !   c   V                       @X0_            f                                                                                                    y         o                                                                U   W                                       {  V       C o m p O b j                                                  X                                         a                                                                                                                                                                                                             $                                                                                                                                                                                                                                                                                                                                                                                                                                                    ?e=3}|?7sy?^s1?                                               $        *    Image1t2                              
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmCifWait 
   Caption         =   "printCIF is processing  - please wait..."
   ClientHeight    =   495
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4065
   Sho V B F r a m e                                                                                         d      F m F i l e O p s                                                [                       0_0d            f                                                                                                            o                                                                Z   \                                         d      wModal       =   0   'False
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   5
End
                             $      (    }  .            R  KQ   DB Tahoma  
   P     H 	       B      ButtonFolderU         O  {  R  KQlt     BM       v   (                                                                                               u          Tahomaue  A    H, W)  ,    5           Tahomaue  (     files:ueN      5           Tahomaue           OpenE  |  R  KQlt     BM       v   (                                                                              333303333333303333             u          Tahomaue             SaveaueE  |  R  KQlt     BM       v   (                                                                              3   3   3   3    3333333    300000 0        u          Tahomaue  (     CIF{      5           Tahomaue            5           Tahomaue  (   
  Folders in        5           Tahomaue  `         R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                    5           Tahomaue  `      x      5           Tahomaue                            p  *     Look in parent folder)    X 	       8     &  ComboBoxDrives        Click to select drive or system folder    (        2   8     Label2uek      @ 	  
     J      ButtonOpeniv	&  "  Open selected filede  @ 	  
     N      ButtonSaveiv	&  "  Save selected filede  0        2   4     ExtensionLabel        0        2   ,     openfolderlabel       (        2   <   	  Label3ue       ,        J     ListBoxFoldersl    q    (        4     ListBoxFiles  q                                
                     Microsoft Forms 2.0 Form    Emb C o m p O b j                                                  ]                                         a        V B F r a m e                                                                                         #      F m F i l e O p s A                                               `                       0d ei            f                                                                                                      S      edded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmFileOps 
   Caption         =   "printCIF"
   ClientHeight    =   3570
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6795
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   40
End
                              $ "     E    }  <,  .          R  KQ   DB Tahoma   < k          #$,j (6("$,j (6(!$,j (6(  < k   a       Kѽj (6(Jѽj (6(Iѽj (6(  < k   7       fݔj (6(eݔj (6(dݔj (6(   @     H 	       B       ButtonFolderUp  (     Look in parent folder)    @ 	  
     J      ButtonOpener#    Open selected filede  @ 	  
     N      ButtonSaveer#    Save selected filede  0        2   4     ExtensionLabel         (   
       
  ImageList1ab"      (   	     b    ListView11ab    "    (   o                                                                _   a                                         "       C o m p O b j                                                  b                                         a        V B F r a m e                                                                                         $      F m F i n d R e p                                                 Y   w   e                        eip             xp wwwyp    wwwwww  x{     xw  xxxp {p pp  x{wwwp  xwwpwww  ` p  wwwwwwwwwnp            ff                                           n               n                      ;          fff`    n      f`  n       nf  n       ` n         n n          o n           n `            o              `                                                                 ? ?(                                                                                wwwwwww  x    p;p0 x8 wwwwwpp                                   nf      `      `                                             '         lt  6               &        (    (       @                                                                                                                                                wwwwwwwwwwwwwp  w  wp    wp wwp   wwxwp wwwxwp wp wp        wwp  wpwwp xwp wwwwwwwp        wwwp        p        p        p        p        p        p        p        p        p        wwwwwwp                                                                                                              (                                                                                                                wwwwwww xpxwp wpxwxpxppp wwwwwwp                                                                       lt  6               &        (    (       @                                                                                    3330          ;3        ?33  33       ;;3 3       ?30 3         330            030                           3             ;330         ;   0        ; UfeP0      0wvUVf`3       3xvefU0       x-~UfP0      r'~WW      -"."ew      "%wP0     ~"VP0     m~e`0     m-"`0     gr`0     ގ"~fP3     j~vP          wv0      nݨp0      w        f`?         mfm ?0                                   ?  ?                         ? ?(                                                                                 333    33      30            30     ;00   f`3   0  p0  ~`0  p  г   n`   0    h3        ?                             lt                  O  {  R  KQlt     BM       v   (                                                                                               u          Tahomaue           OpenE  |  R  KQlt     BM       v   (                                                                              333303333333303333             u          Tahomaue             SaveaueE  |  R  KQlt     BM       v   (                                                                              3   3   3   3    3333333    300000 0        u          Tahomaue  (     CIF{      5           Tahomaue!C4       ~   '        ͫ   <                         lt  6               &        (    (       @                                                                                                                                                wwwwwwwwwwwwws                   wwwwwp  p                  p          wwww                                                                                                     (                                                                                                wwwwwww         xwww      wwp                                                         lt  6               &        (    (       @                                                                                                                                wwwwwwwwwwwww  p w wwwwwwwwwwxw w wwwwwwwwwwxw w "(w w w  xw     wwwwwwwwwwwww                                                                                                                                                                                                                                                                             (                                                                                                wwwwwww xpxwwwwwpxpxppp wwwwwwp                                                                                       lt  6               &        (    (       @                                                                                                wwwwwwwwwwwwwp  w  "wp wwxwp p   wxwp     w wp wwwwxpp xp    w舀  xx  ww興    xxxw~   wp    xxxxwpx   wpx   xpx   xpw   xp xxxp   x芧wx   븈xx    芮븈     ~븈p     x븈     븈       z       w         w             www                                                                               (                                                                                        wwwwwww       x  x wwxp         z븏    ~븈    {w     w                                                      lt  6               &        (    (       @                                                                                wwwwwwwwwwwwwp  xw  w            (       @                                                                                                                                                                                                                                                                                                                                                                                  !C4   +    N}            &  +  ͫ   x2                       ʖ  !C4   !  F  $U   :           ͫ   Zw       <   I m a g e C o m b o 1       p   (     Look in:"      5           Tahoman:  (     Canceln:D  {    u          Tahoman:       H,  {    5           Tahoman:  (   
  file name:      5           Tahoman:                                                                                                                                                                                                                                                                                                                                                                           
                                  %             !  "  #  $  &  '  (  )  +  ,  -  /       j    ImageCombo1b       (        2   8     Label1n:       (         8     CancelButton#  I    (     !   4     filenameboxn	      (     "   2   <   	  Label2n:O                                                  
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmFileOpsA 
   Caption         =   "printCIF"
   ClientHeight    =   4380
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6420
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   69
End
                             ( H   @        }               R  KQ   DB Tahoma     <     $        4      FindText   O       H,  ,    5           Tahoman:  (   
  Find text:xn      5           Tahoman:   (     Replace with:l  	      5           Tahoman:       H,f                                                                                                            o                                                                d   f                                                C o m p O b j                                                  g                                         a        V B F r a m e                                                                                         P        ,    5           Tahoman:  (   	  Find nextith	  {    u          Tahoman:  (     Replace:	  {    u          Tahomae:  (     Replace allh	  {    u          Tahomae:                                                (        2   <     Label1xt        (        2   @     Label2xt       (        4     ReplaceText    	    (   
     <     FindButtont    g    ,        8     ReplaceButton     g    ,        <     ReplaceAllButtonS  g                                        
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmFindRep 
   Caption         =   "printCIF - Find..."
   ClientHeight    =   2295
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4725
   ShowModal       =   0   'False
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   12
End
                                                 $          }  H            R  KQ   DB Tahoma  	   |     (        2         Label1ue    (     By selecting this function, any selected text in the RTF preprint will be converted to CIF format and displayed in a separate window.   &      5           Tahomaxt X (   E  This text can be cut and pasted into the CIF wherever it is required.   &  O    5           Tahomaxt l (   Z  Any F m R t f T o C i f I n f o                                       .   m   j                       p w            f                                                                                                            o                                                                i   k                                         
       C o m p O b j                                                  l                                       *  a       tables in the selected RTF will be converted to looped CIF data with data names, etc. n)&      5           Tahomaxt         "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                          	  
                                               !  "  #  %  &  '  (  )  +  -  .  /  0  2  V  4  5  6  7  8  9  :  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  W  X  Y  [  ]  ^  _  `  b    d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~                                                                                                                                                                                                                                                                                                             ?e=3}|?7sy?^s1?         "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1?         "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1? @ F               )  ,  0   Don't show this again     5           Tahoma    (     Cancel    N    u          Tahoma    (     Continue  N    u          Tahomaue                                                          (        2   x     Label2ue  q    (        2        Label3ue      $        *    Image1ue       $        *    Image2ue       $        *    Image3ue       (   	     `     CheckBox1llh      $        8     Image5ue      $        8     Image4ue                                                      
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmRtfToCifInfo 
   Caption         =   "printCIF - selected RTF to CIF"
   ClientHeight    =   3495
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4395
   StartUp V B F r a m e                                                                                       ,  >      F m T a b l e T o C i f I n f o                                 " o                        w~            f                                                                                                    1  {      o                                                                n   p                                       3        Position =   1  'CenterOwner
   TypeInfoVer     =   24
End
   $          }              R  KQ   DB Tahoma     (     (        2         Label1ue    (     This function will convert selected tables or tab-separated text in the RTF preprint into CIF tables. Select a table or text using the mouse to highlight it.   S      5           Tahomaue  (     The extracted CIF tables will be presented in a separate window, from which they can be cut and pasted into the CIF as required.S  "    5           Tahomaue         "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1?   &         "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1? @ F                 ,  0   Don't show this again     5           Tahoma    (     Cancel  q  N    u          Tahoma    (     Continueq  N    u          Tahomaue                             (        2        Label2ue  q    $        *    Image1ue       $        .    Image3ue       (   	     `     CheckBox1lBu  g    $        8     Image5ue      $        8     Image4ue          
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmTableToCifInfo 
   Caption         =   "printCIF - Table to CIF"
   ClientHeight    =   2865
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4320
   StartUpPosit C o m p O b j                                                  q                                       Z  a        V B F r a m e                                                                                       \  9      F m U p d a t e I n f o                                           t                       ~텍            f                                                                                                    a  '      ion =   1  'CenterOwner
   TypeInfoVer     =   25
End
        $          }  $#            R  KQ   DB Tahoma          (        2        Label1ue    (     The update function extracts the editable sections of the RTF preprint (Abstract, Comment, etc.) and converts them to CIF format with data names. el      5           Tahomaue H (   8  The RTF-generated CIF text will be included in the CIF,       5           Tahomaue  (     Note thao                                                                s   u                                       c         C o m p O b j                                                  v                                         a        V B F r a m e                                                                                         K      P R O J E C T w m                                                y                                               t any objects such as graphics will not be included in the CIF. Furthermore, any tables will not be included; however, you can use the 'Table to CIF' item of the 'Tools...' menu to convert tables to CIF format.E       5           Tahomaue       #  "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1?       #  "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ?e=3}|?7sy?^s1?       #  "  R  KQlt                    (       @                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ?e=3}|?7sy?^s1? @ F                 {  0   Don't show this again     5           Tahoma    (   
   replacinglh             @    Tahoma   , (      any existing data items.   :      5           Tahoma    (     Cancel    O    u          Tahoma    (     Continue  O    u          Tahomaue                                                   (        2   h     Label2ue      (        2       Label3ue  	    $        *    Image2ue        $        *  	  Image3ue       $        *  
  Image4ue   
    (   	     `      CheckBox1glh      (     	   2   @     Label4ue  q    (     
   2   L     Label5ue  q    $        8     Image5ue	      $        8     Image1ue                              
                     Microsoft Forms 2.0 Form    Embedded Object     9q                                           VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} FmUpdateInfo 
   Caption         =   "printCIF - update CIF with RTF-generated text"
   ClientHeight    =   3420
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5100
   StartUpPosition =   1  'CenterOwner
   TypeInfoVer     =   24
End
                                                     ThisDocument T h i s D o c u m e n t   CifActaC C i f A c t a C   CifEdit C i f E d i t   CifExtractUniv C i f E x t r a c t U n i v   CIFGeomTables C I F G e o m T a b l e s   CifRtfWrite C i f R t f W r i t e   CifTools C i f T o o l s   CifWdMain C i f W d M a i n   FmCif F m C i f   FmCifClipboard F m C i f C l i p b o a r d   FmCifInfo F m C i f I n f o   FmCifNotes F m C i f N o t e s   FmCifOptions F m C i f O p t i o n s   FmCifSelect F m C i f S e l e c t   FmCifWait F m C i f W a i t   FmFileOps F m F i l e O p s   FmFileOpsA F m F i l e O p s A   FmFindRep F m F i n d R e p   FmRtfToCifInfo F m R t f T o C i f I n f o   FmTableToCifInfo F m T a b l e T o C i f I n f o   FmUpdateInfo F m U p d a t e I n f o   RtfToCif R t f T o C i f   WordDocClass W o r d D o c C l a s s                                        ID="{49A96701-7424-4030-8302-789B8A226405}"
Document=ThisDocument/&H00000000
Module=CifActaC
Module=CifEdit
Module=CifExtractUniv
Module=CIFGeomTables
Module=CifRtfWrite
Module=CifTools
Module=CifWdMain
BaseClass=FmCif
BaseClass=FmCifClipboard
BP R O J E C T                                                                                                 P R O J E C T l k                                                                                       &       C o m p O b j                                                  {                                         j       O b j e c t P o o l                                                                   XX            aseClass=FmCifInfo
BaseClass=FmCifNotes
BaseClass=FmCifOptions
BaseClass=FmCifSelect
BaseClass=FmCifWait
BaseClass=FmFileOps
BaseClass=FmFileOpsA
BaseClass=FmFindRep
BaseClass=FmRtfToCifInfo
BaseClass=FmTableToCifInfo
BaseClass=FmUpdateInfo
Module=RtfToCif
Class=WordDocClass
Name="TemplateProject"
HelpContextID="0"
VersionCompatible32="393222000"
CMG="686A34C238C238C238C238"
DPB="D0D28C2F8D2F8D2F"
GC="383A649765976568"

[Host Extender Info]
&H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000

[Workspace]
ThisDocument=198, 198, 793, 689, 
CifActaC=0, 0, 0, 0, C
CifEdit=0, 0, 0, 0, C
CifExtractUniv=0, 0, 0, 0, C
CIFGeomTables=88, 88, 534, 452, Z
CifRtfWrite=0, 0, 0, 0, C
CifTools=0, 0, 0, 0, C
CifWdMain=242, 242, 837, 733, 
FmCif=0, 0, 0, 0, C, 66, 66, 967, 729, C
FmCifClipboard=0, 0, 0, 0, C, 88, 88, 989, 751, C
FmCifInfo=0, 0, 0, 0, C, 110, 110, 1011, 773, C
FmCifNotes=0, 0, 0, 0, C, 132, 132, 1033, 795, C
FmCifOptions=0, 0, 0, 0, C, 154, 154, 1055, 817, C
FmCifSelect=0, 0, 0, 0, C, 176, 176, 1077, 839, C
FmCifWait=0, 0, 0, 0, C, 198, 198, 1099, 861, C
FmFileOps=0, 0, 0, 0, C, 220, 220, 1121, 883, C
FmFileOpsA=0, 0, 0, 0, C, 242, 242, 1143, 905, C
FmFindRep=0, 0, 0, 0, C, 264, 264, 1165, 927, C
FmRtfToCifInfo=0, 0, 0, 0, C, 286, 286, 1187, 949, C
FmTableToCifInfo=0, 0, 0, 0, C, 308, 308, 1209, 971, C
FmUpdateInfo=0, 0, 0, 0, C, 330, 330, 1231, 993, C
RtfToCif=0, 0, 0, 0, C
WordDocClass=0, 0, 0, 0, C
                                                         Kѽj (6(H   9 3 6 8 2 6 5 E - 8 5 F E - 1 1 d 1 - 8 B E 3 - 0 0 0 0 F 8 7 5 4 D A 1    #$,j (6(H   9 3 6 8 2 6 5 E - 8 5 F E - 1 1 d 1 - 8 B E 3 - 0 0 0 0 F 8 7 5 4 D A 1    fݔj (6(H   9 3 6 8 2 6 5 E - 8 5 F E - 1 1 d 1 - 8 B E 3 - 0 0 0 0 F 8 7 5 4 D A 1                               
  	           F   Microsoft Word Document 
   MSWordDoc    Word.Document.8 9q                                                                                                   7 	             B  B   bjbjUU                  	 .D  7|  7|                                                                    l ;4     ;4     4      4      4      4      4             5      5     5     5      5  $   ;5  ,   5      5     s5      s5      s5      s5      s5      s5      s5      s5      s5     u5      u5      u5      u5      u5      u5      6     8      u5                     4      s5                      s5      s5      s5      s5      u5      s5      4      4      s5              s5      5     s5      s5      s5      s5      4      s5      4      s5      s5              s5                                                      s5      s5      s5      s5              s5      4      4                                                      	5     s5      s5      g5     E5      5      s5      s5              s5      5  0   5      s5      8      s5      8      s5      s5      5      5      4      4      4      4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         , 1h. A!"#$%                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    m e s   N e w   R o m a n   5                       S y m b o l   3&  z                  A r i a l   ?5  	z                  C o u r i e r   N e w   "  0   h                                                                                                                                                                                                                                                                                                                                                                                            0                                                                                     ,                                                                                                                                                                                                                                                                                                                                   