Changes

Jump to: navigation, search

Customize the Genealogical Symbols lookup table

63 bytes added, 02:52, 30 March 2020
m
no edit summary
 
{{stub}}
{{man warn|1=temporary Workaround |2=This article is not intended for casual use. The Genealogical Symbols feature was a [[GEPS_039:_Genealogical_symbols_in_gramps|recent addition]] in the Gramps 5.1 version. Some function are not yet configurable through the interface.}}
[[File:EditPreferences-GenealogicalSymbols-tab-default-51.png|center|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - initial Preferences tab]]
After clicking the "{{man button|Try to find" }} button in the Genealogical Symbols preferences tab
[[File:EditPreferences-GenealogicalSymbols-FindFont-51.png|center|thumb|300px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Finding fonts]]
For a Windows 10 computer with 191 font families installed, 1 Unicode font (Segoe UI Symbol) was found that included all the required glyphs.
When the search has completed select one of the fonts from the {{man buttonlabel|Choose font}} list and then select the checkbox:<br />{{checkbox|1|Use symbols}} :List of Genealogical Symbols shown (listed in order shown at bottom screenshot):<!-- * Female* Male* Asexuality, sexless, genderless* Lesbianism* Male homosexuality* Heterosexuality* Transgender, hermaphrodite (in entomology)* Transgender* Neuter * Illegitimate* Birth* Baptism/Christening* Engaged* Marriage* Divorce* Unmarried partnership* Buried* Cremated/Funeral urn* Killed in action* Extinct * Death--> <!-- Unicode symbols not showing on mediwiki due to ??? add back when worked out{{-}}* &#2640; - Female* &#2642; - Male* &#26aa; - Asexuality, sexless, genderless* &#26a2; - Lesbianism* &#26a3; - Male homosexuality* &#26a4; - Heterosexuality* &#26a5; - Transgender, hermaphrodite (in entomology)* &#26a6; - Transgender* &#26b2; - Neuter * &#229b; - Illegitimate* &#002a; - Birth* &#007c; - Baptism/Christening* &#26ac; - Engaged* &#26ad; - Marriage* &#26ae; - Divorce* &#26af; - Unmarried partnership* &#26b0; - Buried* &#26b1; - Cremated/Funeral urn* &#2694; - Killed in action* &#2021; - Extinct * &#271e; - Death -->
[[File:EditPreferences-GenealogicalSymbols-tab-activated-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Preferences tab - activated defaults]]
{{-}} === Where are the Symbol definitions are stored in Gramps ===The definitions for :List of Genealogical Symbols for Gramps labels are located shown (listed in order shown in the Gramps application directory. The relative file subpath is: https&#58;&#x2f;&#x2f;github.com/gramps-project/gramps/blob/maintenance/gramps51/[https://github.com/gramps-project/gramps/blob/maintenance/gramps51/gramps/gen/utils/symbols.py gramps\gen\utils\symbols.py]  * Gramps application directory path varies by OS:: Linux: [[All_In_One_Gramps_Software_Bundle_for_Windows#Installation_folder{{man label|Windows]]What you will see: MacOS  A backup copy of the file is archived on GitHub }} Preview at : https&#58;&#x2f;&#x2f;github.com/gramps-project/gramps/blob/maintenance/gramps51/[https://github.com/gramps-project/gramps/blob/maintenance/gramps51/gramps/gen/utils/symbols.py gramps/gen/utils/symbols.py]   <span style="white-space:nowrap; display:inline;"> all_symbols = [ # Name UNICODE SUBSTITUTION (_("Female"), '\u2640', ""), (_("Male"), '\u2642', ""), (_("Asexuality, sexless, genderless"), '\u26aa', ""), (_("Lesbianism"), '\u26a2', "oo"), (_("Male homosexuality"), '\u26a3', "oo"), (_("Heterosexuality"), '\u26a4', "oo"), (_("Transgender, hermaphrodite (in entomology)"), '\u26a5', ""), (_("Transgender"), '\u26a6', ""), (_("Neuter"), '\u26b2', ""),  (_("Illegitimate"), '\u229b', ""), (_("Birth"), '\u002a', "*"), (_("Baptism/Christening"), '\u007e', "~"), (_("Engaged"), '\u26ac', "o"), (_("Marriage"), '\u26ad', "oo"), (_("Divorce"), '\u26ae', "o|o"), (_("Unmarried partnership"), '\u26af', "o-o"), (_("Buried"), '\u26b0', "d"), (_("Cremated/Funeral urn"), '\u26b1', "d"), (_("Killed in action"), '\u2694', "d"), (_("Extinct"), '\u2021', ""), ]  # genealogical death symbols DEATH_SYMBOL_NONE = 0 DEATH_SYMBOL_X = 1 DEATH_SYMBOL_SKULL = 2 DEATH_SYMBOL_ANKH = 3 DEATH_SYMBOL_ORTHODOX_CROSS = 4 DEATH_SYMBOL_CHI_RHO = 5 DEATH_SYMBOL_LORRAINE_CROSS = 6 DEATH_SYMBOL_JERUSALEM_CROSS = 7 DEATH_SYMBOL_STAR_CRESCENT = 8 DEATH_SYMBOL_WEST_SYRIAC_CROSS = 9 DEATH_SYMBOL_EAST_SYRIAC_CROSS = 10 DEATH_SYMBOL_HEAVY_GREEK_CROSS = 11 DEATH_SYMBOL_LATIN_CROSS = 12 DEATH_SYMBOL_SHADOWED_LATIN_CROSS = 13 DEATH_SYMBOL_MALTESE_CROSS = 14 DEATH_SYMBOL_STAR_OF_DAVID = 15 DEATH_SYMBOL_DEAD = 16  # The following is used in the global preferences in bottom of the display tab. # Name # UNICODE SUBSTITUTION death_symbols = [(_("Nothing"), "", ""), ("x", "\u03a9", "x"), (_("Skull and crossbones"), "\u2620", "+"), (_("Ankh"), "\u2625", "+"), (_("Orthodox cross"), "\u2626", "+"), (_("Chi rho"), "\u2627", "+"), (_("Cross of Lorraine"), "\u2628", "+"), (_("Cross of Jerusalem"), "\u2629", "+"), (_("Star and crescent"), "\u262a", "+"), (_("West Syriac cross"), "\u2670", "+"), (_("East Syriac cross"), "\u2671", "+"), (_("Heavy Greek cross"), "\u271a", "+"), (_("Latin cross"), "\u271d", "+"), (_("Shadowed White Latin cross"), "\u271e", "+"), (_("Maltese cross"), "\u2720", "+"), (_("Star of David"), "\u2721", "+"), (_("Dead"), _("Dead"), _("Dead")) ]</span>  :
{| class="wikitable"
|-
| Greater-Than Symbol
|}
<!--
 
* Female
* Male
* Asexuality, sexless, genderless
* Lesbianism
* Male homosexuality
* Heterosexuality
* Transgender, hermaphrodite (in entomology)
* Transgender
* Neuter
 
* Illegitimate
* Birth
* Baptism/Christening
* Engaged
* Marriage
* Divorce
* Unmarried partnership
* Buried
* Cremated/Funeral urn
* Killed in action
* Extinct
 
* Death
-->
 
<!-- Unicode symbols not showing on mediwiki due to ??? add back when worked out
{{-}}
* &#2640; - Female
* &#2642; - Male
* &#26aa; - Asexuality, sexless, genderless
* &#26a2; - Lesbianism
* &#26a3; - Male homosexuality
* &#26a4; - Heterosexuality
* &#26a5; - Transgender, hermaphrodite (in entomology)
* &#26a6; - Transgender
* &#26b2; - Neuter
 
* &#229b; - Illegitimate
* &#002a; - Birth
* &#007c; - Baptism/Christening
* &#26ac; - Engaged
* &#26ad; - Marriage
* &#26ae; - Divorce
* &#26af; - Unmarried partnership
* &#26b0; - Buried
* &#26b1; - Cremated/Funeral urn
* &#2694; - Killed in action
* &#2021; - Extinct
 
* &#271e; - Death
 
-->
 
{{-}}
 
=== Where are the Symbol definitions are stored in Gramps ===
The definitions for Genealogical Symbols for Gramps labels are located in the Gramps application directory. The relative file subpath is: https&#58;&#x2f;&#x2f;github.com/gramps-project/gramps/blob/maintenance/gramps51/[https://github.com/gramps-project/gramps/blob/maintenance/gramps51/gramps/gen/utils/symbols.py gramps\gen\utils\symbols.py]
 
* Gramps application directory path varies by OS:
: Linux
: [[All_In_One_Gramps_Software_Bundle_for_Windows#Installation_folder|Windows]]
: MacOS
 
 
A backup copy of the file is archived on GitHub at :
https&#58;&#x2f;&#x2f;github.com/gramps-project/gramps/blob/maintenance/gramps51/[https://github.com/gramps-project/gramps/blob/maintenance/gramps51/gramps/gen/utils/symbols.py gramps/gen/utils/symbols.py]
 
 
<span style="white-space:nowrap; display:inline;">
all_symbols = [
# Name UNICODE SUBSTITUTION
(_("Female"), '\u2640', ""),
(_("Male"), '\u2642', ""),
(_("Asexuality, sexless, genderless"), '\u26aa', ""),
(_("Lesbianism"), '\u26a2', "oo"),
(_("Male homosexuality"), '\u26a3', "oo"),
(_("Heterosexuality"), '\u26a4', "oo"),
(_("Transgender, hermaphrodite (in entomology)"), '\u26a5', ""),
(_("Transgender"), '\u26a6', ""),
(_("Neuter"), '\u26b2', ""),
 
(_("Illegitimate"), '\u229b', ""),
(_("Birth"), '\u002a', "*"),
(_("Baptism/Christening"), '\u007e', "~"),
(_("Engaged"), '\u26ac', "o"),
(_("Marriage"), '\u26ad', "oo"),
(_("Divorce"), '\u26ae', "o|o"),
(_("Unmarried partnership"), '\u26af', "o-o"),
(_("Buried"), '\u26b0', "d"),
(_("Cremated/Funeral urn"), '\u26b1', "d"),
(_("Killed in action"), '\u2694', "d"),
(_("Extinct"), '\u2021', ""),
]
 
# genealogical death symbols
DEATH_SYMBOL_NONE = 0
DEATH_SYMBOL_X = 1
DEATH_SYMBOL_SKULL = 2
DEATH_SYMBOL_ANKH = 3
DEATH_SYMBOL_ORTHODOX_CROSS = 4
DEATH_SYMBOL_CHI_RHO = 5
DEATH_SYMBOL_LORRAINE_CROSS = 6
DEATH_SYMBOL_JERUSALEM_CROSS = 7
DEATH_SYMBOL_STAR_CRESCENT = 8
DEATH_SYMBOL_WEST_SYRIAC_CROSS = 9
DEATH_SYMBOL_EAST_SYRIAC_CROSS = 10
DEATH_SYMBOL_HEAVY_GREEK_CROSS = 11
DEATH_SYMBOL_LATIN_CROSS = 12
DEATH_SYMBOL_SHADOWED_LATIN_CROSS = 13
DEATH_SYMBOL_MALTESE_CROSS = 14
DEATH_SYMBOL_STAR_OF_DAVID = 15
DEATH_SYMBOL_DEAD = 16
 
# The following is used in the global preferences in the display tab.
# Name
# UNICODE SUBSTITUTION
death_symbols = [(_("Nothing"), "", ""),
("x", "\u03a9", "x"),
(_("Skull and crossbones"), "\u2620", "+"),
(_("Ankh"), "\u2625", "+"),
(_("Orthodox cross"), "\u2626", "+"),
(_("Chi rho"), "\u2627", "+"),
(_("Cross of Lorraine"), "\u2628", "+"),
(_("Cross of Jerusalem"), "\u2629", "+"),
(_("Star and crescent"), "\u262a", "+"),
(_("West Syriac cross"), "\u2670", "+"),
(_("East Syriac cross"), "\u2671", "+"),
(_("Heavy Greek cross"), "\u271a", "+"),
(_("Latin cross"), "\u271d", "+"),
(_("Shadowed White Latin cross"), "\u271e", "+"),
(_("Maltese cross"), "\u2720", "+"),
(_("Star of David"), "\u2721", "+"),
(_("Dead"), _("Dead"), _("Dead"))
]
</span>
 
{{-}}
4,529
edits

Navigation menu