| 1 |
/* |
| 2 |
* @progname sgsgen.ll |
| 3 |
* @version 1 |
| 4 |
* @author Jim Eggert ([email protected]) |
| 5 |
* @category |
| 6 |
* @output Text |
| 7 |
* @description |
| 8 |
|
| 9 |
A LifeLines report program to aid in the generation of |
| 10 |
soc.genealogy.surnames (sgs) submissions. |
| 11 |
|
| 12 |
Given a person, this generates a sgs-like submission for that person and |
| 13 |
his/her ancestors. The output will likely need considerable hand editing, |
| 14 |
but that is how it is. If you need to know what sgs is, I have enclosed |
| 15 |
a description at the end of this file. |
| 16 |
|
| 17 |
Here's what you will need to do by hand (you can consider this a list |
| 18 |
of desired features for future versions of this report program): |
| 19 |
|
| 20 |
BEFORE YOU RUN THE PROGRAM: |
| 21 |
|
| 22 |
Change the routines write_sgs_entry() and write_sgs_body() to |
| 23 |
customize your address and standard message. |
| 24 |
|
| 25 |
AFTER YOU RUN THE PROGRAM: |
| 26 |
|
| 27 |
Eliminate or fix empty or useless surname lines. |
| 28 |
Use sgs-standard abbreviations for placenames. |
| 29 |
Get FAMILY ABBREV as per instructions at end of this file. |
| 30 |
Combine duplicate surname lines where appropriate. |
| 31 |
Check check check. Note I've put a checklist at the head of the |
| 32 |
report. Until you edit the report by hand, it cannot be used for |
| 33 |
autosubmission via the telnet command as below. |
| 34 |
Send the final product to the sgs maintainer. To autosubmit, |
| 35 |
telnet your.news.host 119 < checked.sgs.report |
| 36 |
|
| 37 |
Version 1, 13 January 1997, by Jim Eggert, [email protected] |
| 38 |
|
| 39 |
*/ |
| 40 |
|
| 41 |
global(year_min) |
| 42 |
global(year_max) |
| 43 |
global(submitter_tag) |
| 44 |
global(location) |
| 45 |
global(last_location) |
| 46 |
global(location_list) |
| 47 |
global(location_table) |
| 48 |
global(see_surname_table) |
| 49 |
global(sgs_entry_count) |
| 50 |
|
| 51 |
proc main() { |
| 52 |
list(ilist) |
| 53 |
table(see_surname_table) |
| 54 |
|
| 55 |
getindi(person) |
| 56 |
|
| 57 |
set(sgs_entry_count,0) |
| 58 |
|
| 59 |
enqueue(ilist,person) |
| 60 |
|
| 61 |
dayformat(1) monthformat(4) dateformat(5) |
| 62 |
|
| 63 |
"QUIT\n" |
| 64 |
"------------ edit checklist\n" |
| 65 |
"change placenames to rsl-type places in the subject lines\n" |
| 66 |
"ensure countries exist in migration components in the subject lines\n" |
| 67 |
"eliminate / in places in the subject lines\n" |
| 68 |
"fix special characters as needed\n" |
| 69 |
"look for repeated submissions\n" |
| 70 |
"delete sensitive info if desired\n" |
| 71 |
"delete this checklist, including the top QUIT command\n" |
| 72 |
"------------ end of edit checklist\n" |
| 73 |
|
| 74 |
while (person,dequeue(ilist)) { |
| 75 |
table(location_table) |
| 76 |
list(location_list) |
| 77 |
|
| 78 |
set(year_min,9999) set(year_max,0) |
| 79 |
call locations_and_years(person) |
| 80 |
set(final_key,save(key(person))) |
| 81 |
set(final_surname,save(surname(person))) |
| 82 |
|
| 83 |
if (m,mother(person)) { enqueue(ilist,m) } |
| 84 |
|
| 85 |
while (person,father(person)) { |
| 86 |
if (m,mother(person)) { enqueue(ilist,m) } |
| 87 |
call locations_and_years(person) |
| 88 |
set(this_surname,surname(person)) |
| 89 |
if (strcmp(this_surname,final_surname)) { |
| 90 |
set(see_name,0) |
| 91 |
if (other_surname,lookup(see_surname_table,this_surname)) { |
| 92 |
if (strcmp(final_surname,other_surname)) { |
| 93 |
set(see_name,1) |
| 94 |
} |
| 95 |
} |
| 96 |
else { |
| 97 |
set(see_name,1) |
| 98 |
set(other_surname,final_surname) |
| 99 |
} |
| 100 |
if (see_name) { |
| 101 |
insert(see_surname_table, |
| 102 |
save(this_surname),save(other_surname)) |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
call write_sgs_entry(final_key) |
| 107 |
} |
| 108 |
if (gt(sgs_entry_count,100)) { |
| 109 |
print("Warning: Number of lines produced (") |
| 110 |
print(d(sgs_entry_count)) |
| 111 |
print(")\nexceeds recommended submission limit (100)\n") |
| 112 |
} |
| 113 |
"QUIT\n" |
| 114 |
} |
| 115 |
|
| 116 |
|
| 117 |
/* write_sgs_entry writes one submission to soc.genealogy.surnames*/ |
| 118 |
|
| 119 |
proc write_sgs_entry(key_entry) { |
| 120 |
if (key_entry) { |
| 121 |
set(surname_entry,save(surname(indi(key_entry)))) |
| 122 |
if (strlen(surname_entry)) { |
| 123 |
if (strcmp(trim(surname_entry,1),"_")) { |
| 124 |
if (father(indi(key_entry))) { |
| 125 |
incr(sgs_entry_count) |
| 126 |
set(not_first,0) |
| 127 |
"POST\n" |
| 128 |
/*---*/ "From: [email protected]\n" |
| 129 |
"Newsgroups: soc.genealogy.surnames\n" |
| 130 |
"Subject: " upper(surname_entry) "; " |
| 131 |
while (loc,dequeue(location_list)) { |
| 132 |
if (not_first) { ">" } else { set(not_first,1) } |
| 133 |
loc |
| 134 |
} |
| 135 |
"; " d(year_min) "-" d(year_max) "\n" |
| 136 |
"Message-ID: <sgs" d(sgs_entry_count) |
| 137 |
/*---*/ "@your.host.name>\n" |
| 138 |
"\n" |
| 139 |
"Organization: none\n" |
| 140 |
call write_sgs_body(key_entry) |
| 141 |
".\n" |
| 142 |
} |
| 143 |
} |
| 144 |
} |
| 145 |
} |
| 146 |
} |
| 147 |
|
| 148 |
|
| 149 |
/* write_sgs_body writes the body of a message */ |
| 150 |
|
| 151 |
proc write_sgs_body(key_entry) { |
| 152 |
/*---*/ |
| 153 |
"I am offering information on the following paternal ancestral line,\n" |
| 154 |
"and am soliciting the sharing of genealogical data with any interested\n" |
| 155 |
"party. The numbers preceeding the person's name are the generation\n" |
| 156 |
"number, counting from the most recent person. Further information\n" |
| 157 |
"can be found in my web pages at\n" |
| 158 |
" <http://your.web.page/>\n" |
| 159 |
"Please direct any communications to [email protected]\n" |
| 160 |
/*---*/ |
| 161 |
|
| 162 |
set(person, indi(key_entry)) |
| 163 |
set(number,1) |
| 164 |
while (person) { |
| 165 |
call ahnenreport(person,number) |
| 166 |
incr(number) |
| 167 |
set(person,father(person)) |
| 168 |
} |
| 169 |
} |
| 170 |
|
| 171 |
proc ahnenreport(person,number) { |
| 172 |
"\n" d(number) ". " fullname(person,0,1,80) "\n" |
| 173 |
if (e, birth(person)) { " born: " long(e) "\n" } |
| 174 |
if (e, baptism(person)) { "baptized: " long(e) "\n" } |
| 175 |
set(nfam,nfamilies(person)) |
| 176 |
families(person, fam, spouse, fnum) { |
| 177 |
set(e, marriage(fam)) |
| 178 |
if (or(e,spouse)) { |
| 179 |
if (gt(nfam,1)) { |
| 180 |
"married" d(fnum) ": " |
| 181 |
} |
| 182 |
else { " married: " } |
| 183 |
} |
| 184 |
if (e) { long(e) "\n" } |
| 185 |
if (spouse) { " to " fullname(spouse,0,1,80) "\n" } |
| 186 |
} |
| 187 |
if (e, death(person)) { " died: " long(e) "\n" } |
| 188 |
if (e, burial(person)) { " buried: " long(e) "\n" } |
| 189 |
/* fornotes(inode(person), note) { |
| 190 |
note "\n" |
| 191 |
} |
| 192 |
fornodes(inode(person),node) { |
| 193 |
if (not(strcmp(tag(node),"REFN"))) { |
| 194 |
"SOURCE: " value(node) "\n" |
| 195 |
} |
| 196 |
} |
| 197 |
*/ |
| 198 |
} |
| 199 |
|
| 200 |
|
| 201 |
/* locations_and_years figures out unique locations and min/max years |
| 202 |
for a person with respect to other persons already figured. |
| 203 |
Note that the events are processed in reverse chronological order, |
| 204 |
because the ancestry is traced bottom up. Oh well... |
| 205 |
*/ |
| 206 |
|
| 207 |
proc locations_and_years(person) { |
| 208 |
list(marriage_list) |
| 209 |
|
| 210 |
call one_location_and_year(burial(person)) |
| 211 |
call one_location_and_year(death(person)) |
| 212 |
families(person,family,spouse,fnum) { |
| 213 |
push(marriage_list,marriage(family)) |
| 214 |
} |
| 215 |
while (event,pop(marriage_list)) { call one_location_and_year(event) } |
| 216 |
call one_location_and_year(baptism(person)) |
| 217 |
call one_location_and_year(birth(person)) |
| 218 |
} |
| 219 |
|
| 220 |
|
| 221 |
/* one_location_and_year appends the event location to the global |
| 222 |
location list if it is new, and figures the event year into the |
| 223 |
global min and max values. |
| 224 |
*/ |
| 225 |
|
| 226 |
proc one_location_and_year(event) { |
| 227 |
if (event) { |
| 228 |
set(loc,place(event)) |
| 229 |
if (strlen(loc)) { |
| 230 |
if (not(lookup(location_table,loc))) { |
| 231 |
requeue(location_list,save(loc)) |
| 232 |
insert(location_table,save(loc),1) |
| 233 |
} |
| 234 |
} |
| 235 |
if (yr,atoi(year(event))) { |
| 236 |
if (lt(yr,year_min)) { set(year_min,yr) } |
| 237 |
if (gt(yr,year_max)) { set(year_max,yr) } |
| 238 |
} |
| 239 |
} |
| 240 |
} |
| 241 |
|
| 242 |
/* |
| 243 |
|
| 244 |
soc.genealogy.surnames |
| 245 |
|
| 246 |
|
| 247 |
This FAQ is presently in draft form. It may change without notice. Last |
| 248 |
modification: 25 Aug 1995. |
| 249 |
|
| 250 |
Other surname-related FAQs available here: |
| 251 |
|
| 252 |
Commonly Used Abbreviations |
| 253 |
Commonly Used German Abbreviations |
| 254 |
Examples of Queries: Good and Bad |
| 255 |
WWW Surname Archive |
| 256 |
|
| 257 |
|
| 258 |
Welcome to soc.genealogy.surnames. The intent of this newsgroup is to |
| 259 |
help genealogists researching related families to contact each |
| 260 |
other. All surname queries are welcome here. |
| 261 |
|
| 262 |
A surname query is in many ways like a classified ad in a |
| 263 |
newspaper. You want to attract people who might be interested in |
| 264 |
sharing information about your family to read and respond to your |
| 265 |
post. To help readers in finding articles of interest, writers are |
| 266 |
requested to follow some simple guidelines in the subject lines of |
| 267 |
their articles. |
| 268 |
|
| 269 |
Articles in soc.genealogy.surnames fall into a few basic categories: |
| 270 |
|
| 271 |
1.general surname queries |
| 272 |
2.tiny tafels |
| 273 |
3.address changes |
| 274 |
4.follow-up articles |
| 275 |
5.Roots Surname List (RSL) articles |
| 276 |
6.moderators' announcements |
| 277 |
|
| 278 |
1. General surname queries |
| 279 |
|
| 280 |
(Style suggestions can be found in a companion FAQ, Surname Queries: |
| 281 |
Good and Bad. This document discusses only what is absolutely |
| 282 |
necessary for a post to soc.genealogy.surnames.) |
| 283 |
|
| 284 |
General surname queries can be written in plain language, freely |
| 285 |
formatted. The body of the article can include any information about a |
| 286 |
family that you wish. We recommend including given names, spouses, |
| 287 |
children, birth, death, and marriage dates and places, if you know |
| 288 |
them. This will make your article more useful to people who might want |
| 289 |
to contact you, as well as making it valuable to people who may find |
| 290 |
your article in searching the surname archives later. Indicating what |
| 291 |
additional information you are seeking is a good idea. Also include |
| 292 |
how to contact you: e-mail address, snail-mail address, and phone |
| 293 |
number, if you like. |
| 294 |
|
| 295 |
Each surname query should have a subject line that gives one or more |
| 296 |
surnames (in all capital letters), at least one place (using an |
| 297 |
abbreviation from the RSL list of abbreviations), and an indication of |
| 298 |
the time frame of interest. Examples: |
| 299 |
|
| 300 |
Subject: MILLS; NY,USA; 1800-1915 |
| 301 |
Subject: MILLS Samuel D.; Williamsburg,Kings Co,NY,USA; 1796-1863 |
| 302 |
Subject: ZAHM/PICARD/STEIS; LOT,FRA; 1680-1840 |
| 303 |
Subject: ZAHM / PICARD / STEIS; LOT,FRA; 1680-1840 |
| 304 |
Subject: ZAHM; LOT,FRA>IN,USA>IL,USA>KS,USA; 1650- |
| 305 |
Subject: ZAHM; LOT,FRA > IN,USA > KS,USA; 1650- |
| 306 |
Subject: CLOVER John; Lincoln,LIN,ENG>IL,USA; -1860 |
| 307 |
Subject: LEGGETT; anywhere; anytime |
| 308 |
|
| 309 |
The "anywhere anytime" indication should only be used by genealogists |
| 310 |
who are making a comprehensive one-name study of everyone in the world |
| 311 |
who bore that name in all of recorded history. If you are just |
| 312 |
starting out in researching your family, do not use this form; please |
| 313 |
read the first paragraph of this section on surname queries again, and |
| 314 |
use one of the other examples. If you are making a comprehensive |
| 315 |
world-wide collection, please tell us about the extent of your |
| 316 |
database as a way to encourage people to share their research with |
| 317 |
you. |
| 318 |
|
| 319 |
If you find you want to include queries about more names than will fit |
| 320 |
in the subject line, you may wish to post several queries. |
| 321 |
|
| 322 |
Some of the abbreviations may seem unfamiliar at first. The advantage |
| 323 |
of using standard abbreviations for place names is that it makes |
| 324 |
searching the surname archives easier and more reliable. As an |
| 325 |
example, consider searching the archives for Coles families in New |
| 326 |
York. With standard abbreviations, you can look for subjects that |
| 327 |
contain both "COLES" and "NY,USA" and be sure that you are finding all |
| 328 |
the relevant archived queries. Without standardization, you'd have to |
| 329 |
search for "NY" and "New York", and might miss articles that said |
| 330 |
"Albany" or "Buffalo" but left out the state. Abbreviations also make |
| 331 |
subject lines shorter, for writers whose software limits subject |
| 332 |
length. |
| 333 |
|
| 334 |
The place abbreviations are the same as used for the Roots Surname |
| 335 |
List (RSL). They include United States and Canadian two-letter postal |
| 336 |
codes, Chapman codes, three-letter ISO codes for nations, some other |
| 337 |
standard codes, and a few codes invented for the RSL. The list was |
| 338 |
compiled by Karen Isaacson with help from Christian Carey. |
| 339 |
|
| 340 |
You may find more information on abbreviations that may be used in |
| 341 |
soc.genealogy.surnames in the Commonly Used Abbreviations FAQ for |
| 342 |
soc.genealogy.surnames. The complete list of codes is archived on |
| 343 |
mail.eworld.com. To retrieve the file, send e-mail to |
| 344 |
[email protected] containing only the line: |
| 345 |
|
| 346 |
GET FAMILY ABBREV |
| 347 |
|
| 348 |
The computer will then e-mail you the list of abbreviations (unless |
| 349 |
you are using a system that blocks e-mail to and from listservs). You |
| 350 |
can also retrieve the file by anonymous ftp to vm1.nodak.edu, in the |
| 351 |
ROOTS-L directory; the file is named family.abbrev. The dates should |
| 352 |
indicate when you are interested in the family in the area listed in |
| 353 |
the subject line. The dates could be the earliest birth and latest |
| 354 |
death dates for known ancestors, or periods for which you have |
| 355 |
information, or the time for which you want more information. The date |
| 356 |
range is approximate; no need to add "circa" or "?" if you are not |
| 357 |
sure of dates. |
| 358 |
|
| 359 |
*/ |