{"id":4218,"date":"2022-12-20T17:39:45","date_gmt":"2022-12-20T20:39:45","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lexgrog-ja\/"},"modified":"2022-12-20T17:39:45","modified_gmt":"2022-12-20T20:39:45","slug":"lexgrog-ja","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lexgrog-ja\/","title":{"rendered":"LEXGROG (ja)"},"content":{"rendered":"<h1 align=\"center\">LEXGROG<\/h1>\n<p> <a href=\"#\u00e5\u00e5\">\u00e5\u00e5<\/a><br \/> <a href=\"#\u00e6\u00b8\u00e5\u00bc\">\u00e6\u00b8\u00e5\u00bc<\/a><br \/> <a href=\"#\u00e8\u00aa\u00ac\u00e6\">\u00e8\u00aa\u00ac\u00e6<\/a><br \/> <a href=\"#\u00e3\u00aa\u00e3\u00e3\u00b7\u00e3\u00a7\u00e3\u00b3\">\u00e3\u00aa\u00e3\u00e3\u00b7\u00e3\u00a7\u00e3\u00b3<\/a><br \/> <a href=\"#\u00e7\u00b5\u00e4\u00ba\u00e3\u00b9\u00e3\u00e3\u00bc\u00e3\u00bf\u00e3\u00b9\">\u00e7\u00b5\u00e4\u00ba\u00e3\u00b9\u00e3\u00e3\u00bc\u00e3\u00bf\u00e3\u00b9<\/a><br \/> <a href=\"#\u00e4\u00be\">\u00e4\u00be<\/a><br \/> <a href=\"#\u00e5\u00a6\u00e7\u00e3\u00e3\u00e3\u00e3\u00e3\u00bc\u00e3\u00bf\">\u00e5\u00a6\u00e7\u00e3\u00e3\u00e3\u00e3\u00e3\u00bc\u00e3\u00bf<\/a><br \/> <a href=\"#\u00e9\u00a2\u00e9\u00a3\u00e9\u00a0\u00e7\u00ae\">\u00e9\u00a2\u00e9\u00a3\u00e9\u00a0\u00e7\u00ae<\/a><br \/> <a href=\"#\u00e5\u00e8\">\u00e5\u00e8<\/a><br \/> <a href=\"#\u00e8\u00e8\">\u00e8\u00e8<\/a><br \/> <a href=\"#\u00e3\u00e3\u00b0\">\u00e3\u00e3\u00b0<\/a> <\/p>\n<hr>\n<h2>\u00e5\u00e5 <a name=\"\u00e5\u00e5\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lexgrog \u2212 \u00e3\u00e3\u00e3\u00a5\u00e3\u00a2\u00e3\u00ab\u00e3\u00e3\u00bc\u00e3\u00b8\u00e3\u00ae\u00e3\u00e3\u00e3\u00e3\u00bc\u00e6\u00e5\u00a0\u00b1\u00e3\u00e8\u00a7\u00a3\u00e9\u00e3\u00e3<\/p>\n<h2>\u00e6\u00b8\u00e5\u00bc <a name=\"\u00e6\u00b8\u00e5\u00bc\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lexgrog<\/b> [<b>\u2212m<\/b>|<b>\u2212c<\/b>] [<b>\u2212dfw?V<\/b>] [<b>\u2212E<\/b> <i>encoding<\/i>] <i>file<\/i> &#8230;<\/p>\n<h2>\u00e8\u00aa\u00ac\u00e6 <a name=\"\u00e8\u00aa\u00ac\u00e6\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lexgrog<\/b> is an implementation of the traditional \u201cgroff guess\u201d utility in <b>lex<\/b>. It reads the list of files on its command line as either man page source files or preformatted \u201ccat\u201d pages, and displays their name and description as used by <b>apropos<\/b> and <b>whatis<\/b>, the list of preprocessing filters required by the man page before it is passed to <b>nroff<\/b> or <b>troff<\/b>, or both.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If its input is badly formatted, <b>lexgrog<\/b> will print \u201cparse failed\u201d; this may be useful for external programs that need to check man pages for correctness. If one of <b>lexgrog<\/b>\u2019s input files is \u201c\u2212\u201d, it will read from standard input; if any input file is compressed, a decompressed version will be read automatically.<\/p>\n<h2>\u00e3\u00aa\u00e3\u00e3\u00b7\u00e3\u00a7\u00e3\u00b3 <a name=\"\u00e3\u00aa\u00e3\u00e3\u00b7\u00e3\u00a7\u00e3\u00b3\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212d<\/b>, <b>\u2212\u2212debug<\/b><\/p>\n<p style=\"margin-left:22%;\">\u00e3\u00e3\u00e3\u00e3\u00b0\u00e6\u00e5\u00a0\u00b1\u00e3\u00e8\u00a1\u00a8\u00e7\u00a4\u00ba\u00e3\u00e3\u00be\u00e3\u00e3<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212m<\/b>, <b>\u2212\u2212man<\/b><\/p>\n<p style=\"margin-left:22%;\">Parse input as man page source files. This is the default if neither <b>\u2212\u2212man<\/b> nor <b>\u2212\u2212cat<\/b> is given.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212c<\/b>, <b>\u2212\u2212cat<\/b><\/p>\n<p style=\"margin-left:22%;\">Parse input as preformatted man pages (\u201ccat pages\u201d). <b>\u2212\u2212man<\/b> and <b>\u2212\u2212cat<\/b> may not be given simultaneously.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212w<\/b>, <b>\u2212\u2212whatis<\/b><\/p>\n<p style=\"margin-left:22%;\">Display the name and description from the man page\u2019s header, as used by <b>apropos<\/b> and <b>whatis<\/b>. This is the default if neither <b>\u2212\u2212whatis<\/b> nor <b>\u2212\u2212filters<\/b> is given.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212f<\/b>, <b>\u2212\u2212filters<\/b><\/p>\n<p style=\"margin-left:22%;\">Display the list of filters needed to preprocess the man page before formatting with <b>nroff<\/b> or <b>troff<\/b>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212E<\/b> <i>encoding<\/i>, <b>\u2212\u2212encoding<\/b> <i>encoding<\/i><\/p>\n<p style=\"margin-left:22%;\">Override the guessed character set for the page to <i>encoding<\/i>.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212?<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">\u00e3\u00e3\u00ab\u00e3\u00e3\u00a1\u00e3\u00e3\u00bb\u00e3\u00bc\u00e3\u00b8\u00e3\u00e8\u00a1\u00a8\u00e7\u00a4\u00ba\u00e3\u00e3\u00a6\u00e7\u00b5\u00e4\u00ba\u00e3\u00e3\u00be\u00e3\u00e3<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212usage<\/b><\/p>\n<p style=\"margin-left:22%;\">Print a short usage message and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">\u00e3\u00e3\u00bc\u00e3\u00b8\u00e3\u00a7\u00e3\u00b3\u00e6\u00e5\u00a0\u00b1\u00e3\u00e8\u00a1\u00a8\u00e7\u00a4\u00ba\u00e3\u00e3\u00be\u00e3\u00e3<\/p>\n<h2>\u00e7\u00b5\u00e4\u00ba\u00e3\u00b9\u00e3\u00e3\u00bc\u00e3\u00bf\u00e3\u00b9 <a name=\"\u00e7\u00b5\u00e4\u00ba\u00e3\u00b9\u00e3\u00e3\u00bc\u00e3\u00bf\u00e3\u00b9\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\"><b>0<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">\u00e3\u00e3\u00e3\u00b0\u00e3\u00a9\u00e3\u00a0\u00e3\u00e6\u00a3\u00e5\u00b8\u00b8\u00e3\u00ab\u00e5\u00ae\u00e8\u00a1\u00e3\u00e3\u00e3\u00be\u00e3\u00e3\u00e3<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>1<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p>Usage error.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p><b>2<\/b><\/p>\n<\/td>\n<td width=\"10%\"><\/td>\n<td width=\"78%\">\n<p><b>lexgrog<\/b> failed to parse one or more of its input files.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>\u00e4\u00be <a name=\"\u00e4\u00be\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">$ lexgrog man.1 <br \/> man.1: &#8220;man \u2212 an interface to the system reference manuals&#8221; <br \/> $ lexgrog \u2212fw man.1 <br \/> man.1 (t): &#8220;man \u2212 an interface to the system reference manuals&#8221; <br \/> $ lexgrog \u2212c whatis.cat1 <br \/> whatis.cat1: &#8220;whatis \u2212 display manual page descriptions&#8221; <br \/> $ lexgrog broken.1 <br \/> broken.1: parse failed<\/p>\n<h2>\u00e5\u00a6\u00e7\u00e3\u00e3\u00e3\u00e3\u00e3\u00bc\u00e3\u00bf <a name=\"\u00e5\u00a6\u00e7\u00e3\u00e3\u00e3\u00e3\u00e3\u00bc\u00e3\u00bf\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mandb<\/b> (which uses the same code as <b>lexgrog<\/b>) parses the <b>NAME<\/b> section at the top of each manual page looking for names and descriptions of the features documented in each. While the parser is quite tolerant, as it has to cope with a number of different forms that have historically been used, it may sometimes fail to extract the required information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When using the traditional <i>man<\/i> macro set, a correct <b>NAME<\/b> section looks something like this:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.SH NAME <br \/> foo \u2212 program to do something<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Some manual pagers require the \u2018\u2212\u2019 to be exactly as shown; <b>mandb<\/b> is more tolerant, but for compatibility with other systems it is nevertheless a good idea to retain the backslash.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">On the left\u2212hand side, there may be several names, separated by commas. Names containing whitespace will be ignored to avoid pathological behaviour on certain ill\u2212formed <b>NAME<\/b> sections. The text on the right\u2212hand side is free\u2212form, and may be spread over multiple lines. If several features with different descriptions are being documented in the same manual page, the following form is therefore used:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.SH NAME <br \/> foo, bar \u2212 programs to do something <br \/> .br <br \/> baz \u2212 program to do nothing<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">(A macro which starts a new paragraph, like .PP, may be used instead of the break macro .br.)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When using the BSD\u2212derived <i>mdoc<\/i> macro set, a correct <b>NAME<\/b> section looks something like this:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">.Sh NAME <br \/> .Nm foo <br \/> .Nd program to do something<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">There are several common reasons why whatis parsing fails. Sometimes authors of manual pages replace \u2018.SH NAME\u2019 with \u2018.SH MYPROGRAM\u2019, and then <b>mandb<\/b> cannot find the section from which to extract the information it needs. Sometimes authors include a NAME section, but place free\u2212form text there rather than \u2018name \u2212 description\u2019. However, any syntax resembling the above should be accepted.<\/p>\n<h2>\u00e9\u00a2\u00e9\u00a3\u00e9\u00a0\u00e7\u00ae <a name=\"\u00e9\u00a2\u00e9\u00a3\u00e9\u00a0\u00e7\u00ae\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>apropos<\/i>(1), <i>man<\/i>(1), <i>whatis<\/i>(1), <i>mandb<\/i>(8)<\/p>\n<h2>\u00e5\u00e8 <a name=\"\u00e5\u00e8\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>lexgrog<\/b> attempts to parse files containing .so requests, but will only be able to do so correctly if the files are properly installed in a manual page hierarchy.<\/p>\n<h2>\u00e8\u00e8 <a name=\"\u00e8\u00e8\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The code used by <b>lexgrog<\/b> to scan man pages was written by:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Wilf. (G.Wilford@ee.surrey.ac.uk). <br \/> Fabrizio Polacco (fpolacco@debian.org). <br \/> Colin Watson (cjwatson@debian.org).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Colin Watson wrote the current incarnation of the command\u2212line front\u2212end, as well as this man page.<\/p>\n<h2>\u00e3\u00e3\u00b0 <a name=\"\u00e3\u00e3\u00b0\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">https:\/\/savannah.nongnu.org\/bugs\/?group=man-db<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>LEXGROG \u00e5\u00e5 \u00e6\u00b8\u00e5\u00bc \u00e8\u00aa\u00ac\u00e6 \u00e3\u00aa\u00e3\u00e3\u00b7\u00e3\u00a7\u00e3\u00b3 \u00e7\u00b5\u00e4\u00ba\u00e3\u00b9\u00e3\u00e3\u00bc\u00e3\u00bf\u00e3\u00b9 \u00e4\u00be \u00e5\u00a6\u00e7\u00e3\u00e3\u00e3\u00e3\u00e3\u00bc\u00e3\u00bf \u00e9\u00a2\u00e9\u00a3\u00e9\u00a0\u00e7\u00ae \u00e5\u00e8 \u00e8\u00e8 \u00e3\u00e3\u00b0 \u00e5\u00e5 lexgrog \u2212 \u00e3\u00e3\u00e3\u00a5\u00e3\u00a2\u00e3\u00ab\u00e3\u00e3\u00bc\u00e3\u00b8\u00e3\u00ae\u00e3\u00e3\u00e3\u00e3\u00bc\u00e6\u00e5\u00a0\u00b1\u00e3\u00e8\u00a7\u00a3\u00e9\u00e3\u00e3 \u00e6\u00b8\u00e5\u00bc lexgrog [\u2212m|\u2212c] [\u2212dfw?V] [\u2212E encoding] file &#8230; \u00e8\u00aa\u00ac\u00e6 lexgrog is an implementation of the traditional \u201cgroff guess\u201d utility in lex. It reads the list of files on its command line as either man page source files or preformatted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[962],"tags":[964,1268,968],"class_list":["post-4218","post","type-post","status-publish","format-standard","hentry","category-1-comandos-generales","tag-964","tag-ja","tag-lexgrog"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4218"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4218\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}