***************************************************************************
*                                                                         *
*   The ARexx scripts and programs included with this distribution of     *
*   Scion are the work of Scion users. If you wish to discuss these       *
*   scripts and programs or make suggestions, please CONTACT THE AUTHORS  *
*   DIRECTLY.                                                             *
*                                                                         *
***************************************************************************

Please note that ALL scripts and programs are supplied AS IS, and no
guarantees are made.  Note also that some of the scripts that involve a
graphical user-interface may require the use of additional libraries (not
supplied) and may be designed for PAL video screens only.

Most of these ARexx scripts and programs will work with Version 4 of Scion,
however some have been re-written to take advantage of the additional ARexx
commands available only with Version 5.

The scripts supplied by Freddy Aris are also covered by the conditions
detailed at the end of this file. For conditions covering other scripts and
programs, please refer to the supplied documentation or the ARexx scripts
themselves.

The following scripts and programs are included:

-----------------------------------------------------------------------------
Age.rexx
   This script should tell you the Age of a person in the SCION database.
   It does expect the date to be in the format DD MMM YYYY but as long as
   the year is the last 4 characters, it will give you an age within 1 year.
   The database must be running for this AREXX script to work.

   Author: Peter Billing, RMB 1240, Yinnar 3869, Australia
-----------------------------------------------------------------------------
Dump-Fam.rexx
 Version 1.1 (31 Aug 1993)
   Dump the database by family, one line per family.

   Author: Ralph L Vinciguerra, 460 Summer Ave, Reading, MA 01867, USA
-----------------------------------------------------------------------------
Dump-Ind.rexx
 Version 1.1 (31 Aug 1993)
   Dump the database by individual, one line per person. This can be sorted
   with the Amiga command: sort from filein to fileout colstart 24

   Author: Ralph L Vinciguerra, 460 Summer Ave, Reading, MA 01867, USA
-----------------------------------------------------------------------------
FixDate.rexx
 Version 1.02 (19 Dec 1997)
    For all those people who ignored the recommended date format to
    use with Scion prior to version 5, then this may be for you. It
    should be run on the data loaded into a pre-version 5 copy of Scion.
    This programme is of no use whatsoever under version 5+.

    This ARexx programme will convert all 'numeric' style dates in the
    current database into the preferred '10 Jan 1769' type format. The
    day, month and year can be separated by ' ', '/', '.', or ','.
    Examples- '12 9 1897', '12/9/1897', '12.9.1897' or '12,9,1897'.

    This programme will convert ONLY 'fully numeric' dates. It will NOT
    attempt to 'fix' any dates containing any alphabetic characters.
    This INCLUDES dates in the preferred '10 Jan 1769' format!

    Any dates that this programme cannot convert will be left UNCHANGED
    and noted in the file 'RAM:DateFixReport'.

    Don't forget to save your database after the 'date fix', and it is
    recommended you save it under a new name - just in case!

    Date formats supported -
      European format - Example: 27/10/1987 for '27 Oct 1987'
      American format - Example: 10/27/1987 for 'Oct 27, 1987'

      Other 'numeric' formats should be easy to add.

    Author: Robbie Akins
-----------------------------------------------------------------------------
FixLastNames.rexx
   This script should FIND and REPLACE a given LAST name in the SCION
   database.

   Author: Peter Billing, RMB 1240, Yinnar 3869, Australia
-----------------------------------------------------------------------------
FixPlaceNames.rexx
   This script should FIND and REPLACE a given PLACE name in the SCION
   database. It will check Birth, Death, Burial and Marriage place names.

   Author: Peter Billing, RMB 1240, Yinnar 3869, Australia
