[fedora-ja-list] [Bug 143323] set charset UTF-8 or other charset according to user's locale to html generating by xmlto
Tadashi Jokagi
ml @ elf.no-ip.org
2004年 12月 23日 (木) 13:39:46 UTC
上鍵です.こんにちは.
確かに FC3 にて解決していました.
#fedora-docss を試したの FC1 だったし(苦笑
$ cat test.xml
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" >
<article id="test_docbook" lang="ja">
<articleinfo>
<title>てすとたいとる</title>
<copyright>
<year>2004</year>
<holder>てすと</holder>
<holder>著者</holder>
</copyright>
<authorgroup>
<author>
<surname>なまえ</surname>
<firstname>みょうじ</firstname>
</author>
</authorgroup>
</articleinfo>
<section id="some-section">
<title>たいとる</title>
<indexterm>
<primary>いんでっくす</primary>
</indexterm>
<para>
本文本文本文本文本文本文本文
</para>
</section>
</article>
$ LANG=ja_JP.UTF-8 xmlto html -o html test.xml # 一応 LANG 設定
Writing index.html for article(test_docbook)
cat html/index.html
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>てすとたいとる</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="てすとたいとる"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">てすとたいとる</th></tr></table><hr></div><div class="article" lang="ja"><div class="titlepage"><div><div><h1 class="title"><a name="test_docbook"></a>てすとたいとる</h1></div><div><div class="authorgroup"><div class="author"><h3 class="author"><span class="surname">なまえ</span> <span class="firstname">みょうじ</span> [FAMILY Given]</h3></div></div></div><div><p class="copyright">製作著作 c 2004 てすと, 著者</p></div></div><div></div><hr></div><div class="toc"><p><b>目次</b></p><dl><dt><span class!
="section"><a href="index.html#some-section">たいとる</a></span></dt></dl></div><div class="section" lang="ja"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="some-section"></a>たいとる</h2></div></div><div></div></div><a class="indexterm" name="id2829530"></a><p>
本文本文本文本文本文本文本文
</p></div></div><div class="navfooter"><hr></div></body></html>
--
----.----1----.----2----.----3----.----4----.----5----.----6----.----7
Tadashi Jokagi/Setagaya city mailto:elf @ elf.no-ip.org
Fedora JP Project http://fedora.jp/
Fedora Project http://fedora.redhat.com/
Fedora and Red Hat are registered trademarks of Red Hat Inc.
Fedora-ja-list メーリングリストの案内