Post
by Mark1834 » 28 Apr 2021 22:15
The plugin is now ready for more general user testing. I have developed it using a tiny database that I constructed in RM, plus the FH Sample Project exported to RM, then imported back again. Everything seems to work as intended, but how well does it cope with real RM projects?
To recap, all sources in RM are based on templates, either one of the 400+ supplied with the program, or those customised by the user. Unfortunately, when FH imports a GEDCOM file originating in RM, everything is converted to what FH7 calls generic sources. The custom template definitions are discarded completely, and while all the source data are imported, the structured version is hidden in Undefined Fields, and only mashups are visible.
This plugin does three things:
1. By reading the GEDCOM file that you used to transfer your database to FH, it extracts all the user-defined template definitions, and re-creates them as FH Source Templates. These templates should be virtually identical to the RM originals, as the basic structure of templated sources is very similar in the two apps. Footnote and bibliography definitions are copied across verbatim, with only minor translation (replacing [] with {}).
2. RM does not export its built-in template definitions, so we have to reconstruct them from the data included in the database. Every field used is included, along with an approximate label. No type definitions are included, so everything defaults to plain text (other RM types are date, place and name), and there are no data prompts. These should be reasonably clear, but you can always tidy them up in FH afterwards if you wish.
3. Finally, all sources are linked to their original templates, and the source data moved from Undefined Fields back into its correct place in the individual source fields. All other project data are left unchanged. This means that it doesn't matter if you have updated your project since your original import. Nothing entered by you is overwritten or deleted. The UDF fields are then deleted, but only after successful copying. Source level fields (yellow background in RM) are added back into their original sources, and citation level fields (green background in RM) are added to the appropriate source citation for the referenced fact. I have chosen not to update source titles, but that can be changed if necessary.
This plugin does not
A. Translate Bibliographies and Footnotes completely from RM to FH format. Hopefully the basic changes made create at least useable versions, but how good are they in the real world? I am not intending to create a "universal translator" (we'll leave that to Dr Who), but if there are any simple changes we can make that would be of use to the general user, I'm happy to add them.
B. Restructure the splitting/lumping of your data. This is intended as a general plugin, not tailored to specific users. If you use a bibliography layout that is not permitted by FH (e.g. including citation fields), you will have choose between modifying your data structure or changing the bibliography format. That is your choice, and the plugin doesn't make it for you.
Feedback welcome - what I'm aiming for is something that does most of the formatting for most of the users, leaving you to fine tune details manually. Realistically, it's a plugin that will be run once only, and only by a limited number of people.
As ever, it is best to try it out on a copy of your project, not the original. You can always select Edit > Undo Plugin Updates from the FH menu if you don't like the results, but better safe than sorry!
(Attachment deleted - replaced by version 2, below)
Last edited by
Mark1834 on 29 Apr 2021 19:54, edited 1 time in total.
Mark Draper