Person Sex 23, 22, 21 (Two sets of duplicates)
This commit is contained in:
parent
559875f63f
commit
a68b8bc714
@ -39,14 +39,17 @@ internal abstract class Person
|
|||||||
else if (name.Alias.Value.Contains(" Sr"))
|
else if (name.Alias.Value.Contains(" Sr"))
|
||||||
pGedLines.Add("2 NSFX Sr");
|
pGedLines.Add("2 NSFX Sr");
|
||||||
}
|
}
|
||||||
if (personKeyFormatted[^2..] == "06")
|
if (personKeyFormatted[^2..] == "23")
|
||||||
pGedLines.Add("1 SEX F");
|
pGedLines.Add("1 SEX F");
|
||||||
else if (personKeyFormatted[^2..] == "13")
|
else if (personKeyFormatted[^2..] == "22")
|
||||||
pGedLines.Add("1 SEX M");
|
pGedLines.Add("1 SEX M");
|
||||||
|
else if (personKeyFormatted[^2..] == "21")
|
||||||
|
pGedLines.Add("1 SEX U");
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string? sexLine = null;
|
string? sexLine = null;
|
||||||
string[] sourceLines = File.ReadAllLines("D:/1) Images A/Images-9b89679-Results/A2) People/9b89679/([])/FamilyEcho/638157228251558818-RootsMagic-Export.ged");
|
// string[] sourceLines = File.ReadAllLines("D:/1) Images A/Images-9b89679-Results/A2) People/9b89679/([])/FamilyEcho/638157228251558818-RootsMagic-Export.ged");
|
||||||
|
string[] sourceLines = File.ReadAllLines("D:/1) Images A/Images-9b89679-Results/A2) People/9b89679/([])/638157314010628679.ged");
|
||||||
for (int i = 0; i < sourceLines.Length; i++)
|
for (int i = 0; i < sourceLines.Length; i++)
|
||||||
{
|
{
|
||||||
if (sourceLines[i] != nameLine)
|
if (sourceLines[i] != nameLine)
|
||||||
@ -70,11 +73,13 @@ internal abstract class Person
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
pGedLines.Add($"1 SEX {sexLine[6]}");
|
pGedLines.Add($"1 SEX {sexLine[6]}");
|
||||||
string sex = sexLine[6] is 'F' ? "06" : sexLine[6] is 'M' ? "13" : sexLine[6] is 'U' ? "21" : throw new NotImplementedException();
|
string sex = sexLine[6] is 'F' ? "23" : sexLine[6] is 'M' ? "22" : sexLine[6] is 'U' ? "21" : throw new NotImplementedException();
|
||||||
if (directory.EndsWith("00"))
|
if (directory.EndsWith("00"))
|
||||||
directory = string.Concat(directory[..^2], sex);
|
directory = string.Concat(directory[..^2], sex);
|
||||||
else if (directory.EndsWith("01"))
|
else if (directory.EndsWith("01"))
|
||||||
directory = string.Concat(directory[..^2], sex);
|
directory = string.Concat(directory[..^2], sex);
|
||||||
|
else if (directory.EndsWith("04")) // Cameran
|
||||||
|
directory = string.Concat(directory[..^2], sex);
|
||||||
else if (directory.EndsWith("05")) // Daisy
|
else if (directory.EndsWith("05")) // Daisy
|
||||||
directory = string.Concat(directory[..^2], sex);
|
directory = string.Concat(directory[..^2], sex);
|
||||||
else if (directory.EndsWith("18")) // Meghan
|
else if (directory.EndsWith("18")) // Meghan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user