diff --git a/.gitignore b/.gitignore index e69de29..cc13010 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,8 @@ +*bz2 +*gz +*rpm +nkf204.tar.gz +nkf205.tar.gz +nkf206a.tar.gz +nkf207.tar.gz +nkf-2.0.8b.tar.gz diff --git a/nkf-fix-man.patch b/nkf-fix-man.patch new file mode 100644 index 0000000..f6b43e3 --- /dev/null +++ b/nkf-fix-man.patch @@ -0,0 +1,92 @@ +diff -pruN nkf-2.1.4.orig/NKF.mod/NKF.pm nkf-2.1.4/NKF.mod/NKF.pm +--- nkf-2.1.4.orig/NKF.mod/NKF.pm 2015-12-12 22:51:41.000000000 +0900 ++++ nkf-2.1.4/NKF.mod/NKF.pm 2018-01-29 19:23:15.836460319 +0900 +@@ -53,38 +53,30 @@ __END__ + + =head1 NAME + +-=begin ++=begin man + + NKF - Perl extension for Network Kanji Filter + +-=begin COMMAND +- +-nkf - Network Kanji Filter +- +-=end ++=end man + + =head1 SYNOPSIS + +-=begin ++=begin man + + use NKF; + $output = nkf("-s",$input); + +-=begin COMMAND +- +-nkf B<[-butjnesliohrTVvwWJESZxXFfmMBOcdILg]> B<[>IB<]> +- +-=end ++=end man + + =head1 DESCRIPTION + +-=begin ++=begin man + + This is a Perl Extension version of nkf (Network Kanji Filter). + It converts the last argument and return converted result. Conversion + details are specified by flags before the last argument. + +-=end ++=end man + + B is a yet another kanji code converter among networks, hosts and terminals. + It converts input kanji code to designated kanji code +@@ -473,28 +465,6 @@ Unescape percent escaped characters. + + Decode character reference, such as "&#....;". + +-=begin COMMAND +- +-=item B<--in-place[=>IB<]> B<--overwrite[=>IB<]> +- +-Overwrite B listed files by filtered result. +- +-B --overwrite preserves timestamps of original files. +- +-=item B<--guess=[12]> +- +-Print guessed encoding and newline. (2 is default, 1 is only encoding) +- +-=item B<--help> +- +-Print nkf's help. +- +-=item B<--version> +- +-Print nkf's version. +- +-=end +- + =item B<--> + + Ignore rest of -option. +@@ -507,12 +477,12 @@ Copyright (c) 1987, Fujitsu LTD. (Itaru + + Copyright (c) 1996-2015, The nkf Project. + +-=begin ++=begin man + + =head1 SEE ALSO + + perl(1). nkf(1) + +-=end ++=end man + + =cut diff --git a/nkf.1j b/nkf.1j new file mode 100644 index 0000000..547c588 --- /dev/null +++ b/nkf.1j @@ -0,0 +1,682 @@ +.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) +.\" +.\" Standard preamble: +.\" ======================================================================== +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Vb \" Begin verbatim text +.ft CW +.nf +.ne \\$1 +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.\" Set up some character translations and predefined strings. \*(-- will +.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left +.\" double quote, and \*(R" will give a right double quote. \*(C+ will +.\" give a nicer C++. Capital omega is used to do unbreakable dashes and +.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, +.\" nothing in troff, for use with C<>. +.tr \(*W- +.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' +.ie n \{\ +. ds -- \(*W- +. ds PI pi +. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch +. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch +. ds L" "" +. ds R" "" +. ds C` "" +. ds C' "" +'br\} +.el\{\ +. ds -- \|\(em\| +. ds PI \(*p +. ds L" `` +. ds R" '' +'br\} +.\" +.\" Escape single quotes in literal strings from groff's Unicode transform. +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" +.\" If the F register is turned on, we'll generate index entries on stderr for +.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index +.\" entries marked with X<> in POD. Of course, you'll have to process the +.\" output yourself in some meaningful fashion. +.ie \nF \{\ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" +.. +. nr % 0 +. rr F +.\} +.el \{\ +. de IX +.. +.\} +.\" ======================================================================== +.\" +.IX Title "nkf 1" +.TH nkf 1 "2013-11-22" "nkf 2.1.3" " " +.\" For nroff, turn off justification. Always turn off hyphenation; it makes +.\" way too many mistakes in technical documents. +.if n .ad l +.nh +.SH "NAME" +nkf \- $B%M%C%H%o!<%/MQ4A;z%3!<%IJQ49%U%#%k%?(B +.SH "SYNOPSIS" +.IX Header "SYNOPSIS" +nkf \fB[\-butjnesliohrTVvwWJESZxXFfmMBOcdILg]\fR \fB[\fR\fIfile ...\fR\fB]\fR +.SH "DESCRIPTION" +.IX Header "DESCRIPTION" +\&\fBnkf\fR $B$O%M%C%H%o!<%/$G%a!<%k$d%K%e!<%9$NFI$_=q$-$r$9$k$?$a$K:n$i$l$?!"4A;z%3!<%I$NJQ49%U%#%k%?$G$"$k!#(B +.PP +$B$3$N(B\fBnkf\fR$B$NFCD'$H$7$F$O!"F~NO4A;z%3!<%I7O$NE}7WE*$J<+F0G'<15!G=$,$"$k!#(B +$B$3$N$?$a!"MxMQo$N%K%e!<%9$d%a!<%k$N%a%C%;!<%8$K$D$$$F$O3NDj$9$k!#(B +.IP "\fB\-E\fR" 4 +.IX Item "-E" +$BF|K\8l(B \s-1EUC\s0 (\s-1AT&T\s0) $B$r2>Dj$9$k!#(B +.IP "\fB\-S\fR" 4 +.IX Item "-S" +Shift_JIS $B$r2>Dj$9$k!#(B +$B$$$o$f$kH>3Q%+%J(B (\s-1JIS\s0 X 0201 $BJR2>L>(B) $B$bDj$9$k!#(B +.IP "\fB\-W8\fR" 4 +.IX Item "-W8" +\&\s-1UTF\-8\s0 $B$r2>Dj$9$k!#(B +.IP "\fB\-W16\fR" 4 +.IX Item "-W16" +\&\s-1UTF\-16\s0 (Little Endian)$B$r2>Dj$9$k!#(B +.IP "\fB\-W16B\fR" 4 +.IX Item "-W16B" +\&\s-1UTF\-16\s0 (Big Endian)$B$r2>Dj$9$k!#(B +.IP "\fB\-W16L\fR" 4 +.IX Item "-W16L" +\&\s-1UTF\-16\s0 (Little Endian)$B$r2>Dj$9$k!#(B +.RE +.RS 4 +.RE +.IP "\fB\-x\fR" 4 +.IX Item "-x" +$BDL>o$*$3$J$o$l$k!"$$$o$f$kH>3Q%+%J(B (\s-1JIS\s0 X 0201 $BJR2>L>(B) +$B$+$i$$$o$f$kA43Q%+%J(B (\s-1JIS\s0 X 0208 $BJR2>L>(B) $B$X$NJQ49$r9T$o$:!"H>3Q%+%J$rJ]B8$9$k!#(B +$BF~NO$O!"(BShift_JIS $B$N(B 1byte $B%+%J!"(BSO/SI$B!"(BESC\-(\-I, \s-1SSO\s0 $B$r3Q%+%J(B (\s-1JIS\s0 X 0201 $BJR2>L>(B) $B$r(B $B$$$o$f$kA43Q%+%J(B (\s-1JIS\s0 X 0208 $BJR2>L>(B) $B$X$HJQ49$9$k!#(B +.IP "\fB\-B\fR" 4 +.IX Item "-B" +$B2u$l$?(B (Broken) \s-1JIS\s0 $B%3!<%I!#(B +\&\s-1ESC\s0 $B$,$J$/$J$C$?$H2>Dj$9$k!#(B +.RS 4 +.IP "\fB\-B1\fR" 4 +.IX Item "-B1" +\&\fB\s-1ESC\-\s0(\fR, \fB\s-1ESC\-$\s0\fR $B$N$"$H$N%3!<%I$rLd$o$J$$(B +.IP "\fB\-B2\fR" 4 +.IX Item "-B2" +$B2~9T$N$"$H$K6/@)E*$K(B \s-1ASCII\s0 $B$KLa$9(B +.RE +.RS 4 +.RE +.IP "\fB\-f\fR[\fIm\fR[\-\fIn\fR]]" 4 +.IX Item "-f[m[-n]]" +$B0l9T(B \fIm\fR $BJ8;z$K$J$k$h$&$K!"%^!<%8%s$r(B \fIn\fR $B$H$7$F4JC1$J@07A$r$*$3$J$&!#(B +$B%G%U%)%k%H$OJ8;z?t$O(B 60$B!"%^!<%8%s$O(B 10 $B$G$"$k!#(B +.IP "\fB\-Z[0\-3]\fR" 4 +.IX Item "-Z[0-3]" +\&\s-1JIS\s0 X 0208 $B1Q?t;z$H3Q$KJQ49$9$k!#(B +.RS 4 +.IP "\fB\-Z \-Z0\fR" 4 +.IX Item "-Z -Z0" +Convert X0208 alphabet to \s-1ASCII\s0. +.IP "\fB\-Z1\fR" 4 +.IX Item "-Z1" +\&\s-1JIS\s0 X 0208 $BOB;z4V3V$r(B \s-1ASCII\s0 space $B0l$D$KJQ49$9$k!#(B +.IP "\fB\-Z2\fR" 4 +.IX Item "-Z2" +\&\s-1JIS\s0 X 0208 $BOB;z4V3V$r(B \s-1ASCII\s0 space $BFs$D$KJQ49$9$k!#(B +.IP "\fB\-Z3\fR" 4 +.IX Item "-Z3" +$B!d!"!c!"!I!"!u!"$r(B >$B!"(B<$B!"(B"$B!"(B& $B$KJQ49$9$k!#(B +.RE +.RS 4 +.RE +.IP "\fB\-b\fR" 4 +.IX Item "-b" +$B%P%C%U%!%j%s%0=PNO$r9T$&!#(B($B%G%U%)%k%H(B) +.IP "\fB\-u\fR" 4 +.IX Item "-u" +$B=PNO;~$K!"%P%C%U%!%j%s%0$7$J$$!#(B +ssh localhost | nkf \-u $B$H$$$&$h$&$K;H$&!#(B +.IP "\fB\-t\fR" 4 +.IX Item "-t" +$B2?$b$7$J$$!#(B +.IP "\fB\-I\fR" 4 +.IX Item "-I" +\&\s-1ISO\-2022\-JP\s0 $B0J30$N4A;z%3!<%I$r".$KJQ49!#(B +.IP "\fB\-i[@B]\fR" 4 +.IX Item "-i[@B]" +\&\s-1JIS\s0 $B4A;z$r;X<($9$k%7!<%1%s%9$r;XDj$9$k!#(B +.RS 4 +.IP "\fB\-i@\fR" 4 +.IX Item "-i@" +\&\s-1JIS\s0 X 0208\-1978 $B$rMQ$$$k!#(B +.IP "\fB\-iB\fR" 4 +.IX Item "-iB" +\&\s-1JIS\s0 X 0208\-1983/1990 $B$rMQ$$$k!#(B +.RE +.RS 4 +.RE +.IP "\fB\-o[\s-1BJH\s0]\fR" 4 +.IX Item "-o[BJH]" +1 $B%P%$%H1Q?tJ8;z%;%C%H$r;X<($9$k%7!<%1%s%9$r;XDj$9$k!#(B +.RS 4 +.IP "\fB\-oB\fR" 4 +.IX Item "-oB" +1 $B%P%$%H1Q?tJ8;z%;%C%H$H$7$F(B US-ASCII $B$rMQ$$$k!#(B +.IP "\fB\-oJ\fR" 4 +.IX Item "-oJ" +1 $B%P%$%H1Q?tJ8;z%;%C%H$H$7$F(B \s-1JIS\s0 X 0201 Roman $B$rMQ$$$k!#(B +.IP "\fB\-oH\fR" 4 +.IX Item "-oH" +\&\s-1ESC\s0 ( H $B$O=i4|$N(B \s-1JUNET\s0 $B%3!<%I$G$N$_MQ$$$i$l$?$b$N$G!"8=:_$O;H$C$F$O$J$i$J$$!#(B +.RE +.RS 4 +.RE +.IP "\fB\-r\fR" 4 +.IX Item "-r" +\&\s-1ROT13/47\s0 $B$NJQ49$r$9$k!#(B +.IP "\fB\-g\fR" 4 +.IX Item "-g" +$B<+F0H=JL$N7k2L$r=PNO$7$^$9!#(B +.IP "\fB\-T\fR" 4 +.IX Item "-T" +$B%F%-%9%H%b!<%I$G=PNO$9$k!#(B(\s-1MS\-DOS\s0 $B>e$G$N$_8zNO$r;}$D(B) +.IP "\fB\-l\fR" 4 +.IX Item "-l" +0x80\-0xfe $B$N%3!<%I$r(B \s-1ISO\-8859\-1\s0 (Latin\-1) $B$H$7$F07$&!#(B +\&\s-1JIS\s0 $B%3!<%I%"%&%H%W%C%H$H$NAH9g$;$_$N$_M-8z!#(B +\&\fB\-s, \-e, \-x\fR $B$H$ON>N)$7$J$$!#(B +.IP "\fB\-O\fR" 4 +.IX Item "-O" +$B%U%!%$%k$K=PNO$9$k!#(B +\&\s-1UNIX\s0 $B$G$OITMW$J5!G=$@$,(B Windows $B$d(B \s-1MSDOS\s0 $B$G$OI,MW$i$7$$!#(B +$BD>8e$N0z$-?t$G$J$/!":G8e$N%U%!%$%kL>$,=PNO%U%!%$%kL>$H$J$j>e=q$-$5$l$F$7$^$&$N$GCm0U!#(B +$B%U%!%$%kL>$,$J$$>l9g$O(B nkf.out$B!#(B +.IP "\fB\-L[uwm] \-d \-c\fR" 4 +.IX Item "-L[uwm] -d -c" +$B2~9T%3!<%I$rJQ49$9$k!#(B +.RS 4 +.IP "\fB\-Lu \-d\fR" 4 +.IX Item "-Lu -d" +unix (\s-1LF\s0) +.IP "\fB\-Lw \-c\fR" 4 +.IX Item "-Lw -c" +windows (\s-1CRLF\s0) +.IP "\fB\-Lm\fR" 4 +.IX Item "-Lm" +mac (\s-1CR\s0) +.RE +.RS 4 +.Sp +$B%G%U%)%k%H$G$OJQ49$7$J$$!#(B +.RE +.IP "\fB\-\-ic=>" 4 +.IX Item "--ic=>" +$BF~NO!&=PNO$N4A;z%3!<%I7O$r;XDj$7$^$9!#(B +.RS 4 +.IP "\fB\s-1ISO\-2022\-JP\s0\fR" 4 +.IX Item "ISO-2022-JP" +$B$$$o$f$k(B \s-1JIS\s0 $B%3!<%I!#(B\fB\-j, \-J\fR $B$HF1$8!#(B +.IP "\fB\s-1ISO\-2022\-JP\-1\s0\fR" 4 +.IX Item "ISO-2022-JP-1" +\&\s-1RFC\s0 2237 $B$KDj$a$i$l$?7A<0!#(B \s-1JIS\s0 X 0212 $B$r4^$`!#(B +.IP "\fB\s-1ISO\-2022\-JP\-3\s0\fR" 4 +.IX Item "ISO-2022-JP-3" +\&\s-1RFC\s0 2237 $B$KDj$a$i$l$?7A<0!#(B \s-1JIS\s0 X 0213 $B$r4^$`!#(B +.IP "\fBEUC-JP\fR" 4 +.IX Item "EUC-JP" +\&\s-1EUC\s0 $B%3!<%I!#(B\fB\-e, \-E\fR $B$HF1$8!#(B +.IP "\fB\s-1EUC\-JISX0213\s0\fR" 4 +.IX Item "EUC-JISX0213" +$BJ8;z=89g$K(B \s-1JIS\s0 X 0213:2000 $B$rMQ$$$?(B EUC\-JP$B!#(B +.IP "\fB\s-1EUC\-JIS\-2004\s0\fR" 4 +.IX Item "EUC-JIS-2004" +$BJ8;z=89g$K(B \s-1JIS\s0 X 0213:2004 $B$rMQ$$$?(B EUC\-JP$B!#(B +.IP "\fBeucJP-ascii\fR" 4 +.IX Item "eucJP-ascii" +$B%*!<%W%s%0%k!<%WF|K\%Y%s%@6(5D2q$,Dj5A$7$?(B eucJP\-ascii$B!#(B +\&\fB\-x\fR $B$,0EL[$N$&$A$K;XDj$5$l$k!#(B +.IP "\fBeucJP-ms\fR" 4 +.IX Item "eucJP-ms" +$B%*!<%W%s%0%k!<%WF|K\%Y%s%@6(5D2q$,Dj5A$7$?(B euc\-JPms$B!#(B +\&\fB\-x\fR $B$,0EL[$N$&$A$K;XDj$5$l$k!#(B +.IP "\fB\s-1CP51932\s0\fR" 4 +.IX Item "CP51932" +Micorosft Code Page 51932$B!#(B +\&\fB\-x\fR $B$,0EL[$N$&$A$K;XDj$5$l$k!#(B +.IP "\fBShift_JIS\fR" 4 +.IX Item "Shift_JIS" +Shift_JIS$B!#(B +\&\fB\-s, \-S\fR $B$HF1$8!#(B +.IP "\fBShift_JISX0213\fR" 4 +.IX Item "Shift_JISX0213" +$BJ8;z=89g$K(B \s-1JIS\s0 X 0213:2000 $B$rMQ$$$?(B Shift_JIS$B!#(B +.IP "\fBShift_JIS\-2004\fR" 4 +.IX Item "Shift_JIS-2004" +$BJ8;z=89g$K(B \s-1JIS\s0 X 0213:2004 $B$rMQ$$$?(B Shift_JIS$B!#(B +.IP "\fB\s-1CP932\s0\fR" 4 +.IX Item "CP932" +Micorosft Code Page 932$B!#(B +\&\fB\-x\fR $B$,0EL[$N$&$A$K;XDj$5$l$k!#(B +.IP "\fB\s-1UTF\-8\s0 \s-1UTF\-8N\s0\fR" 4 +.IX Item "UTF-8 UTF-8N" +\&\s-1BOM\s0 $BL5$7$N(B UTF\-8$B!#(B +\&\fB\-w, \-W\fR $B$HF1$8!#(B +.IP "\fB\s-1UTF\-8\-BOM\s0\fR" 4 +.IX Item "UTF-8-BOM" +\&\s-1BOM\s0 $BIU$-$N(B UTF\-8$B!#(B\fB\-w8\fR $B$^$?$O(B \fB\-W\fR $B$HF1$8!#(B +.IP "\fB\s-1UTF8\-MAC\s0\fR" 4 +.IX Item "UTF8-MAC" +UTF8\-MAC$B!#8_49J,2r$5$l$?$R$i$,$J!&%+%?%+%JEy$r7k9g$7$^$9!#(B +$BF~NO$N$_$NBP1~$G$9!#(B +.IP "\fB\s-1UTF\-16\s0 \s-1UTF\-16BE\-BOM\s0\fR" 4 +.IX Item "UTF-16 UTF-16BE-BOM" +\&\s-1BOM\s0 $BM-$j$G(B Big Endian $B$N(B UTF\-16$B!#(B +\&\fB\-w16B, \-W16B\fR $B$HF1$8!#(B +.IP "\fB\s-1UTF\-16BE\s0\fR" 4 +.IX Item "UTF-16BE" +\&\s-1BOM\s0 $BL5$7$G(B Big Endian $B$N(B UTF\-16$B!#(B +\&\fB\-w16B0. \-W16B\fR $B$HF1$8!#(B +.IP "\fB\s-1UTF\-16LE\-BOM\s0\fR" 4 +.IX Item "UTF-16LE-BOM" +\&\s-1BOM\s0 $BM-$j$G(B Little Endian $B$N(B UTF\-16$B!#(B +\&\fB\-w16L, \-W16L\fR $B$HF1$8!#(B +.IP "\fB\s-1UTF\-16LE\s0\fR" 4 +.IX Item "UTF-16LE" +\&\s-1BOM\s0 $BL5$7$G(B Little Endian $B$N(B UTF\-16$B!#(B +\&\fB\-w16L0, \-W16L\fR $B$HF1$8!#(B +.RE +.RS 4 +.RE +.IP "\fB\-\-fj \-\-unix \-\-mac \-\-msdos \-\-windows\fR" 4 +.IX Item "--fj --unix --mac --msdos --windows" +$B$3$l$i$N%7%9%F%`$KE,$7$?JQ49$r$7$^$9!#(B +.IP "\fB\-\-jis \-\-euc \-\-sjis \-\-mime \-\-base64\fR" 4 +.IX Item "--jis --euc --sjis --mime --base64" +$BBP1~$9$kJQ49$r$7$^$9!#(B +.IP "\fB\-\-hiragana \-\-katakana\fR" 4 +.IX Item "--hiragana --katakana" +$BJ?2>L>!"JR2>L>JQ49(B +.IP "\fB\-\-fb\-{skip, html, xml, perl, java, subchar}\fR" 4 +.IX Item "--fb-{skip, html, xml, perl, java, subchar}" +Unicode $B$+$i(B Shift_JIS, EUC-JP, \s-1ISO\-2022\-JP\s0 $B$KJQ49$9$k:]$K!"JQ49$G$-$J$+$C$?J8;z$r$I$&07$&$+$r;XDj$G$-$^$9!#(B +.IP "\fB\-\-prefix=\f(BIescape character\fB\f(BItarget character\fB..\fR" 4 +.IX Item "--prefix=escape charactertarget character.." +EUC-JP $B$+$i(B Shift_JIS $B$X$NJQ49$N:]!"(B2 $B%P%$%HL\(B +$B$K8=$l$?J8;z$NA0$K%(%9%1!<%WJ8;z$r$D$1$k$3$H$,$G$-$^$9!#(B +$B0z?t$N(B 1 $BJ8;zL\$,%(%9%1!<%WJ8;z!"(B2 $BJ8;zL\0J9_$K%(%9%1!<%W$5$l$k$Y$-J8;z$r;XDj$7$^$9!#(B +.Sp +$BNc$($P!"(B +.Sp +\&\-\-prefix=\e$@ $B$H$9$k$H!"(BShift_JIS $B$N(B 2 $BJ8;zL\$K(B $ $B$+(B @ $B$,Mh$?$i!"$=$NA0$K(B \e $B$,A^F~$5$l$^$9(B +\&\-\-prefix=@@ $B$H$9$k$H!"(BShift_JIS $B$N(B 2 $BJ8;zL\$K(B @ $B$,Mh$?$i!"$=$NA0$K(B @ $B$,A^F~$5$l$^$9(B +.IP "\fB\-\-no\-cp932ext\fR" 4 +.IX Item "--no-cp932ext" +\&\s-1CP932\s0 $B$K$*$$$F3HD%$5$l$?!"(BNEC $BFC)$7$^$9!#(B +.IP "\fB\-\-cap\-input, \-\-url\-input\fR" 4 +.IX Item "--cap-input, --url-input" +$B$=$l$>$l(B :$B!"(B% $B$KB3$/(B 16 $B?J?t$rJ8;z$KJQ49$9$k(B +.IP "\fB\-\-numchar\-input\fR" 4 +.IX Item "--numchar-input" +&#....; $B$N$h$&$J(B Unicode $BJ8;z;2>H$rJQ49$9$k(B +.IP "\fB\-\-in\-place[=\f(BI\s-1SUFFIX\s0\fB] \-\-overwrite[=\f(BI\s-1SUFFIX\s0\fB]\fR" 4 +.IX Item "--in-place[=SUFFIX] --overwrite[=SUFFIX]" +$B85$N%U%!%$%k$rJQ497k2L$GCV$-49$($k!#(B +$BJ#?t$N%U%!%$%k$r=q$-49$($k$3$H$b2DG=!#(B +$B85$N%U%!%$%k$N%?%$%`%9%?%s%W$H%Q!<%_%C%7%g%s$,J];}$5$l$k!#(B +$B8=:_!":n@.F|;~$d(B inode $B$OJQ99$5$l$k$,!">-Mh$K$o$?$C$F$3$NZ$OL5$$!#(B +.IP "\fB\-\-guess\fR" 4 +.IX Item "--guess" +$B<+F0H=JL$N7k2L$r=PNO$9$k(B +.IP "\fB\-\-help\fR" 4 +.IX Item "--help" +$B%3%^%s%I$N4JC1$J@bL@$rI=<($9$k!#(B +.IP "\fB\-V\fR" 4 +.IX Item "-V" +nkf $B$N@_Dj$rI=<($9$k!#(B +.IP "\fB\-v\fR \fB\-\-version\fR" 4 +.IX Item "-v --version" +nkf $B$N%P!<%8%g%s$rI=<($9$k!#(B +.IP "\fB\-\-\fR" 4 +.IX Item "--" +$B$3$l0J9_$N%*%W%7%g%s$rL5;k$9$k(B +.IP "\fB\-\-exec\-in\fR" 4 +.IX Item "--exec-in" +nkf [options] \-\-exec\-in cmd args... $B$H$d$k$H!"(Bcmd $B$N=PNO$r(B nkf $B$NF~NO$H$9$k(B +(config.h $B$G(B \s-1EXEC_IO\s0 $B$r(B define $B$7$F%3%s%Q%$%k$7$?;~$N$_M-8z(B) +.IP "\fB\-\-exec\-out\fR" 4 +.IX Item "--exec-out" +nkf [options] \-\-exec\-out cmd args... $B$H$d$k$H!"(Bnkf $B$N=PNO$r(B cmd $B$NF~NO$H$9$k(B +(config.h $B$G(B \s-1EXEC_IO\s0 $B$r(B define $B$7$F%3%s%Q%$%k$7$?;~$N$_M-8z(B) +.SH "BUGS" +.IX Header "BUGS" +$Bo$KG'<1$5$l$k!#(B +Shift_JIS$B!"(BEUC $B:.9g$b$[$H$s$I$N>l9g$OLdBj$,$J$$!#(B +$B$?$@$7!"(BShift_JIS $B$N$$$o$f$kH>3Q%+%J(B (\s-1JIS\s0 X 0201 $BJR2>L>(B) $B$H(B \s-1EUC\s0 $B4A;z$,<1JL$G$-$J$$!#(B +$B$7$?$,$C$F!"%G%U%)%k%H$G$O(B Shift_JIS $B$N$$$o$f$kH>3Q%+%J$O$J$$$H2>Dj$7$F$$$k!#(B +($B$D$^$j!"(BShift_JIS $B$+(B \s-1EUC\s0 $B$+LB$C$?;~$O(B \s-1EUC\s0 $B$H$_$J$9(B) +.PP +Unicode $B$NF|K\8l0J30$NItJ,$NJQ49$K$OBP1~$7$F$$$J$$$,!"(B\fB\-\-no\-best\-fit\-chars\fR $B$r;XDj$9$l$P!"(BUTF\-8 $B$H(B \s-1UTF\-16\s0 $B$NAj8_JQ49$r$9$k$3$H$O2DG=$G$"$k!#(B +.SH "ACKNOWLEDGE" +.IX Header "ACKNOWLEDGE" +$B0J2<$N$+$?$,$?!"$I$&$b$"$j$,$H$&$4$6$$$^$7$?!#(B +.SS "nkf 1.4" +.IX Subsection "nkf 1.4" +morb@fujitsu, kiss@ayumi.stars.flab.fujitsu, cen122@flab.fujitsu, +yuki@flab.fujitsu $BB>!"(Bfujitsu & flab.fujitsu $B$N3'$5$s$N6(NO$K46 +ohta@src.ricoh.co.jp (Junn Ohta) +inouet@strl.nhk.or.jp (Tomoyuki Inoue) +kiri@pulser.win.or.jp (Tetsuaki Kiriyama) +Kimihiko Sato +a_kuroe@kuroe.aoba.yokohama.jp (Akihiko Kuroe) +kono@ie.u\-ryukyu.ac.jp (Shinji Kono) +GHG00637@nifty\-serve.or.jp (\s-1COW\s0) +.SS "nkf 1.9\-" +.IX Subsection "nkf 1.9-" +.IP "$B2OLn??<#(B" 4 +.IX Item "$B2OLn??<#(B" +.PD 0 +.IP "Akio Furukawa" 4 +.IX Item "Akio Furukawa" +.IP "Andy Taki" 4 +.IX Item "Andy Taki" +.IP "From: \s-1OHARA\s0 Shigeki" 4 +.IX Item "From: OHARA Shigeki" +.IP "Fumitaka Kitagawa" 4 +.IX Item "Fumitaka Kitagawa" +.IP "Hiroaki Sengoku" 4 +.IX Item "Hiroaki Sengoku" +.IP "Ikuhiro \s-1MORITA\s0 ($B?9ED(B $B0i9((B)" 4 +.IX Item "Ikuhiro MORITA ($B?9ED(B $B0i9((B)" +.IP "Yoshiharu \s-1ITO\s0" 4 +.IX Item "Yoshiharu ITO" +.IP "Junn Ohta" 4 +.IX Item "Junn Ohta" +.IP "\s-1KAWAMURA\s0 Masao" 4 +.IX Item "KAWAMURA Masao" +.IP "Kazuhiko Mori" 4 +.IX Item "Kazuhiko Mori" +.IP "Keitaro Isokawa" 4 +.IX Item "Keitaro Isokawa" +.IP "Ken-ichi Hirose" 4 +.IX Item "Ken-ichi Hirose" +.IP "Ki-ichiro \s-1SATO\s0" 4 +.IX Item "Ki-ichiro SATO" +.IP "Kiwamu Aoyama" 4 +.IX Item "Kiwamu Aoyama" +.IP "Koichi Hirayama" 4 +.IX Item "Koichi Hirayama" +.IP "Mitsuru Hase ($BD9C+!!K~(B)" 4 +.IX Item "Mitsuru Hase ($BD9C+!!K~(B)" +.IP "\s-1OHARA\s0 Shigeki ($BBg86(B $B=E>Hx(B" 4 +.IX Item "$B%$%s%H%i%M%C%H%7%9%F%`(B($B3t(B)$B>>Hx(B" +.IP "$B1-;tJ8IR(B" 4 +.IX Item "$B1-;tJ8IR(B" +.IP "$B1v:j(B $B5#I'(B(\s-1SHIOZAKI\s0 Takehiko)" 4 +.IX Item "$B1v:j(B $B5#I'(B(SHIOZAKI Takehiko)" +.IP "$B2OB<2mIW(B (Media Lab.)" 4 +.IX Item "$B2OB<2mIW(B (Media Lab.)" +.IP "$B2OLn(B $B9/;J(B" 4 +.IX Item "$B2OLn(B $B9/;J(B" +.IP "$B4n@%!HE_G-!I9@!wFn9q2-Fl(B" 4 +.IX Item "$B4n@%!HE_G-!I9@!wFn9q2-Fl(B" +.IP "$B6b0f(B $BCRI'(B" 4 +.IX Item "$B6b0f(B $BCRI'(B" +.IP "$B7KED(B $BM4;K(B ($B$+$D$i$@(B $B$^$5$7(B)" 4 +.IX Item "$B7KED(B $BM4;K(B ($B$+$D$i$@(B $B$^$5$7(B)" +.IP "$B9b6659LA(B" 4 +.IX Item "$B9b6659LA(B" +.IP "$B9q5H(B" 4 +.IX Item "$B9q5H(B" +.IP "$B9u9>L@I'(B" 4 +.IX Item "$B9u9>L@I'(B" +.IP "$B;0Bp@5BY(B" 4 +.IX Item "$B;0Bp@5BY(B" +.IP "$B;3AR(B $B??(B" 4 +.IX Item "$B;3AR(B $B??(B" +.IP "$B;3K\(B $BK'?M(B" 4 +.IX Item "$B;3K\(B $BK'?M(B" +.IP "$B;3LnM5;J(B ($B$d$^$N$f$&$8(B)" 4 +.IX Item "$B;3LnM5;J(B ($B$d$^$N$f$&$8(B)" +.IP "$B=EB.Eg4pLw(B" 4 +.IX Item "$B>.Eg4pLw(B" +.IP "$B>eED!!7r(B" 4 +.IX Item "$B>eED!!7r(B" +.IP "$B?70f(B $B9/;J(B (Koji Arai)" 4 +.IX Item "$B?70f(B $B9/;J(B (Koji Arai)" +.IP "$B?9!!@i3(;R(B" 4 +.IX Item "$B?9!!@i3(;R(B" +.IP "$B?9!!OBI'(B" 4 +.IX Item "$B?9!!OBI'(B" +.IP "$B?eLn(B $B5.J8(B" 4 +.IX Item "$B?eLn(B $B5.J8(B" +.IP "$BA0COOB=S(B" 4 +.IX Item "$BA0COOB=S(B" +.IP "$BCg=!:,!wJBNs?.Mj8&(B" 4 +.IX Item "$BCg=!:,!wJBNs?.Mj8&(B" +.IP "$BCvC+(B $B1Q0lO:(B == Eiichiro Itani" 4 +.IX Item "$BCvC+(B $B1Q0lO:(B == Eiichiro Itani" +.IP "$BF#86!!=(9T(B" 4 +.IX Item "$BF#86!!=(9T(B" +.IP "$BH,ED(B $B??9T(B (Masayuki Hatta)" 4 +.IX Item "$BH,ED(B $B??9T(B (Masayuki Hatta)" +.IP "$BHx@nIRLi(B" 4 +.IX Item "$BHx@nIRLi(B" +.IP "$BK>7n(B $B9';V(B" 4 +.IX Item "$BK>7n(B $B9';V(B" +.IP "$BLZB<(B ($B!wC^GHBg3X?t3X8&5f2J(B)" 4 +.IX Item "$BLZB<(B ($B!wC^GHBg3X?t3X8&5f2J(B)" +.IP "$BLnB<=S>4(B" 4 +.IX Item "$BLnB<=S>4(B" +.IP "$BM-2,!w%_%N%k%?(B" 4 +.IX Item "$BM-2,!w%_%N%k%?(B" +.IP "$BM-Bt(B $BL@9((B" 4 +.IX Item "$BM-Bt(B $BL@9((B" +.IP "$BMn9g0l4n(B" 4 +.IX Item "$BMn9g0l4n(B" +.IP "$BNS(B $BN<(B" 4 +.IX Item "$BNS(B $BN<(B" +.IP "$BT"0B(B $B<#(B" 4 +.IX Item "$BT"0B(B $B<#(B" +.IP "$BLZ2<(B $BM:2p(B" 4 +.IX Item "$BLZ2<(B $BM:2p(B" +.IP "$BEDCfN4M5(B" 4 +.IX Item "$BEDCfN4M5(B" +.IP "$BDaC+D> + +Copyright: + + Copyright (C) 1987, Fujitsu LTD. (Itaru ICHIKAWA) + $B!J(BE-Mail Address: ichikawa@flab.fujitsu.co.jp$B!K(B + Copyright (C) 1996,1998 Kono, COW + $B!J(BE-Mail Address: kono@ie.u-ryukyu.ac.jp$B!K(B + + Everyone is permitted to do anything on this program + including copying, modifying, improving. + as long as you don't try to pretend that you wrote it. + i.e., the above copyright notice has to appear in all copies. + You don't have to ask before copying or publishing. + THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. diff --git a/nkf.spec b/nkf.spec new file mode 100644 index 0000000..25d26e8 --- /dev/null +++ b/nkf.spec @@ -0,0 +1,352 @@ +Name: nkf +Epoch: 1 +Version: 2.1.4 +Release: 18%{?dist} +License: BSD +URL: http://nkf.osdn.jp/ +Source0: http://iij.dl.osdn.jp/nkf/64158/%{name}-%{version}.tar.gz +## snippet from the source code +Source3: nkf.copyright +Source4: nkf.1j +Patch0: %{name}-fix-man.patch +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: gcc + +Summary: A Kanji code conversion filter + +%description +Nkf is a Kanji code converter for terminals, hosts, and networks. Nkf +converts input Kanji code to 7-bit JIS, MS-kanji (shifted-JIS) or +EUC. + +%package -n perl-NKF +Summary: Perl extension for Network Kanji Filter +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description -n perl-NKF +This is a Perl Extension version of nkf (Network Kanji Filter). +It converts the last argument and return converted result. +Conversion details are specified by flags before the last argument. + +%prep +%autosetup -p1 +cp -p %{SOURCE4} . + +%build +make CFLAGS="$RPM_OPT_FLAGS" nkf +cp -p %{SOURCE3} . +pushd NKF.mod +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +make %{?_smp_mflags} +popd + +%install +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man1,ja/man1} + +./nkf -e nkf.1j > nkf.1jeuc +iconv -f euc-jp -t utf-8 nkf.1jeuc > nkf.1utf8 +touch -r nkf.1j nkf.1utf8 +install -m 755 -p nkf $RPM_BUILD_ROOT%{_bindir} +install -m 644 -p nkf.1 $RPM_BUILD_ROOT%{_mandir}/man1 +install -m 644 -p nkf.1utf8 $RPM_BUILD_ROOT%{_mandir}/ja/man1/nkf.1 +pushd NKF.mod +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" +rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/perllocal.pod \ + $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \ + $RPM_BUILD_ROOT%{perl_vendorarch}/auto/NKF/NKF.bs \ + $RPM_BUILD_ROOT%{perl_vendorarch}/auto/NKF/.packlist +popd +chmod 0755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/NKF/NKF.so + + +%check +make test + +%files +%doc nkf.doc +%license nkf.copyright +%{_bindir}/nkf +%{_mandir}/man1/nkf.1* +%{_mandir}/ja/man1/nkf.1* + +%files -n perl-NKF +%doc nkf.doc +%license nkf.copyright +%{perl_vendorarch}/NKF.pm +%{perl_vendorarch}/auto/* +%{_mandir}/man3/NKF.3pm.gz + +%changelog +* Tue Jul 28 2020 Fedora Release Engineering - 1:2.1.4-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1:2.1.4-17 +- Perl 5.32 rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1:2.1.4-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 1:2.1.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1:2.1.4-14 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1:2.1.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1:2.1.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1:2.1.4-11 +- Perl 5.28 rebuild + +* Mon Feb 19 2018 Akira TAGOH - 1:2.1.4-10 +- Add BR: gcc + +* Thu Feb 08 2018 Fedora Release Engineering - 1:2.1.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Akira TAGOH - 1:2.1.4-8 +- Fix manpage (#1539528) + +* Thu Aug 03 2017 Fedora Release Engineering - 1:2.1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1:2.1.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1:2.1.4-5 +- Perl 5.26 rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1:2.1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 1:2.1.4-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1:2.1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Dec 16 2015 Akira TAGOH - 1:2.1.4-1 +- New upstream release. (#129029) + +* Wed Jun 17 2015 Fedora Release Engineering - 1:2.1.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 1:2.1.3-6 +- Perl 5.22 rebuild + +* Tue Aug 26 2014 Jitka Plesnikova - 1:2.1.3-5 +- Perl 5.20 rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1:2.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1:2.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Jan 15 2014 Akira TAGOH - 1:2.1.3-2 +- Fix the broken nkf man page. (#1039359) + +* Tue Nov 26 2013 Akira TAGOH - 1:2.1.3-1 +- New upstream release. (#1034089) + +* Sat Aug 03 2013 Fedora Release Engineering - 1:2.1.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 1:2.1.2-8 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 1:2.1.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 23 2012 Akira TAGOH - 1:2.1.2-6 +- Add %%check. + +* Thu Nov 22 2012 Akira TAGOH - 1:2.1.2-5 +- the spec file cleanup. + +* Fri Jul 20 2012 Fedora Release Engineering - 1:2.1.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 1:2.1.2-3 +- Perl 5.16 rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1:2.1.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Sep 9 2011 Akira TAGOH - 1:2.1.2-1 +- New upstream release. (#737004) + +* Thu Jul 21 2011 Petr Sabata - 1:2.1.1-4 +- Perl mass rebuild + +* Thu Jul 21 2011 Petr Sabata - 1:2.1.1-3 +- Perl mass rebuild + +* Tue Jun 14 2011 Marcela Mašláňová - 1:2.1.1-2 +- Perl mass rebuild + +* Wed Mar 16 2011 Akira TAGOH - 1:2.1.1-1 +- New upstream release. + +* Tue Feb 08 2011 Fedora Release Engineering - 1:2.0.8b-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Apr 29 2010 Marcela Maslanova - 1:2.0.8b-8 +- Mass rebuild with perl-5.12.0 + +* Mon Dec 7 2009 Stepan Kasal - 1:2.0.8b-7 +- rebuild against perl 5.10.1 + +* Sat Jul 25 2009 Fedora Release Engineering - 1:2.0.8b-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1:2.0.8b-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Nov 21 2008 Akira TAGOH - 1:2.0.8b-4 +- Fix a source URL. + +* Tue Jul 1 2008 Akira TAGOH - 1:2.0.8b-3 +- Add perl(:MODULE_COMPAT_...) deps. (#453413) + +* Tue Feb 12 2008 Akira TAGOH - 1:2.0.8b-2 +- Rebuild for gcc-4.3. + +* Fri Sep 21 2007 Akira TAGOH - 1:2.0.8b-1 +- New upstream release. +- clean up the spec file. + +* Thu Aug 23 2007 Akira TAGOH - 2.07-3 +- Rebuild + +* Fri Aug 10 2007 Akira TAGOH - 2.07-2 +- Update License tag. + +* Wed Jul 12 2006 Jesse Keating - 2.07-1.1 +- rebuild + +* Thu Jul 6 2006 Akira TAGOH - 2.07-1 +- New upstream release. +- use dist tag. +- clean up the spec file. + +* Thu Mar 30 2006 Akira TAGOH - 2.06-1 +- New upstream release. + +* Fri Feb 10 2006 Jesse Keating - 2.05-1.2.1 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating - 2.05-1.2 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Fri Dec 09 2005 Jesse Keating +- rebuilt + +* Thu Jul 7 2005 Akira TAGOH - 2.05-1 +- New upstream release. + +* Thu Mar 17 2005 Akira TAGOH - 2.04-5 +- rebuilt + +* Thu Feb 10 2005 Akira TAGOH - 2.04-4 +- rebuilt + +* Tue Jun 15 2004 Elliot Lee +- rebuilt + +* Tue Mar 02 2004 Elliot Lee +- rebuilt + +* Fri Feb 13 2004 Elliot Lee +- rebuilt + +* Wed Jan 07 2004 Akira TAGOH 2.04-1 +- New upstream release. + +* Tue Sep 30 2003 Akira TAGOH 2.03-1 +- New upstream release. +- converted Japanese nkf.1 to UTF-8. (#105762) +- nkf-1.92-glibc2290.diff: removed. + +* Thu Aug 7 2003 Elliot Lee 2.02-4 +- Fix unpackaged files + +* Fri Jun 27 2003 Akira TAGOH 2.02-3 +- had perl-NKF as separated package. + +* Wed Jun 04 2003 Elliot Lee +- rebuilt + +* Wed Apr 09 2003 Akira TAGOH 2.02-1 +- New upstream release. + +* Wed Jan 22 2003 Tim Powers +- rebuilt + +* Fri Jan 10 2003 Akira TAGOH 2.01-1 +- New upstream release. + it contains UTF-8 support. + +* Wed Nov 20 2002 Tim Powers +- rebbuild on all arches + +* Fri Jun 21 2002 Tim Powers +- automated rebuild + +* Wed Jun 19 2002 Akira TAGOH 1.92-10 +- fix the stripped binary. +- s/Copyright/License/ + +* Mon Jun 03 2002 Yukihiro Nakai +- Add output bug patch for glibc-2.2.90 (#65864) + +* Thu May 23 2002 Tim Powers +- automated rebuild + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Tue Sep 4 2001 SATO Satoru - 1.92-6 +- attached nkf.1jeuc(euc-jp) instead of nkf.1j(iso-2022-jp) (#53127) + +* Sun Jun 24 2001 Elliot Lee +- Bump release + rebuild. + +* Wed Feb 28 2001 SATO Satoru +- nkf.copyright attached +- use system-defined macros (%%*dir) + +* Tue Aug 29 2000 ISHIKAWA Mutsumi +- adopt FHS + +* Mon Aug 7 2000 ISHIKAWA Mutsumi +- japanese manpages moved ja_JP.eucJP -> ja +- modified to be able to build by normal user. + +* Tue Aug 01 2000 Yukihiro Nakai +- Update to 1.92 +- rebuild for 7.0J + +* Sat Mar 25 2000 Matt Wilson +- rebuilt for 6.2j +- support compressed man pages + +* Wed Mar 22 2000 Chris Ding +- ja_JP.ujis -> ja_JP.eucJP + +* Thu Oct 7 1999 Matt Wilson +- rebuilt against 6.1 + +* Sun May 30 1999 FURUSAWA,Kazuhisa +- 1st Release for i386 (glibc2.1). +- Original Packager: Kazuhiko Mori(COW) + +* Sun Jan 10 1999 Kazuhiko Mori(COW) +- just rebuilt for glibc TL. (release not changed.) + diff --git a/sources b/sources new file mode 100644 index 0000000..0bf476b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +dbce0a2131cd4e30f73cbfdcc57c06ec nkf-2.1.4.tar.gz diff --git a/tests/runtest.sh b/tests/runtest.sh new file mode 100644 index 0000000..f44c97e --- /dev/null +++ b/tests/runtest.sh @@ -0,0 +1,18 @@ +#! /bin/sh + +set -e + +q="テスト" +res=$(echo $q | nkf -W -e | nkf -w -E) +ret=1 + +if [ x$q = x$res ]; then + ret=0 + mes="PASS" +else + ret=1 + mes="FAIL" +fi + +echo $mes +exit $ret diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d4b7a91 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - nkf + tests: + - simple_test: + dir: . + run: "nkf --help" + - nkf_test: + dir: . + run: ./runtest.sh