Content Codes

18 views
Skip to first unread message

David Crouch

unread,
Aug 19, 2024, 8:50:54 PM8/19/24
to TMG to GEDCOM
I am trying to implement a technique from the Printer Codes Section of the TMG to GEDCOM manual.  it reads:

Reverse Start and End
If you specify the usual "end code" for a Content Code as the "Code (start)" value, and specify the usual "start code" as the "Code (end)" value, the text removal is reversed. So, for example, some Second Site users use this technique in text values:

[HID:][SS:]Text for Second Site only[:SS][:HID]
If you want the text enclosed by [SS:] and [:SS] to be included in the GEDCOM output, add a Content Code item as follows:

Title: SS
Action: Remove printer code and content
Code (start): [:SS]
Code (end): [SS:]
The code definitions used above will reverse the effects of the enclosing [HID:] and [:HID] codes.


So, I created a test project with one person with one tag (birth).  The tag sentence is:
2024-08-19_20-39-16.jpg
In TMG to GEDCOM, I added a new Content Code called SS, as follows:
2024-08-19_20-42-33.jpg
The existing Content Code for HID I left untouched, as follows:
2024-08-19_20-44-19.jpg

The resulting GEDCOM file:
0 HEAD
1 GEDC
2 VERS 5.5.1
2 FORM LINEAGE-LINKED
1 CHAR UTF-8
1 SOUR TMG
2 VERS v 9.05.0000
1 LANG English
1 SUBM @SUBM@
0 @SUBM@ SUBM
1 NAME David Gardner Crouch
0 @I1@ INDI
1 RIN 1
1 SEX M
1 NAME Thomas Sean /Connery/
2 GIVN Thomas Sean
2 SURN Connery
1 BIRT Thomas Sean Connery was born on 25 August 1930 in Edinburgh, Scotland, United Kingdom.
2 DATE 25 AUG 1930
2 PLAC Edinburgh, Scotland, United Kingdom
2 NOTE Thomas Sean Connery was born on 25 August 1930 in Edinburgh, Scotland, United Kingdom.
2 OBJE @O1@
1 CHAN
2 DATE 19 AUG 2024
0 @O1@ OBJE
1 FILE c:\Users\User\Documents\The Master Genealogist v9\Exhibits\Sean_Connery_as_James_Bond_at_Switzerland_1964_(two_thirds_crop).jpg
2 FORM jpg
0 TRLR

I am not getting the "Text for Second Site only" added to the GEDCOM output.

I know my error must be simple but I am unsure how to proceed.

Thanks!

David

John Cardinal

unread,
Aug 22, 2024, 10:03:47 AM8/22/24
to t2...@googlegroups.com

David,

 

I don't think that technique works in TMG Sentence structures. Try putting similar text in the Memo of an event.

 

John Cardinal

 

Products: ORA, GedSite, Gedcom Publisher, Second Site, TMG Utility, TMG to GEDCOM

Web Hosting for Genealogists: Family History Hosting

 

From: t2...@googlegroups.com <t2...@googlegroups.com> On Behalf Of David Crouch
Sent: Monday, August 19, 2024 8:51 PM
To: TMG to GEDCOM <t2...@googlegroups.com>
Subject: [T2G] Content Codes

 

I am trying to implement a technique from the Printer Codes Section of the TMG to GEDCOM manual.  it reads:

 

Reverse Start and End
If you specify the usual "end code" for a Content Code as the "Code (start)" value, and specify the usual "start code" as the "Code (end)" value, the text removal is reversed. So, for example, some Second Site users use this technique in text values:

[HID:][SS:]Text for Second Site only[:SS][:HID]
If you want the text enclosed by [SS:] and [:SS] to be included in the GEDCOM output, add a Content Code item as follows:

Title: SS
Action: Remove printer code and content
Code (start): [:SS]
Code (end): [SS:]
The code definitions used above will reverse the effects of the enclosing [HID:] and [:HID] codes.

 

So, I created a test project with one person with one tag (birth).  The tag sentence is:

In TMG to GEDCOM, I added a new Content Code called SS, as follows:

The existing Content Code for HID I left untouched, as follows:

image001.jpg
image002.jpg
image003.jpg

David Crouch

unread,
Aug 22, 2024, 6:08:54 PM8/22/24
to TMG to GEDCOM
Hi John,

Thank you for the reply.

I tried changing my sentence structure to:

[P] was born <[D]> <[L]> [M]

and I added a memo to the birth event:

[HID:][SS:] Text for Second Site only[:SS][:HID]

My TMG to GEDCOM settings remain unchanged (as in my original post)

but the subsequent generated GEDCOM file still does not include "Text for Second Site only".

I am using TMG to GEDCOM 2 (Version 2.00) and The Master Genealogist v. 9.05.0000

I feel like I am making a simple mistake but it eludes me....

Thanks!

David

Reply all
Reply to author
Forward
0 new messages