Open main menu

Gramps β

Changes

Customize the Genealogical Symbols lookup table

3,003 bytes added, 06:55, 30 March 2020
m
no edit summary
{{#vardefine:chapter|Symbols}}
{{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.}}
in-use=1
selected-font='Segoe UI Symbol'
{{-}}
===Built-in date label options===
The Relationship category view to the right shows the symbolic (language agnostic) labeling method created for the 5.1 version of Gramps.
{{-}}
[[File:GenealogicalSymbolsRelationshipsView_default-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Relationship View - default display for version 5.1]]The Relationship category view to the right also shows the language agnostic labeling method created for the 5.1 version of Gramps. (The Gramplet bars have been turned off to reduce distracting clutter.) ''The data for Sibling 2 has been changed to display the baptismal and burial date text styling variants.'' These are only shown in this view when an explicit date for birth (or death) is missing. These dates are italicized to indicate that they are inferred by other events, not the actual birth or death dates. {{-}}[[File:GenealogicalSymbolsRelationshipsView_enabled-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Relationship View - enabled defaults]]{{-}}===Hacking the date labels======= 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: '''<code>gramps\gen\utils\symbols.py</code>'''
# UNICODE SUBSTITUTION
death_symbols = [(_("Nothing"), "", ""),
("x", "\u03a9", "x"),
(_("Skull and crossbones"), "\u2620", "+"),
(_("Ankh"), "\u2625", "+"),
]
</span>
 
{{-}}
==== Simulating previous Symbol definitions ====
[[File:GenealogicalSymbolsRelationshipsView_textSub-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Relationship View - text substitutions]]
{| class="wikitable"
|-
! Data
! text label
! abbreviated
|-
! birth
| style="text-align:center;" | Birth
| b.
|-
! baptism
| style="text-align:center;" |
| bap.
|-
! christening
| style="text-align:center;" |
| chr.
|-
! death
| style="text-align:center;" | Death
| d.
|-
! burial
| style="text-align:center;" | Burial
| bur.
|-
! married
| style="text-align:center;" | Marriage
| mar.
|-
! divorced
| style="text-align:center;" | Divorce
| div.
|}
all_symbols =[ # Name UNICODE SUBSTITUTION (_("Birth"), <span style="color:red">'\u03b1', "b."</span>), (_("Baptism/Christening"), <span style=Customizing the date labels="color:red">'\u224b', "bap."</span>), (_("Marriage"), <span style="color:red">'\u26ad', "mar."</span>), (_("Divorce"), <span style="color:red">'\u26ae', "div."</span>),The Relationship category view to the right shows the symbolic (_(language agnostic"Buried") labeling method created for the 5, <span style="color:red">'\u26b0', "bur.1 version of Gramps.{{-}}"</span>),
[[File:GenealogicalSymbolsRelationshipsView_default-51.png|right|thumb|450px|Fig. {{ #var:chapter}}The following is used in the global preferences in the display tab.{{ #vardefineecho:figure|{{ Name #expr:{{#var:figure}}+1}}}} UNICODE SUBSTITUTION death_symbols = [(_("Nothing"), "", ""), ("x", "Genealogical Symbols\u03a9" , - Relationship View - default display for version 5.1]]The Relationship category view to the right also shows the language agnostic labeling method created for the 5.1 version of Gramps"d. "), (_(The Gramplet bars have been turned off to reduce distracting clutter."Latin cross") ''The data for Sibling 2 has been changed to display the baptismal and burial date text styling variants, <span style="color:red">"\u271d", "d.'' These are only shown in this view when an explicit date for birth (or death"</span>) is missing. These dates are italicized to indicate that they are inferred by other events, not the actual birth or death dates.
{{-}}
==== Alternative Symbol definitions ====
[[File:GenealogicalSymbolsRelationshipsView_default_AlphaOmega-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} "Genealogical Symbols" - Relationship View - Alpha & Omega text]]
{| class="wikitable"
|-
! Data
! abbreviated
|-
! birth
| style="text-align:center;" | &#x03b1;
|-
! baptism
| style="text-align:center;" | ≋
|-
! christening
| style="text-align:center;" | ≋
|-
! death
| style="text-align:center;" | &#x03a9;
|-
! burial
| style="text-align:center;" | &#x26b0;
|-
! married
| style="text-align:center;" | ⚭
|-
! divorced
| style="text-align:center;" | ⚮
|}
all_symbols = [
# Name UNICODE SUBSTITUTION
(_("Birth"), <span style="color:red">'\u03b1', "b."</span>),
(_("Baptism/Christening"), <span style="color:red">'\u224b', "≋"</span>),
(_("Marriage"), <span style="color:red">'\u26ad', "mar."</span>),
(_("Divorce"), <span style="color:red">'\u26ae', "div."</span>),
(_("Buried"), <span style="color:red">'\u26b0', "bur."</span>),
[[File:GenealogicalSymbolsRelationshipsView_textSub-51.png|right|thumb|450px|Fig. {{ #var:chapter}}The following is used in the global preferences in the display tab.{{ #vardefineecho:figure|{{ Name #expr:{{#var:figure}}+1}}}} UNICODE SUBSTITUTION death_symbols = [(_("Nothing"), "", "Genealogical Symbols" - Relationship View - text substitutions]]),{{-}}[[File:GenealogicalSymbolsRelationshipsView_enabled-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} ("x", "Genealogical Symbols\u03a9" , - Relationship View - enabled defaults]]"d."),{{-}}[[File (_("Latin cross"), <span style="color:GenealogicalSymbolsRelationshipsView_default_AlphaOmega-51.png|right|thumb|450px|Fig. {{#var:chapter}}.{{#vardefineecho:figure|{{#expr:{{#var:figure}}+1}}}} red">"Genealogical Symbols\u271d" , - Relationship View - Alpha & Omega text]]"d."</span>),
{{-}}
4,610
edits