[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)



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)) {

-- 
鵜飼文敏