-----------------------------------------------------------------------------
GEDCOM2Scion.rexx
 Version 2.33 (6 Nov 1997)

  This program was created to import GEDCOM data into the Scion database.
  It should work pretty good by now, although no guarantees whatsoever
  are made. If you have problems using this script, please contact Freddy
  Aris, and describe exactly what the problem is, or better yet, send Freddy
  a copy of the GEDCOM file you are trying to read, and he will try to fix it.

  GEDCOM was developed by the Family History Department of the Church of
  Jesus Christ of Latter-day Saints to provide a flexible uniform format
  for exchanging computerized genealogical data.  GEDCOM is an acronym for
  GEnealogical Data Communication.  GEDCOM is provided to foster the
  sharing of genealogical information and the development of a wide range
  of inter-operable software products to assist genealogists, historians,
  and other researchers.

  + SCION must be running for this AREXX script to work.
  + This script uses (by default) the rexxreqtools.library (which requires
    a version of reqtools larger than 2.0 and rexxsyslib.library).
    If you do not have these, run SetDefaults.rexx to change the settings.
  + Even though this script does no parsing of dates, it's safer if they
    are in the exact format "DD MMM YYYY".

  All unrecognized fields or fields that Scion doesn't use, are skipped.

  NOTES:
  + The program generates a file FILENAME.log (where FILENAME is the
    name of the GEDCOM file read), in the directory where the GEDCOM file
    is located. This .log file contains parsing info about which lines were
    skipped and which non-fatal errors were encountered. It may be a good
    idea to read this file!
  + FAMS and FAMC fields, and EVEN structures will always be skipped,
    because I use another method of establishing family (spouse & children)
    relationships. If no relationships are established, this probably means
    that the imported file does not support that other method. If you
    encounter such a file, please send it to me, and tell me what program
    generated it. If this happens a lot, I will add support for the parsing
    of these relations in a future version.
  + If you see strange strings in the Reference fields (eg. something like
    "R1"), you may be able to find more reference information in the GEDCOM
    file in the SOUR structure with that reference number (eg. @R1@).

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Help.rexx
 Version 1.21 (12 Oct 1997)

   Just a simple menu, for those who can't remember under which function
   key they have stored a certain function.

   This script will output a requester on the Scion window, in which it
   will display the current settings of Scion's function keys.
   It requires a version of Scion Genealogist >= 4.04.

   This script uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, run SetDefaults.rexx to change the settings.

   For this script to be of any use to you, you will have to add the
   NewHelp.rexx command to the list of function keys that you have set in
   the ScionPrefs program (eg. under F1 or F10).

   DONE:
    - added "stripstring" option, and handling of long results
      (done by Robbie Akins)
    - enhanced stripstring options
    - now uses preference file for default settings
    - added support for additional V5 fields

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Links.rexx
 Version 1.20 (12 Oct 1997)

   ARexx script to find unrelated family trees in the database
   It will detect all family trees within the database that have no links
   (spouse, parent or child links) to other present family trees.

   This version uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, run SetDefaults.rexx to change the settings.

   DONE:
    - progress indicator, using rexxarplib.library (requested by R.Akins)
    - now uses preference file for default settings
    - use of GETFIRSTIRN/GETNEXTIRN/GETLASTIRN commands for v5 and up

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.

   See also "unrelated.rexx" and SetDefaults.rexx
-----------------------------------------------------------------------------
PedigreeGuide.rexx
   Version  1.1 (16 Nov 1997)

   This ARexx program will create an AmigaGuide document containing:

   A pedigree chart for the current person (i.e., the current IRN) for a
   selectable number of generations; the current person is the "root" of
   thepedigree.

   Records (all information entered on the personal details screen, parents,
   siblings, spouses, all information entered on the family details screen
   (foreach spouse, as applicable), and children) for each person contained
   in thepedigree chart.

   Records containing all the above information for each person referenced
   bysomeone in the pedigree chart.

   Records will only be generated for referenced people falling between the
   generation of the root person and the highest generation selected.

   Links to individual and family notes and pictures.

   An alphabetized (by both family name and given name) list of all
   individualswith records in the guide, including birth and death years
   when available.

   New in v 1.1: The relationship of each person to the "root" person is
   identified. Special note from Robbie Akins: With Scion 5.06, an 'aunt'
   is incorrectly identified as a 'grand aunt'. This is corrected in later
   versions of Scion.

   Derived from "Scion2Guide.rexx" by Robbie Akins.

   Author: Ron Goertz, 223 Clay Ct, Pullman, WA 99163. Email: rgoertz@wsu.edu
-----------------------------------------------------------------------------
PrintDescendant.rexx
 Version 2.06 (25 Nov 1996)

  Output options:
   1. Descendant Chart - all descendants [Dutch: parenteel]
   2. Descendant Chart - male descendants (mention daughters, no children)
      [Dutch: genealogie - nageslacht van zonen, maar vermelding dochters]
   3. Descendant Chart - male descendants (leave out daughters)
      [Dutch: stamboom - nageslacht van zonen, geen vermelding dochters]

  This script uses (by default) the rexxreqtools.library (which requires
  a version of reqtools larger than 2.0 and rexxsyslib.library)
  If you do not have these, run SetDefaults.rexx to change the settings.

  As of v2 of this script, and Scion V4, the current person on Scion's
  Personal Window will be used to determine where the search starts.
  Scion 3.13 can still be used, though, in which case the user will be
  asked at which IRN he wants to start.

  DONE:
   - Now uses preference file for default settings
   - count the number of lines output and give a linefeed after a certain
     number (ie. skip page breaks)
   - Inclusion of name/address data from prefs (optional)

  See also SetDefaults.rexx

  Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
