GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Create a text file containing unique surnames

Click to view RSS...
Author Get a list of every last names into a plain .txt file
Posted Wednesday, March 3, 2010 - Post #25595
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Actually I was thinking of a skin that produces this list without producing all the other files of the report as in my full compilation there are over 41000 names which take some time to produce just for the names list.

I have tried to bodge a skin by removing all the report generator instructions in the config.xml for the various files except for the following
  </GenerationMessages>

  <Report Template="init.htm" />
  <Report Template="index.html" />
  <Report Template="FamilyNames.txt" />  
  <Report Template="home.htm" />
  <Report Template="heading.htm" />
  <Report Template="style.css" />
    
  <StartPage>index.html</StartPage>

  </ReportGenerator>

I am not sure which other ones I can safely remove.

I then removed all the associated files mentioned in the config.xml and it seemed to work without generating 41000 individual htms or 13000 family htms though all the photos and thumbnails were created so I will try removing these folders as well from the skin and see what that does.

I have attached the names list that I was looking for.

names.htm (1,594 views, 57.30 KB)

Edited: Wednesday, March 3, 2010 by IainTait

Posted Wednesday, March 3, 2010 - Post #25593
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 10:49 AM
Posts: 3,441, Visits: 26,645
IainTait (3/3/2010)All I need to do now is to ann the letters of the alfabet in an htm file as follows:-

   <center>   A

Adams, Alken

                         B
Barber, Barlow, Beevor, Bragg, Brereton, Bryan, Bush

                         C
Challenger, Clayton, Collier, Collins, Cussen

etc.

Would it be possible to create a skin that produces only this list, a bit like the gedcom file skin or the birthday skin ? Whistling

