summaryrefslogtreecommitdiffstats
path: root/chinese/pine4/files/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/pine4/files/patch-am')
-rw-r--r--chinese/pine4/files/patch-am148
1 files changed, 11 insertions, 137 deletions
diff --git a/chinese/pine4/files/patch-am b/chinese/pine4/files/patch-am
index be59a33..113499e 100644
--- a/chinese/pine4/files/patch-am
+++ b/chinese/pine4/files/patch-am
@@ -1,137 +1,11 @@
---- pico/search.c.orig Fri Jun 26 05:48:14 1998
-+++ pico/search.c Wed Jul 15 17:02:31 1998
-@@ -165,7 +165,7 @@
- break;
- default:
- if(status == ABORT)
-- emlwrite("Search Cancelled", NULL);
-+ emlwrite("取消搜尋", NULL);
- else
- mlerase();
- curwp->w_flag |= WFMODE;
-@@ -212,16 +212,16 @@
-
- /* and complain if not there */
- if (status == FALSE){
-- emlwrite("\"%s\" not found", defpat);
-+ emlwrite("找不到 \"%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("取代%s由檔案起始從頭搜尋",
-+ (status == ABORT) ? "已取消,但" : "");
- }
- else if(wrapt == TRUE){
-- emlwrite("Search Wrapped", NULL);
-+ emlwrite("從頭搜尋", NULL);
- }
- else if(status == TRUE){
- emlwrite("", NULL);
-@@ -251,7 +251,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 = "取代所有";
- KS_OSDATASET(&menu_pat[0], KS_NONE);
- menu_pat[1].name = NULL;
-
-@@ -298,10 +298,10 @@
- case (CTRL|'X'): /* toggle replace all option */
- if (repl_all){
- repl_all = FALSE;
-- menu_pat[0].label = "Repl All";
-+ menu_pat[0].label = "取代所有";
- }else{
- repl_all = TRUE;
-- menu_pat[0].label = "Repl One";
-+ menu_pat[0].label = "取代一個";
- }
- break;
-
-@@ -342,7 +342,7 @@
- else
- {
- if(status == ABORT)
-- emlwrite("Replacement Cancelled", NULL);
-+ emlwrite("取消取代", NULL);
- else
- mlerase();
- chword(defpat, defpat);
-@@ -352,7 +352,7 @@
-
- default:
- if(status == ABORT)
-- emlwrite("Replacement Cancelled", NULL);
-+ emlwrite("取消取代", NULL);
- else
- mlerase();
- chword(defpat, defpat);
-@@ -384,9 +384,9 @@
- (*term.t_rev)(0);
- fflush(stdout);
-
-- strcpy(prompt, "Replace \"");
-+ strcpy(prompt, "取代 \"");
- expandp(&orig[0], &prompt[strlen(prompt)], NPAT/2);
-- strcat(prompt, "\" with \"");
-+ strcat(prompt, "\" 為 \"");
- expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
- strcat(prompt, "\"");
-
-@@ -400,13 +400,13 @@
- chword(orig, orig); /* replace word by itself */
- update();
- if(status == ABORT){ /* if cancelled return */
-- emlwrite("Replace All cancelled after %d changes", (char *) n);
-+ emlwrite("在取消「取代所有」之前,已做過 %d 個改變", (char *) n);
- return (ABORT); /* ... else keep looking */
- }
- }
- }
- else{
-- emlwrite("No more matches for \"%s\"", orig);
-+ emlwrite("沒有符合 \"%s\" 的字串了", orig);
- return (FALSE);
- }
- }
-@@ -423,18 +423,18 @@
- EXTRAKEYS menu_pat[4];
-
- menu_pat[0].name = "^Y";
-- menu_pat[0].label = "FirstLine";
-+ menu_pat[0].label = "第一行";
- 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 = "最後一行";
- 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 = "Don't Replace";
-+ menu_pat[2].label = "不取代";
- else
-- menu_pat[2].label = "Replace";
-+ menu_pat[2].label = "取代";
- menu_pat[2].key = (CTRL|'R');
- KS_OSDATASET(&menu_pat[2], KS_NONE);
- menu_pat[3].name = NULL;
-@@ -485,11 +485,11 @@
- EXTRAKEYS menu_pat[3];
-
- menu_pat[0].name = "^Y";
-- menu_pat[0].label = "FirstLine";
-+ menu_pat[0].label = "第一行";
- 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 = "最後一行";
- menu_pat[1].key = (CTRL|'V');
- KS_OSDATASET(&menu_pat[1], KS_NONE);
- menu_pat[2].name = NULL;
+--- pico/estruct.h.orig Fri May 29 06:56:52 1998
++++ pico/estruct.h Tue Jul 28 08:35:00 1998
+@@ -125,7 +125,7 @@
+ #define LOBIT_CHAR(C) ((C) > 0x1f && (C) < 0x7f)
+ #define HIBIT_CHAR(C) ((C) > 0x7f && (C) <= 0xff)
+ #define HIBIT_OK(C) (!(gmode & MDHBTIGN))
+-#define VALID_KEY(C) (LOBIT_CHAR(C) || (HIBIT_OK(C) && HIBIT_CHAR(C)))
++#define VALID_KEY(C) (((C) & 0x80) ? 1 : LOBIT_CHAR(C))
+ #define ctrl(c) ((c) & 0x1f) /* control character mapping */
+
+ #define STDIN_FD 0
OpenPOWER on IntegriCloud