home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / ftree12e.zip / Gedcom.txt < prev    next >
Text File  |  1997-10-16  |  14KB  |  276 lines

  1.  
  2. Technical documentation for imgedcom.ftx and exgedcom.ftx which are part 
  3. of Family Tree for OS/2 also known as Ftree.
  4.  
  5. IMPORTING GEDCOM FILES
  6. ----------------------
  7.  
  8. This section defines the GEDCOM semantics that are understood by Ftree and
  9. more specifically by the rexx routine IMGEDCOM.FTX.  In GEDCOM each entry
  10. consists of, as a minimum, a level indicator and a keyword.  Except in a
  11. few instances GEDCOM has generalize the level indicator so that the same
  12. type information might appear at more than one level.  Ftree does not
  13. support this level of generalization.  In a few specific instances ftree
  14. will provide for an alternate input format that may involve interpreting
  15. the same data at different levels.  This will usually result in only a
  16. single entry in the database.  The GEDCOM constructions are generally
  17. compatible with releases of the GEDCOM standard up to 5.5. Not all 5.5
  18. GEDCOM contructions are understood by Ftree. The ones that are 
  19. understood include:
  20.  
  21. 0 HEAD        This is recognized by ftree as the start of a GEDCOM file
  22.             and causes certain fields to be output to the screen.  But 
  23.             no data from a HEAD record is retained.
  24. X SYST        in head record the content is printed to the screen
  25. X SOUR        in head record the content is printed to the screen
  26. X DATE        in head record the content is printed to the screen
  27. 1 LANG        This entry will be used to determine the abbreviation name
  28.         used in a month entry for date.  Only English, the default, 
  29.         and French are supported so far.
  30.  
  31. 0 @ INDI    A record about an individual - See below
  32. 0 @ FAM        A record about a family - See below
  33. 0 @ FAMI    An older form of a record about a family - See below
  34. 0 TRLR        End of record flag - everything below this point will be ignored
  35. 0 EOF        End of record flag - everything below this point will be ignored
  36. 0 COMM arg  A comment - The rest of the line and all subsequent text until
  37.         the next level zero will be ignored.
  38.  
  39. All of the information must be in one file.  If you have several files
  40. they must be concatenated together before submitting them to FTREE.
  41.  
  42. Individual Record 
  43. -----------------
  44.  
  45. This maps directly to Ftree database structure for a Person.  There are
  46. three words and they must be separated with spaces.  The second word on an
  47. INDI line is taken to be a unique id for the person.  This is preserved and
  48. can be referenced from a family record to uniquely identify a person.  In
  49. GEDCOM syntax the unique id is bracketed with an '@' sign. For example:
  50. @I27@.  It must be numeric with an optional leading I which will be
  51. ignored.
  52.  
  53. 1 NAME arg  The argument to the NAME entry should contain the full name
  54.         of the individual.  The surname should be bracketed with '/' and
  55.         may be on the left, middle, or right of other text.  All other
  56.         text is assumed to be part of the given name.  All of the
  57.         following forms are allowed: 'some names /surname/', 
  58.         'name /surname/ more names', and '/surname/some names'.  In ftree
  59.         there are only two places for names, surname and all other names.
  60. 2 NFSX arg  The field specifies a suffix name such as 2nd, or Jr. It will
  61.         be appended to the surname entry in Ftree separated with
  62.         a comma.  Note that the TITL tag described below will
  63.         be treated the same way.  Only one of them will be retained.
  64. 2 NICK arg  This field specifies a nickname for the person.  It will be
  65.         appended to the first names and bracketed with '()' unless
  66.         a nickname using this syntax already exists in the name field.
  67.  
  68. 1 TITL arg  This field specifies a title for the person.  It will be
  69.         appended to the surname entry in Ftree separated with a comma.
  70.         Note that a TITL would overwrite a name suffix.
  71.  
  72. 1 COMM arg  Any data following this comment tag up to the next level one
  73.         or level 0 entry will be ignored.
  74.  
  75. 1 SEX M|W|F The sex of the person is indicated only M, W and F are accepted.
  76.         where M indicates man, and F or W indicates woman.
  77.  
  78. 1 BIRT        Start of a birth entry.
  79. 2 DATE        date of birth - See below for date structure
  80. 2 PLAC        place of birth - see below for place structure
  81.  
  82. 1 DEAT Y|NIL An explicit Y or an entry in DATE or PLAC implies that
  83.         the death has occured.  Empty fields imply nothing.
  84. 2 DATE      Date of death - See below for structure
  85. 2 PLAC      Place of death - see below for structure
  86.  
  87. 1 OCCU arg  This field specifies the occupation for the person. A second
  88.         form of OCCU without an argument is also supported.
  89.  
  90. 1 OCCU        Second form of occupation entry.
  91. 2 TITL arg  Job title
  92. 2 PLAC arg  place will be concatenated with a comma to title.
  93. 2 CORP arg  company name will be concatenated with a comma to title.
  94.  
  95. 1 ADDR arg  This field specifies the address of the person.  
  96.         There are two forms of this data and the trick is to 
  97.         avoid duplicating the information since both may be present. The
  98.         address itself may be specified on this line or any of the
  99.         lines indicated below.  If text appears on the address line
  100.         then only CONT and PHON lines will be permitted.
  101. 2 CONT arg  Continuation of the ADDR line.  Multiple lines are supported.
  102. 2 PHON arg  Phone Number.
  103.  
  104. 1 ADDR      Without an argument, a more structure form is assumed.
  105.             All entries will be concatenated together on the address line, 
  106.             separated with commas.
  107. 2 ADR1 arg  Address line one.
  108. 2 ADR2 arg  Address line two.
  109. 2 CITY arg  City part of address
  110. 2 STAE arg  State part of address
  111. 2 POST arg  Postal code, also known as zip code.
  112. 2 CTRY arg  Country name.
  113. 2 PHON arg  Phone Number.
  114.  
  115. 1 PHON arg  A phone number that will be concatenated to the address
  116.         information in Ftree separated by a comma.  This could result
  117.         in duplicate entries of the phone number if PHON is also in
  118.         an address structure.
  119.  
  120. 1 NOTE arg  A note that will be placed in the Ftree memo field.  Multiple 
  121.         notes in the Individual record will all be appended to each 
  122.         other in the memo field.
  123. 2 CONT arg  A continuation line for a note. Multiples are permitted.
  124. 2 CONC arg  The argument will be concatenated to the note on the same line as
  125.         the current line. Don't expect a trailing space to be preserved.
  126.  
  127. 1 FILE arg  Set a pointer to the location of a file that is attached to
  128.         the record of this person.  This file can contain any kind
  129.         of information.
  130.  
  131. 1 PARE        This is a two line entry that causes the person to be assigned
  132. 2 RFN arg   as a child to the family referenced.  Supporting this entry
  133.         permits older forms of GEDOCM to be supported and will be used 
  134.         to build a family record in FAMI structures. 
  135.  
  136. 1 PHOT arg  Set a pointer to a photo of this person. - This form is retained
  137.         to support previous releases. It is not standard with GEDCOM 5.5.
  138.  
  139. 1 OBJE        This is the standard multi-media object format. Only the last
  140.         entry in the record for this person will be used.        
  141. 2 FORM GIF|BMP|PCX Only these types of files will be recognized.
  142. 2 FILE arg  This is a pointer to the photo of this person.
  143.  
  144. All other entries in an individual records will be ignored.  Some of these
  145. may cause loss of significant information while some will be handled
  146. automatically using other techniques by Ftree.  Those that will usually
  147. not cause a loss of information include FAMI, FAMC, FAMS, REFN, RFN, CHEC,
  148. and SIBL.
  149.  
  150. Family Record 
  151. -------------
  152.  
  153. This maps directly to Ftree database structure for a Family.  There are
  154. three words and they must be separated with spaces.  The second word on a
  155. FAM or FAMI line is taken to be a unique id for the family.  This is 
  156. preserved in Ftree but is not used elsewhere during the import.  In
  157. GEDCOM syntax the unique id is bracketed with an '@' sign. For example:
  158. @F27@.  It must be numeric with an optional leading F which will be
  159. ignored.  Note that FAMI is supported to permit the import of older GEDCOM
  160. databases.  All entries of persons in a family entry are made by the id
  161. value with the individual record.  Note that Ftree requires that both
  162. a HUSB and WIFE exist for a family record but a marriage entry is not
  163. required.  Some GEDCOM files do not supply both a HUSB and WIFE entry
  164. in all cases so these will be invented by the interface to satisfy Ftree 
  165. requirements.  There can only be one HUSB and one WIFE per family, however
  166. the same person can appear in more than one family. Data from a family
  167. record will automatically appear in both SPOUSES individual data fields
  168. inside of Ftree.
  169.  
  170. Some versions of GEDCOM files only include the MARR and DIV events if
  171. the event occurred but do not include the Y.  This behavior is most
  172. common with older version 4.0 GEDCOM files.  There is a setting in
  173. IMGEDCOM.FTX source file that can be changed to permit proper 
  174. interpretation of these older files. Look for VERS.
  175.  
  176. 1 HUSB id   This entry assigns the specified husband to this family.
  177.  
  178. 1 HUSB        Alternate form of HUSB record to support older formats.
  179. 2 RFN id
  180.  
  181. 1 WIFE id   This entry assigns the specified wife to this family.
  182.  
  183. 1 WIFE        Alternate form of WIFE record to support older formats.
  184. 2 RFN id
  185.  
  186. 1 CHIL id   This entry assigns the specified child to this family.
  187.         This entry type is only supported in FAM record types.
  188.  
  189. 1 CHIL        This entry without an id is only supported for FAMI record
  190.         types.  It triggers the entry of all previously saved child
  191.         information for this family.
  192.  
  193. 1 MARR Y|Nil A marriage event is signified by a Y or implicitly by an
  194.         entry in the date or place fields. See comment on 4.0 above.
  195. 2 DATE        Date of marriage 
  196. 2 PLAC        Place of marriage
  197.  
  198. 1 DIV  Y|Nil This entry indicates the husband and wife are divorced if
  199.         the Y is present or a date is mentioned.  DIV is only supported
  200.         in FAM record types. See comment on 4.0 above.
  201. 2 DATE        Date of divorce gets placed in the 'End' entry in Ftree.
  202.  
  203. 1 DIVO Y    This entry indicates the husband and wife are divorced if
  204.         the Y is present.  Only supported in FAMI record types.
  205.  
  206. 1 COMM arg  Any data following this comment tag up to the next level one
  207.         or level 0 entry will be ignored.
  208.  
  209. All other entries in a family record will be ignored.  Some of these
  210. may cause loss of significant information while some will be handled
  211. automatically using other techniques by Ftree.  Those that will usually
  212. not cause a loss of information include CHEC. A entry of '2 OTHE' in HUSB
  213. or WIFE entry to signify a second family will be handled automatically by
  214. Ftree.
  215.  
  216. Date Format
  217. -----------
  218.  
  219. The preferred format for a date entry is 'day month year'.  This entry may
  220. optionally be preceded with a modifier.  ABT, AFT, BEF, EST are the only
  221. modifiers accepted and mean about, after, before and estimated
  222. respectively.  Month may be entered as a three letter abbreviation or a
  223. number. The LANG entry in the HEAD section will determine the accepted
  224. abbreviations for months. Some fields may be missing if they are unknown.
  225. Internally a Y entry on a MARR, DIV, DIVO, or DEAT line is stored as ABT in
  226. the year 0.
  227.  
  228. The older form of YYYYMMDD is also accepted where YYYY is the year, MM is
  229. the month entered as a number, and DD is day.  Unknown entries should be
  230. entered as 0's so that the full 8 characters are always present.  Appending 
  231. an 'A' to the 8 number sequence is decoded to the ABT modifier.
  232.  
  233. Place Format
  234. ------------
  235.  
  236. The place format for Ftree is a free form entry.  Some GEDCOM files may
  237. contain a comma separated list with fixed meanings as to the order and
  238. number of commas.  These commas will be preserved but not interpreted by
  239. Ftree.
  240.  
  241. EXPORTING GEDCOM FILES
  242. ----------------------
  243.  
  244. This section documents the EXGEDCOM.FTX program for exported GEDCOM files
  245. as a backup or for other systems.  Generally all of the structures in
  246. the FTREE database can be exported without loss of significant information 
  247. into an industry standard GEDCOM format.  (Currently events and user
  248. defined tags aren't supported but they will be in a future release.)
  249. The GEDCOM format is a revision of an older PAF format and has, itself,
  250. gone through several revisions.  In general exgedcom.ftx outputs a
  251. file that is compatible with version 5.3 of the standard but can
  252. be configured by changing a variable, VERS, in the source to output the
  253. lastest 5.5 version.  In many instances the 5.3 output will also be
  254. adequate to communicate with systems that understand versions as low
  255. as 4.0.  Be aware that some other systems have severe line length limits
  256. and may truncate data when read.  The oldest format, PAF 2.0, cannot be
  257. generated by this program although the import program can read it.
  258.  
  259. EXGEDCOM outputs a file that is subset of the data that is understood
  260. by the GEDCOM import routine.  A HEAD record is output, followed by
  261. a separate INDI record for each person in the database.  A FAM record is
  262. generated for each family in the database and finally a TRLR record is output.
  263. Some receiving systems expect to see additional records such as the
  264. name of the submittor of the file.  This information can be placed in
  265. a separate file using the same basename as the intended GEDCOM output file
  266. except that the extension must be .INC instead of .GED.  There is a
  267. SAMPLE.INC file that accompanies FTREE that can serve as a template for this
  268. file.  The data must already be in GEDCOM format.
  269.  
  270. The individual records output NAME data, and optionally the new structured
  271. form in 5.5, SEX data, BIRTH data, DEATH data, TITL data, PHOTO data
  272. (called OBJE in 5.5), OCCU data, ADDR data, FILE data, NOTE data, and
  273. FAMC/FAMS pointers.  Family records include HUSB, WIFE, CHIL pointers, MARR
  274. data and DIV data.  Tags are only output when some data is present.
  275.  
  276.