1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/chinese/pine4/files/patch-ak

188 lines
6.2 KiB
Plaintext
Raw Normal View History

--- pico/display.c.orig Sat Jun 20 01:19:53 1998
+++ pico/display.c Tue Sep 22 18:30:04 1998
@@ -71,32 +71,32 @@
* Standard pico keymenus...
*/
static KEYMENU menu_pico[] = {
- {"^G", "Get Help", KS_SCREENHELP}, {"^O", "WriteOut", KS_SAVEFILE},
- {"^R", "Read File", KS_READFILE}, {"^Y", "Prev Pg", KS_PREVPAGE},
- {"^K", "Cut Text", KS_NONE}, {"^C", "Cur Pos", KS_CURPOSITION},
- {"^X", "Exit", KS_EXIT}, {"^J", "Justify", KS_JUSTIFY},
- {"^W", "Where is", KS_WHEREIS}, {"^V", "Next Pg", KS_NEXTPAGE},
+ {"^G", "<22><><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", KS_SCREENHELP}, {"^O", "<22>g<EFBFBD>J<EFBFBD>ɮ<EFBFBD>", KS_SAVEFILE},
+ {"^R", "Ū<><C5AA><EFBFBD>ɮ<EFBFBD>", KS_READFILE}, {"^Y", "<22>W<EFBFBD>@<40><>", KS_PREVPAGE},
+ {"^K", "<22>ŤU<C5A4>@<40><>", KS_NONE}, {"^C", "<22>ثe<D8AB><65><EFBFBD>m", KS_CURPOSITION},
+ {"^X", "<22><><EFBFBD>}", KS_EXIT}, {"^J", "<22><><EFBFBD><EFBFBD><EFBFBD>q<EFBFBD><71>", KS_JUSTIFY},
+ {"^W", "<22>j<EFBFBD>M", KS_WHEREIS}, {"^V", "<22>U<EFBFBD>@<40><>", KS_NEXTPAGE},
{"^U", NULL, KS_NONE},
-#ifdef SPELLER
- {"^T", "To Spell", KS_SPELLCHK}
+#if defined(SPELLER) && !defined(__FreeBSD__)
+ {"^T", "<22><><EFBFBD>r<EFBFBD>ˬd", KS_SPELLCHK}
#else
- {"^D", "Del Char", KS_NONE}
+ {"^D", "<22>R<EFBFBD><52><EFBFBD>r<EFBFBD><72>", KS_NONE}
#endif
};
#define UNCUT_KEY 10
static KEYMENU menu_compose[] = {
- {"^G", "Get Help", KS_SCREENHELP}, {"^X", NULL, KS_SEND},
- {"^R", "Read File", KS_READFILE}, {"^Y", "Prev Pg", KS_PREVPAGE},
- {"^K", "Cut Text", KS_NONE}, {"^O", "Postpone", KS_POSTPONE},
- {"^C", "Cancel", KS_CANCEL}, {"^J", "Justify", KS_JUSTIFY},
- {NULL, NULL, KS_NONE}, {"^V", "Next Pg", KS_NEXTPAGE},
+ {"^G", "<22><><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>", KS_SCREENHELP}, {"^X", NULL, KS_SEND},
+ {"^R", "Ū<><C5AA><EFBFBD>ɮ<EFBFBD>", KS_READFILE}, {"^Y", "<22>W<EFBFBD>@<40><>", KS_PREVPAGE},
+ {"^K", "<22>ŤU<C5A4>@<40><>", KS_NONE}, {"^O", "<22>Ƚw<C8BD>g<EFBFBD>H", KS_POSTPONE},
+ {"^C", "<22><><EFBFBD><EFBFBD>", KS_CANCEL}, {"^J", "<22><><EFBFBD><EFBFBD><EFBFBD>q<EFBFBD><71>", KS_JUSTIFY},
+ {NULL, NULL, KS_NONE}, {"^V", "<22>U<EFBFBD>@<40><>", KS_NEXTPAGE},
{"^U", NULL, KS_NONE},
-#ifdef SPELLER
- {"^T", "To Spell", KS_SPELLCHK}
+#if defined(SPELLER) && !defined(__FreeBSD__)
+ {"^T", "<22><><EFBFBD>r<EFBFBD>ˬd", KS_SPELLCHK}
#else
- {"^D", "Del Char", KS_NONE}
+ {"^D", "<22>R<EFBFBD><52><EFBFBD>r<EFBFBD><72>", KS_NONE}
#endif
};
#define EXIT_KEY 1
@@ -152,7 +152,7 @@
(*term.t_rev)(FALSE);
vscreen = (VIDEO **) malloc((term.t_nrow+1)*sizeof(VIDEO *));
if (vscreen == NULL){
- emlwrite("Allocating memory for virtual display failed.", NULL);
+ emlwrite("<22>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><E9B5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܾ<EFBFBD><DCBE><EFBFBD><EFBFBD>ѡC", NULL);
return(FALSE);
}
@@ -160,7 +160,7 @@
pscreen = (VIDEO **) malloc((term.t_nrow+1)*sizeof(VIDEO *));
if (pscreen == NULL){
free((void *)vscreen);
- emlwrite("Allocating memory for physical display failed.", NULL);
+ emlwrite("<22>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><E9B5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܾ<EFBFBD><DCBE><EFBFBD><EFBFBD>ѡC", NULL);
return(FALSE);
}
@@ -171,7 +171,7 @@
if (vp == NULL){
free((void *)vscreen);
free((void *)pscreen);
- emlwrite("Allocating memory for virtual display lines failed.",
+ emlwrite("<22>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><E9B5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܦ楢<DCA6>ѡC",
NULL);
return(FALSE);
}
@@ -191,7 +191,7 @@
free((void *)vscreen);
free((void *)pscreen);
- emlwrite("Allocating memory for physical display lines failed.",
+ emlwrite("<22>t<EFBFBD>m<EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><E9B5B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ܦ楢<DCA6>ѡC",
NULL);
return(FALSE);
}
@@ -749,12 +749,12 @@
}
if(lastflag&CFFILL){
- menu_pico[UNCUT_KEY].label = "UnJustify";
- emlwrite("Can now UnJustify!", NULL);
+ menu_pico[UNCUT_KEY].label = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>";
+ emlwrite("<22>{<7B>b<EFBFBD>i<EFBFBD>H<EFBFBD><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!", NULL);
mpresf = FARAWAY; /* remove this after next keystroke! */
}
else
- menu_pico[UNCUT_KEY].label = "UnCut Text";
+ menu_pico[UNCUT_KEY].label = "<22>_<EFBFBD><5F><EFBFBD>R<EFBFBD>r";
wkeyhelp(menu_pico);
sgarbk = FALSE;
@@ -944,18 +944,18 @@
ShowPrompt();
else{
menu_compose[EXIT_KEY].label = (Pmaster->headents)
- ? "Send" :"Exit";
+ ? "<22>e<EFBFBD>X" :"<22><><EFBFBD>}";
menu_compose[PSTPN_KEY].name = (Pmaster->headents)
? "^O" : NULL;
menu_compose[PSTPN_KEY].label = (Pmaster->headents)
- ? "Postpone" : NULL;
+ ? "<22>Ƚw<C8BD>g<EFBFBD>H" : NULL;
menu_compose[WHERE_KEY].name = (Pmaster->alt_ed) ? "^_" : "^W";
- menu_compose[WHERE_KEY].label = (Pmaster->alt_ed) ? "Alt Edit"
- : "Where is";
+ menu_compose[WHERE_KEY].label = (Pmaster->alt_ed) ? "<22>۩w<DBA9>s<EFBFBD>边"
+ : "<22>j<EFBFBD>M";
KS_OSDATASET(&menu_compose[WHERE_KEY],
(Pmaster->alt_ed) ? KS_ALTEDITOR : KS_WHEREIS);
- menu_compose[UNCUT_KEY].label = (thisflag&CFFILL) ? "UnJustify"
- : "UnCut Text";
+ menu_compose[UNCUT_KEY].label = (thisflag&CFFILL) ? "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
+ : "<22>_<EFBFBD><5F><EFBFBD>R<EFBFBD>r";
wkeyhelp(menu_compose);
#ifdef _WINDOWS
/* When alt editor is available "Where is" is not on the menu
@@ -1150,11 +1150,11 @@
}
menu_yesno[1].name = "Y";
- menu_yesno[1].label = (dflt == TRUE) ? "[Yes]" : "Yes";
+ menu_yesno[1].label = (dflt == TRUE) ? "[<5B>O]" : "<22>O";
menu_yesno[6].name = "^C";
- menu_yesno[6].label = "Cancel";
+ menu_yesno[6].label = "<22><><EFBFBD><EFBFBD>";
menu_yesno[7].name = "N";
- menu_yesno[7].label = (dflt == FALSE) ? "[No]" : "No";
+ menu_yesno[7].label = (dflt == FALSE) ? "[<5B>_]" : "<22>_";
wkeyhelp(menu_yesno); /* paint generic menu */
sgarbk = TRUE; /* mark menu dirty */
if(Pmaster && curwp)
@@ -1168,7 +1168,7 @@
switch(GetKey()){
case (CTRL|'M') : /* default */
if(dflt >= 0){
- pputs((dflt) ? "Yes" : "No", 1);
+ pputs((dflt) ? "<22>O" : "<22>_", 1);
rv = dflt;
}
else
@@ -1185,14 +1185,14 @@
case 'y' :
case 'Y' :
case F3 :
- pputs("Yes", 1);
+ pputs("<22>O", 1);
rv = TRUE;
break;
case 'n' :
case 'N' :
case F4 :
- pputs("No", 1);
+ pputs("<22>_", 1);
rv = FALSE;
break;
@@ -1320,7 +1320,7 @@
#endif
menu_mlreply[0].name = "^G";
- menu_mlreply[0].label = "Get Help";
+ menu_mlreply[0].label = "<22><><EFBFBD>U<EFBFBD><55><EFBFBD><EFBFBD>";
KS_OSDATASET(&menu_mlreply[0], KS_SCREENHELP);
for(j = 0, i = 1; i < 6; i++){ /* insert odd extras */
menu_mlreply[i].name = NULL;
@@ -1340,7 +1340,7 @@
}
menu_mlreply[6].name = "^C";
- menu_mlreply[6].label = "Cancel";
+ menu_mlreply[6].label = "<22><><EFBFBD><EFBFBD>";
KS_OSDATASET(&menu_mlreply[6], KS_NONE);
for(j = 0, i = 7; i < 12; i++){ /* insert even extras */
menu_mlreply[i].name = NULL;