Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Apr 1998 14:23:45 +0900
From:      Jun Kuriyama <kuriyama@opt.phys.waseda.ac.jp>
To:        Doc Team <freebsd-doc@FreeBSD.ORG>
Subject:   Status of DocBook migration (Japanese version)
Message-ID:  <3525C3E1.6E2CE6A8@opt.phys.waseda.ac.jp>

next in thread | raw e-mail | index | archive | help
I am testing nik's steps in local hard disk until consensus in doc-jp
is given.  Results of some steps are preserved to commit repository
later.

1. Preparation

  % mkdir ~/nik; cd nik
  % mkdir ja en
  % cvs -d /home/ncvs co -D '04/01/98' -d ja/handbook doc/ja/handbook
  % cvs -d /home/ncvs co -d en/handbook doc/en/handbook

2. Converting
  Modify nik's 2docbook.sh to fit my directory structure and rename it
to 2docbook-ja.sh.

  % sh 2docbook-ja.sh

  I got warning message
"nsgmls:/usr/local/share/sgml/linuxdoc/catalog:8:0:W: DTDDECL catalog
entries are not supported", but ignore it.

3. Reindent by XEmacs
  XEmacs with Mule feature cannot auto-recognize Japanese character code
set (why?). So I use "C-u C-x C-f handbook-db.sgml<CR>euc-jp<CR>" to
load file.  And eval nik's elisp hook and function, then "M-x
sgml-indent-buffer".

4. Refill by XEmacs
  Hmmm.  Japanese text is difficult to auto-refill by computer because
Japanese text doesn't use space separeted word breaking.  So elegant
auto-refilling needs word dictionary of Japanese.
  An earthy way I choiced is using wet-ware in our brain :-)  So this
step is postponed until refilling is necessary.

5. Automatic change for removing <para></para>
  Generated source includes "<para> *</para>" in some places.  So I
modify nik's para.pl using "<para> *</para>" instead of "<para></para>".

  % ./para.pl ja/handbook/handbook-db.sgml > handbook.sgml

  But this includes undesired phrase like "</para>\n *\n<para>".  I will
remove these phrases later (by hand).

6. <filename>...</filename>
  I have changed "handbook.sgml" to follow nik's handbook.sgml (rev
1.5).  So I think Japanese Handbook is sync'ed with English version now
:-)


-- 
Jun Kuriyama // kuriyama@opt.phys.waseda.ac.jp

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3525C3E1.6E2CE6A8>