PrintPedigree.rexx
 Version 2.08 (25 Nov 1996)

  Output options:
   1. Pedigree Chart - male ancestor line only [Dutch: stamreeks]
   2. Pedigree Chart - all ancestors, no siblings [Dutch: kwartierstaat]
   3. Pedigree Chart - all ancestors, only siblings of last generation
   4. Pedigree Chart - all ancestors, all siblings

  This script uses (by default) the rexxreqtools.library (which requires
  a version of reqtools larger than 2.0 and rexxsyslib.library)
  If you do not have these, run SetDefaults.rexx to change the settings.

  As of v2 of this script, and Scion V4, the current person on Scion's
  Personal Window will be used to determine where the search starts.
  Scion 3.13 can still be used, though, in which case the user will be
  asked at which IRN he wants to start.

  So why this PrintPedigree script when Scion already has a print option
  for pedigree charts? Well, the reason is simple: the format of the
  pedigree charts generated by Scion does not conform to the guidelines
  of the Dutch CBG (Central Bureau for Genealogy) and NGV (Nederlandse
  Genealogische Vereniging; Dutch Genealogical Society). So I created my
  own PrintPedigree script, that *does* follow their guidelines.

  DONE:
   - Now uses preference file for default settings
   - count the number of lines output and give a formfeed after a
     certain number (ie. skip page breaks)
   - Inclusion of name/address data from prefs (optional)

  Known Bugs/Problems:
   - This script is dog slow for large databases (ie. more than, say, 10
     generations), even on Amigas with a Turboboard!
   - Incorrect assumptions may be made (with regard to father/mother) when
     there are persons in the database whose sex-field has value '?'

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Scion2GEDCOM.rexx
 Version 2.46 (6 Nov 1997)

   This program was created to export the Scion data into the GEDCOM file
   format. It should work pretty good by now, although no guarantees
   whatsoever can be given. If you have any problems using this script,
   please describe them to Freddy Aris, as detailed as possible (and
   please also tell him what program you are using to read the GEDCOM file),
   then he will try to work out a solution.

   GEDCOM was developed by the Family History Department of the Church of
   Jesus Christ of Latter-day Saints to provide a flexible uniform format
   for exchanging computerized genealogical data.  GEDCOM is an acronym for
   GEnealogical Data Communication.  GEDCOM is provided to foster the
   sharing of genealogical information and the development of a wide range
   of inter-operable software products to assist genealogists, historians,
   and other researchers.

   + SCION must be running for this AREXX script to work.
   + This script uses (by default) the rexxreqtools.library (which requires
     a version of reqtools larger than 2.0 and rexxsyslib.library)
     If you do not have these, run SetDefaults.rexx to change the settings.
   + Dates should be in English, and in the format "DD MMM YYYY" or
     "DD-MMM-YYYY", if you don't want any problems with programs importing
     the GEDCOM data.
     If the dates in your database are not in English, please run the
     Translate.rexx script first!

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Scion2Guide.rexx
 Version 1.01 (31 Oct 1995)

   NOTE: The script "Scion2html.rexx" by Harold Ipolyi now supercedes this
         programme.

   An ARexx script to make ".guide" hypertexts from Scion Genealogist
   databases. It will create not only a "guide" based representation of
   a family tree, but will also provide buttons to note files and pictures
   as long as the notes and pictures are in the same directory as the
   database.

   Friendly warning: You'll need lots of disk space for the output!

   This version uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, you need to supply the NOREQ argument (for
   Shell output).

   Inspired by and derived from "Scion2html.rexx" by Harold H. Ipolyi (see
   below). Also with assistance from Freddy Aris.

   See also "Scion2html.rexx" by Harold H. Ipolyi which now has the ability
   to generate .guide files.

   Thanks for doing all the HARD work, guys!

   NOTE: This is version 1 and requires a lot more work. Especially
         support for the new fields available with Scion version 4,
         and to remove some redundant code. See "Scion2html.rexx" instead.

   DONE: now uses preference file for default settings, and
         improved public screen support (both by Freddy Aris)

   See also SetDefaults.rexx

   Author: Robbie Akins
