home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume35 / ipick / part05 < prev    next >
Encoding:
Text File  |  1993-03-03  |  27.4 KB  |  733 lines

  1. Newsgroups: comp.sources.misc
  2. From: markd@werple.apana.org.au (Mark Delany)
  3. Subject: v35i121:  ipick - an interactive filter to pick lines, Part05/05
  4. Message-ID: <1993Mar4.195133.11919@sparky.imd.sterling.com>
  5. X-Md4-Signature: 0dcddf0b2a8d85344cb7fec50582896e
  6. Date: Thu, 4 Mar 1993 19:51:33 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: markd@werple.apana.org.au (Mark Delany)
  10. Posting-number: Volume 35, Issue 121
  11. Archive-name: ipick/part05
  12. Environment: UNIX, Curses
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then feed it
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  19. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  20. # Contents:  ipick/language/english ipick/language/german
  21. # Wrapped by markd@bushwire on Sun Feb 28 10:06:39 1993
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. echo If this archive is complete, you will see the following message:
  24. echo '          "shar: End of archive 5 (of 5)."'
  25. if test -f 'ipick/language/english' -a "${1}" != "-c" ; then 
  26.   echo shar: Will not clobber existing file \"'ipick/language/english'\"
  27. else
  28.   echo shar: Extracting \"'ipick/language/english'\" \(11115 characters\)
  29.   sed "s/^X//" >'ipick/language/english' <<'END_OF_FILE'
  30. X/* $Id: english,v 1.1 1993/02/27 21:58:07 markd Exp $
  31. X *
  32. X * Language dependent runtime messages used by ipick
  33. X *
  34. X *    Copyright (c) 1993, Mark Delany
  35. X *
  36. X *    You may distribute under the terms of either the GNU General Public
  37. X *    License or the Artistic License, as specified in the README file.
  38. X *
  39. X * $Log: english,v $
  40. X * Revision 1.1  1993/02/27  21:58:07  markd
  41. X * Initial revision
  42. X *
  43. X */
  44. X
  45. X#define    IN_LANGUAGE    /* Tells ipick.h not to extern */
  46. X
  47. X#include "ipick.h"
  48. X
  49. X/*
  50. X * All online messages for ipick are located in this file so that
  51. X * different nationalities can be relatively easily created.
  52. X *
  53. X * Each module has it's own external array of messages of the form
  54. X * msg_XXXX.
  55. X *
  56. X * Notes:
  57. X * ======
  58. X *
  59. X * 1.    Be VERY careful when changing messages that are part of a
  60. X *    printf pattern. Make sure that the number type and order of
  61. X *    parameters remain exactly the same.
  62. X *
  63. X * 2.    The strings ALL and VISIBLE can be changed to anything you
  64. X *    like as long as they are unique in the first character. Don't 
  65. X *    forget to change the help_text if you change these.
  66. X */
  67. X
  68. X
  69. X/********** COMMAND **********/
  70. X
  71. Xchar    *msg_command[] = {
  72. X/* 00 */    "all",
  73. X/* 01 */    "visible",
  74. X/* 02 */    "",                /* UNUSED */
  75. X/* 03 */    "No previous command",
  76. X/* 04 */    "All lines selected",
  77. X/* 05 */    "All lines cleared",
  78. X/* 06 */    "Top of screen",
  79. X/* 07 */    "Bottom of screen",
  80. X/* 08 */    "Top of file",
  81. X/* 09 */    "End of file",
  82. X/* 10 */    "Beginning of line",
  83. X/* 11 */    "End of line",
  84. X/* 12 */    "Invalid line number",
  85. X/* 13 */    "Shell command illegal in restricted mode",
  86. X/* 14 */    "Pipe command illegal in restricted mode",
  87. X/* 15 */    "\n\r[Depress any data key to continue with %s] ",
  88. X/* 16 */    "Abort disabled in restricted mode",
  89. X/* 17 */    "Command complete",
  90. X/* 18 */    "Unrecognized command - try ? for help.",
  91. X/* 19 */    "Out of range: Minimum required not reached",
  92. X/* 20 */    "Out of range: Maximum allowed exceeded",
  93. X/* 21 */    "Out of range: Selection of unread lines may exceed maximum",
  94. X/* 22 */    "Number too large",
  95. X/* 23 */    "Illegal character in selection string",
  96. X/* 24 */    "Item number not on screen",
  97. X/* 25 */    "No previous pattern to search",
  98. X/* 26 */    "Not found",
  99. X/* 27 */    "No more selected lines",
  100. X/* 28 */    "No previous selected lines"
  101. X};
  102. X
  103. X/********** CURSES **********/
  104. X
  105. Xchar    *msg_curses[] = {
  106. X/* 00 */    "The TERM environment variable is not set",
  107. X/* 01 */    "\nCurses initialization failed with terminal: %s\n",
  108. X/* 02 */    "Does this terminal have an entry?\n",
  109. X/* 03 */    "Could not initialize curses",
  110. X/* 04 */    "Not enough lines for title+data after window/term resize",
  111. X/* 05 */    "Not enough lines for title+data. Check the -T value",
  112. X/* 06 */    "Not enough columns for title+data after window/term resize",
  113. X/* 07 */    "Not enough columns for title+data.",
  114. X/* 08 */    "More",
  115. X/* 09 */    "Last",
  116. X/* 10 */    "Selected",
  117. X/* 11 */    "Ok:",        /* Include colon */
  118. X/* 12 */    "to",        /* As in range of "1 to 4" */
  119. X/* 13 */    " auto ",    /* Auto exit mode -a. Include spaces */
  120. X/* 14 */    "Col",        /* Col for column */
  121. X/* 15 */    "%s:%d of %d%s "
  122. X};
  123. X
  124. X/********** FILEIO **********/
  125. X
  126. Xchar    *msg_fileio[] = {
  127. X/* 00 */    "",
  128. X/* 01 */    "",
  129. X/* 02 */    "",
  130. X/* 03 */    "fwrite to stdout failed",
  131. X/* 04 */    "fwrite to stdout of remaining buffer failed",
  132. X/* 05 */    "fwrite to stdout failed"
  133. X};
  134. X
  135. X/********** HELP **********/
  136. X
  137. X
  138. Xchar    *msg_help[] = {
  139. X/* 00 */    "'Q' to quit help. Any other data key to continue...",
  140. X/* 01 */    "Depress any data key to return to %s...",
  141. X/* 02 */    "*nothing bound*"
  142. X};
  143. X
  144. X
  145. X/* There are no embedded tabs in the help_text list - untabify */
  146. X
  147. XHELP_TEXT       help_text[] = {
  148. X
  149. X"                       Selection Commands", NO_COMMAND,
  150. X"                       ------------------", NO_COMMAND,
  151. X"", NO_COMMAND,
  152. X"Select line-range     ", SELECT_RANGE,
  153. X"Select line numbers   ", SELECT_NUMBER,
  154. X"Select all lines      ", SELECT_ALL,
  155. X"Clear  line-range     ", CLEAR_RANGE,
  156. X"Clear  all lines      ", CLEAR_ALL,
  157. X"Toggle current line   ", TOGGLE_CURRENT,
  158. X"Toggle line-range     ", TOGGLE_RANGE,
  159. X"Toggle unread         ", TOGGLE_UNREAD,
  160. X"", NO_COMMAND,
  161. X"", NO_COMMAND,
  162. X"Line numbers can be any number or range on display. eg: 1 14-9 3", NO_COMMAND,
  163. X"", NO_COMMAND,
  164. X"A line-range can be any one of:", NO_COMMAND,
  165. X"", NO_COMMAND,
  166. X"o       line numbers", NO_COMMAND,
  167. X"o       the word 'visible' or 'v' for all lines on the screen", NO_COMMAND,
  168. X"o       the word 'all' or 'a' for all lines", NO_COMMAND,
  169. X"", NO_COMMAND,
  170. XPAGE_END, NO_COMMAND,
  171. X"                       Positioning", NO_COMMAND,
  172. X"                       -----------", NO_COMMAND,
  173. X"", NO_COMMAND,
  174. X"Top of File           ", BEGINNING_OF_FILE,
  175. X"Bottom of File        ", END_OF_FILE,
  176. X"Top of screen         ", TOP_OF_SCREEN,
  177. X"Bottom of screen      ", BOTTOM_OF_SCREEN,
  178. X"Next line             ", NEXT_LINE,
  179. X"Previous line         ", PREVIOUS_LINE,
  180. X"Go to line             ", GOTO_LINE,
  181. XLUMP_END, NO_COMMAND,
  182. X"                       Vertical scrolling", NO_COMMAND,
  183. X"                       ------------------", NO_COMMAND,
  184. X"", NO_COMMAND,
  185. X"Up half screen        ", SCROLL_UP_HALF,
  186. X"Down half screen      ", SCROLL_DOWN_HALF,
  187. X"Up full screen        ", SCROLL_UP_FULL,
  188. X"Down full screen      ", SCROLL_DOWN_FULL,
  189. XLUMP_END, NO_COMMAND,
  190. X"                       Horizontal scrolling", NO_COMMAND,
  191. X"                       --------------------", NO_COMMAND,
  192. X"", NO_COMMAND,
  193. X"Right one character      ", SCROLL_RIGHT_CHAR,
  194. X"Left one character       ", SCROLL_LEFT_CHAR,
  195. X"Right one tabstop        ", SCROLL_TAB,
  196. X"Left one tabstop         ", SCROLL_BACKTAB,
  197. X"Beginning of line        ", BEGINNING_OF_LINE,
  198. X"End of line              ", END_OF_LINE,
  199. X"Scroll left half screen  ", SCROLL_LEFT_SCREEN,
  200. X"Scroll right half screen ", SCROLL_RIGHT_SCREEN,
  201. XPAGE_END, NO_COMMAND,
  202. X"                       Searching", NO_COMMAND,
  203. X"                       ---------", NO_COMMAND,
  204. X"", NO_COMMAND,
  205. X"Search forwards        ", SEARCH_FORWARD,
  206. X"Search backwards       ", SEARCH_BACKWARD,
  207. X"Re-search forwards     ", RE_SEARCH_FORWARD,
  208. X"Re-search backwards    ", RE_SEARCH_BACKWARD,
  209. X"Next selected          ", NEXT_SELECTED,
  210. X"Previous selected      ", PREVIOUS_SELECTED,
  211. XLUMP_END, NO_COMMAND,
  212. X"                       Miscellaneous", NO_COMMAND,
  213. X"                       -------------", NO_COMMAND,
  214. X"", NO_COMMAND,
  215. X"Quit                   ", QUIT,
  216. X"Abort                  ", ABORT,
  217. X"Refresh                ", REFRESH,
  218. X"Redo last command      ", REDO_COMMAND,
  219. X"Online Help            ", HELP,
  220. X"Shell command          ", SHELL,
  221. X"Pipe the current line  ", PIPE,
  222. XLUMP_END, NO_COMMAND,
  223. X"                       Xterm Mouse tracking", NO_COMMAND,
  224. X"                       --------------------", NO_COMMAND,
  225. X"", NO_COMMAND,
  226. X"Simplistic mouse button events are supported when running within", NO_COMMAND,
  227. X"an xterm window.", NO_COMMAND,
  228. X"", NO_COMMAND,
  229. X"Button Down events:", NO_COMMAND,
  230. X"", NO_COMMAND,
  231. X"Button        1        Start of Select range", NO_COMMAND,
  232. X"Button        2        Start of Toggle range", NO_COMMAND,
  233. X"Button        3        Start of Clear range", NO_COMMAND,
  234. X"", NO_COMMAND,
  235. X"", NO_COMMAND,
  236. X"The button release event defines the end of the button down range.", NO_COMMAND,
  237. XLUMP_END, NO_COMMAND,
  238. X"While 'dragging' is supported, the lines will not change their", NO_COMMAND,
  239. X"selection status until the mouse-release event (ie: no HILITE).", NO_COMMAND,
  240. X"", NO_COMMAND,
  241. X"Chording of buttons serves no purpose as successive down events", NO_COMMAND,
  242. X"are ignored. Likewise ignored are the augmentation keys; Shift", NO_COMMAND,
  243. X"Control and Meta.", NO_COMMAND,
  244. XNULL};
  245. X
  246. X
  247. X/********** KEYBOARD **********/
  248. X
  249. Xchar    *msg_keyboard[] = {
  250. X/* 00 */    "Select: v=visible, a=all, number or range",
  251. X/* 01 */    "Select: number or range",
  252. X/* 02 */    "Clear: v=visible, a=all, number or range",
  253. X/* 03 */    "Toggle: v=visible, a=all, number or range",
  254. X/* 04 */    "Forward search",
  255. X/* 05 */    "Reverse search",
  256. X/* 06 */    "Go to line",
  257. X/* 07 */    "Shell command",
  258. X/* 08 */    "Pipe the current line"
  259. X};
  260. X
  261. X/********** MISC **********/
  262. X
  263. Xchar    *msg_misc[] = {
  264. X/* 00 */    "Could not open pipe",
  265. X/* 01 */    "malloc() failed",
  266. X/* 02 */    "realloc() failed",
  267. X/* 03 */    "strdup() failed",
  268. X/* 04 */    "Incomplete Control sequence (^)",
  269. X/* 05 */    "Incomplete \\ sequence",
  270. X/* 06 */    "Incomplete octal sequence"
  271. X};
  272. X
  273. X/********** MAIN **********/
  274. X
  275. Xchar    *msg_main[] = {
  276. X/* 00 */    "Usage:\t\
  277. Xipick\t[-abdhrRvV] [-m number] [-M number] [-t title] [-T lines]\n\
  278. X\t\t[-X xterm-substring] [file]\n",
  279. X
  280. X/* 01 */    "\t\t\t\t(-h for detailed command line help)\n",
  281. X/* 02 */    "\n\
  282. XInteractive Pick: A curses based filter with online help.\n\
  283. X\n\
  284. X-a\tAutomatically exit when lines selected within range of -m to -M\n\
  285. X-b\tNoisy error messages (ring bell)\n\
  286. X-d\tDrain stdin on exit to avoid possible SIGPIPE's upstream\n\
  287. X-h\tPrint this message\n\
  288. X-r\tRun in restricted mode - no abnormal escape possible\n\
  289. X-R\tDisable keyboard raw mode\n\
  290. X-v\tInvert the selection by writing all lines NOT selected\n\
  291. X-V\tPrint a version, compilation options and copyright message\n\
  292. X\n\
  293. X-m\tMinimum number of lines that can be picked (see -a)\n\
  294. X-M\tMaximum number of lines that can be picked\n\
  295. X-t\tTitle line(s)\n\
  296. X-T\tLines to read from stdin as title lines subsequent to -t\n\
  297. X-X\tIf in $TERM, enables Xterm mouse tracking (default 'xterm')\n\
  298. X\n\
  299. Xfile\tRead this file instead of stdin\n\
  300. X\n\
  301. XExit 0 = something written to stdout; 1 = nothing written; 2 = fatal error.\n",
  302. X
  303. X/* 03 */    "dup() failed when twiddling stdin",
  304. X/* 04 */    "dup() failed when twiddling stdout",
  305. X/* 05 */    "ipick:error:fdopen(%d,'r') failed. errno=%d\n",
  306. X/* 06 */    "ipick:error:fdopen(%d,'w') failed. errno=%d\n",
  307. X/* 07 */    "Draining stdin...",
  308. X/* 08 */    "ipick:error:Minimum of %s invalid\n",
  309. X/* 09 */    "ipick:error:Maximum of %s invalid\n",
  310. X/* 10 */    "ipick:error:title count of %s invalid\n",
  311. X/* 11 */    "ipick:error: Minimum of %d is > maximum of %d\n",
  312. X/* 12 */    ".rc initialization failed",
  313. X/* 13 */    "ipick:error: Only one file name allowed.\n",
  314. X/* 14 */    "ipick:error:Cannot open %s. errno=%d\n",
  315. X/* 15 */    "Sorry, could not fork a process",
  316. X/* 16 */    "Decode of title (-t) string failed: %s\n",
  317. X/* 17 */    "version",
  318. X/* 18 */    "Patch level",
  319. X/* 19 */    "Config",
  320. X/* 20 */    "Flags",
  321. X/* 21 */    "Copyright (c) 1993, %s\nAll rights reserved.\n\n",
  322. X/* 22 */    "ipick may only be copied under the terms of either the Artistic License or\n",
  323. X/* 23 */    "the GNU General Public Licence, which may be found in the ipick source kit.\n",
  324. X/* 24 */    "\nThe author welcomes bug reports and suggestions.\n\n",
  325. X/* 25 */    "*FATAL ERROR*",
  326. X/* 26 */    "Language",
  327. X/* 27 */    "*none*"
  328. X};
  329. X
  330. X/********** PORT **********/
  331. X
  332. Xchar    *msg_port[] = {
  333. X/* 00 */    ""
  334. X};
  335. X
  336. X/********** RC **********/
  337. X
  338. Xchar    *msg_rc[] = {
  339. X/* 00 */    "\n\ripick:\tIn '%s' at line: %d.\r\n\t",
  340. X/* 01 */    "Unrecognized command: >>%s<<\n",
  341. X/* 02 */    "Insufficient parameters for %s. Minimum: %d\n",
  342. X/* 03 */    "Too many parameters for %s. Maximum: %d\n",
  343. X/* 04 */    "Parameter %d for %s is unexpectedly empty.\n",
  344. X/* 05 */    "%s failed. Reason: %s\n",
  345. X/* 06 */    "Trailing quote missing: %s\n",
  346. X/* 07 */    "Unexpected character after quote: %s\n",
  347. X/* 08 */    "Token too long: %s\n",
  348. X/* 09 */    "Previous error",
  349. X/* 10 */    "Open failed",
  350. X/* 11 */    "Tilde (~) expansion failed",
  351. X/* 12 */    "unknown function name",
  352. X/* 13 */    "invalid termcap capability",
  353. X/* 14 */    "invalid terminfo capability"
  354. X};
  355. X
  356. END_OF_FILE
  357.   if test 11115 -ne `wc -c <'ipick/language/english'`; then
  358.     echo shar: \"'ipick/language/english'\" unpacked with wrong size!
  359.   fi
  360.   # end of 'ipick/language/english'
  361. fi
  362. if test -f 'ipick/language/german' -a "${1}" != "-c" ; then 
  363.   echo shar: Will not clobber existing file \"'ipick/language/german'\"
  364. else
  365.   echo shar: Extracting \"'ipick/language/german'\" \(13869 characters\)
  366.   sed "s/^X//" >'ipick/language/german' <<'END_OF_FILE'
  367. X/* $Id: german,v 1.1 1993/02/27 21:58:14 markd Exp $
  368. X *
  369. X * Language dependent runtime messages used by ipick
  370. X *
  371. X *    Copyright (c) 1993, Mark Delany
  372. X *
  373. X *    You may distribute under the terms of either the GNU General Public
  374. X *    License or the Artistic License, as specified in the README file.
  375. X *
  376. X * $Log: german,v $
  377. X * Revision 1.1  1993/02/27  21:58:14  markd
  378. X * Initial revision
  379. X *
  380. X */
  381. X
  382. X#define    IN_LANGUAGE    /* Tells ipick.h not to extern */
  383. X
  384. X#include "ipick.h"
  385. X
  386. X/*
  387. X * All online messages for ipick are located in this file so that
  388. X * different nationalities can be relatively easily created.
  389. X *
  390. X * Each module has it's own external array of messages of the form
  391. X * msg_XXXX.
  392. X *
  393. X * This file translated into german by: Peter Funk <pf@artcom0.north.de>
  394. X * Version      :       Tue, 02-Feb-93 / 08:01 / (pf)
  395. X *
  396. X * Notes:
  397. X * ======
  398. X *
  399. X * 0.   I haven't used any 8Bit-"Umlaute", since there is no widely 
  400. X *      accepted standard.  (Also I'm aware of ISO 8859-1).
  401. X *      In particular most UNIX Systems are not yet 8-bit 
  402. X *      clean.  So for the sake of portability I've used the 
  403. X *      ASCII Replacements ("a --> ae, "o --> oe, ....) as standardized
  404. X *      in the "Duden / Rechtschreibung der deutschen Sprache,
  405. X *      Bibliographisches Institut Mannheim/Wien/Zuerich".  (pf)
  406. X *         
  407. X * 1.    Be VERY careful when changing messages that are part of a
  408. X *    printf pattern. Make sure that the number type and order of
  409. X *    parameters remain exactly the same.
  410. X *
  411. X * 2.    The strings ALL and VISIBLE can be changed to anything you
  412. X *    like as long as they are unique in the first character. Don't 
  413. X *    forget to change the help_text if you change these.
  414. X *
  415. X * 3.    At this stage, the single character commands such as 's' and 'c'
  416. X *    cannot be changed easily. Perhaps when there is a .ipickrc file
  417. X *    this will become easier.
  418. X */
  419. X
  420. X
  421. X/********** COMMAND **********/
  422. X
  423. Xchar    *msg_command[] = {
  424. X/* 00 */    "alle",
  425. X/* 01 */    "visible (sichtbar)", 
  426. X   /* 'sichtbar' would be fooled by 'select'-command starting also with 's'! */
  427. X/* 02 */    "",                /* UNUSED */
  428. X/* 03 */    "Kein vorheriges Kommando",
  429. X/* 04 */    "Alle Zeilen ausgewaehlt",
  430. X/* 05 */    "Keine Zeile ausgewaehlt",
  431. X/* 06 */    "Anfang des Bildschirm",
  432. X/* 07 */    "Ende des Bildschirm",
  433. X/* 08 */    "Anfang der Liste",
  434. X/* 09 */    "Ende der Liste",
  435. X/* 10 */    "Anfang der Zeile",
  436. X/* 11 */    "Ende der Zeile",
  437. X/* 12 */    "Ungueltige Zeilennummer",
  438. X/* 13 */    "Shell-Kommandos nicht erlaubt in dieser Betriebsart",
  439. X/* 14 */    "Filter-Kommandos nicht erlaubt in dieser Betriebsart",
  440. X/* 15 */    "\n\r[Irgendeine Datentaste druecken, um mit %s fortzufahren] ",
  441. X/* 16 */    "Abbruch nicht erlaubt",
  442. X/* 17 */    "Kommando ausgefuehrt",
  443. X/* 18 */    "Unbekanntes Kommando - `?' gibt Hilfstext.",
  444. X/* 19 */    "Bereich: Noch nicht genuegend ausgewaehlt",
  445. X/* 20 */    "Bereich: Zuviele ausgewaehlt",
  446. X/* 21 */    "Bereich: Die Ungelesenen koennten das Maximum ueberschreiten",
  447. X/* 22 */    "Zahl zu gross",
  448. X/* 23 */    "Falsches Zeichen in Bereichsauswahl",
  449. X/* 24 */    "Zeile nicht sichtbar auf dem Bildschirm",
  450. X/* 25 */    "Bislang wurde noch kein Suchbegriff eingegeben",
  451. X/* 26 */    "Nichts gefunden",
  452. X/* 27 */    "Weiter unten ist nichts mehr ausgewaehlt",
  453. X/* 28 */    "Weiter oben ist nichts mehr ausgewaehlt"
  454. X};
  455. X
  456. X/********** CURSES **********/
  457. X
  458. Xchar    *msg_curses[] = {
  459. X/* 00 */    "Die Umgebungsvariable TERM ist nicht gesetzt",
  460. X/* 01 */    "\nDie Initialisierung von `curses' schlug fehl mit : %s\n",
  461. X/* 02 */    "Hat dieses Terminal ueberhaupt einen Eintrag ?\n",
  462. X/* 03 */    "`curses' kann nicht initialisiert werden",
  463. X/* 04 */    "Nicht genug Platz fuer Titel+Daten nach Fenster-Konfiguration",
  464. X/* 05 */    "Nicht genug Platz fuer Titel+Daten. Pruefe den -T Wert",
  465. X/* 06 */    "Nicht genug Spalten fuer Titel+Daten nach Fenster-Konfiguration",
  466. X/* 07 */    "Nicht genug Spalten fuer Titel+Daten",
  467. X/* 08 */    "Mehr",
  468. X/* 09 */    "Ende",
  469. X/* 10 */    "Ausgewaehlt",
  470. X/* 11 */    "Ok:",        /* Include colon */
  471. X/* 12 */    "bis",        /* As in range of "1 to 4" */
  472. X/* 13 */    " auto ",    /* Auto exit mode -a. Include spaces */
  473. X/* 14 */    "Sp",        /* Col for column, Sp fuer Spalte */
  474. X/* 15 */    "%s:%d aus %d%s " /* aus versus of */
  475. X};
  476. X
  477. X/********** FILEIO **********/
  478. X
  479. Xchar    *msg_fileio[] = {
  480. X/* 00 */    "", /* OLD "Zu wenig Speicher (malloc of LN failed)", */
  481. X/* 01 */    "", /* OLD "Zu wenig Speicher (malloc of line failed)", */
  482. X/* 02 */    "", /* OLD "Zu wenig Speicher (malloc of unprintable line failed)", */
  483. X/* 03 */    "Ausgabe fehlgeschlagen (fwrite to stdout failed)",
  484. X/* 04 */    "Ausgabe fehlgeschlagen (fwrite to stdout of remaining buffer failed)",
  485. X/* 05 */    "Ausgabe fehlgeschlagen (fwrite to stdout failed)"
  486. X};
  487. X
  488. X/********** HELP **********/
  489. X
  490. Xchar    *msg_help[] = {
  491. X/* 00 */    "'Q' um die Hilfe zu verlassen. Sonst geht's weiter...",
  492. X/* 01 */    "Zurueck nach %s durch irgendeine Datentaste...",
  493. X/* 02 */    "*nicht belegt*"
  494. X};
  495. X
  496. X
  497. X/* There are no embedded tabs in the help_text list */
  498. X
  499. XHELP_TEXT    help_text[] = {
  500. X"                        Auswahl Kommandos", NO_COMMAND,
  501. X"                        -----------------", NO_COMMAND,
  502. X"", NO_COMMAND,
  503. X"Auswaehlen eines Zeilenbereiches    ", SELECT_RANGE,
  504. X"Bestimmte Zeilennummern auswaehlen  ", SELECT_NUMBER,
  505. X"Alle Zeilen auswaehlen              ", SELECT_ALL,
  506. X"Abwaehlen eines Zeilenbereiches     ", CLEAR_RANGE,
  507. X"Alle Zeilen abwaehlen               ", CLEAR_ALL,
  508. X"Momentane Zeile umschalten (toggle) ", TOGGLE_CURRENT,
  509. X"Umschalten eines Zeilenbereiches    ", TOGGLE_RANGE,
  510. X"Alle ungelesenen Zeilen umschalten  ", TOGGLE_UNREAD,
  511. X"", NO_COMMAND,
  512. X"Als Zeilennummern kommen Nummern oder Bereiche in Frage,", NO_COMMAND,
  513. X"die gerade angezeigt werden.  z.B.:  1 14-9 3", NO_COMMAND,
  514. X"Ein Zeilenbereich kann folgendes sein:", NO_COMMAND,
  515. X"", NO_COMMAND,
  516. X"  o     Zeilennummern", NO_COMMAND,
  517. X"  o     Das Wort 'visible' oder 'v' fuer alle sichtbaren Zeilen", NO_COMMAND,
  518. X"  o     Das Wort 'alle' oder 'a' fuer alle Zeilen", NO_COMMAND,
  519. XPAGE_END, NO_COMMAND,
  520. X"                        Positionierung", NO_COMMAND,
  521. X"                        --------------", NO_COMMAND,
  522. X"Anfang der Liste        ", BEGINNING_OF_FILE,
  523. X"Ende der Liste          ", END_OF_FILE,
  524. X"oberer Schirmrand       ", TOP_OF_SCREEN,
  525. X"unterer Schirmrand      ", BOTTOM_OF_SCREEN,
  526. X"Naechste Zeile          ", NEXT_LINE,
  527. X"Vorige Zeile            ", PREVIOUS_LINE,
  528. X"gehe zu Zeile           ", GOTO_LINE,
  529. XLUMP_END, NO_COMMAND,
  530. X"                        Vertikales Verschieben", NO_COMMAND,
  531. X"                        ----------------------", NO_COMMAND,
  532. X"Halben Schirm aufwaerts ", SCROLL_UP_HALF,
  533. X"Halben Schirm abwaerts  ", SCROLL_DOWN_HALF,
  534. X"Zurueck blaettern       ", SCROLL_UP_FULL,
  535. X"Weiter blaettern        ", SCROLL_DOWN_FULL,
  536. XLUMP_END, NO_COMMAND,
  537. X"                        Horizontales Verschieben", NO_COMMAND,
  538. X"                        ------------------------", NO_COMMAND,
  539. X"1 nach rechts           ", SCROLL_RIGHT_CHAR,
  540. X"1 nach links            ", SCROLL_LEFT_CHAR,
  541. X"8 nach links            ", SCROLL_TAB,
  542. X"8 nach rechts           ", SCROLL_BACKTAB,
  543. X"zum linken Rand         ", BEGINNING_OF_LINE,
  544. X"zum Zeilenende          ", END_OF_LINE,
  545. X"halben Bildschirm nach links  ", SCROLL_LEFT_SCREEN,
  546. X"halben Bildschirm nach rechts ", SCROLL_RIGHT_SCREEN,
  547. XPAGE_END, NO_COMMAND,
  548. X"                        Zeichenketten suchen", NO_COMMAND,
  549. X"                        --------------------", NO_COMMAND,
  550. X"Vorwaerts suchen        ", SEARCH_FORWARD,
  551. X"Rueckwaerts suchen      ", SEARCH_BACKWARD,
  552. X"Wiederhole letzte Suche ", RE_SEARCH_FORWARD,
  553. X"Wiederhole rueckwaerts  ", RE_SEARCH_BACKWARD,
  554. X"Naechste ausgewaehlte   ", NEXT_SELECTED,
  555. X"Zuletzt ausgewaehlte    ", PREVIOUS_SELECTED,
  556. XLUMP_END, NO_COMMAND,
  557. X"                        Andere Kommandos", NO_COMMAND,
  558. X"                        ----------------", NO_COMMAND,
  559. X"", NO_COMMAND,
  560. X"Ende                ", QUIT,
  561. X"Abbruch                    ", ABORT,
  562. X"Bildschirm neu            ", REFRESH,
  563. X"Wiederhole Kommando        ", REDO_COMMAND,
  564. X"Info                       ", HELP,
  565. X"Systemkommandos (Shell)    ", SHELL,
  566. X"aktuelle Zeile an Pipeline ", PIPE,
  567. XLUMP_END, NO_COMMAND,
  568. X"                        Bemerkungen", NO_COMMAND,
  569. X"                        -----------", NO_COMMAND,
  570. X"", NO_COMMAND,
  571. X"1.  Die Verschiebungskommandos wirken auf den Cursor und", NO_COMMAND,
  572. X"    *NICHT* auf die angezeigten Daten. (z.B. beim Verschieben", NO_COMMAND,
  573. X"    des Cursors nach rechts oder links)", NO_COMMAND,
  574. XLUMP_END, NO_COMMAND,
  575. X"2.  Die Tastenbelegungen aller Kommandos lassen sich durch", NO_COMMAND,
  576. X"    eine Datei namens `.ipickrc' nach Belieben umdefinieren.", NO_COMMAND,
  577. XLUMP_END, NO_COMMAND,
  578. X"                        Xterm Maus Unterstuetzung", NO_COMMAND,
  579. X"                        -------------------------", NO_COMMAND,
  580. X"In einem Xterm Fenster ist eine Auswahl per Maus moeglich.", NO_COMMAND,
  581. X"", NO_COMMAND,
  582. X"Beim Druecken eines Mausknopfes passiert folgendes:", NO_COMMAND,
  583. X"", NO_COMMAND,
  584. X"Knopf         1        Start eines Auswaehlbereiches", NO_COMMAND,
  585. X"Knopf         2        Start eines Auswaehlumschalt-Bereiches", NO_COMMAND,
  586. X"Knopf         3        Start eines Abwaehlbereiches", NO_COMMAND,
  587. X"", NO_COMMAND,
  588. X"Der Bereich endet in der Zeile, auf der der Mausknopf losgelassen wird.", NO_COMMAND,
  589. XLUMP_END, NO_COMMAND,
  590. X"Waehrend der Bewegung der Maus mit gedruecktem Knopf gibt es", NO_COMMAND,
  591. X"allerdings keine Rueckkopplung auf dem Bildschirm.", NO_COMMAND,
  592. X"", NO_COMMAND,
  593. X"Gleichzeitiges Druecken mehrerer Maustasten ist sinnlos, da nur der zuerst", NO_COMMAND,
  594. X"gedrueckte Knopf beruecksichtigt wird.  Entsprechend werden auch die", NO_COMMAND,
  595. X"Tasten <Strg>, <Umschaltung> und <Alt> nicht beruecksichtigt.", NO_COMMAND,
  596. XNULL};
  597. X
  598. X/********** KEYBOARD **********/
  599. X
  600. Xchar    *msg_keyboard[] = {
  601. X/* 00 */    "Waehle: v=visible (sichtbare), a=alle, Nummer oder Bereich",
  602. X/* 01 */    "Waehle: Nummer oder Bereich",
  603. X/* 02 */        "Deselektion: v=visible (sichtbare), a=alle, Nummer oder Bereich",
  604. X/* 03 */    "Umschalt: v=visible (sichtbare), a=alle, Nummer oder Bereich",
  605. X/* 04 */    "Vorwaerts suchen",
  606. X/* 05 */    "Rueckwaerts suchen",
  607. X/* 06 */    "Gehe zu Zeile",
  608. X/* 07 */    "Shell Kommando",
  609. X/* 08 */    "Diese Zeile in Kommando-`Pipeline' schicken"
  610. X/* OLD
  611. X    "ipick: Nicht genug Speicher (malloc failed for keybinding)"
  612. X*/
  613. X};
  614. X
  615. X/********** MISC **********/
  616. X
  617. Xchar    *msg_misc[] = {
  618. X/* 00 */    "Kann Pipeline nicht oeffnen",
  619. X/* 01 */    "Nicht genug Speicher (malloc() fehlgeschlagen)",
  620. X/* 02 */    "realloc() fehlgeschlagen",
  621. X/* 03 */    "strdup() fehlgeschlagen",
  622. X/* 04 */    "Unvollstaendige Kontrollsequenz (^)",
  623. X/* 05 */    "Unvollstaendige \\ Sequenz",
  624. X/* 06 */    "Unvollstaendige oktal Sequenz"
  625. X};
  626. X
  627. X/********** MAIN **********/
  628. X
  629. Xchar    *msg_main[] = {
  630. X/* 00 */    "Aufruf:\t\
  631. Xipick\t[-abdhrRvV] [-m Anzahl] [-M Anzahl] [-t Titel]\n\
  632. X\t\t[-T Zeilen] [-X xterm-substring] [Eingabedatei]\n",
  633. X
  634. X/* 01 */    "\t\t\t\t(-h beschreibt die Kommandozeilenparameter)\n",
  635. X/* 02 */    "\n\
  636. XInteraktives Pick: Ein auf `curses' basierender Filter mit ONLINE-Hilfe.\n\
  637. X-a\tAutom. Ende sobald mindestens -m bis -M Zeilen ausgewaehlt sind\n\
  638. X-b\tGeraeuschvolle Fehlermeldungen (Piepton)\n\
  639. X-d\t`stdin' \"entwaessern\" am Ende um moegliche SIGPIPE's zu vermeiden\n\
  640. X-h\tAnzeige dieses Hilfstextes\n\
  641. X-v\tnegatiV: alle NICHT ausgewaehlten Zeilen werden ausgegeben\n\
  642. X-V\tVersion, Uebersetzungsoptionen und Urheberrechts-Notiz anzeigen\n\
  643. X-r\tEingeschraenkte Betriebsart - kein Shell-Ausgang moeglich\n\
  644. X-R\tRaw-Mode (eine bestimmte Tastatur-Betriebsart) unterbinden\n\
  645. X\n\
  646. X-m\tMinimal auszuwaehlende Anzahl von Zeilen (siehe auch -a)\n\
  647. X-M\tMaximale Anzahl auszuwaehlender Zeilen\n\
  648. X-t\tTitel Zeile(n)\n\
  649. X-T\tAnzahl der Titel-Zeilen im Eingabestrom (werden unter den mit\n\
  650. X\tder Option -t angegebenen angezeigt)\n\
  651. X-X\tWenn in $TERM, Xterm Maus-Bedienung aktivieren (voreinstellung 'xterm')\n\
  652. Xdatei\tDiese Datei anstelle von `stdin' verabeiten\n\
  653. X\n\
  654. XStatuswerte: 0 = Irgendwas ausgewaehlt. 1 = Nichts. 2 = Fataler Fehler.\n",
  655. X
  656. X/* 03 */    "dup() fehlgeschlagen mit stdin",
  657. X/* 04 */    "dup() fehlgeschlagen mit stdout",
  658. X/* 05 */    "ipick:Fehler:fdopen(%d,'r') fehlgeschlagen. UNIX-Fehler=%d\n",
  659. X/* 06 */    "ipick:Fehler:fdopen(%d,'w') fehlgeschlagen. UNIX-Fehler=%d\n",
  660. X/* 07 */    "Restliche Daten aus dem Eingabestrom weglesen...",
  661. X/* 08 */    "ipick:Fehler:Minimum %s unzulaessig\n",
  662. X/* 09 */    "ipick:Fehler:Maximum %s unzulaessig\n",
  663. X/* 10 */    "ipick:Fehler:Titel Anzahl %s unzulaessig\n",
  664. X/* 11 */    "ipick:Fehler: Minimum %d ist > als maximum %d\n",
  665. X/* 12 */    "Wenn -a benutzt werden soll, wird ein Minimum gebraucht\n",
  666. X/* 13 */    "ipick:Fehler: Nur eine Eingabedatei erlaubt.\n",
  667. X/* 14 */    "ipick:Fehler: Beim Oeffnen von %s. UNIX-Fehler=%d\n",
  668. X/* 15 */    "Tut mir leid, kann keinen Prozess mehr abzweigen (fork)",
  669. X/* 16 */    "Dekodierung der (-t) Titelzeile fehlgeschlagen: %s\n",
  670. X/* 17 */    "Version",
  671. X/* 18 */    "`Patch' version",
  672. X/* 19 */    "Konfiguration",
  673. X/* 20 */    "Optionen",
  674. X/* 21 */    "Copyright (c) 1993, %s\nAlle Rechte reserviert.\n\n",
  675. X/* 22 */     "`ipick' darf nur unter den in der Datei COPYING im Quelltext-Paket\n",
  676. X/* 23 */     "genannten Bedingungen kopiert und benutzt werden.\nDer Autor begruesst ",
  677. X/* 24 */        "Fehlerberichte und Verbesserungsvorschlaege.\n(in Englisch)\n",
  678. X/* 25 */    "*FATALER FEHLER*",
  679. X/* 26 */    "Sprache",
  680. X/* 27 */    "*nichts*"
  681. X};
  682. X
  683. X/********** PORT **********/
  684. X
  685. Xchar    *msg_port[] = {
  686. X/* 00 */    ""
  687. X};
  688. X
  689. X/********** RC **********/
  690. X
  691. Xchar    *msg_rc[] = {
  692. X/* 00 */    "\n\ripick:\tIn '%s' in Zeile: %d.\r\n\t",
  693. X/* 01 */    "Unbekanntes Kommando: >>%s<<\n",
  694. X/* 02 */    "Nicht genuegend Parameter fuer %s. Mindestens: %d\n", 
  695. X/* 03 */    "Zuviele Parameters fuer %s. Hoechstens: %d\n",    
  696. X/* 04 */    "Der Parameter %d bei %s ist leer ! Da muss aber was rein.\n",
  697. X/* 05 */    "%s fehlgeschlagen. Grund: %s\n",
  698. X/* 06 */    "Schliessendes Anfuehrungszeichen fehlt: %s\n",    
  699. X/* 07 */    "Unerwartetes Zeichen nach Anfuehrungszeichen: %s\n",
  700. X/* 08 */    "Symbol zu lang: %s\n",    
  701. X/* 09 */    "Voriger Fehler",
  702. X/* 10 */    "Oeffnen fehlgeschlagen",    
  703. X/* 11 */    "Tilde (~) Ersetzung fehlgeschlagen",
  704. X/* 12 */    "Unbekannter Funktionsname",
  705. X/* 13 */    "Ungueltige termcap Eigenschaft (capability)",
  706. X/* 14 */    "Ungueltige terminfo Eigenschaft (capability)"
  707. X};
  708. END_OF_FILE
  709.   if test 13869 -ne `wc -c <'ipick/language/german'`; then
  710.     echo shar: \"'ipick/language/german'\" unpacked with wrong size!
  711.   fi
  712.   # end of 'ipick/language/german'
  713. fi
  714. echo shar: End of archive 5 \(of 5\).
  715. cp /dev/null ark5isdone
  716. MISSING=""
  717. for I in 1 2 3 4 5 ; do
  718.     if test ! -f ark${I}isdone ; then
  719.     MISSING="${MISSING} ${I}"
  720.     fi
  721. done
  722. if test "${MISSING}" = "" ; then
  723.     echo You have unpacked all 5 archives.
  724.     echo "Check Makefile then run 'make'"
  725.     rm -f ark[1-9]isdone
  726. else
  727.     echo You still must unpack the following archives:
  728.     echo "        " ${MISSING}
  729. fi
  730. exit 0
  731.  
  732. exit 0 # Just in case...
  733.