🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #11661

terminology patch for tin 1.22 (LONG)

#11661
From: Steven Winikoff
Date: Fri, 30 Sep 1994 23:21
359 lines
15720 bytes
The following is a patch that I put together to change some of the terms
used in tin 1.22.  This version of tin uses the word "delete" instead of
the term "cancel", and uses the term "crosspost" in at least two contexts,
only one of which is appropriate.

This is completely unsolicited :-), but I thought that if I wanted it
badly enough to write it, others might want it also :-).

This patch changes all instances of "delete" and "crosspost" which

        1) I could find
  and   2) I thought were appropriate  (eg "delete" is correct when
           referring to files or .newsrc entries, but not when referring
           to posts)

The replacement terms I used were "cancel" and "repost", respectively.

The only exception is the name of the ".tin/tinrc" variable called
"default_crosspost_group".  I did *not* change that, because such a
change would have introduced a real incompatibility between the
patched version and the "vanilla" 1.22 release, and I didn't want
to take that responsibility :-)

For what it's worth, my starting point for this patch was the tin 1.22
distribution available from ftp.cs.columbia.edu, which I obtained on
April 25, 1994 (and which, according to xarchie, is found under the path
/archives/mirror2/uunet/networking/news/readers/tin/tin-1.22.tar.gz).

To use this, just feed it as standard input into "patch -s" while
in the tin source directory.  

(Ob. disclaimer:  This comes with absolutely NO WARRANTY.  I did my
                  best to make it work.  I believe it works.  I'm
                  even sure that people will be quick to point out
                  where I went wrong, if I did :-)   However, I can't
                  guarantee anything under any circumstances.)

I hope somebody finds this useful :-)

       - Steven


8<----------------------------   cut here   -------------------------->8
*** group.c-original	Sat Sep 25 10:30:12 1993
--- group.c	Fri Sep 30 19:04:35 1994
***************
*** 904,910 ****
  
  			case 'x':	/* crosspost current article */
  				if (index_point >= 0) {
! 					feed_articles (FEED_XPOST, GROUP_LEVEL, "Crosspost",
  						(int) base[index_point], group_path);
  				}
  				break;
--- 904,910 ----
  
  			case 'x':	/* crosspost current article */
  				if (index_point >= 0) {
! 					feed_articles (FEED_XPOST, GROUP_LEVEL, "Repost",
  						(int) base[index_point], group_path);
  				}
  				break;
*** lang.c-original	Sat Sep 25 10:30:16 1993
--- lang.c	Fri Sep 30 19:05:09 1994
***************
*** 152,163 ****
  char txt_help_s[] = "su       Subscribe (u=unsubscribe) to current group\r\n";
  char txt_help_S[] = "SU       Subscribe (U=unsubscribe) to groups that match pattern\r\n";
  char txt_help_T[] = "T        Return to group selection level\r\n";
! char txt_help_t[] = "t        Tag current article for crossposting/mailing/piping/printing/saving\r\n";
  char txt_help_u[] = "u        Toggle display of unthreaded & threaded articles\r\n";
  char txt_help_U[] = "U        Untag all tagged articles\r\n";
  char txt_help_v[] = "v        Show version information\r\n";
  char txt_help_w[] = "w        Post an article to current group\r\n";
! char txt_help_x[] = "x        Crosspost current article to another group\r\n";
  char txt_help_i_search[] = "/?       Subject forward (?=backward) search\r\n";
  char txt_help_thread[] = "<>       Goto first (>=last) article in current thread\r\n";
  #ifndef NO_SHELL_ESCAPE
--- 152,163 ----
  char txt_help_s[] = "su       Subscribe (u=unsubscribe) to current group\r\n";
  char txt_help_S[] = "SU       Subscribe (U=unsubscribe) to groups that match pattern\r\n";
  char txt_help_T[] = "T        Return to group selection level\r\n";
! char txt_help_t[] = "t        Tag current article for reposting/mailing/piping/printing/saving\r\n";
  char txt_help_u[] = "u        Toggle display of unthreaded & threaded articles\r\n";
  char txt_help_U[] = "U        Untag all tagged articles\r\n";
  char txt_help_v[] = "v        Show version information\r\n";
  char txt_help_w[] = "w        Post an article to current group\r\n";
