From 56fa261ef2544d74f4396d810b13e43bbb88587a Mon Sep 17 00:00:00 2001 From: milotype <43657314+milotype@users.noreply.github.com> Date: Fri, 28 Sep 2018 01:12:59 +0200 Subject: [PATCH] Better typography in graph reports Replace hyphen with en-dash. --- gramps/plugins/graph/gvfamilylines.py | 2 +- gramps/plugins/graph/gvhourglass.py | 6 +++--- gramps/plugins/graph/gvrelgraph.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps/plugins/graph/gvfamilylines.py b/gramps/plugins/graph/gvfamilylines.py index 5507558ea..71b2ba1d3 100644 --- a/gramps/plugins/graph/gvfamilylines.py +++ b/gramps/plugins/graph/gvfamilylines.py @@ -878,7 +878,7 @@ class FamilyLinesReport(Report): label += '%s(' % line_delimiter if birth_str: label += '%s' % birth_str - label += ' - ' + label += ' – ' if death_str: label += '%s' % death_str label += ')' diff --git a/gramps/plugins/graph/gvhourglass.py b/gramps/plugins/graph/gvhourglass.py index 38547b734..a3405b4ee 100644 --- a/gramps/plugins/graph/gvhourglass.py +++ b/gramps/plugins/graph/gvhourglass.py @@ -227,11 +227,11 @@ class HourGlassReport(Report): death = "" if self.includeid == 0: # no ID - label = "%s \\n(%s - %s)" % (name, birth, death) + label = "%s \\n(%s – %s)" % (name, birth, death) elif self.includeid == 1: # same line - label = "%s (%s)\\n(%s - %s)" % (name, p_id, birth, death) + label = "%s (%s)\\n(%s – %s)" % (name, p_id, birth, death) elif self.includeid == 2: # own line - label = "%s \\n(%s - %s)\\n(%s)" % (name, birth, death, p_id) + label = "%s \\n(%s – %s)\\n(%s)" % (name, birth, death, p_id) label = label.replace('"', '\\\"') diff --git a/gramps/plugins/graph/gvrelgraph.py b/gramps/plugins/graph/gvrelgraph.py index 04b695b57..767c8c0b8 100644 --- a/gramps/plugins/graph/gvrelgraph.py +++ b/gramps/plugins/graph/gvrelgraph.py @@ -597,7 +597,7 @@ class RelGraphReport(Report): label += '%s(' % line_delimiter if b_date: label += '%s' % b_date - label += ' - ' + label += ' – ' if d_date: label += '%s' % d_date label += ')' @@ -608,7 +608,7 @@ class RelGraphReport(Report): label += '%s(' % line_delimiter if b_place: label += '%s' % b_place - label += ' - ' + label += ' – ' if d_place: label += '%s' % d_place label += ')'