[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:10302] Bug#44514: sgml-tools: can not convert Japanese characters with sgml2txt



Package: sgml-tools
Version: 1.0.9-1.3
Severity: important

I can not convert linuxdoc dtd sgml file in EUC-JP coded Japanese text
using sgml2txt.

Using the patch distributed from 
   http://www.linux.or.jp/JF/workshop/archives/sgml-tools-1.0.9j.diff.gz
"sgml2txt" command accept "-l ja -c nippon" options for sgml file written
in EUC-JP coded Japanese text.

I attach the gzipped + uuencoded diff file to apply for your sgml-tools_1.0.9-1.3
in this mail.

In Japan, JF ("Japanese FAQ") project have been working to collect documents
related Linux written in Japanese. They do translation of LDP documents, 
and to match their needs, they developped this patch. The authors of this patch
tried to ask the upstream to merge this patch into original sgml-tools, but
they has been ignored (at least, they feel so).

The authors of this patch wish to distribute and merge their patch
under the upstream license.

(I am also a member of JF project, and I make assure them about this directly.)

In CHANGES.109j in this patch, the modifications are documented briefly:

  The change log for sgml-tools-1.06j.
  1. add <trans> and <tdate> tag to dtd. (ikko-)
     <trans> is translater's parson name.
     <tdate> is translation date, time and some infomations.
  2. add @NKF@ to configure and Makefile.in etc. (ikko-)
  3. add ja lang and nippon charset. (ikko-)
  4. sgml2html and sgml2txt for japanese support with linuxdoc.dtd etc. (ikko-)
  5. add printtrans and printtdate to groff/mapping. (ikko-)
     printtrans is translater's parson name in text format.
     printtdate is translation date and some information in text format.
  6. <TOC> will works good with <tt> tags in <sect> tags ! (ikko-)
  
  Kazuyuki Okamoto <ikko-@xxxxxxxxxxxxxxxxx> Mon Apr  23 21:28:14 JST 1998
  
  The change log for sgml-tools-1.09j.
  1. apply Japanese patch to sgml-tools-1.09 
  2. improve filter mode (fmt_txt).
  3. remove <label> id in table of contents (fmt_txt).
  
  Tetsu ONO <ono@xxxxxxxxxxxxxxxxxxxx> Tue Nov 17 19:51:58 JST 1998

"nkf" is merged into Debian as Debian package for potato

   (Filename: dists/unstable/main/binary-i386/text/nkf_1.7-3.deb)

so you can add "Suggests: nkf" in your control file, I suppose.

I think it may be problematic since this patch "adds <trans> and <tdate> 
tag to dtd", and "add printtrans and printtdate to groff/mapping", 
if sgml2txt is used for sgml files which does not have these optional tags
(<trans> and <tdate>) then it shows the error messages for example:

  <standard input>:84: warning: `printtrans' not defined
  <standard input>:86: warning: `printtdate' not defined

These messages can be ignored, and I think they should not be shown, 
but currently I have not trace the code to find the point to disable
these useless messages.

Anyway, this patch is useful for us who needs sgml-tools (v1) to
translate LDP documents. So please merge this into your sgml-tools package.
Thanks.

-- System Information
Debian Release: potato
Kernel Version: Linux yadon 2.2.9 #3 Thu Aug 26 21:48:46 JST 1999 i586 unknown

Versions of the packages sgml-tools depends on:
ii  gawk            3.0.4-1        GNU awk, a pattern scanning and processing l
ii  libc6           2.1.2-0pre12   GNU C Library: Shared libraries and timezone
ii  sgml-base       1.01           utilities to maintain the SGML catalog file
ii  sgml-data       0.19           common SGML DTDs and entities
ii  sp              1.3.3-1.2.1-10 James Clark's SGML parsing tools
ii  perl-5.005-base 5.005.03-3     The Pathologically Eclectic Rubbish Lister
        ^^^ (Provides virtual package perl5)
ii  perl-5.005-base 5.005.03-3     The Pathologically Eclectic Rubbish Lister
        ^^^ (Provides virtual package perl)

  === ===
begin 664 diff.sgml-tools-1.0.9+jf_patch.gz
M'XL("-73U#<``V1I9F8N<V=M;"UT;V]L<RTQ+C`N.2MJ9E]P871C:`"U.\MV
MVTAVVXA?<0U1%FF2($%)E$G):LJR;*M;EGTL=<_"[%9#9)&$!`)H%*B'&<Z_
MS#DS^RRSF$WVR:QS<K*8)+^11>Z]!8``7Z)\.K)$HNH^JNZS;A7*':O;A9(_
M/`-=+[N^U2O+WL`N!:YKRY*A5_1Z^>C]X=F[XW/=J-2O05\.SY1*I=4XK5WT
MA_"]Z0`84*DW*A7\!:.^6\D4"H7'AEF[&`HX%Q[`+AB[C9W=1K6*Q/5ZIMF$
M4J58@8)1K!K0;&8*%WT![;[I]`38;@^ZK@]IWK5K/5,P=#`['=@/?-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