[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:09150] man-db Japanese quick hack (Re: Re: Priorities of JP Packages)
- From: Fumitoshi UKAI <ukai@debian.or.jp>
- Subject: [debian-devel:09150] man-db Japanese quick hack (Re: Re: Priorities of JP Packages)
- Date: Sat, 22 May 1999 05:44:00 +0900
- Organization: Debian JP Project
- X-ml-info: If you have a question, send a mail with the body "# help" (without quotes) to the address debian-devel-ctl@debian.or.jp; help=<mailto:debian-devel-ctl@debian.or.jp?body=help>
- X-ml-name: debian-devel
- X-mlserver: fml [fml 2.2]; post only (only members can post)
- Message-id: <14149.50552.166008.30989M@xxxxxxxxxxxxxxxxxxxxx>
- X-mail-count: 09150
- User-agent: Wanderlust/0.10.2 (I'm Your Man) SEMI/1.13.4 (Terai) FLIM/1.12.6 (Family-Kòenmae) Emacs/20.3 (i386-debian-linux-gnu) MULE/4.0 (HANANOEN)
At Sat, 22 May 1999 03:55:42 +0900,
Takuro KITAME <kitame@debian.or.jp> wrote:
> ちょっと意思アリ:
> man-db-ja
ですが、debian-japanese@lists.debian.org や debian-i18n@lists.debian.org
にも流した通り man-db に bug として報告しました。Bug#38107
で、jgroff や jless に依存というのは
manpages-ja や xmanpages-ja の方で depends (or recommends)
すればよいかと思います。よろしく
あと ja.po や manの日本語もつっこんだ方がよいと思いますが…
diff -Nru man-db-2.3.10/include/manconfig.h.in man-db-2.3.10.ja/include/manconfig.h.in
--- man-db-2.3.10/include/manconfig.h.in Sat May 22 04:21:17 1999
+++ man-db-2.3.10.ja/include/manconfig.h.in Sat May 22 04:02:56 1999
@@ -127,6 +127,8 @@
#ifndef NROFF_MISSING
# ifndef NROFF
# define NROFF "@nroff@"
+/* Japanese hack: 1999/05/22: ukai@debian.or.jp */
+# define NROFF_JA "@nroff@ -Tnippon "
# endif
#endif
diff -Nru man-db-2.3.10/src/man.c man-db-2.3.10.ja/src/man.c
--- man-db-2.3.10/src/man.c Sat May 22 04:21:18 1999
+++ man-db-2.3.10.ja/src/man.c Sat May 22 04:20:24 1999
@@ -376,6 +376,9 @@
static int ascii; /* insert tr in the output pipe */
static int save_cat; /* security breach? Can we save the cat? */
+/* Japanese hack: 1999/05/22 ukai@debian.or.jp */
+static int japanese; /* japanese page? */
+
static int found_a_stray; /* found a straycat */
#ifdef MAN_CATS
@@ -1352,7 +1355,12 @@
#ifdef NROFF_MISSING
assert (0);
#else
+/* Japanese hack: 1999/05/22: ukai@debian.or.jp */
+ if (japanese) {
+ filter = NROFF_JA;
+ } else
filter = NROFF;
+
#endif
}
@@ -2240,8 +2248,10 @@
free(catpath);
} else
database = mkdbname(manpath);
-
+/* Japanese hack: 1999/05/22: ukai@debian.or.jp */
+ japanese = (strstr(manpath, "/ja") != NULL);
in_cache = lookup(manpath); /* have we looked here already? */
+
if ( !in_cache ) {
if ( (dbf = MYDBM_RDOPEN(database)) && !dbver_rd(dbf)) {
--
鵜飼文敏