home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR8 / TDE32.ZIP / PROMPTS.H < prev    next >
C/C++ Source or Header  |  1993-11-13  |  29KB  |  870 lines

  1. /*
  2.  * New editor name:  TDE, the Thomson-Davis Editor.
  3.  * Author:           Frank Davis
  4.  * Date:             June 5, 1992
  5.  *
  6.  * This file contains all user prompts in TDE.  Prompts were gathered into
  7.  *  one file to make the job of translating English into other languages
  8.  *  as easy as possible.
  9.  */
  10.  
  11.  
  12. char *cb      = "Control-Break pressed";
  13.  
  14.  
  15. /*
  16.  * block.c
  17.  */
  18. char *block1  = "a block is already defined in another file";
  19.  
  20. char *ltol    = "Error: line would be too long.";
  21. char *block2  = "can only fill box blocks";
  22. char *block3a = "can only number box blocks";
  23. char *block3b = "can only swap box blocks";
  24. char *block4  = "not enough memory for block";
  25. char *block5  = "can only overlay box blocks";
  26.  
  27. char *block6  = "File name: ";
  28. char *block7  = "File exists. Overwrite or Append? (o/a): ";
  29. char *block8  = "writing block to '";
  30. char *block9  = "could not write block";
  31. char *block10 = "appending block to '";
  32. char *block11 = "could not append block";
  33. char *block12 = "writing block to '";
  34.  
  35. char *block13 = "Print file or block? (f/b): ";
  36. char *block14 = "Printing line         of         Press Control-Break to cancel.";
  37.  
  38. char *block15 = "Enter character to fill block (ESC to exit): ";
  39.  
  40. char *block16 = "Enter starting number: ";
  41. char *block17 = "Enter increment: ";
  42. char *block18 = "Left or Right justify numbers in block (l/r)? ";
  43.  
  44. char *block20 = "can only expand tabs in line blocks";
  45. char *block26 = "can only expand tabs in line blocks";
  46.  
  47. char *block21 = "can only trim trailing space in line blocks";
  48.  
  49. char *block22a = "Phase 1) Quicksort";
  50. char *block22b = "Phase 2) Insertion sort";
  51. char *block23 = "Can only sort Box blocks";
  52. char *block24 = "Box block not marked";
  53.  
  54. char *block25 = "can only e-mail reply in line blocks";
  55.  
  56.  
  57. /*
  58.  * console.c
  59.  */
  60. char *console1 = "Next Key..";
  61.  
  62.  
  63. /*
  64.  * critical error handler
  65.  */
  66. char *critt1  = "N/A";
  67.  
  68.  
  69. /*
  70.  * diff
  71.  */
  72. char *diff_prompt1 = "DIFF:  Enter first window number and letter (e.g. 1a) : ";
  73. char *diff_prompt2 = "DIFF:  Enter next window number and letter (e.g. 2a) : ";
  74. char *diff_prompt3 = "DIFF:  Start diff at (B)eginning of file or (C)urrent position? (b/c) ";
  75. char *diff_prompt4 = "DIFF:  Diffed until EOF(s).  No diff's were found.  Press a key.";
  76. char *diff_prompt5 = "DIFF windows not defined:  ";
  77. char *diff_prompt6a = "window '";
  78. char *diff_prompt6b = "' not visible or does not exist  ";
  79. char *diff_prompt7a = "DIFF:  Ignore leading spaces (y/n)?  ";
  80. char *diff_prompt7b = "DIFF:  Ignore all space (y/n)?  ";
  81. char *diff_prompt7c = "DIFF:  Ignore blank lines (y/n)?  ";
  82. char *diff_prompt7d = "DIFF:  Ignore end of line (useful with reformatted paragraphs) (y/n)?  ";
  83.  
  84. char *diff_message = "diffing...";
  85. char *diff_blank   = "          ";
  86.  
  87.  
  88. /*
  89.  * dir list
  90.  */
  91. #if defined( __UNIX__ )
  92. char *dir1 = "Directory name : ";
  93. #else
  94. char *dir1 = "Search path or pattern : ";
  95. #endif
  96. char *dir2 = "Invalid path or file name";
  97. char *stardotstar = "*.*";
  98. char *dir3 = "Out of memory";
  99.  
  100. char *dir4 = "Selected file : ";
  101. char *dir5 = "    File size : ";
  102. char *dir6 = "File count : ";
  103.  
  104. char *dir7 = "Cursor keys move.   Enter selects file or new directory";
  105.  
  106. /*
  107.  * ed.c
  108.  */
  109. char *ed1  = "line too long to add";
  110. char *ed2  = "cannot insert more characters";
  111. char *ed3  = "no more room to add";
  112.  
  113. char *ed4  = "cannot combine lines";
  114.  
  115. char *ed5  = "cannot duplicate line";
  116.  
  117. char *ed7a = "Logical tab interval: ";
  118. char *ed7b = "Physical (file) tab interval: ";
  119. char *ed8  = "tab size too long";
  120.  
  121. char *ed9  = "Enter new left margin (must be less than right margin) : ";
  122. char *ed10 = "Left margin out of range.";
  123.  
  124. char *ed11a = "Justify right margin?  (y/n): ";
  125. char *ed11 = "Enter new right margin (must be greater than left margin) : ";
  126. char *ed12 = "Right margin out of range.";
  127.  
  128. char *ed13 = "Enter paragraph margin (must be less than right margin) : ";
  129. char *ed14 = "Paragraph margin out of range.";
  130.  
  131. char *ed15 = "File name to edit : ";
  132.  
  133. char *ed16 = "Macro execution halted:  Internal stack overflow.";
  134. char *ed17 = "Macro execution halted:  Internal stack underflow.";
  135.  
  136. char *paused1 = "Paused:";
  137. char *paused2 = "  Press ESC to halt macro   ";
  138.  
  139. /*
  140.  * findrep.c
  141.  */
  142. char *find1  = "Options:  (P)rompt before replace   (N)o prompt (p/n): ";
  143. char *find2  = "(R)eplace  (S)kip  (E)xit  (r/s/e)";
  144. char *find3  = "Search has wrapped.  (C)ontinue or (Q)uit? (c/q): ";
  145.  
  146. char *find4  = "String to find: ";
  147. char *find5a = "string \"";
  148. char *find5b = "\" not found ";
  149. char *find6  = "find pattern not defined";
  150.  
  151.  
  152. char *find7[] = { "          ",
  153.                   "wrapped...",
  154.                   "searching ",
  155.                   "replacing ",
  156.                   "nfa choked"  };
  157.  
  158.  
  159. char *find8  = "string not found";
  160. char *find9  = "String to find: ";
  161. char *find10 = "Replacement:    ";
  162.  
  163. char *find11 = "Line number: ";
  164. char *find12 = "must be in the range 1 - ";
  165.  
  166.  
  167. /*
  168.  * hwind.c
  169.  */
  170. char *smart   = "S";
  171. char *fixed   = "F";
  172. char *intab   = "I";
  173. char *outtab  = "D";
  174. char *tabs    = "Tabs=";
  175.  
  176. char *indent  = "Indent";
  177. char *blank   = "      ";
  178.  
  179. char *ignore = "Ignore";
  180. char *match  = "Match ";
  181.  
  182. char *sync_off = "    ";
  183. char *sync_on  = "Sync";
  184.  
  185. char *ww_mode[]  = { "  ",
  186.                      "FW",
  187.                      "DW" };
  188.  
  189. char *eol_mode[] = { "Native",
  190.                      "CRLF  ",
  191.                      "LF    ",
  192.                      "Binary" };
  193.  
  194.  
  195. /*
  196.  * Incidentally, these need to be 4 characters wide.  The previous file mode
  197.  * should leave no residue in the lite bar, when toggling thru the modes.
  198.  */
  199. char *mode_lf   = "lf  ";
  200. char *mode_crlf = "crlf";
  201. char *mode_bin  = "BIN ";
  202.  
  203.  
  204.  
  205. /*
  206.  * main.c
  207.  */
  208. char *main1   = "Fatal error: ";
  209. char *main2   = "Warning: ";
  210. char *main3   = ": press a key";
  211.  
  212. char *main4   = "out of memory";
  213.  
  214. char *main5   = "negative move - contact Frank Davis";
  215.  
  216. char *main6   = "File is write protected.  Overwrite anyway? (y/n): ";
  217.  
  218. char *main7a  = "File '";
  219. char *main7b  = "'not found or error loading file";
  220.  
  221. char *main8a  = "file '";
  222. char *main8b  = "'too big.  FILE WILL BE TRUNCATED IF SAVED!";
  223.  
  224. char *main9   = "error reading file '";
  225.  
  226. char *main9a = "FRANK: error reading file!";    /* devas neniam okazi? */
  227.  
  228. char *file_win_mem = "F=   W=    m=";
  229.  
  230. char *main10a = "file '";
  231. char *main10b = "'too big";
  232.  
  233. char *main11  = "Press the key that will play back this recording : ";
  234. char *main12  = "Cannot assign a recording to this key";
  235. char *main13  = "No more room in recording buffer";
  236. char *main14  = "Overwrite recording assigned to this key? (y/n) : ";
  237.  
  238. char *main15  = "Recording";
  239.  
  240. char *main18  = "  Avail strokes = ";
  241.  
  242. char *main19  = "Name for macro file name: ";
  243. char *main20  = "Overwrite existing file? (y/n): ";
  244.  
  245. char *main21  = "Search path or file name for macro file : ";
  246. char *main22  = "Invalid path or file name";
  247.  
  248.  
  249. /*
  250.  * regx.c
  251.  */
  252. char *reg1   = "Regular expression search (F1 = help): ";
  253. char *reg2   = "unmatched open paren ";
  254. char *reg3   = "unmatched close paren ";
  255. char *reg4   = "char \'\\\' at end of string is not escaped";
  256. char *reg5   = "class is not defined properly";
  257. char *reg6   = "unmatched open bracket";
  258. char *reg7   = "out of heap for class definition";
  259. char *reg8   = "operator *, + , or ? error";
  260. char *reg9   = "unmatched close bracket ";
  261. char *reg10  = "incomplete range in character class ";
  262. char *reg11  = "Can't parse two operators in a row ";
  263.  
  264.  
  265. #if defined( __UNIX__ )
  266.  
  267. char *regx_help[] = {
  268. "+------------------------------------------------------+",
  269. "│   c = char    x = string    r,s = regular expression |",
  270. "+---------+------------------------------+-------------+",
  271. "|  c      |  any non-operator character  |  Felis      |",
  272. "|  \\c     |  c literally and C escapes   |  catus\\.    |",
  273. "|  \\:c    |  predefined macro            |  \\:a+.?\\(   |",
  274. "|  .      |  any character but newline   |  c.t        |",
  275. "|  <      |  beginning of word           |  <cat       |",
  276. "|  >      |  end of word                 |  <cat>      |",
  277. "|  ^      |  beginning of line           |  ^cat>      |",
  278. "|  $      |  end of line                 |  cat$       |",
  279. "|  [x]    |  any character in x          |  [a-z0-9]   |",
  280. "|  [^x]   |  any character not in x      |  [^AEIOU]   |",
  281. "|  r*     |  zero or more r's            |  ca*t       |",
  282. "|  r+     |  one or more r's             |  ca[b-t]+   |",
  283. "|  r?     |  zero or one r               |  c.?t       |",
  284. "|  rs     |  r followed by s             |  ^$         |",
  285. "|  r|s    |  either r or s               |  kitty|cat  |",
  286. "|  (r)    |  r                           |  (c)?(a+)t  |",
  287. "+---------+------------------------------+-------------+",
  288. NULL
  289. };
  290.  
  291. #else
  292.  
  293. char *regx_help[] = {
  294. "┌──────────────────────────────────────────────────────┐",
  295. "│   c = char    x = string    r,s = regular expression │",
  296. "├─────────┬──────────────────────────────┬─────────────┤",
  297. "│  c      │  any non-operator character  │  Felis      │",
  298. "│  \\c     │  c literally and C escapes   │  catus\\.    │",
  299. "│  \\:c    │  predefined macro            │  \\:a+.?\\(   │",
  300. "│  .      │  any character but newline   │  c.t        │",
  301. "│  <      │  beginning of word           │  <cat       │",
  302. "│  >      │  end of word                 │  <cat>      │",
  303. "│  ^      │  beginning of line           │  ^cat>      │",
  304. "│  $      │  end of line                 │  cat$       │",
  305. "│  [x]    │  any character in x          │  [a-z0-9]   │",
  306. "│  [^x]   │  any character not in x      │  [^AEIOU]   │",
  307. "│  r*     │  zero or more r's            │  ca*t       │",
  308. "│  r+     │  one or more r's             │  ca[b-t]+   │",
  309. "│  r?     │  zero or one r               │  c.?t       │",
  310. "│  rs     │  r followed by s             │  ^$         │",
  311. "│  r|s    │  either r or s               │  kitty|cat  │",
  312. "│  (r)    │  r                           │  (c)?(a+)t  │",
  313. "└─────────┴──────────────────────────────┴─────────────┘",
  314. NULL
  315. };
  316.  
  317. #endif
  318.  
  319. /*
  320.  * utils.c
  321.  */
  322. char *utils1  = "line buffer overflow - rest of line ignored";
  323. char *utils3  = "buffer full, part line truncated";
  324.  
  325. char *utils4  = "Sort (A)scending or (D)escending (a/d)? : ";
  326.  
  327. char *utils5  = "Replace (F)orward or (B)ackward (f/b)? : ";
  328.  
  329. char *utils6  = "Saving '";
  330. char *utils7a = "file  '";
  331. char *utils7b = "' is Read Only";
  332. char *utils8  = "cannot write to '";
  333.  
  334. char *utils9  = "New file name: ";
  335.  
  336. char *utils10 = "Overwrite existing file? (y/n): ";
  337.  
  338. char *utils11 = "Error writing file or disk full";
  339.  
  340. char *utils12 = "Abandon changes? (y/n): ";
  341.  
  342. char *utils13 = "Marker   not set in this file";
  343.  
  344. #if defined( __UNIX__ )
  345. char *utils14 = "Enter new file attributes, \"RrWwXx\" : ";
  346. char *utils15 = "New file attributes not set.  Wrong owner, perhaps";
  347. #else
  348. char *utils14 = "Enter new file attributes, \"AaSsHhRr\" : ";
  349. char *utils15 = "New file attributes not set";
  350. #endif
  351.  
  352. char *utils16 = "No dirty lines found";
  353.  
  354. char *time_am = "am";
  355. char *time_pm = "pm";
  356.  
  357.  
  358. /*
  359.  * window.c
  360.  */
  361. char *win1 = "move cursor up first";
  362.  
  363. char *win2 = "move cursor right first";
  364. char *win3 = "move cursor left first";
  365.  
  366. char *win4 = "Press Up or Down to change window size.  Press Return when done.";
  367. char *win5 = "can not resize vertical window";
  368. char *win6 = "can not resize top window";
  369.  
  370. char *win7 = "cannot close current window";
  371.  
  372. char *win8 = "Invalid path or file name ";
  373. char *win9 = "No more files to load ";
  374.  
  375. char *win16a = "Enter search string:  ";
  376. char *win16b = "Enter regular expression search string:  ";
  377. char *win17 = "Enter file names to search:  ";
  378.  
  379. char *win18 = "Press the <Grep> key for more files or any key to quit (Ctrl \\ = menu):  ";
  380.  
  381. char *win19 = "Searching:  ";
  382.  
  383. /*
  384.  * wordwrap.c
  385.  */
  386. char *ww1  = "line would be too long.";
  387.  
  388.  
  389. /*
  390.  * simple pull-down menu stuff
  391.  *
  392.  * pull.c auto calculates the number of selections under each menu choice.
  393.  *  end the selections with a NULL string and ERROR in the function list.
  394.  *  pull.c also calculates the width of the pull menu.
  395.  */
  396.  
  397. #if defined( __UNIX__ )
  398.  
  399. MINOR_STR file_opts[] = {
  400.    { "+---------+", ERROR },
  401.    { "|Dir      |", DirList },
  402.    { "|Load     |", EditFile },
  403.    { "|Save     |", Save },
  404.    { "|Save as  |", SaveAs },
  405.    { "|Save+Quit|", File },
  406.    { "|File attr|", SetFileAttributes },
  407.    { "+---------+", ERROR },
  408.    { "|Load Next|", EditNextFile },
  409.    { "+---------+", ERROR },
  410.    { "|File Find|", DefineGrep },
  411.    { "|Next Find|", RepeatGrep },
  412.    { "|File Grep|", DefineRegXGrep },
  413.    { "|Next Grep|", RepeatGrep },
  414.    { "+---------+", ERROR },
  415.    { "|Exit     |", Quit },
  416.    { "+---------+", ERROR },
  417.    { NULL, ERROR }
  418. };
  419.  
  420. MINOR_STR search_opts[] = {
  421.    { "+----------+", ERROR },
  422.    { "|Find fwd  |", FindForward },
  423.    { "|Find bckwd|", FindBackward },
  424.    { "|Repeat >  |", RepeatFindForward1 },
  425.    { "|Repeat <  |", RepeatFindForward1 },
  426.    { "+----------+", ERROR },
  427.    { "|Find regx |", FindRegX },
  428.    { "|Next regx |", RepeatFindRegX },
  429.    { "|Prev regx |", RepeatFindRegXBackward },
  430.    { "+----------+", ERROR },
  431.    { "|Tog Case  |", ToggleSearchCase },
  432.    { "+----------+", ERROR },
  433.    { "|Begin Diff|", DefineDiff },
  434.    { "|Next Diff |", RepeatDiff },
  435.    { "+----------+", ERROR },
  436.    { NULL, ERROR }
  437. };
  438.  
  439. MINOR_STR block_opts[] = {
  440.    { "+------------+", ERROR },
  441.    { "|Copy Block  |", CopyBlock },
  442.    { "|Kopy Block  |", KopyBlock },
  443.    { "|Delete Block|", DeleteBlock },
  444.    { "|Move Block  |", MoveBlock },
  445.    { "|Unmark Block|", UnMarkBlock },
  446.    { "+--Box only--+", ERROR },
  447.    { "|Fill Box    |", FillBlock },
  448.    { "|Number Box  |", NumberBlock },
  449.    { "|Overlay Box |", OverlayBlock },
  450.    { "|Swap Box    |", SwapBlock },
  451.    { "|Sort Box    |", SortBoxBlock },
  452.    { "+------------+", ERROR },
  453.    { "|Expand Tabs |", BlockExpandTabs },
  454.    { "|Compress Tab|", BlockCompressTabs },
  455.    { "|Indent Tabs |", BlockIndentTabs },
  456.    { "|Trim Trail  |", BlockTrimTrailing },
  457.    { "|Upper Case  |", BlockUpperCase },
  458.    { "|Lower Case  |", BlockLowerCase },
  459.    { "|Strip hi bit|", BlockStripHiBit },
  460.    { "|Rot13       |", BlockRot13 },
  461.    { "|Fix UUE prob|", BlockFixUUE },
  462.    { "|E-mail '>'  |", BlockEmailReply },
  463.    { "+------------+", ERROR },
  464.    { NULL, ERROR }
  465. };
  466.  
  467. MINOR_STR toggle_opts[] = {
  468.    { "+-----------+", ERROR },
  469.    { "|Insert     |", ToggleOverWrite },
  470.    { "|Indent     |", ToggleIndent },
  471.    { "|Word wrap  |", ToggleWordWrap },
  472.    { "|crlf/lf/bin|", ToggleCRLF },
  473.    { "|Trim trail |", ToggleTrailing },
  474.    { "|Control Z  |", ToggleZ },
  475.    { "|EOL display|", ToggleEol },
  476.    { "|Cursor sync|", ToggleSync },
  477.    { "|Ruler      |", ToggleRuler },
  478.    { "|Set tabs   |", SetTabs },
  479.    { "|Smart tabs |", ToggleSmartTabs },
  480.    { "+-----------+", ERROR },
  481.    { NULL, ERROR }
  482. };
  483.  
  484. MINOR_STR other_opts[] = {
  485.    { "+-------------+", ERROR },
  486.    { "|Add Line     |", AddLine },
  487.    { "|Split Line   |", SplitLine },
  488.    { "|Join Line    |", JoinLine },
  489.    { "|Dup Line     |", DuplicateLine },
  490.    { "|Delete Line  |", DeleteLine },
  491.    { "|Undelete Line|", UndoDelete },
  492.    { "|Undo Line    |", UndoLine },
  493.    { "+-------------+", ERROR },
  494.    { "|Next Dirty L |", NextDirtyLine },
  495.    { "|Prev Dirty L |", PrevDirtyLine },
  496.    { "+-------------+", ERROR },
  497.    { "|Top of File  |", TopOfFile },
  498.    { "|End of File  |", EndOfFile },
  499.    { "|Goto Line    |", JumpToLine },
  500.    { "+-------------+", ERROR },
  501.    { "|Date Stamp   |", DateTimeStamp },
  502.    { "|Redraw Screen|", RedrawScreen },
  503.    { "+-------------+", ERROR },
  504.    { "|Macro Record |", RecordMacro },
  505.    { "+-------------+", ERROR },
  506.    { NULL, ERROR }
  507. };
  508.  
  509. MINOR_STR word_opts[] = {
  510.    { "+-------------+", ERROR },
  511.    { "|Left Margin  |", SetLeftMargin },
  512.    { "|Right Margin |", SetRightMargin },
  513.    { "|Pargrh Margin|", SetParagraphMargin },
  514.    { "+-------------+", ERROR },
  515.    { "|Format Pargrh|", FormatParagraph },
  516.    { "|Format fwrd  |", FormatText },
  517.    { "+-------------+", ERROR },
  518.    { "|Left Justify |", LeftJustify },
  519.    { "|Right Justify|", RightJustify },
  520.    { "|Center Just  |", CenterJustify },
  521.    { "+-------------+", ERROR },
  522.    { NULL, ERROR }
  523. };
  524.  
  525. MINOR_STR window_opts[] = {
  526.    { "+--------------+", ERROR },
  527.    { "|Split horzntal|", SplitHorizontal },
  528.    { "|Split vertical|", SplitVertical },
  529.    { "+--------------+", ERROR },
  530.    { "|Next Window   |", NextWindow },
  531.    { "|Prev Window   |", PreviousWindow },
  532.    { "+--------------+", ERROR },
  533.    { "|Zoom Window   |", ZoomWindow },
  534.    { "|Size Window   |", SizeWindow },
  535.    { "|Next Hidn Win |", NextHiddenWindow },
  536.    { "|Close Window  |", Quit },
  537.    { "+--------------+", ERROR },
  538.    {  NULL, ERROR }
  539. };
  540.  
  541. #else
  542.  
  543. MINOR_STR file_opts[] = {
  544.    { "┌─────────┐", ERROR },
  545.    { "│Dir      │", DirList },
  546.    { "│Load     │", EditFile },
  547.    { "│Save     │", Save },
  548.    { "│Save as  │", SaveAs },
  549.    { "│Save+Quit│", File },
  550.    { "│File attr│", SetFileAttributes },
  551.    { "├─────────┤", ERROR },
  552.    { "│Load Next│", EditNextFile },
  553.    { "├─────────┤", ERROR },
  554.    { "│File Find│", DefineGrep },
  555.    { "│Next Find│", RepeatGrep },
  556.    { "│File Grep│", DefineRegXGrep },
  557.    { "│Next Grep│", RepeatGrep },
  558.    { "├─────────┤", ERROR },
  559.    { "│Exit     │", Quit },
  560.    { "└─────────┘", ERROR },
  561.    { NULL, ERROR }
  562. };
  563.  
  564. MINOR_STR search_opts[] = {
  565.    { "┌──────────┐", ERROR },
  566.    { "│Find fwd  │", FindForward },
  567.    { "│Find bckwd│", FindBackward },
  568.    { "│Repeat >  │", RepeatFindForward1 },
  569.    { "│Repeat <  │", RepeatFindForward1 },
  570.    { "├──────────┤", ERROR },
  571.    { "│Find regx │", FindRegX },
  572.    { "│Next regx │", RepeatFindRegX },
  573.    { "│Prev regx │", RepeatFindRegXBackward },
  574.    { "├──────────┤", ERROR },
  575.    { "│Tog Case  │", ToggleSearchCase },
  576.    { "├──────────┤", ERROR },
  577.    { "│Begin Diff│", DefineDiff },
  578.    { "│Next Diff │", RepeatDiff },
  579.    { "└──────────┘", ERROR },
  580.    { NULL, ERROR }
  581. };
  582.  
  583. MINOR_STR block_opts[] = {
  584.    { "┌────────────┐", ERROR },
  585.    { "│Copy Block  │", CopyBlock },
  586.    { "│Kopy Block  │", KopyBlock },
  587.    { "│Delete Block│", DeleteBlock },
  588.    { "│Move Block  │", MoveBlock },
  589.    { "│Unmark Block│", UnMarkBlock },
  590.    { "├──Box only──┤", ERROR },
  591.    { "│Fill Box    │", FillBlock },
  592.    { "│Number Box  │", NumberBlock },
  593.    { "│Overlay Box │", OverlayBlock },
  594.    { "│Swap Box    │", SwapBlock },
  595.    { "│Sort Box    │", SortBoxBlock },
  596.    { "├────────────┤", ERROR },
  597.    { "│Expand Tabs │", BlockExpandTabs },
  598.    { "│Compress Tab│", BlockCompressTabs },
  599.    { "│Indent Tabs │", BlockIndentTabs },
  600.    { "│Trim Trail  │", BlockTrimTrailing },
  601.    { "│Upper Case  │", BlockUpperCase },
  602.    { "│Lower Case  │", BlockLowerCase },
  603.    { "│Strip hi bit│", BlockStripHiBit },
  604.    { "│Rot13       │", BlockRot13 },
  605.    { "│Fix UUE prob│", BlockFixUUE },
  606.    { "│E-mail '>'  │", BlockEmailReply },
  607.    { "└────────────┘", ERROR },
  608.    { NULL, ERROR }
  609. };
  610.  
  611. MINOR_STR toggle_opts[] = {
  612.    { "┌───────────┐", ERROR },
  613.    { "│Insert     │", ToggleOverWrite },
  614.    { "│Indent     │", ToggleIndent },
  615.    { "│Word wrap  │", ToggleWordWrap },
  616.    { "│crlf/lf/bin│", ToggleCRLF },
  617.    { "│Trim trail │", ToggleTrailing },
  618.    { "│Control Z  │", ToggleZ },
  619.    { "│EOL display│", ToggleEol },
  620.    { "│Cursor sync│", ToggleSync },
  621.    { "│Ruler      │", ToggleRuler },
  622.    { "│Set tabs   │", SetTabs },
  623.    { "│Smart tabs │", ToggleSmartTabs },
  624.    { "└───────────┘", ERROR },
  625.    { NULL, ERROR }
  626. };
  627.  
  628. MINOR_STR other_opts[] = {
  629.    { "┌─────────────┐", ERROR },
  630.    { "│Add Line     │", AddLine },
  631.    { "│Split Line   │", SplitLine },
  632.    { "│Join Line    │", JoinLine },
  633.    { "│Dup Line     │", DuplicateLine },
  634.    { "│Delete Line  │", DeleteLine },
  635.    { "│Undelete Line│", UndoDelete },
  636.    { "│Undo Line    │", UndoLine },
  637.    { "├─────────────┤", ERROR },
  638.    { "│Next Dirty L │", NextDirtyLine },
  639.    { "│Prev Dirty L │", PrevDirtyLine },
  640.    { "├─────────────┤", ERROR },
  641.    { "│Top of File  │", TopOfFile },
  642.    { "│End of File  │", EndOfFile },
  643.    { "│Goto Line    │", JumpToLine },
  644.    { "├─────────────┤", ERROR },
  645.    { "│Date Stamp   │", DateTimeStamp },
  646.    { "│Redraw Screen│", RedrawScreen },
  647.    { "├─────────────┤", ERROR },
  648.    { "│Macro Record │", RecordMacro },
  649.    { "└─────────────┘", ERROR },
  650.    { NULL, ERROR }
  651. };
  652.  
  653. MINOR_STR word_opts[] = {
  654.    { "┌─────────────┐", ERROR },
  655.    { "│Left Margin  │", SetLeftMargin },
  656.    { "│Right Margin │", SetRightMargin },
  657.    { "│Pargrh Margin│", SetParagraphMargin },
  658.    { "├─────────────┤", ERROR },
  659.    { "│Format Pargrh│", FormatParagraph },
  660.    { "│Format fwrd  │", FormatText },
  661.    { "├─────────────┤", ERROR },
  662.    { "│Left Justify │", LeftJustify },
  663.    { "│Right Justify│", RightJustify },
  664.    { "│Center Just  │", CenterJustify },
  665.    { "└─────────────┘", ERROR },
  666.    { NULL, ERROR }
  667. };
  668.  
  669. MINOR_STR window_opts[] = {
  670.    { "┌──────────────┐", ERROR },
  671.    { "│Split horzntal│", SplitHorizontal },
  672.    { "│Split vertical│", SplitVertical },
  673.    { "├──────────────┤", ERROR },
  674.    { "│Next Window   │", NextWindow },
  675.    { "│Prev Window   │", PreviousWindow },
  676.    { "├──────────────┤", ERROR },
  677.    { "│Zoom Window   │", ZoomWindow },
  678.    { "│Size Window   │", SizeWindow },
  679.    { "│Next Hidn Win │", NextHiddenWindow },
  680.    { "│Close Window  │", Quit },
  681.    { "└──────────────┘", ERROR },
  682.    {  NULL, ERROR }
  683. };
  684.  
  685. #endif
  686.  
  687.  
  688. /*
  689.  * here's the main headings in the pull-down menu.  in TDESTR.H the number
  690.  *  of headings is defined as MAJOR or 7.
  691.  */
  692. MENU_STR menu = {
  693.    { "File",    0,   file_opts },
  694.    { "Search",  0, search_opts },
  695.    { "Block",   0,  block_opts },
  696.    { "Toggles", 0, toggle_opts },
  697.    { "Other",   0,  other_opts },
  698.    { "Word",    0,   word_opts },
  699.    { "Window",  0, window_opts }
  700. };
  701.  
  702.  
  703. /************************************************************************/
  704. /* Editor:      TDE, the Thomson-Davis Editor
  705.  * Filename:    prompts2.h
  706.  * Compiled by: Byrial Jensen
  707.  *
  708.  * This file contains various prompts and other strings, collected to
  709.  * to ease making versions for other languages.
  710.  * Here is: What is "forgotten" in prompts.h
  711.  *          A string with the alphabet used for window names
  712.  *          Tables used by functions in myctype.c and macros in myctype.h
  713.  * It is used with changed versions of several of the TDE source files
  714.  */
  715.  
  716.  
  717. /*
  718.  * These letters are used to differentiate windows in the same file.
  719.  *  Some users may prefer the sequence of their alphabet, instead of
  720.  *  this English sequence.
  721.  */
  722. char *windowletters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
  723.  
  724.  
  725. /*
  726.  * First some defines which only purpose is to make the next table
  727.  * more compact and easy to see, Byrial.
  728.  */
  729. #define  S   BJ_space
  730. #define  D   (BJ_digit | BJ_xdigit)     /* bit mask for digit */
  731. #define  U   BJ_upper
  732. #define  L   BJ_lower
  733. #define  H   (BJ_xdigit | U)            /* bit mask for uppercase hex digit */
  734. #define  h   (BJ_xdigit | L)            /* bit mask for lowercase hex digit */
  735. #define  C   BJ_cntrl
  736. #define  P   BJ_punct
  737. #define  s   (S | C)                    /* counts both for space and control */
  738.  
  739.  
  740. /*
  741.  * I'll give the English ASCII and Extended-ASCII keyboards a try, Frank.
  742.  */
  743. #define CHAR_SET   LATIN_3
  744. #define CHAR_SET   ENGLISH
  745.  
  746. #if CHAR_SET==ENGLISH
  747. char bj_ctype[257] = {
  748.     0,                        /* EOF returns 0, I am assumimg EOF == -1 */
  749.     C,C,C,C, C,C,C,C,  C,s,s,s, s,s,C,C,  /* 00h-0Fh    0- 15 */
  750.     C,C,C,C, C,C,C,C,  C,C,C,C, C,C,C,C,  /* 10h-1Fh   16- 31 */
  751.     S,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,P,  /* 20h-2Fh   32- 47 */
  752.     D,D,D,D, D,D,D,D,  D,D,P,P, P,P,P,P,  /* 30h-2Fh   48- 63 */
  753.  
  754.     P,H,H,H, H,H,H,U,  U,U,U,U, U,U,U,U,  /* 40h-4Fh   64- 79 */
  755.     U,U,U,U, U,U,U,U,  U,U,U,P, P,P,P,P,  /* 50h-5Fh   80- 95 */
  756.     P,h,h,h, h,h,h,L,  L,L,L,L, L,L,L,L,  /* 60h-6Fh   96-111 */
  757.     L,L,L,L, L,L,L,L,  L,L,L,P, P,P,P,C,  /* 70h-7Fh  112-127 */
  758.  
  759.     U,L,L,L, L,L,L,L,  L,L,L,L, L,L,U,U,  /* 80h-8Fh  128-143 */
  760.     U,L,U,L, L,L,L,L,  U,L,U,P, P,P,P,P,  /* 90h-9Fh  144-159 */
  761.     L,L,L,L, L,U,P,P,  P,P,P,P, P,P,P,P,  /* A0h-AFh  160-175 */
  762.     P,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,P,  /* B0H-BFh  176-191 */
  763.  
  764.     P,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,P,  /* C0h-CFh  192-207 */
  765.     P,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,P,  /* D0h-DFh  208-223 */
  766.     L,L,L,U, L,L,L,L,  L,L,L,L, L,L,P,P,  /* E0h-EFh  224-239 */
  767.     P,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,0   /* F0h-FFh  240-255 */
  768. };
  769. #else
  770. /*
  771.  * This is Byrial's definition for ISO 8859-3 (Latin 3) added with
  772.  * normal ASCII control characters.
  773.  */
  774. char bj_ctype[257] = {
  775.     0,                        /* EOF returns 0, I am assumimg EOF == -1 */
  776.     C,C,C,C, C,C,C,C,  C,s,s,s, s,s,C,C,  /* 00h-0Fh    0- 15 */
  777.     C,C,C,C, C,C,C,C,  C,C,C,C, C,C,C,C,  /* 10h-1Fh   16- 31 */
  778.     S,P,P,P, P,P,P,P,  P,P,P,P, P,P,P,P,  /* 20h-2Fh   32- 47 */
  779.     D,D,D,D, D,D,D,D,  D,D,P,P, P,P,P,P,  /* 30h-2Fh   48- 63 */
  780.  
  781.     P,H,H,H, H,H,H,U,  U,U,U,U, U,U,U,U,  /* 40h-4Fh   64- 79 */
  782.     U,U,U,U, U,U,U,U,  U,U,U,P, P,P,P,P,  /* 50h-5Fh   80- 95 */
  783.     P,h,h,h, h,h,h,L,  L,L,L,L, L,L,L,L,  /* 60h-6Fh   96-111 */
  784.     L,L,L,L, L,L,L,L,  L,L,L,P, P,P,P,C,  /* 70h-7Fh  112-127 */
  785.  
  786.     0,0,0,0, 0,0,0,0,  0,0,0,0, 0,0,0,0,  /* 80h-8Fh  128-143 */
  787.     0,0,0,0, 0,0,0,0,  0,0,0,0, 0,0,0,0,  /* 90h-9Fh  144-159 */
  788.     s,U,P,P, P,0,U,P,  P,U,U,U, U,C,0,U,  /* A0h-AFh  160-175 */
  789.     P,L,P,P, P,P,L,P,  P,L,L,L, L,P,0,L,  /* B0H-BFh  176-191 */
  790.  
  791.     U,U,U,0, U,U,U,U,  U,U,U,U, U,U,U,U,  /* C0h-CFh  192-207 */
  792.     0,U,U,U, U,U,U,P,  U,U,U,U, U,U,U,U,  /* D0h-DFh  208-223 */
  793.     L,L,L,0, L,L,L,L,  L,L,L,L, L,L,L,L,  /* E0h-EFh  224-239 */
  794.     0,L,L,L, L,L,L,P,  L,L,L,L, L,L,L,P   /* F0h-FFh  240-255 */
  795. };
  796. #endif
  797.  
  798. #undef S        /* These letters where only defined to make the */
  799. #undef D        /* above table as compact as possible.          */
  800. #undef U        /* Now they can be undef'ed, Byrial             */
  801. #undef L
  802. #undef H
  803. #undef h
  804. #undef C
  805. #undef P
  806. #undef s
  807.  
  808.  
  809. /*
  810.  * State corresponding uppercase letter for each lowercase letter,
  811.  * and corresponding lowercase letter for each uppercase letter.
  812.  * If the right corresponding letter does not exist in the character set
  813.  * state best replacement, possible the letter self in wrong case.
  814.  * Byrial Jensen.
  815.  */
  816.  
  817. #if CHAR_SET==ENGLISH
  818. /*
  819.  * Thought I would give code page 437 (English) a try, Frank.
  820.  */
  821. char upper_lower[256] = {
  822.  
  823.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  824.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  825.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  826.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  827.  
  828.      0 ,'a','b','c', 'd','e','f','g',  'h','i','j','k', 'l','m','n','o',
  829.     'p','q','r','s', 't','u','v','w',  'x','y','z', 0 ,  0 , 0 , 0 , 0 ,
  830.      0 ,'A','B','C', 'D','E','F','G',  'H','I','J','K', 'L','M','N','O',
  831.     'P','Q','R','S', 'T','U','V','W',  'X','Y','Z', 0 ,  0 , 0 , 0 , 0 ,
  832.  
  833.     'ç','Ü','É','A', 'Ä','A','Å','Ç',  'E','E','E','I', 'I','I','ä','å',
  834.     'é','Æ','æ','O', 'Ö','O','U','U',  'y','ö','ü', 0 ,  0 , 0 , 0 , 0 ,
  835.     'A','I','O','U', 'Ñ','ñ', 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  836.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  837.  
  838.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  839.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  840.     'α','ß','Γ','π', 'Σ','σ','µ','τ',  'Φ','Θ','Ω','δ', '∞','φ', 0 , 0 ,
  841.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0
  842. };
  843. #else
  844. /*
  845.  * This is a definition valid for ISO 8859-3 (Latin 3), Byrial:
  846.  */
  847. char upper_lower[256] = {
  848.  
  849.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  850.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  851.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  852.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  853.  
  854.      0 ,'a','b','c', 'd','e','f','g',  'h','i','j','k', 'l','m','n','o',
  855.     'p','q','r','s', 't','u','v','w',  'x','y','z', 0 ,  0 , 0 , 0 , 0 ,
  856.      0 ,'A','B','C', 'D','E','F','G',  'H','I','J','K', 'L','M','N','O',
  857.     'P','Q','R','S', 'T','U','V','W',  'X','Y','Z', 0 ,  0 , 0 , 0 , 0 ,
  858.  
  859.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  860.      0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,   0 , 0 , 0 , 0 ,  0 , 0 , 0 , 0 ,
  861.      0 ,'▒', 0 , 0 ,  0 , 0 ,'╢', 0 ,   0 ,'╣','║','╗', '╝', 0 , 0 ,'┐',
  862.      0 ,'í', 0 , 0 ,  0 , 0 ,'ª', 0 ,   0 ,'⌐','¬','½', '¼', 0 , 0 ,'»',
  863.  
  864.     'α','ß','Γ', 0 , 'Σ','σ','µ','τ',  'Φ','Θ','Ω','δ', '∞','φ','ε','∩',
  865.      0 ,'±','≥','≤', '⌠','⌡','÷', 0 ,  '°','∙','·','√', 'ⁿ','²','■','▀',
  866.     '└','┴','┬', 0 , '─','┼','╞','╟',  '╚','╔','╩','╦', '╠','═','╬','╧',
  867.      0 ,'╤','╥','╙', '╘','╒','╓', 0 ,  '╪','┘','┌','█', '▄','▌','▐', 0
  868. };
  869. #endif
  870.