ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Genealogy  and context
Date: Mon, 1 Mar 2021 19:41:58 +0100	[thread overview]
Message-ID: <3B1B2ECE-4B63-4289-9C8E-F7AF31A8BA0B@fiee.net> (raw)
In-Reply-To: <704bd1f681a0f83115894bae8524460488f65160.camel@diepenvan.nl>


> Am 28.02.2021 um 19:32 schrieb David van Diepen <david@diepenvan.nl>:
> 
> Genealogical information is stored as structured data. I have added a
> fragment of an Gramps XML file below. In such a file there are events,
> people, families and other groupings of data and these are linked by
> handles.
> 
> What we would like to produce is a book with a number of blocks on
> every page describing a family: Father, mother, dates of birth and
> death, date of marriage, occupations and children. It would also be
> good it there are references to the grandparents. 

Hi David,

I’m also using Gramps (for my personal family tree and for research for a historical novel), and I always wondered if it wouldn’t be possible to create nicer family trees and other charts using ConTeXt/MetaPost. But I still can’t handle XML in ConTeXt nor MetaPost myself.

I’d suggest to first create a sample layout to have a clear target – how would you like to present your data?

Since Gramps XML is not very straightforward (many crossreferences) it _might_ make sense to use a preprocessor (XSLT) and convert it to XML or Lua tables that you can use with the bibliography module.
I’m quite sure it’s possible to do it completely in ConTeXt/Lua, but if you’d like to have configurable output, you’d probably create something similar to the bib module.

I’m looking forward to what you will create! (And I think it would be an excellent topic for a talk at the ConTeXt meeting and/or an article in the ConTeXt journal!)

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-03-01 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-28 18:32 David van Diepen
2021-03-01 18:41 ` Henning Hraban Ramm [this message]
2021-03-03 14:16 ` Hans Hagen
2021-03-03 15:33 David van Diepen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B1B2ECE-4B63-4289-9C8E-F7AF31A8BA0B@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).