summaryrefslogtreecommitdiff
path: root/chinese/pine4/files/patch-as
blob: d3c4726ef8eac859c3c8b571d46f7f49ee1680ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
--- pico/search.c.orig	Tue Oct  5 05:49:41 1999
+++ pico/search.c	Thu Oct 14 11:36:00 1999
@@ -131,9 +131,9 @@
     while(1){
 
 	if (gmode & MDREPLACE)
-	  status = srpat("Search", defpat, repl_mode);
+	  status = srpat("�j�M", defpat, repl_mode);
 	else
-	  status = readpattern("Search", TRUE);
+	  status = readpattern("�j�M", TRUE);
 
 	switch(status){
 	  case TRUE:                         /* user typed something */
@@ -146,14 +146,14 @@
 
 		saved_state = save_pico_state();
 		(*Pmaster->helper)(Pmaster->search_help,
-				   "Help for Searching", 1);
+				   "�j�M�����U����", 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, "�j�M�����U����", 1);
 
 	  case (CTRL|'L'):			/* redraw requested */
 	    refresh(FALSE, 1);
@@ -235,7 +235,7 @@
 
 	  default:
 	    if(status == ABORT)
-	      emlwrite("Search Cancelled", NULL);
+	      emlwrite("�����j�M", NULL);
 	    else
 	      mlerase();
 
@@ -283,16 +283,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("���N%s���ɮװ_�l�q�Y�j�M",
+		   (status == ABORT) ? "�w�����A��" : "");
     }
     else if(wrapt == TRUE){
-	emlwrite("Search Wrapped", NULL);
+	emlwrite("�q�Y�j�M", NULL);
     }
     else if(status == TRUE){
 	emlwrite("", NULL);
@@ -321,7 +321,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 = "���N�Ҧ�";
     KS_OSDATASET(&menu_pat[0], KS_NONE);
     menu_pat[1].name  = NULL;
 
@@ -333,10 +333,10 @@
 	pputs(origpat, 1);                       /* highlight word */
 	(*term.t_rev)(0);
 
-	sprintf(prompt, "Replace%s \"", repl_all ? " every" : "");
+	sprintf(prompt, "���N%s \"", repl_all ? "�C�@��" : "");
 
 	expandp(&defpat[0], &prompt[strlen(prompt)], NPAT/2);
-	strcat(prompt, "\" with");
+	strcat(prompt, "\" ��");
 	if(rpat[0] != 0){
 	    strcat(prompt, " [");
 	    expandp(rpat, &prompt[strlen(prompt)], NPAT/2);
@@ -378,14 +378,14 @@
 
 		saved_state = save_pico_state();
 		(*Pmaster->helper)(Pmaster->search_help,
-				   "Help for Searching", 1);
+				   "�j�M�����U����", 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, "�j�M�����U����", 1);
 
 	  case (CTRL|'L'):			/* redraw requested */
 	    refresh(FALSE, 1);
@@ -395,18 +395,18 @@
 	  case (CTRL|'X'):        /* toggle replace all option */
 	    if (repl_all){
 		repl_all = FALSE;
-		menu_pat[0].label = "Repl All";
+		menu_pat[0].label = "���N�Ҧ�";
 	    }
 	    else{
 		repl_all = TRUE;
-		menu_pat[0].label = "Repl One";
+		menu_pat[0].label = "���N�@��";
 	    }
 
 	    break;
 
 	  default:
 	    if(status == ABORT)
-	      emlwrite("Replacement Cancelled", NULL);
+	      emlwrite("�������N", NULL);
 	    else 
 	      mlerase();
 	    chword(defpat, origpat);
@@ -455,9 +455,9 @@
 	(*term.t_rev)(0);
 	fflush(stdout);
 
-	strcpy(prompt, "Replace \"");
+	strcpy(prompt, "���N \"");
 	expandp(&orig[0], &prompt[strlen(prompt)], NPAT/2);
-	strcat(prompt, "\" with \"");
+	strcat(prompt, "\" �� \"");
 	expandp(&repl[0], &prompt[strlen(prompt)], NPAT/2);
 	strcat(prompt, "\"");
 
@@ -471,13 +471,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("�b�����u���N�Ҧ��v���e�A�w���L %d �ӧ���", (char *) n);
 		return (ABORT);			/* ... else keep looking */
 	    }
 	}
     }
     else{
-	emlwrite("No more matches for \"%s\"", orig);
+	emlwrite("�S���ŦX \"%s\" ���r��F", orig);
 	return (FALSE);
     }
 }
