Scripting System with Family Historian Style Queri
Posted: 13 Nov 2009 09:52
I am not sure if this is the right forum to post this in and I am not even sure if anyone would be interested, but I would like to see what peoples responses are.
I love family historian - particularly its support for the gedcom standard and its queries. However, I like to present textual data just the way I like it - which has lead me to look for ways of customising the output for reports etc. (beyond the customisation that Family Historian itself offers). I did for a time use lifelines (which has its own scripting system) in conjunction with family historian to some success but found its quirks rather awkward.
I was therefore thinking of marrying an existing scripting system (for example JavaScript/ECMASciript) with gedcom capabilities and the query syntax of Family Historian (for the technically minded of you, the Family Historian style queries would be embedded in the language a bit like RegExpr is in JavaScript). A very simple program might look something like this...
for( INDI in GEDCOM.INDI ) {
print( %INDI.NAME:SURNAME%', ',', %INDI.NAME:GIVEN%', 'n' );
}
Of course, being a scripting system, users could share scripts and customise them as much as they like. It need not just be used for writing reports, but whatever the user wishes to do with it. What do people think, would there be a use for this? I intend to release the program and source code free of charge under a suitable licence if there is sufficient interest.
I have already written a lot of the code (in ANSI-C) for my own purposes, but obviously will not go to the trouble of completing it and tidying it up beyond my own use standards if no one else is interested. Please let me know you thoughts - I wont be upset if no one is interested!
ID:4141
I love family historian - particularly its support for the gedcom standard and its queries. However, I like to present textual data just the way I like it - which has lead me to look for ways of customising the output for reports etc. (beyond the customisation that Family Historian itself offers). I did for a time use lifelines (which has its own scripting system) in conjunction with family historian to some success but found its quirks rather awkward.
I was therefore thinking of marrying an existing scripting system (for example JavaScript/ECMASciript) with gedcom capabilities and the query syntax of Family Historian (for the technically minded of you, the Family Historian style queries would be embedded in the language a bit like RegExpr is in JavaScript). A very simple program might look something like this...
for( INDI in GEDCOM.INDI ) {
print( %INDI.NAME:SURNAME%', ',', %INDI.NAME:GIVEN%', 'n' );
}
Of course, being a scripting system, users could share scripts and customise them as much as they like. It need not just be used for writing reports, but whatever the user wishes to do with it. What do people think, would there be a use for this? I intend to release the program and source code free of charge under a suitable licence if there is sufficient interest.
I have already written a lot of the code (in ANSI-C) for my own purposes, but obviously will not go to the trouble of completing it and tidying it up beyond my own use standards if no one else is interested. Please let me know you thoughts - I wont be upset if no one is interested!
ID:4141