Changeset 34 for trunk/gsdl/packages/mg-1.3d/src/text/mg_hilite_words.c
- Timestamp:
- 1998-11-25T20:55:52+13:00 (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/packages/mg-1.3d/src/text/mg_hilite_words.c
r29 r34 104 104 static short hilite_style = BOLD; 105 105 static char *pager = "less"; 106 static int stemmer_num = 0; /* Lovin's stemmer */ 106 107 static int stem_method = 3; /* fold & stem */ 107 108 static char **word_list; … … 458 459 PARSE_STEM_WORD (word, s_in, end); 459 460 460 stemmer (stem_method, word);461 stemmer (stem_method, stemmer_num, word); 461 462 462 463 if (set_member (word)) /* output with highlighting */ … … 567 568 {"pager", required_argument, 0, 'p'}, 568 569 {"stem_method", required_argument, 0, 'm'}, 570 {"stemmer", required_argument, 0, 'a'}, 569 571 {0, 0, 0, 0} 570 572 }; … … 577 579 578 580 opterr = 0; 579 while ((ch = getopt_long (argc, argv, "s:p:t:m: ", long_opts, (int *) 0)) != -1)581 while ((ch = getopt_long (argc, argv, "s:p:t:m:a:", long_opts, (int *) 0)) != -1) 580 582 { 581 583 switch (ch) … … 591 593 hilite_style = i; 592 594 } 595 break; 596 case 'a': 597 stemmer_num = stemmernumber (optarg); 593 598 break; 594 599 case 't': … … 604 609 FatalError (1, "Usage: \n" 605 610 "mg_hilite_words --stem_method [0-3]\n" 611 " --stemmer [english|lovin|french|simplefrench]\n" 606 612 " --style [bold|underline|italic|emphasis|strong]\n" 607 613 " --pager [less|more|html|???]\n");
Note:
See TracChangeset
for help on using the changeset viewer.