@@ -495,33 +495,33 @@
 	EXTRAKEYS    menu_pat[7];
 
 	menu_pat[i = 0].name = "^Y";
-	menu_pat[i].label    = "FirstLine";
+	menu_pat[i].label    = "�Ĥ@��";
 	menu_pat[i].key	     = (CTRL|'Y');
 	KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	menu_pat[++i].name = "^V";
-	menu_pat[i].label  = "LastLine";
+	menu_pat[i].label  = "�̫�@��";
 	menu_pat[i].key	   = (CTRL|'V');
 	KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	menu_pat[++i].name = "^R";
-	menu_pat[i].label  = repl_mode ? "No Replace" : "Replace";
+	menu_pat[i].label  = repl_mode ? "�����N" : "���N";
 	menu_pat[i].key	   = (CTRL|'R');
 	KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	if(!repl_mode){
 	    menu_pat[++i].name = "^T";
-	    menu_pat[i].label  = "LineNumber";
+	    menu_pat[i].label  = "�渹";
 	    menu_pat[i].key    = (CTRL|'T');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	    menu_pat[++i].name = "^W";
-	    menu_pat[i].label  = "Start of Para";
+	    menu_pat[i].label  = "�q���_�l";
 	    menu_pat[i].key    = (CTRL|'W');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	    menu_pat[++i].name = "^O";
-	    menu_pat[i].label  = "End of Para";
+	    menu_pat[i].label  = "�q������";
 	    menu_pat[i].key    = (CTRL|'O');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 	}
@@ -577,7 +577,7 @@
     EXTRAKEYS    menu_pat[2];
 
     menu_pat[i = 0].name  = "^T";
-    menu_pat[i].label	  = "No Line Number";
+    menu_pat[i].label	  = "�L�渹";
     menu_pat[i].key	  = (CTRL|'T');
     KS_OSDATASET(&menu_pat[i++], KS_NONE);
 
@@ -622,28 +622,28 @@
 	EXTRAKEYS    menu_pat[6];
 
 	menu_pat[i = 0].name = "^Y";
-	menu_pat[i].label    = "FirstLine";
+	menu_pat[i].label    = "�Ĥ@��";
 	menu_pat[i].key	     = (CTRL|'Y');
 	KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	menu_pat[++i].name = "^V";
-	menu_pat[i].label  = "LastLine";
+	menu_pat[i].label  = "�̫�@��";
 	menu_pat[i].key	   = (CTRL|'V');
 	KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	if(text_mode){
 	    menu_pat[++i].name = "^T";
-	    menu_pat[i].label  = "LineNumber";
+	    menu_pat[i].label  = "�渹";
 	    menu_pat[i].key    = (CTRL|'T');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	    menu_pat[++i].name = "^W";
-	    menu_pat[i].label  = "Start of Para";
+	    menu_pat[i].label  = "�q���_�l";
 	    menu_pat[i].key    = (CTRL|'W');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 
 	    menu_pat[++i].name = "^O";
-	    menu_pat[i].label  = "End of Para";
+	    menu_pat[i].label  = "�q������";
 	    menu_pat[i].key    = (CTRL|'O');
 	    KS_OSDATASET(&menu_pat[i], KS_NONE);
 	}