<!DOCTYPE HTML PUBLIC "ISO/IEC 15445:2000//DTD HyperText Markup Language//EN">

<html lang="ja" dir="ltr">

<head>
	<meta http-equiv="content-type" content="text/html;charset=shift_jis">
	<meta name="author" content="加納 景">
	<meta name="robots" content="INDEX,FOLLOW">
	<link rev="made" href="mailto:%77%65%62%6D%61%73%74%65%72%40%70%6F%65%73%69%61%2E%6A%70">
	<link rel="start" href="../index.html">
	<link rel="index" href="./index.html">
	<link rel="prev" href="./200405.html">
	<link rel="next" href="./200407.html">
	<link rel="help" href="../about/index.html">
	<link rel="stylesheet" type="text/css" href="../css/main.css" media="screen,tv" title="elegant">
	<title>Other Voices(2004-06) -Poesia</title>
</head>

<body>
<ol id="NAVI">
	<li><a href="../index.html">Home</a></li>
	<li><a href="./index.html">バックナンバー</a></li>
	<li><a href="./200405.html">前月</a></li>
	<li id="POINT">今月</li>
	<li><a href="./200407.html">次月</a></li>
</ol>
<h1 lang="en">Other Voices(2004-06)</h1>
	<h2 id="DATE040605">2004-06-05</h2>
		<h3 id="DOC040605_01">フラットデザイン？</h3>
		<p>テキストエディタ風のデザインをCSSで作つてゐるうちにできた副産物。ユーザースタイルシートで使ひます。</p>
		<pre><code>*{
  text-indent: 0 !important;
  text-decoration: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  white-space: normal !important;
  color: WindowText !important;
  background: Window !important;
  font: normal normal normal medium/normal
    "ＭＳ Ｐゴシック",sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  position: static !important;
  float: none !important;
  clear: none !important;
  overflow: visible !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
}</code></pre>
		<p>「CSSなんてどうでもよい」といふ立場を採る人がゐるけれど、どのやうに読まれたいか、といふ制作者の意思を示すために重要であるはずだ。それが気にくはなければ、各自ユーザースタイルシートを適用すればよいだけの話。上記のやうなスタイルだと、ソースを見ない限り見出しやアンカーの区別がまるでつかない。スタイルなんていらない、といふ人はこれを適用してみればいい。私が「CSSは重要だ」といふ根拠はつまり、己の表現を如何にして他者に伝へうるか、といふ自意識をもつためだ。内容だけが重要なのだと言つて憚らない人は、アレな恰好をして就職活動に行き、落とされると「外面だけを見やがつて」云々と息巻くDQNと変らない。内面をみて欲しければ外面を変へる努力をすべきだ。</p>


	<h2 id="DATE040604">2004-06-04</h2>
		<h3 id="DOC040604_01" lang="en">Usability Guy</h3>
		<ul>
			<li><a href="http://useit.com/alertbox/20040510.html">Design Guidelines for Visualizing Links (Jakob Nielsen's Alertbox)</a></li>
		</ul>
		<p>ニールセン博士が述べてゐるやうに、テキストのアンカーには色をつけてアンダーラインを引くべきだが、問題はテキストだけではない。さう、画像である。</p>
		<p>我われは、a要素の内容が文字列ではなく、画像（img要素）であるのをよく見かける。この場合、大抵の<abbr title="User Agent" lang="en">UA</abbr>のデフォルトスタイルシートは、周りに青色のボーダーを設けてアンカーであることを示すが、制作者CSSを適用された場合、しばしばこれが無効化されてゐる。さうなると、ユーザは<q cite="http://useit.com/alertbox/20040510.html" title="Design Guidelines for Visualizing Links (Jakob Nielsen's Alertbox)" lang="en">guess or scrub</q>することになる。一体なぜ、文書制作者はわざわざそんな意地悪をするのだらうか。</p>
		<p>その答へは、およそ見栄えに集約されることは言を俟たないだらう。みんな、太い青色のボーダーが、色彩や配置に気を配つた画像の周りに取り囲むことを望まないのだらう。私もそれには同意する。しかし、アンカーであるはずのそれを、さうでないやうに見せかけることには、見栄え以上のメリットが存在しない。あるいは、メリットとデメリットとを比較した場合、デメリットの方が上回ることのはうが多くある。なぜなら、WWWとはテキストとテキストのハイパーリンクが重要であるからだ。</p>
		<p>では、どうすればある画像をアンカーであるやうに見せることができるだらうか。それには様々な解が存在する。たとへばボーダーを設けるにしても、画像の辺全てに適用するのではなく、或る一辺だけにしてもよいかもしれない。この際気を付けるべきことは、それが見てすぐにアンカーと分かることだ。テキストのアンカーと同一の色を用ゐるか、デフォルトの色をそのまま指定しないと、それとは気づかないだらう。</p>
		<p>だが、いづれにしろ、困難極まるものだ。これは私の感想だが、あらゆるCSSの記述のなかで、これほど難しいものはない。配色とバランスは、画像の内容によつて変り、指定した色が合はないことは多々ある。結局、一番良いのはデフォルトスタイルのままか、或はアンカーの内容に画像なんて使はないこと、といふことになる。画像は、テキストで伝へられない、伝へづらいものを表現するときに使ふのが一番なのだ。サイトコンテンツに画像を並べ、あらうことかalt属性も記述してゐないなんて、論外なのである。</p>





	<h2 id="DATE040602">2004-06-02</h2>
			<h3 id="DOC040602_01">開店休業云々</h3>
			<p>こちらはあまり更新できません。<a href="http://d.hatena.ne.jp/kanou/">undercooled</a>は随時更新中。</p>
			<h3 id="DOC040602_02">お知らせ2</h3>
			<p>ただ今過去ログの整理中で、index.cgiの方では更新が拾へません。アンテナやリンクをしてゐる方は注意してください。また、これを機に「猫想い」の使用を中止し、一時的に手動更新に切り替へます。「猫想い」には約一年間お世話になつて、愛着をもつてゐましたが。</p>
			<p>で、はてなの方とこちらの区別ですが、あちらは完璧に日常雑記のみにしました。HTMLやCSSなども表現の範疇ですので、こちらにします。「仕様書を読み解く」の企画は、はてなで第一草稿を、第二草稿をこちらにアップします。</p>
			<h3 id="DOC040602_03" lang="en">HTML 4.01 Specification</h3>
				<h4 lang="en">Abstract</h4>
				<ul>
					<li><a href="http://www.w3.org/TR/html401/">HTML 4.01 Specification</a>
					<ul>
						<li><a href="http://www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/cover.html">HTML 4.01 Specification (ja)</a></li>
					</ul>
					</li>
				</ul>
				<blockquote cite="http://www.w3.org/TR/html401/" title="HTML 4.01 Specification&quot;Abstract&quot;" lang="en">
					<p>This specification defines the HyperText Markup Language (HTML), the publishing language of the World Wide Web. This specification defines HTML 4.01, which is a subversion of HTML 4. In addition to the text, multimedia, and hyperlink features of the previous versions of HTML (HTML 3.2 <a class="informref" href="http://www.w3.org/TR/html401/references.html#ref-HTML32">[HTML32]</a> and HTML 2.0 <a class="informref" href="http://www.w3.org/TR/html401/references.html#ref-RFC1866">[RFC1866]</a>), HTML 4 supports more multimedia options, scripting languages, style sheets, better printing facilities, and documents that are more accessible to users with disabilities. HTML 4 also takes great strides towards the internationalization of documents, with the goal of making the Web truly World Wide.</p>
					<p>HTML 4 is an SGML application conforming to International Standard ISO 8879 -- Standard Generalized Markup Language <a class="normref" href="http://www.w3.org/TR/html401/references.html#ref-ISO8879">[ISO8879]</a>.</p>
				</blockquote>
				<p>日本語訳が必要な場合は、<a href="http://www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/cover.html">邦訳</a>を参照して欲しい。</p>
				<p>上記の文書はHTML 4.01を読み解く上で大変重要である。なぜといつて、HTML 4.01の立場や概要、思想や特徴が、この一節に集約されてゐるからだ。この文書を念頭におくことによつて、HTML 4.01が目指すもののアウトラインを捉へることができる。</p>
				<p>ここで述べられてゐるもつとも重要な事柄を要約すれば、以下のやうになる。</p>
				<ol>
					<li>テキスト、マルチメディア、ハイパーリンク機構は以前のHTMLの版と同様。</li>
					<li>上記に加へ、HTML 4ではマルチメディアの幅を広げた。</li>
					<li>それはスクリプト言語やスタイルシート、優れた印刷機能、ハンディキャップを持つ人々からの高いアクセス性をサポートすること。</li>
				</ol>
					<p>つまり、俗に不思議マークアップと呼ばれるマーク付けが、何故否定されるのかといふと、「ハンディキャップを持つ人々からの高いアクセス性をサポートすること」を拒否或は無視してゐるからである。逆に言へば、この思想に異議のない者は、HTML 4.01で文書を記述すれば良いといふことになる。</p>
			<h3 id="DOC040602_04" lang="en">1.1 How the specification is organized</h3>
			<ul>
				<li><a href="http://www.w3.org/TR/html401/about.html#h-1.1">About the HTML 4 Specification&quot;1.1 How the specification is organized&quot;</a>
				<ul>
					<li><a href="http://www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/about.html#h-1.1">About the HTML 4 Specification (ja)「1.1 本仕様書の構成」</a></li>
				</ul>
				</li>
			</ul>
			<blockquote cite="http://www.w3.org/TR/html401/about.html#h-1.1" title="About the HTML 4 Specification&quot;1.1 How the specification is organized&quot;" lang="en">
				<p>This specification is divided into the following sections:</p>
				<dl>
					<dt><strong>Sections 2 and 3: Introduction to HTML 4</strong></dt>
					<dd>The introduction describes HTML's place in the scheme of the World Wide Web, provides a brief history of the development of HTML, highlights what can be done with HTML 4, and provides some HTML authoring tips.
					<p>The brief SGML tutorial gives readers some understanding of HTML's relationship to SGML and gives summary information on how to read the HTML Document Type Definition (DTD).</p>
					</dd>
					<dt><strong>Sections 4 - 24: HTML 4 reference manual</strong></dt>
					<dd>The bulk of the reference manual consists of the HTML language reference, which defines all elements and attributes of the language. 
					<p>This document has been organized by topic rather than by the grammar of HTML. Topics are grouped into three categories: structure, presentation, and interactivity. Although it is not easy to divide HTML constructs perfectly into these three categories, the model reflects the HTML Working Group's experience that separating a document's structure from its presentation produces more effective and maintainable documents.</p>
					<p>The language reference consists of the following information:</p>
				<ul>
					<li>What <a href="http://www.w3.org/TR/html401/charset.html#doc-char-set">characters</a> may appear in an HTML document.</li>
					<li>Basic <a href="http://www.w3.org/TR/html401/types.html">data types</a> of an HTML document.</li>
			<li>Elements that govern the structure of an HTML document, including <a href="http://www.w3.org/TR/html401/struct/text.html">text</a>, <a href="http://www.w3.org/TR/html401/struct/lists.html">lists</a>, <a href="http://www.w3.org/TR/html401/struct/tables.html">tables</a>, <a href="http://www.w3.org/TR/html401/struct/links.html">links</a>, and <a href="http://www.w3.org/TR/html401/struct/objects.html">included objects, images, and applets</a>.</li>
					<li>Elements that govern the presentation of an HTML document, including <a href="http://www.w3.org/TR/html401/present/styles.html">style sheets</a>, <a href="http://www.w3.org/TR/html401/present/graphics.html">fonts, colors, rules, and other visual presentation</a>, and <a href="http://www.w3.org/TR/html401/present/frames.html">frames for multi-windowed presentations</a>.</li>
					<li>Elements that govern interactivity with an HTML document, including <a href="http://www.w3.org/TR/html401/interact/forms.html">forms for user input</a> and <a href="http://www.w3.org/TR/html401/interact/scripts.html">scripts for active documents</a>.</li>
					<li>The SGML formal definition of HTML:
					<ul>
					<li>The <a href="http://www.w3.org/TR/html401/sgml/sgmldecl.html">SGML declaration of HTML</a>.</li>
					<li>Three DTDs: <a href="./sgml/dtd.html">strict</a>, <a href="http://www.w3.org/TR/html401/sgml/loosedtd.html">transitional</a>, and <a href="http://www.w3.org/TR/html401/sgml/framesetdtd.html">frameset</a>.</li>
					<li>The <a href="http://www.w3.org/TR/html401/sgml/entities.html">list of character references</a>.</li>
					</ul>
					</li>
				</ul>
				</dd>
			</dl>
			</blockquote>
			<p><q cite="http://www.w3.org/TR/html401/about.html#h-1.1" title="About the HTML 4 Specification&quot;1.1 How the specification is organized&quot;" lang="en">Sections 2 and 3: Introduction to HTML 4</q>では、</p>
			<ol>
				<li>World Wide WebにおけるHTMLの役割を記す。</li>
				<li>HTML開発の略歴を紹介する。
				<ol>
					<li>HTML 4 で達成できるようになった主要なポイントを示す。</li>
					<li>HTML著述のヒントをいくつか紹介する。</li>
				</ol>
				</li>
				<li>HTMLとSGMLとの関係を理解してもら。
				<ol>
					<li>HTML文書型定義(DTD)をどのように読めばいいかについての要点を伝える</li>
				</ol>
				</li>
			</ol>
			<p>と述べられている。以上の項目は、仕様書を読み解くにあたって、頭に入れながら読むと良い。目的を意識しながら読むことにより、論理の筋道が明確に見え、理解しやすくなるだろう。</p>
			<p>次に、<q cite="http://www.w3.org/TR/html401/about.html#h-1.1" title="About the HTML 4 Specification&quot;1.1 How the specification is organized&quot;" lang="en">Sections 4 - 24: HTML 4 reference manual</q>では、本仕様書がHTMLのリファレンスであり、HTMLの要素及び属性すべてがここで定義されていると述べられ、技術的な位置付を定義している。しかし、文法よりもトピック（テーマ）を重視して構成しているという。それらは、以下の三つに大別される。</p>
			<ul>
				<li>構造</li>
				<li>表示</li>
				<li>対話性</li>
			</ul>
			<p>この三つに分類するのは、HTML作業部会の経験を反映したもので、その利点は<em>より有効的で、保持性が良い文書になる</em>というものである。さらっと書いているが、ここは重要である。「ハンディキャップを持つ人々からの高いアクセス性をサポートする」ことがHTML 4の思想であるとこの前書いたが、それにプラスして、文書の訴求力や保守性を高める効果が期待できる特徴も兼ね備えているということだからだ。もし、なぜHTML 4で文書を記述しているのかと問われれば、これらを答えればよいのである。そして、それに答えられないようならば、あなたの文書は裏打ちされていない信用ならぬものとされるだろう。思索と行動は密接不可分で、行動は常に深い思索の先に表われるべきだ。閑話休題。</p>
			<p>リストは、上述した三つのカテゴリーによって分類されている。上二つは前提となる基本データ形式を定義したもの。次（上から三つ目）は文書の「構造」を定義する要素、四つ目は文書の「表示」を定義する要素、五つ目は文書の「対話性（インタラクティブ性）」を定義する要素、と具体的な紹介であるが、これは後に触れることになるので、今は無視してよい。そして最後のリストは、SGMLによるHTMLの定義だが、SGMLが読めなければ無理であるし、これも後で詳細な解説があるので飛ばす。</p>
			<h3 id="DOC040602_04A">1.2 Document conventions</h3>
			<ul>
				<li><a href="http://www.w3.org/TR/html4/about.html#h-1.2">About the HTML 4 Specification&quot;1.2 Document conventions&quot;</a>
				<ul>
					<li><a href="http://www.asahi-net.or.jp/~sd5a-ucd/rec-html401j/about.html#h-1.2">About the HTML 4 Specification (ja)「1.2 仕様の記述法」</a></li>
				</ul>
				</li>
			</ul>
			<blockquote cite="http://www.w3.org/TR/html4/about.html#h-1.2" title="About the HTML 4 Specification&quot;1.2 Document conventions&quot;" lang="en">
				<p>This document has been written with two types of readers in mind: authors and implementors. We hope the specification will provide authors with the tools they need to write efficient, attractive, and accessible documents, without over-exposing them to HTML's implementation details. Implementors, however, should find all they need to build conforming user agents.</p>
				<p>The specification may be approached in several ways:</p>
				<ul>
					<li><strong>Read from beginning to end.</strong> The specification begins with a general presentation of HTML and becomes more and more technical and specific towards the end.</li>
					<li><strong>Quick access to information.</strong> In order to get information about syntax and semantics as quickly as possible, the online version of the specification includes the following features: 
						<ol>
						<li>Every reference to an element or attribute is linked to its definition in the specification. Each element or attribute is defined in only one
			location.</li>
						<li>Every page includes links to the indexes, so you never are more than two links away from finding the definition of an <a href="http://www.w3.org/TR/html4/index/elements.html">element</a> or <a href="http://www.w3.org/TR/html4/index/attributes.html">attribute</a>.</li>
						<li>The front pages of each section of the language reference manual extend the initial table of contents with more detail about that section.</li>
						</ol></li>
				</ul>
			</blockquote>
			<p>前段は仕様書の想定する読者を述べているだけ。あとのリストは仕様書の利用方法を述べている。要するに、仕様書を通読するにしても、分かりやすいように、最初は用語の解説を、後になると技術的な内容になるように書かれてい、通読せずに必要な情報を得るだけという読み方でも、素早くアクセスできるようにしている、ということである。本稿は通読を目的としているため、リンクをクリックすることはあまりしなくてよい。目的が分散されれば余計分かりにくくなる。</p>
				<h4 lang="en">1.2.1 Elements and attributes</h4>
				<blockquote cite="http://www.w3.org/TR/html4/about.html#h-1.2.1" title="About the HTML 4 Specification&quot;1.2.1 Elements and attributes&quot;">
					<p>Element names are written in uppercase letters (e.g., BODY). Attribute names are written in lowercase letters (e.g., lang, onsubmit). Recall that in HTML, element and attribute names are case-insensitive; the convention is meant to encourage readability.</p>
					<p>Element and attribute names in this document have been marked up and may be rendered specially by some user agents.</p>
					<p>Each attribute definition specifies the type of its value. If the type
			allows a small set of possible values, the definition lists the set of values, separated by a bar (|).</p>
					<p>After the type information, each attribute definition indicates the
			case-sensitivity of its values, between square brackets ("[]"). See the section on <a href="http://www.w3.org/TR/html4/types.html#case">case information</a> for details.</p>
				</blockquote>
				<p>仕様書の記述の仕方を述べている。これは仕様書にできるだけはやく馴染むために、ぜひ覚えておこう。</p>
				<ol>
					<li>要素名は大文字で記す</li>
					<li>属性名は小文字で記す</li>
					<li>属性のとる値が数種類あり、列挙する場合、縦線(|)を用いる</li>
					<li>値が大文字と小文字で違いがあるかを角大括弧([と])で囲って示す</li>
				</ol>
				<p>一つ目と二つ目は分かってもらえると思う。ただし、HTMLにおける要素名と属性名には<em>大文字と小文字の区別はない</em>。これは便宜上分かりやすくするための処置というだけだ。</p>
				<p>分かりにくいのは三つ目と四つ目だろう。これは実例を見てもらった方が話は早い。</p>
				<blockquote>
					<p><em>Attribute definitions</em></p>
					<dl>
						<dt><samp class="adef">dir</samp> = <samp>LTR</samp> | <samp>RTL</samp> <a href="http://www.w3.org/TR/html4/types.html#case-insensitive">[CI]</a></dt>
						<dd>This attribute specifies the base direction of directionally neutral text (i.e., text that doesn't have inherent directionality as defined in <a class="normref" href="http://www.w3.org/TR/html4/references.html#ref-UNICODE">[UNICODE]</a>) in an element's content and attribute values. It also specifies the <a href="http://www.w3.org/TR/html4/struct/tables.html#table-directionality">directionality of tables</a>.Possible values: 
							<ul>
								<li><samp>LTR</samp>: Left-to-right text or table.</li>
								<li><samp>RTL</samp>: Right-to-left text or table.</li>
							</ul>
						</dd>
					</dl>
				</blockquote>
				<p>これはdir属性の定義だが、縦線(|)で<samp>LTR</samp>と<samp>RTL</samp>とを区切っている。つまり、dir属性がとる値は<samp>LTR</samp>と<samp>RTL</samp>二つあるという意味である。</p>
				<p>そして次に、角大括弧([と])の部分には<a href="http://www.w3.org/TR/html4/types.html#case-insensitive">[CI]</a>と書かれている。リンク先には、CIについての定義が書かれていて、CIは小文字と大文字の区別をつけない、と解説している。つまり、<samp>LTR</samp>にしろ<samp>RTL</samp>にしろ、ltr,rtlでもよく、LTR,RTLでもよいという意味だ。</p>
				<p>以下1.2.2と1.3の項目があるが、1.2.2は推奨しない例と不正な例は特別なレンダリングが施されるようにしているというだけだし、1.3は仕様書のドラフトに参加した人々への謝辞だから、読まなくても問題ない。</p>
	<h2>この文書について</h2>
	<dl>
		<dt>初版</dt>
		<dd>2004-06-02</dd>
		<dt>最終更新</dt>
		<dd>2004-06-04</dd>
		<dt>著者</dt>
		<dd><a href="mailto:%77%65%62%6D%61%73%74%65%72%40%70%6F%65%73%69%61%2E%6A%70">加納　景</a></dd>
	</dl>
</body>

</html>