Introduction
An Icon is a small image file that will sit against a box on a diagram. Some users feel they are an excellent way of keeping visual track of information, such as what census recordsCensus records are national collections of population statistics. They usually record details about members of a household on a particular date, and are typically collected every ten years. have been associated with people, immigration factsFacts are one of the key concepts at the heart of Family Historian; they are how you record the things that happened to, or described, each ancestor (Individual)., death during infancy, twins, or work in progress.
How Can I Create an Icon
The Diagram Icons Downloads collection offers Icons to identify facts and other data items. Some use National Flags to show birth placesAccording to GEDCOM, a Place should hold "The jurisdictional name of the place where the event took place…" or immigration, which on diagrams are helpful as visual aids during a census trace exercise.
In ƒh8 the supplied icons are SVG, and your own icons are added with File > Import/Export > Diagram Box Icons, which puts them in a Custom category; see Diagrams in Version 8. SVG gives the best results. PNG, EMF and BMP files can still be imported, but icons made for earlier versions may show in a white box. To get rid of it, convert them to SVG with a transparent background (the free Inkscape will do this) and import the SVG files. If you gave your old icons a background colour to match your diagrams, leave it out this time: a transparent background looks the same and still works on a different background or with generation banding. Convert one icon and check it in a diagram before you do a whole set.
Most SVG icons work as they are, but ƒh8 ignores two things in an SVG file. If letters or numbers are missing from an icon, it’s because ƒh leaves out text. Open the icon in Inkscape, choose Edit > Select All, then Path > Object to Path, and save: the letters are then drawn as shapes, and shapes always show.
If an icon comes out black in ƒh but looks right in Inkscape, its colours are kept somewhere ƒh doesn’t read, which is common in icons downloaded from the web. Inkscape has to write each colour out again. Click a coloured shape, open Object > Fill and Stroke and note the code in the RGBA box. Click any other colour in the palette at the bottom of the window, then type the code back into the RGBA box and press Enter. Do the same for each colour, then save. Typing the same code in without changing it first does nothing: Inkscape decides there’s nothing to save.
The thumbnails in the Select Icon dialog show the same as the diagram will, so you can check an icon there before you use it.
The rest of this section is for earlier versions.
In earlier versions, if you can’t find a suitable Icon in our Downloads, it is worthwhile to try to edit one of the .bmp files supplied in ƒh using an Image Editor such as PAINT (on most Windows PCs), or Adobe Photoshop, etc.
These Icon files are located in the Family Historian Program Data Folder in the Icons sub-folder. It is advisable to add any new Icons either to that sub-folder, or to your Family Historian Projects folder.
Using Icons
Icons are managed in Diagrams by opening Diagram > Options, navigating to the Boxes tab and using the <<Add/Edit/Delete>> Condition buttons.
To select a Flag as a Condition, click the <<Add Condition button, choose Record Flag, and select the Flag from the list. A tab for that Flag will be added to the Record Flag pane below the Conditions.
A Condition can also be an ExpressionExpressions are composed from two technical features: Data References and Functions; they also often involve Operators to compare values. that involves Data ReferencesData references are expressions which are used to provide a way of referring to particular items of data in your project, such as records or particular fields within records. They can be used for advanced customizations of diagrams, websites, family or FunctionsA 'function' is an expression which returns values based on computations. Typically, functions require data to be supplied to them as 'parameters'. A function in Family Historian is similar to a 'function' as used in spreadsheet applications (such as MS. So a Flag is no longer needed to define a Condition associated with basic GEDCOMGEDCOM, an acronym for GEnealogical Data COMmunication, is a specification for exchanging genealogical data between different genealogy software. It is a file format that most genealogical programs and online trees recognise. data.
To choose the Icon, first select the Condition Record Flag or Expression, then click the Edit Features… button. In the Box Features window, tick the Icon option and <<Select the Icon file.
Note that other Features can also be chosen to depict the Condition, e.g. changing the Text Colour or the Box Fill.
Worked Examples
As a simple example, assume that an Icon is desired to depict every Retirement EventEvents are things that happened to an Individual and Attributes are things that described them., and a Y presented in an Individual RecordEvery person in your tree will have a single Individual Record, which holds all the information about that individual that you have entered. You can view and edit Individual records in the Property Box Dialogue. Window Column.
Simply add a Condition Expression of %INDI.RETI% and select the Icon as described above. With this technique the Icon is always factual, because its Condition is the existence of the Retirement Event itself.
To obtain more precise Conditions use an Expression based on the examples below, assisted by the <<Insert Data Ref… button.
%INDI.RETI.DATE%will match the 1st Retirement Event if it has a DateWhen an Event happened, or an Attrribute was true. defined.%INDI.BAPM.SOUR>%will match the 1st Baptism Event if it has a SourceSource: "where information was found". This could be anything from an archive in a county records office, a book, or even a relative's recorded recollection. Citing your Sources helps to show how you reached a particular conclusion about an Individual. CitationA link between a source and a fact, documenting Where within the source you find information being "cited" to support the fact/conclusion..%INDI.CENS[year=1901]%will match a Census Event with a Date in 1901.%FAM.MARR.PLAC%will match the 1st Marriage Event if it has a Place defined.
Much more complex Expressions are possible with the use of Functions and some examples are given below:
=Exists( %INDI.FAMS>MARR.PLAC% )is an alternative to the preceding 1st Marriage Event example.=Exists( %INDI.FAMS[2]>MARR.PLAC% )is a similar alternative, but for a 2nd Marriage Event.=IsTrue( %INDI.CENS[year=1871].SOUR>_TYPE% = "Census" )matches a Census Event in 1871 with a Source Citation where its Type is Census.=ContainsText( %INDI.BAPM.SOUR>TITL%, "Baptism", STD )matches the 1st Baptism Event if it has a Source Citation whose Name contains the word Baptism.=IsTrue( (Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(NextSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2 ) or (Diff(DayNumber(%INDI.BIRT.DATE%),DayNumber(Field(PrevSib(%INDI%,1),'INDI.BIRT.DATE'))) < 2 ) )finds twins and other multiple births.
Icon File Links (Version 7 and earlier)
In ƒh8, icons are chosen from the categories in the Select Icon dialog instead; to move your own to another PC, export them with File > Import/Export > Export > Diagram Box Icons.
In earlier versions, to add an Icon, open the Box Features window, tick the Icon option and <<Select the Icon file. This file can be anywhere on the PC, but you should consider the ease of moving your ƒh configuration to another PC when deciding where to store the file.
If the Icon file is in the Family Historian Program Data Folder Icons sub-folder, then just its filename is saved and it will migrate to another PC. So if you need custom Icons, add them to this Icons sub-folder.
In all other cases the Icon file path is saved in full, and often will NOT migrate to another PC, so the Icon file link will become broken and need repairing. If the Family Historian Program Data Folder is synchronised on two PC via cloud storage such as Dropbox then this is unworkable for the synchronised Diagram files. A possible solution is to use a folder that has the same file path on most PC, such as the Public Pictures folder, or the Family Historian Program Data Folder sub-folders, which are the same on Windows Vista/7/8/10.
Why does the Icon overlap the Shadow in my Text Scheme?
The Icon position is set to sit immediately below a box on top down diagrams. If you have opted to have a shadow under that box, the Icon needs to have some space at the top to make it appear to be lower. This is done by making the top bit a background colour which basically just doesn’t show on the diagram!