<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE sect1 PUBLIC "//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<sect1>
  <title>はじめに<!-- Introduction --></title>
  <para>この文書は Emacs で SGML マークアップやその派生(例えば、XML や HTML)を編集することに焦点をあてています。
  もし Emacs を使ったことがなかったり、何らかの理由で嫌っていたとしても<footnote>
    <para>訳者も Emacs はその巨大さゆえにあまり好きではありませんし、この訳自体も vim で編集していますが、
    一般には SGML/XML 文書は Emacs を使った方が圧倒的に楽であり、生産性が高いと思います。</para>
    </footnote>、私もそうでしたから ;-) 心配することはありません。
  私も常々こんな複雑であまり親しみやすくはないものを何で皆好きになれるのか不思議に思っていました。
  けれども、DocBook を使って書きはじめるとすぐに、小綺麗でカラフルなエディタでは役不足で
  よりずっと洗練されたツールが必要だということがわかりました。最初ほとんどの作業をお気に入りのエディタの
  一つの Nedit で行っていましたが、私の考えていた完璧な構造化エディタとしてあるべき姿
  - 自動字下げ、段落を整理しておく機能、[タグを除いた]語句データのみの綴り検査機能、そして
  もっとも重要な、文脈に沿った、任意の与えられた DTD に対するリアルタイムの妥当性検証機能 -
  にはほど遠いものに感じました。この希望する機能のリストは、満足するには非常に困難なものに
  きこえるかもしれませんが、Emacs が容易にこれを満し、そしてさらにそれ以上のことをやってのけることを
  私は発見しました。SGML 編集の作法に強い印象を受けることのなければ、Emacs の強力さと柔軟性を
  想像することすらなかったでしょう。事実構造化文書の編集を通じて Emacs [の魅力]を発見してからは、
  Emacs は私のアーミーナイフとなりましたし、この文書を読んだ後のあなたにとっても Emacs がそのような
  存在になることを望んでいます。
    <!-- This article focuses on the use of Emacs to edit SGML mark-up and
    it's derivatives like XML and HTML. If you have never used Emacs
    or dislike it for some reason, don't worry I did too.  I always
    wondered what people could see in such a complicated and
    unfriendly thing. Nevertheless, when I started writing in
    Docbook, I immediately realized I needed a tool far more
    sophisticated than a pretty and colorful text editor. In the
    beginning I did a lot of work in Nedit, one of my favorite
    editors, but it fell very short of what I thought should be the
    perfect structured editor: it had to be and editor that could
    automate indent-ion, that would keep the paragraphs neat, could
    check the spelling of the character data only, and most
    importantly that would have contextual and real-time validation
    against any given DTD. Now, this sounds like a very hard wish
    list to satisfy, but I discovered Emacs can easily do this and a
    lot, lot more. I could have never guessed the power and
    flexibility of Emacs if it did not impress me they way it did
    with SGML editing. In fact, after discovering Emacs through
    structured editing, it is becoming my swiss knife, and hopefully
    when you finish this article it will become yours too. -->
  </para>
  <para>私は最近 LyX で Docbook 編集を試してみて、こちらのアプローチも多くの将来性を持ち、
多くのユーザーの WYSIWYG から構造化文書の技法へ移行を容易にすることができると思いました。
しかしそれでもなお、LyX は Emacs + PSGML のようなツールを使うことで得られる自由、強力さ、
柔軟性を与えてくれませんし、これは特にあなたにプログラミングのバックグラウンドがあるなら
余計そうです。
    <!-- I recently tried LyX with Docbook and I think that this approach
    also has a lot of future and facilitates the transition from
    WYSIWYG to the structured way of thinking for most
    users. Nevertheless, it will never give you the liberty, the
    power, and flexibility of using a tool like Emacs + PSGML,
    specially if you have a programming background. -->
  </para>
  <para>この文書は SGML、Docbook、Emacs の入門を意図したものではありません。
そしてこの文書を通してそれらの考え方にまで少し展開してみますが、主な焦点は
Emacs の PSGML メジャーモードと SGML および XML 文書を編集する際に出くわす
であろうもっとも重要なタスクに当てていきたいと思います。すなわちこれは
自己従属的な入門であり、前述のトピックについてのより重要な知識なしで
はじめるのに十分な情報を提供します。しかし、より深く知ろうと十分刺激する
ようなものとなることを望んでいるので、いくつかの他の文書や本へのリンクや参照を
最後に載せておきます。
    <!-- Regarding the scope of the article, it is not intended as a
    guide for SGML, Docbook, or even Emacs. And although I expand a
    little on these concepts throughout the document, the main focus
    is tried to be kept on the PSGML major mode of Emacs and the
    most important tasks you will be encountering when editing SGML
    and XML documents. It is meant as a self contained startup guide
    so the information provided here should be enough to get you
    started without any prior knowledge on the mentioned topics. I
    do hope however, to stimulate you enough to investigate further,
    so I included some links and references to other articles or
    books towards the end. -->
  </para>
  <para>また Docbook、SGML そして XML は急速に変化していっていて、多くのトレンドがあります。
  Docbook の現状と未来について説明している Eric Raymond の非常に優れた文書を読むことをお勧めします
  (リンクを入れておきました)。
  また、この文書が より新しいトレンドである XML ではなく SGML Docbook に焦点を当てていることにも注意して下さい。
  いずれにせよ、この文書で学んだことは本質的には同じである XML Docbook にもおそらく応用できるでしょう。
  私が理解したところでは PSGML のメジャーモードは SGML と XML の DTD(XML の世界では 
  <emphasis>schema</emphasis>と呼ばれています)を解析できます。
  従ってはじめに述べたようにこの文書で示されていることは SGML -&gt; XML Docbook へ移行しても適用できるはずです。
    <!-- Remember also, that Docbook, SGML and XML are moving at a quick
    pace and there are many tendencies. I recommend you read Eric
    Raymond's excellent article on Docbook which will explain where
    Docbook is at the moment and where it is going (I included the
    link). I would also like to point out that this document is
    focused on SGML Docbook and not XML Docbook, which seems to be
    the new tendency. In any case, everything you learn in this
    article can probably be applied to XML Docbook editing which in
    essence is the same thing. From what I understand the major mode
    PSGML is able to parse SGML and XML DTDs (or
    <emphasis>schemas</emphasis> as they are called in the XML
    world), so as I stated earlier, everything shown in this article
    should apply if and when the SGML->XML Docbook move is made. -->
  </para>
</sect1>

<!-- vim: sw=2 sts=2 ai si sm :
-->