! char txt_help_x[] = "x        Repost current article to another group\r\n";
  char txt_help_i_search[] = "/?       Subject forward (?=backward) search\r\n";
  char txt_help_thread[] = "<>       Goto first (>=last) article in current thread\r\n";
  #ifndef NO_SHELL_ESCAPE
***************
*** 322,328 ****
  char txt_help_b[] = "b<SPACE> Back (<SPACE>=forward) a page\r\n";
  char txt_help_bug[] = "R        Report bug/comment via mail to %s\r\n";
  char txt_help_p_f[] = "fF       Post (f=copy text) a followup\r\n";
! char txt_help_D[] = "D        Delete (cancel) current article that must have been posted by you\r\n";
  char txt_help_ctrl_h[] = "^H       Show articles header\r\n";
  char txt_help_h[] = "hH       Command help (H=toggle mini help menu)\r\n";
  char txt_help_i[] = "q        Return to previous level\r\n";
--- 322,328 ----
  char txt_help_b[] = "b<SPACE> Back (<SPACE>=forward) a page\r\n";
  char txt_help_bug[] = "R        Report bug/comment via mail to %s\r\n";
  char txt_help_p_f[] = "fF       Post (f=copy text) a followup\r\n";
! char txt_help_D[] = "D        Cancel current article that must have been posted by you\r\n";
  char txt_help_ctrl_h[] = "^H       Show articles header\r\n";
  char txt_help_h[] = "hH       Command help (H=toggle mini help menu)\r\n";
  char txt_help_i[] = "q        Return to previous level\r\n";
***************
*** 353,359 ****
  char txt_quit_edit_ispell_send[] = "q)uit, e)dit, s)end";
  #endif
  char txt_quit_edit_send[] = "q)uit, e)dit, s)end";
! char txt_quit_edit_delete[] = "q)uit, e)dit, d)elete";
  char txt_mailing_to[] = "Mailing to %s...";
  char txt_mailed[] = "-- %d Article(s) mailed --";
  char txt_command_failed_s[] = "Command failed: %s\n";
--- 353,359 ----
  char txt_quit_edit_ispell_send[] = "q)uit, e)dit, s)end";
  #endif
  char txt_quit_edit_send[] = "q)uit, e)dit, s)end";
! char txt_quit_edit_delete[] = "q)uit, e)dit, c)ancel";
  char txt_mailing_to[] = "Mailing to %s...";
  char txt_mailed[] = "-- %d Article(s) mailed --";
  char txt_command_failed_s[] = "Command failed: %s\n";
***************
*** 386,400 ****
  char txt_post_an_article[] = "Post an article...";
  char txt_post_a_followup[] = "Post a followup...";
  char txt_mail_bug_report[] = "Mail bug report...";
! char txt_crosspost_group[] = "Crosspost article(s) to group(s) [%s]> ";
  char txt_no_group[] = "No group";
! char txt_crosspost_an_article[] = "Crossposting article...";
  char txt_mail_bug_report_confirm[] = "Mail BUG REPORT to %s%s? (y/n): ";
  char txt_reply_to_author[] = "Reply to author...";
  char txt_bad_article[] = "Article to be posted has the errors/warnings noted above. q)uit, e)dit: ";
  char txt_deleting_art[] = "Deleting article...";
! char txt_art_deleted[] = "Article deleted";
! char txt_art_cannot_delete[] = "Article cannot be deleted";
  char txt_quit_edit_xpost[] = "q)uit, e)dit, p)ost [%.*s]: %c";
  char txt_error_header_line_blank[] = "Error: Article starts with blank line instead of header\n\n";
  char txt_error_header_line_colon[] = "Error: Header on line %d does not have a colon after the header name:\n%s\n\n";
--- 386,400 ----
  char txt_post_an_article[] = "Post an article...";
  char txt_post_a_followup[] = "Post a followup...";
  char txt_mail_bug_report[] = "Mail bug report...";
! char txt_crosspost_group[] = "Repost article(s) to group(s) [%s]> ";
  char txt_no_group[] = "No group";
! char txt_crosspost_an_article[] = "Reposting article...";
  char txt_mail_bug_report_confirm[] = "Mail BUG REPORT to %s%s? (y/n): ";
  char txt_reply_to_author[] = "Reply to author...";
  char txt_bad_article[] = "Article to be posted has the errors/warnings noted above. q)uit, e)dit: ";
  char txt_deleting_art[] = "Deleting article...";
! char txt_art_deleted[] = "Article cancelled";
! char txt_art_cannot_delete[] = "Article cannot be cancelled";
  char txt_quit_edit_xpost[] = "q)uit, e)dit, p)ost [%.*s]: %c";
  char txt_error_header_line_blank[] = "Error: Article starts with blank line instead of header\n\n";
  char txt_error_header_line_colon[] = "Error: Header on line %d does not have a colon after the header name:\n%s\n\n";
*** page.c-original	Sat Sep 25 10:30:22 1993
--- page.c	Fri Sep 30 19:05:14 1994
***************
*** 594,600 ****
  				break;
  
  			case 'x':	/* crosspost current article */
! 				feed_articles (FEED_XPOST, PAGE_LEVEL, "Crosspost", respnum, group_path);
  				break;
  
  			case 'z':	/* mark article as unread (to return) */
--- 594,600 ----
  				break;
  
  			case 'x':	/* crosspost current article */
! 				feed_articles (FEED_XPOST, PAGE_LEVEL, "Repost", respnum, group_path);
  				break;
  
  			case 'z':	/* mark article as unread (to return) */
*** post.c-original	Sat Sep 25 10:30:24 1993
--- post.c	Fri Sep 30 19:05:30 1994
***************
*** 1451,1457 ****
  	if (active[i].type == GROUP_TYPE_MAIL) {
  		make_group_path (group, buf);
  		sprintf (delete, "%s/%s/%d", active[i].spooldir, buf, respnum);
! 		sprintf (buf, "Delete article [%s]? (y/n): ", delete);
  		if (prompt_yn (cLINES, buf, 'y')) {
  			unlink (delete);
  			return TRUE;
--- 1451,1457 ----
  	if (active[i].type == GROUP_TYPE_MAIL) {
  		make_group_path (group, buf);
  		sprintf (delete, "%s/%s/%d", active[i].spooldir, buf, respnum);
! 		sprintf (buf, "Cancel article [%s]? (y/n): ", delete);
  		if (prompt_yn (cLINES, buf, 'y')) {
  			unlink (delete);
  			return TRUE;
***************
*** 1527,1533 ****
  			MoveCursor (cLINES, (int) strlen (msg)-1);
  			if ((ch = (char) ReadCh ()) == CR)
  				ch = ch_default;
! 		} while (! strchr ("deq\033", ch));
  
  		switch (ch) {
  		case 'e':
--- 1527,1533 ----
  			MoveCursor (cLINES, (int) strlen (msg)-1);
  			if ((ch = (char) ReadCh ()) == CR)
  				ch = ch_default;
! 		} while (! strchr ("ceq\033", ch));
  
  		switch (ch) {
  		case 'e':
***************
*** 1601,1607 ****
  		start_line_offset++;
  	}
  
! 	fprintf (fp, "\n[ Article crossposted from %s ]", note_h_newsgroups);
  	get_author (FALSE, respnum, buf);
  	fprintf (fp, "\n[ Author was %s ]", buf);
  	fprintf (fp, "\n[ Posted on %s ]\n\n", note_h_date);
--- 1601,1607 ----
  		start_line_offset++;
  	}
  
! 	fprintf (fp, "\n[ Article reposted from %s ]", note_h_newsgroups);
  	get_author (FALSE, respnum, buf);
  	fprintf (fp, "\n[ Author was %s ]", buf);
  	fprintf (fp, "\n[ Posted on %s ]\n\n", note_h_date);
*** tin.1-original	Sat Sep 25 10:29:57 1993
--- tin.1	Fri Sep 30 16:24:12 1994
***************
*** 611,617 ****
  .TP
  \fBt\fP
  Tag current article / thread for mailing ('m') / piping ('|') / 
! printing ('o') / saving ('s') / crossposting ('x').
  .TP
  \fBu\fP
  Toggle display to show all articles as unthreaded or threaded.
--- 611,617 ----
  .TP
  \fBt\fP
  Tag current article / thread for mailing ('m') / piping ('|') / 
! printing ('o') / saving ('s') / reposting ('x').
  .TP
  \fBu\fP
  Toggle display to show all articles as unthreaded or threaded.
***************
*** 630,636 ****
  subject are listed.
  .TP
  \fBx\fP
! Crosspost already posted current article / thread / 
  auto selected (hot) articles / articles matching pattern / 
  tagged articles to another newsgroup(s).  Useful for reposting
  from global to local newsgroups.
--- 630,636 ----
  subject are listed.
  .TP
  \fBx\fP
! Repost already posted current article / thread / 
  auto selected (hot) articles / articles matching pattern / 
  tagged articles to another newsgroup(s).  Useful for reposting
  from global to local newsgroups.
***************
*** 743,749 ****
  .TP
  \fBt\fP
  Tag current article for mailing ('m') / piping ('|') / printing ('o') /
! saving ('s') / crossposting ('x').
  .TP
  \fBT\fP
  Return to group index level.
--- 743,749 ----
  .TP
  \fBt\fP
  Tag current article for mailing ('m') / piping ('|') / printing ('o') /
! saving ('s') / reposting ('x').
  .TP
  \fBT\fP
  Return to group index level.
***************
*** 797,803 ****
  Toggle rot-13 decoding for this article.
  .TP
  \fBD\fP
! Delete current article.  It must have been posted by the same user.  The
  cancel message can be seen in the newsgroup 'control'.
  .TP
  \fBf\fP
--- 797,803 ----
  Toggle rot-13 decoding for this article.
  .TP
  \fBD\fP
! Cancel current article.  It must have been posted by the same user.  The
  cancel message can be seen in the newsgroup 'control'.
  .TP
  \fBf\fP
***************
*** 874,880 ****
  .TP
  \fBT\fP
  Tag current article for mailing ('m') / piping ('|') / printing ('o') /
! saving ('s') / crossposting ('x').
  .TP
  \fBv\fP
  Print \fItin\fP version information.
--- 874,880 ----
  .TP
  \fBT\fP
  Tag current article for mailing ('m') / piping ('|') / printing ('o') /
! saving ('s') / reposting ('x').
  .TP
  \fBv\fP
  Print \fItin\fP version information.
***************
*** 887,893 ****
  subject are listed.
  .TP
  \fBx\fP
! Crosspost already posted current article / thread / 
  auto selected (hot) articles / articles matching pattern / 
  tagged articles to another newsgroup(s).  Useful for reposting
  from global to local newsgroups.
--- 887,893 ----
  subject are listed.
  .TP
  \fBx\fP
! Repost already posted current article / thread / 
  auto selected (hot) articles / articles matching pattern / 
  tagged articles to another newsgroup(s).  Useful for reposting
  from global to local newsgroups.
***************
*** 1262,1268 ****
  .RE
  .SH "MAILING PIPING PRINTING REPOSTING AND SAVING ARTICLES"
  The command interface to mail ('m'), pipe ('|'), print ('o'),
! crosspost ('x') and save ('s') articles is the same for ease of use.
  .PP
  The initial command will ask you to select which a)rticle, t)hread,
  h)ot (auto selected) r)egex pattern, t)agged articles you wish to
--- 1262,1268 ----
  .RE
  .SH "MAILING PIPING PRINTING REPOSTING AND SAVING ARTICLES"
  The command interface to mail ('m'), pipe ('|'), print ('o'),
! repost ('x') and save ('s') articles is the same for ease of use.
  .PP
  The initial command will ask you to select which a)rticle, t)hread,
  h)ot (auto selected) r)egex pattern, t)agged articles you wish to
8<----------------------------   cut here   -------------------------->8
________________________________________________________________________
Steven Winikoff      |       smw@         | "I don't want to run the
Software Analyst     | alcor.concordia.ca | world; I merely want to own
Computing Services   |                    | a substantial portion of the
Concordia University | (514) 848-7619     | preferred stock" - Alan Dean
Montreal, QC, Canada | (10:00-18:00 EST)  | Foster,  Cat-A-Lyst
Technical Details
Message-ID: <smw.780967291@trm>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!newsflash.concordia.ca!trm!smw

Show Full Headers
Complete Article Headers
Message-ID: <smw.780967291@trm>
Subject: terminology patch for tin 1.22 (LONG)
Date: Fri, 30 Sep 1994 23:21:31 +0000
From: smw@trm.concordia.ca ( Steven Winikoff )
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.misc.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!newsflash.concordia.ca!trm!smw
Newsgroups: news.software.readers,news.admin.misc
Organization: Concordia University, Montreal, Canada
Lines: 358
NNTP-Posting-Host: trm.concordia.ca
Summary: "delete" becomes "cancel", "crosspost" becomes "repost"