-----------------------------------------------------------------------------
Scion2html.rexx
 Version: 30 Mar 1997

   ARexx script to make html and amigaguide hypertexts from Scion Genealogist
   data bases. Also produces an ASCII text file from the database.

   PREREQUISITES: Scion V 4.07+  Rob Akins
		  ARexx (of course :)
		  rexxsupport.library
		  rexxarplib.library
		  HTML/WWW browser (AMosaic, Mosaic, ... )

	 also:	 (to incorporate and display in-line pictures)
		 GfxCon V1.7+  Dirk Farin ( must be in: Sys:Tools)
		 Amiga OS 3.0+ for displaying picture datatypes

   TESTED:
    ||	on Amiga3000 Kickstart v.37.175 Workbench v.38.35
    |    assume   |	&  Amiga3000 Kickstart v.40.68  Workbench v.40.42
    |  TradeMarks |	w/ ScionGenealogist V 3.06 & Mosaic1.2NoNet
    |      &      |	w/ ScionGenealogist V 3.13 & Mosaic1.3betaAmitcp
    |  CopyRights |	w/ ScionGenealogist V 4.07 & Mosaic2.0Prerelease
    |     as      |
    | appropriate |	HTML file compatibility tested on: AMosaic, Ibrowse_demo,
    |_____________|	HotJava, NCSA Mosaic (Sun), Netscape (Sun), Netscape (Mac)

   BUGS:
        Scion2html.rexx only recognizes the first Scion ARexx port name:
        "SCIONGEN". If additional copies of Scion are running concurrently,
        they are ignored.

        If a new Thumbnail format is selected, the user must manually edit
        the Picture Album files to reflect the new Thumbnail suffixes.

        The Picture Album files may have been  User  modified (and must
        therefore be protected against auto-regeneration)

   Author: Harold H. Ipolyi, P.O.Box 891206, Houston, Tx 77289-1206, USA.
-----------------------------------------------------------------------------
SetDefaults.rexx
 Version 1.02 (1 Dec 1995)

  Instead of having to edit my scripts every time I release an update,
  to change the settings to your own liking, you can now just run this
  script once, and all the scripts will use the created prefs file.
  This means that in the future, you will never again have to do any
  editing after an update !!!

  Note to other ARexx programmers: feel free to use the preferences file
  (ENV:Scion/ScionRexx.prefs) for your own purposes. There are only a few
  things you have to take into account:
  1. Every line has to start with a unique keyword
     (keywords currently in use: [NO]USEREQ, [NO]USEPROGRESS, PUBSCREEN
      NOTES, LINEWIDTH and PAGESIZE)
     So if you want to put all your settings on one single line, fine,
     but please make sure the first word of the line is not one of the
     above!
  2. Please write the required lines of code for reading and writing your
     settings (keywords AND options) from/to the file, and mail them to me,
     for inclusion in this script. If you do not do this, your settings
     will be erased from the prefs file when the user uses this script to
     modify the existing settings.
  3. If you put a save option in your own script, make sure it does not
     modify or erase any of the other lines that are in the file.
     Only this script is allowed to do that.

  IMPORTANT: This script is FREEWARE, NOT Public Domain. You can use and
    distribute it freely, ie. I don't ask any money for it, but you
    are not allowed to modify it. To avoid having different versions
    of this script floating around, each recognizing different keywords,
    (see points 1-3 above), I am the only one allowed to change it.

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Soundex.rexx
 Version 1.08 (25 Oct 1997)
   Program for Scion Genealogist 4.0 and above (no guarantees are given
   for lower versions). This program should ask the user for a (last)name,
   and output the list of names in the current Scion database that match
   the entered name, using the SOUNDEX method of name comparison.
   Scion Genealogist must be running for this script to work.

   This script uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, run SetDefaults.rexx to change the settings.

   For those who don't know what SOUNDEX is, here is a short intro:

   The Soundex system is the means established by the National Archives
   to index the U.S. censuses (beginning with 1880). It codes together
   surnames of the same and similar sounds but of variant spellings.
   Soundexes are arranged by state, Soundex code of the surname, and
   given name.

   Soundex codes begin with the first letter of the surname followed by a
   three-digit code that represents the (first three) remaining consonants.
   This Soundex converter will do the tricky work for you and capture the
   nuances of the coding scheme (such as coding adjacent like letters as
   one). Just enter the surname that you want coded.

   Soundex Coding Guide
    1 = B,P,F,V
    2 = C,S,G,J,K,Q,X,Z
    3 = D,T
    4 = L
    5 = M,N
    6 = R

   The letters A,E,I,O,U,Y,H and W are not coded.

   Note that surname prefixes such as Van, Von, Di, De, Le, D', dela, or
   du are sometimes disregarded in alphabetizing and in coding.
   Therefor it is wise to code it with and without the prefix because it
   may be listed under either code. Eg. Van Hoesen could be coded as
   VanHoesen or as Hoesen.

   With Version 5+ of Scion, this script can also perform Metaphone matching.
   Invoke the script as "rx Soundex.rexx META" to perform Metaphone matching
   instead of Soundex matching.

   DONE:
    - 2 consecutive letters with the same code are now treated as one
      eg. LLOYD=LOYD -> [LD=L300], and JACKSON (CKS are all 2) -> [JCN=J250]
    - now uses preference file for default settings
    - Use of GETFIRSTIRN/GETNEXTIRN/GETLASTIRN commands for v5 and up
    - Use of v5 built-in commands for Soundex and Metaphone support
    - Added progress requester

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
-----------------------------------------------------------------------------
Translate.rexx
 Version 1.36 (28 Oct 1995)

   You may have noticed that setting another language in Locale means that
   the date (month) fields of your database are no longer recognized
   correctly. This is where Translate comes in.

   It will convert all the standard language fields in a Scion database (in
   v4.0+, that means the Date fields) into another (predefined) language.
   Currently Dutch, German, French, Italian, Norwegian, Swedish and Finnish
   are supported, but only translation to and from English is possible.
   Adding other languages shouldn't be hard.

   This version uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, run SetDefaults.rexx to change the settings.

   DONE:
     - progress indicator, using rexxarplib.library
     - (requested by Robbie Akins himself)
     - now uses preference file for default settings

   See also SetDefaults.rexx

   Author: Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.

   NOTE: This program is essentially obsolete for Scion v5, but MAY be
         needed to convert a "foreign language" Version 4 database BEFORE
	 it is loaded into Scion v5.