Well maybe we have both had a senior moment because the Narrative Report already produces such a file, i.e. complete A-Z Surname index (see link bottom of home page of report) in file toc_names.htm (e.g. http://familytrees.genopro.com/IainTait/Beath_-_Tait_Family_Tree/toc_names.htm)


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, March 3, 2010 - Post #25589
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Fabulous !Tongue: Thanks very much Ron.

the list is perfect for formatting

Adams, Alken
Barber, Barlow, Beevor, Bragg, Brereton, Bryan, Bush
Challenger, Clayton, Collier, Collins, Cussen
Donald
Eckstein, Edge, Edwards, Eldridge

etc.

All I need to do now is to ann the letters of the alfabet in an htm file as follows:-

   <center>   A

Adams, Alken

                         B
Barber, Barlow, Beevor, Bragg, Brereton, Bryan, Bush

                         C
Challenger, Clayton, Collier, Collins, Cussen

etc.

Would it be possible to create a skin that produces only this list, a bit like the gedcom file skin or the birthday skin ? Whistling

Posted Wednesday, March 3, 2010 - Post #25588
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 10:49 AM
Posts: 3,441, Visits: 26,645
Yes there was a line missing from my code. I have corrected my earlier post with the change in bold.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, March 3, 2010 - Post #25587
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Hi Ron, I have just tried the code with a larger tree but unfortunately got this list

Adams, Alken
Barber
Barlow
Beevor
Bragg
Brereton
Bryan
Bush
Challenger
Clayton
Collier
Collins
Cussen
Donald
Eckstein
Edge
Edwards
Eldridge
Farrar
Fish
Fox
Gahan
Gaile
Glenn
Glover
Goodwin-Wilson

which seems rather strange as the first line has a comma with a space after the comma but all the others are as before.

Edited: Wednesday, March 3, 2010 by IainTait

Posted Wednesday, March 3, 2010 - Post #25586
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Thanks very much Ron.

I noticed that at the beginning of the code you have put   &lt;%[ instead of <%[ so I tried both and found that the first one did nothing and the second one in the FamilyNames.txt gave the list below

Corbett, Crawford
Falconer
Hargin
McKean
Peacock
Sinclair
Smith
Tait
Tannahill
Watson
Whyte
Wilson


As this is a small test tree with few names, it would appear to work except for the end of the list so I will try another tree with more names.

Thanks again.

 



Edited: Wednesday, March 3, 2010 by IainTait
Posted Tuesday, March 2, 2010 - Post #25578
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 2 days ago @ 10:49 AM
Posts: 3,441, Visits: 26,645
Try this (not tested!!) which should also add a line break after each letter of the alphabet

<%[
' Use a string dictionary to count the frequency of each last name.
' Counting the last names ensures each entry is unique.
' We could use the ObjectRepertory, but the StringDictionary is faster.
Set oStringDictionaryNames = Util.NewStringDictionary()
For Each i In Individuals
  oStringDictionaryNames.Add i.Name.Last
Next

' Sort the dictionary
oStringDictionaryNames.SortByKey
iNameLast = oStringDictionaryNames.Count - 1
strPrev = ""
strSep = ""
For iName = 0 To iNameLast
  strNameLast = oStringDictionaryNames.Key(iName)
  If (strNameLast <> "") Then
    If (strPrev = "") Then strPrev = Left(strNameLast, 1)
    If (strPrev <> Left(strNameLast, 1)) Then
       Report.WriteLn
       strSep = ""
       strPrev = Left(strNameLast, 1)
    End If
    Report.Write strSep & strNameLast
    strSep = ", "
  End If
Next
Report.WriteLn
]%>




'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Wednesday, March 3, 2010 by Ron
Posted Tuesday, March 2, 2010 - Post #25573
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Hi Dan, I am trying to update the large compilation to your sitre but keep getting timed out as the tree is about 42000 names;

I have placed the file FamilyNames.txt in the test skin with this text inside:-

<%[
' Use a string dictionary to count the frequency of each last name.
' Counting the last names ensures each entry is unique.
' We could use the ObjectRepertory, but the StringDictionary is faster.
Set oStringDictionaryNames = Util.NewStringDictionary()
For Each i In Individuals
oStringDictionaryNames.Add i.Name.Last
Next

' Sort the dictionary from the largest to the smallest number
' to have the most popular last name at the top of the list
oStringDictionaryNames.SortByKey
iNameLast = oStringDictionaryNames.Count - 1
For iName = 0 To iNameLast
  strNameLast = oStringDictionaryNames.Key(iName)
  If (strNameLast <> "") Then
    Report.WriteLn strNameLast
  End If
Next
]%>

with the control <Report Template="FamilyNames.txt" /> in the config xml but this creates an enormously long vertical column of names which is very difficult to format as I have to move each name up a line, add a comma and a space and then move the next name up etc. and with thousands of unique names, this will take ages.

Please could you help me with this and show me how to add the comma and space between the names and have them follow each other on the same line. Unsure

As an after-thought, would it be possible to make a skin "Export FamilyNames List" which would behave a bit like the "Export to Gedcom" and only create a text file or htm file of the names list as I have mentioned above ? Smile

Edited: Tuesday, March 2, 2010 by IainTait

Posted Tuesday, December 13, 2005 - Post #9548
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.5

Last Login: Saturday, March 14, 2020
Posts: 365, Visits: 3,680
Thanks again, this time I found that if I make a FamilyNames.htm instead of .txt it is easier for me to add commas and line breaks and format the fonts to make my names list as on my web site home page.

Could commas be added between each name like in your home.htm ?

Posted Tuesday, December 13, 2005 - Post #9547
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Monday, June 2, 2025
Posts: 4,886, Visits: 22,796
iaintait (12/13/2005)
Thanks, this is much better, though it makes the list Z to A in a long column and it would be easier if it was A to Z and with the names following each other between commas, like on the home.htm

Remove the following line:

oStringDictionaryNames.Reverse


Similar Topics

Click to view RSS...
Expand / Collapse
No results found!

Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh