1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/chinese/pine4/files/patch-as

188 lines
5.3 KiB
Plaintext
Raw Normal View History

--- pico/search.c.orig Sat Sep 12 01:15:02 1998
+++ pico/search.c Tue Sep 22 18:54:24 1998
@@ -127,9 +127,9 @@
/* ask the user for the text of a pattern */
while(1){
if (gmode & MDREPLACE)
- status = srpat("Search", defpat, repl_mode);
+ status = srpat("<22>j<EFBFBD>M", defpat, repl_mode);
else
- status = readpattern("Search");
+ status = readpattern("<22>j<EFBFBD>M");
switch(status){
case TRUE: /* user typed something */
@@ -142,14 +142,14 @@
saved_state = save_pico_state();
(*Pmaster->helper)(Pmaster->search_help,
- "Help for Searching", 1);
+ "<22>j<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", 1);
if(saved_state){
restore_pico_state(saved_state);
free_pico_state(saved_state);
}
}
else
- pico_help(SearchHelpText, "Help for Searching", 1);
+ pico_help(SearchHelpText, "<22>j<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", 1);
case (CTRL|'L'): /* redraw requested */
refresh(FALSE, 1);
@@ -179,7 +179,7 @@
default:
if(status == ABORT)
- emlwrite("Search Cancelled", NULL);
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD>M", NULL);
else
mlerase();
@@ -228,16 +228,16 @@
/* and complain if not there */
if (status == FALSE){
- emlwrite("\"%s\" not found", defpat);
+ emlwrite("<22><EFBFBD><E4A4A3> \"%s\"", defpat);
}
else if((gmode & MDREPLACE) && repl_mode == TRUE){
status = replace_pat(defpat, &wrapt2); /* replace pattern */
if (wrapt == TRUE || wrapt2 == TRUE)
- emlwrite("Replacement %srapped",
- (status == ABORT) ? "cancelled but w" : "W");
+ emlwrite("<22><><EFBFBD>N%s<><73><EFBFBD>ɮװ_<D7B0>l<EFBFBD>q<EFBFBD>Y<EFBFBD>j<EFBFBD>M",
+ (status == ABORT) ? "<22>w<EFBFBD><77><EFBFBD><EFBFBD><EFBFBD>A<EFBFBD><41>" : "");
}
else if(wrapt == TRUE){
- emlwrite("Search Wrapped", NULL);
+ emlwrite("<22>q<EFBFBD>Y<EFBFBD>j<EFBFBD>M", NULL);
}
else if(status == TRUE){
emlwrite("", NULL);
@@ -267,7 +267,7 @@
/* additional 'replace all' menu option */
menu_pat[0].name = "^X";
menu_pat[0].key = (CTRL|'X');
- menu_pat[0].label = "Repl All";
+ menu_pat[0].label = "<22><><EFBFBD>N<EFBFBD>Ҧ<EFBFBD>";
KS_OSDATASET(&menu_pat[0], KS_NONE);
menu_pat[1].name = NULL;
@@ -279,10 +279,10 @@
pputs(origpat, 1); /* highlight word */
(*term.t_rev)(0);
- sprintf(prompt, "Replace%s \"", repl_all ? " every" : "");
+ sprintf(prompt, "<22><><EFBFBD>N%s \"", repl_all ? "<22>C<EFBFBD>@<40><>" : "");
expandp(&defpat[0], &prompt[strlen(prompt)], NPAT/2);
- strcat(prompt, "\" with");
+ strcat(prompt, "\" <20><>");
if(rpat[0] != 0){
strcat(prompt, " [");
expandp(rpat, &prompt[strlen(prompt)], NPAT/2);
@@ -324,14 +324,14 @@
saved_state = save_pico_state();
(*Pmaster->helper)(Pmaster->search_help,
- "Help for Searching", 1);
+ "<22>j<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", 1);
if(saved_state){
restore_pico_state(saved_state);
free_pico_state(saved_state);
}
}
else
- pico_help(SearchHelpText, "Help for Searching", 1);
+ pico_help(SearchHelpText, "<22>j<EFBFBD>M<EFBFBD><4D><EFBFBD><EFBFBD><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", 1);
case (CTRL|'L'): /* redraw requested */
refresh(FALSE, 1);
@@ -341,18 +341,18 @@
case (CTRL|'X'): /* toggle replace all option */
if (repl_all){
repl_all = FALSE;
- menu_pat[0].label = "Repl All";
+ menu_pat[0].label = "<22><><EFBFBD>N<EFBFBD>Ҧ<EFBFBD>";
}
else{
repl_all = TRUE;
- menu_pat[0].label = "Repl One";
+ menu_pat[0].label = "<22><><EFBFBD>N<EFBFBD>@<40><>";
}
break;
default:
if(status == ABORT)
- emlwrite("Replacement Cancelled", NULL);
+ emlwrite("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>N", NULL);
else
mlerase();
chword(defpat, origpat);
@@ -401,9 +401,9 @@
(*term.t_rev)(0);
fflush(stdout);
- strcpy(prompt, "Replace \"");
+ strcpy(prompt, "<22><><EFBFBD>N \"");
expandp(&orig[0], &prompt[strlen(prompt)], NPAT/2);
- strcat(prompt, "\" with \"");
+ strcat(prompt, "\" <20><> \"");
expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
strcat(prompt, "\"");
@@ -417,13 +417,13 @@
chword(realpat, realpat); /* replace word by itself */
update();
if(status == ABORT){ /* if cancelled return */
- emlwrite("Replace All cancelled after %d changes", (char *) n);
+ emlwrite("<22>b<EFBFBD><62><EFBFBD><EFBFBD><EFBFBD>u<EFBFBD><75><EFBFBD>N<EFBFBD>Ҧ<EFBFBD><D2A6>v<EFBFBD><76><EFBFBD>e<EFBFBD>A<EFBFBD>w<EFBFBD><77><EFBFBD>L %d <20>ӧ<EFBFBD><D3A7><EFBFBD>", (char *) n);
return (ABORT); /* ... else keep looking */
}
}
}
else{
- emlwrite("No more matches for \"%s\"", orig);
+ emlwrite("<22>S<EFBFBD><53><EFBFBD>ŦX \"%s\" <20><><EFBFBD>r<EFBFBD><72><EFBFBD>F", orig);
return (FALSE);
}
}
@@ -440,18 +440,18 @@
EXTRAKEYS menu_pat[4];
menu_pat[0].name = "^Y";
- menu_pat[0].label = "FirstLine";
+ menu_pat[0].label = "<22>Ĥ@<40><>";
menu_pat[0].key = (CTRL|'Y');
KS_OSDATASET(&menu_pat[0], KS_NONE);
menu_pat[1].name = "^V";
- menu_pat[1].label = "LastLine";
+ menu_pat[1].label = "<22>̫<EFBFBD><CCAB>@<40><>";
menu_pat[1].key = (CTRL|'V');
KS_OSDATASET(&menu_pat[1], KS_NONE);
menu_pat[2].name = "^R";
if (repl_mode)
- menu_pat[2].label = "No Replace";
+ menu_pat[2].label = "<22><><EFBFBD><EFBFBD><EFBFBD>N";
else
- menu_pat[2].label = "Replace";
+ menu_pat[2].label = "<22><><EFBFBD>N";
menu_pat[2].key = (CTRL|'R');
KS_OSDATASET(&menu_pat[2], KS_NONE);
menu_pat[3].name = NULL;
@@ -504,11 +504,11 @@
EXTRAKEYS menu_pat[3];
menu_pat[0].name = "^Y";
- menu_pat[0].label = "FirstLine";
+ menu_pat[0].label = "<22>Ĥ@<40><>";
menu_pat[0].key = (CTRL|'Y');
KS_OSDATASET(&menu_pat[0], KS_NONE);
menu_pat[1].name = "^V";
- menu_pat[1].label = "LastLine";
+ menu_pat[1].label = "<22>̫<EFBFBD><CCAB>@<40><>";
menu_pat[1].key = (CTRL|'V');
KS_OSDATASET(&menu_pat[1], KS_NONE);
menu_pat[2].name = NULL;