-----------------------------------------------------------------------------
Unrelated.rexx
 Version 1.03 (12 Oct 1997)

   ARexx script to find "unrelated" people in the database.
   That is, it will locate all those people who have no parents and who
   have no marriages recorded (and hence cannot have any recorded children)

   This version uses (by default) the rexxreqtools.library (which requires
   a version of reqtools larger than 2.0 and rexxsyslib.library)
   If you do not have these, run SetDefaults.rexx to change the settings.

   Now uses preference file for default settings, added by Freddy Aris

   1.02: Now uses preference file for default settings (by Freddy Aris)
   1.03: Now supports v5 commands GETFIRSTIRN/GETNEXTIRN/GETLASTIRN

   See also Links.rexx and SetDefaults.rexx by Freddy Aris

   Author Robbie Akins + bug fix from Freddy Aris. See also "Links.rexx"
-----------------------------------------------------------------------------
Witness.rexx

   Ted Wildy (NZ) is accumulating UK marriages, indexed on WITNESSES.

   This script reads your Scion Family records and tries to construct
   records for inclusion in the Index, writing its output to the file
   RAM:Witnesses, where you can edit it as required before submission.
   Of course, the Scion database must be running for the script to work.

   The format of a single four-line file record in the existing files
   (which this script tries to reproduce) is:

       Witness-Forenames   Witness-SURNAME     date        Church
       Husband-Forenames   Husband-SURNAME     Town        XXX
       Wife----Forenames   Wife----SURNAME     your-FHS/member-number
          your full name and address (for contact)

       where XXX represents the UK County code.

   Author: David Beames (dave@beames.demon.co.uk)
-----------------------------------------------------------------------------

The following note is from the author Freddy Aris:


My scripts are able to use the ReqTools.library, and default to that,
if you have rexxreqtools.library (No, these libraries are not included
here, because it would make the package too large, but they are freely
distributable and should be easy to obtain).

Some of these scripts can also display a progress indicator on the screen,
and default to that if rexxarplib.library is present.

If you do not want to use reqtools requesters or a progress indicator,
or if you want to change any of several other default settings used in my
scripts, just run the SetDefaults.rexx script.
THERE'S NO MORE NEED TO EDIT THE SCRIPTS TO CHANGE THESE SETTINGS!

Please don't use these scripts as examples of good programming in ARexx!
Initially they were just quick hacks for myself, not really meant for
public distribution. And even though they have come to be a fixed part
of the Scion distribution and have developed based on the wishes of users,
basically, that just means that they're hacked up even more now than they
were at the start.
I do try to keep them free of bugs, though, so I would really like to hear
it if you encounter any bugs, but also if you have any suggestions or
comments!

My scripts are released to the PUBLIC DOMAIN, unless otherwise specified
in the header of the script. This means that you can do with them whatever
you want. All I ask of you is to (please) name me as the original author.

NO WARRANTIES! I do not take the responsibility for ANYTHING, including,
but not limited to, the loss of data caused by any of these scripts.
Everything you do with the scripts is your own responsibility, and at your
own risk.

Freddy Aris, Lindeboomweg 7, NL-7135 KE Harreveld, The Netherlands.
24 Oct 1995
