/
167.txt
307 lines (214 loc) · 16.2 KB
/
167.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
[1] [DFN[[CODE(HTMLe)[dfn]] [[要素型]]]]は、それがその囲まれた用語の[DFN[定義実現値]]である
([Q[this is the defining instance of the encoded term]<IW:HTML4:"struct/text.html#edef-DFN">]) ことを示します。
[[HTML4]] では <IW:HTML4:"struct/text.html#edef-DFN"> を参照。
[2]
:[[開始タグ]]:必須
:[[終了タグ]]:必須
:[[内容モデル]]:[CODE(SGML)[(%[[inline]];)*]]
:[[属性]]:
,[CODE(HTMLa)[[[class]]]] , , ,[[級]] ,[HTML4] %[[coreattr]]
,[CODE(HTMLa)[[[dir]]]] , , ,[[書字方向]] ,[HTML4] %[[i18n]]
,[CODE(HTMLa)[[[id]]]] , , ,一意識別子 ,[HTML4] %coreattr
,[CODE(HTMLa)[[[lang]]]] , , ,[[自然言語]] ,[HTML4] %i18n
,[CODE(HTMLa)[[[xml]]:lang]] , , ,自然言語 ,[XHTML1]
,[CODE(HTMLa)[[[onclick]]]] , , , ,[HTML4] %[[events]]
,[CODE(HTMLa)[[[ondblclick]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onkeydown]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onkeypress]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onkeyup]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onmousedown]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onmouseout]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onmouseover]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[onmouseup]]]] , , , ,[HTML4] %events
,[CODE(HTMLa)[[[style]]]] , , ,スタイル情報 ,[HTML4] %coreattr
,[CODE(HTMLa)[[[title]]]] , , ,注釈的題 ,[HTML4] %coreattr
- [7] [[Strictスレ]]で書かれていましたが、 <IW:Google:"dfn 例文"> でなるほど色々面白いものがでてきます。
- [9] ''DFN'' <http://www.microsoft.com/japan/developer/library/jpisdk/dhtml/references/objects/DFN.htm> 曰く[Q[このエレメントはブロックエレメントである]]。
正気?
- [10] [[ClassicMozilla]] は未対応。 [[Gecko]] はもちろん対応。
- [11] [[WinIE]] は 2+ で対応。
[18] ''Dictionaries'' <http://www.w3.org/MarkUp/future/papers/rothenburg-19980412.html>
は、 [CODE(HTMLa)[[[cite]]]] 属性を導入して説明にリンクすることを提案しています。
[22] どんなときに [CODE(HTMLe)[dfn]]
でマーク付けすればよいのか、噛み砕いて説明するとしたら?
[Q[よく、教科書などで初出の重要単語が太字になっているでしょ? そんな感じの語句を [CODE(HTMLe)[dfn]] でマーク付けすればいいのですよ。]]
てなのはいかが?
一部の [[Stricter]] には、
[[表現と構造の分離]]の原則に反するよくない説明だと批判されるかもしれませんが、構造・意味はなんらかの形で表現に現れているはずです。
だから表現を手がかりに構造・意味を探るという手法は悪くないでしょう。
[WEAK[(批判されるべきは、表現に気を取られて構造・意味を見失うことです。)]]
** 応用
[3] HTML 4 仕様書は特に典型的[[レンダリング]]例を挙げていません。
実際の[[視覚]] UA は[[斜体]] ([[italic]]) で表されることがあります。
仮名漢字混じりの出版物 (特に教科書や専門書) を考えると、
[[太字]]で表示するのも適当でしょう。
[5] 用語の[[索引]]を作るときに、 [CODE(HTMLe)[dfn]] 要素を全部抜き出すのはいい考えだと思われます。
[17] ''man 1 "4 Aug 2000"'' <http://www.w3.org/Tools/HTML-XML-utils/man1/xref.html>
このプログラムを使うと、たとえば[SAMP(HTML)[なんたらかんたらを<dfn id="hoge">ほげ</dfn>といいます。どうたらこうたらなのです。そんなわけで、<em>ほげ</em>はこうたらどうたらとでも申しましょうか。]]
を[SAMP(HTML)[なんたらかんたらを<dfn id="hoge">ほげ</dfn>といいます。どうたらこうたらなのです。そんなわけで、<em><a href="#hoge">ほげ</a></em>はこうたらどうたらとでも申しましょうか。]]
にしてくれます。
[23]
よくある誤解
'''定義文?'''
よく、[CODE(HTMLe)@en[[[dfn]]]]は定義文を[[マーク付け]]するための[[要素型]]だと誤解されます。その目的の[[要素型]]は[[HTML]]にはありません。
'''定義された語?'''
定義された語を何から何まで[CODE(HTMLe)@en[[[dfn]]]]で[[マーク]]すると誤解されることがたまにありますが、普通[CODE(HTMLe)@en[[[dfn]]]]にするのは初出だけです。その用途には[[HTML 5]]の[CODE(HTMLe)@en[[[i]]]][[要素型]]が当たります。
([[名無しさん]] [sage])
[24]
'''定義との関連付け'''
折角被定義語が[[マーク付け]]できるのだから、定義文を[[マーク]]する方法と、両者を関連付ける方法があれば、例えば用語定義一覧を自動生成するとかの便利な使い方ができるのに、と考える人がよくいますが、[[HTML]]だけでは今のところ実現できません。
;;
実際にやるとなると、はじめから考えて[[文章]]を書かないと、定義文だけを抜き出しても意味が通じなくなったりして、あまりうまくいかなかったりもしますが。。。
[[W3C]]の[[XML]]関連の仕様書などでは、定義の部分が[CODE(char)['''[''']]と[CODE(char)[''']''']]で囲まれていたり[CODE(HTMLe)@en[[[span]]]]で[[マーク]]されていたりしますが、あれがちょうどこれですね。
** 参考文献
[15] ''Highlighting in HTML'' <http://www.w3.org/MarkUp/1995-archive/Highlighting.html#DFN.index>
> The defining instance of a term. Typically bold or bold italic.
用語の定義的実現値。典型的には太字または太字斜体 (イタリック)。
[20] ''Hypertext Markup Language - 2.0 - Footnotes'' <http://www.w3.org/MarkUp/html-spec/html-spec_foot.html#FOOT20>
> It is used to indicate the defining instance of a term, and it is typically rendered in italic or bold italic.
[21] [[HTML+]] ''Logical Emphasis'' <http://www.w3.org/MarkUp/HTMLPlus/htmlplus_18.html>
> defining instance of a term
[19] [[HTML3.0]] 原案 ''Information Type Elements'' <http://www.w3.org/MarkUp/html3/logical.html>
> The <DFN> element indicates the defining instance of a term.
[14] ''HTML 3.2 Reference Specification'' <http://www.w3.org/TR/REC-html32#phrase>
> defining instance of the enclosed term
囲まれた用語の定義的実現値
[12] ''W3C Journal - What's New in HTML 3.2'' <http://www.w3journal.com/5/s3.musciano.html#HEADING1-131>
抜粋すると:
> This tag defines the enclosed text to be the defining instance of a word or phrase. Browsers may choose to place such a term in italics or some other distinctive text. In additional, it might be useful for the browser to collect such terms and create a dynamic glossary, with hyperlinks, of all the terms defined in a document.
このタグは、囲まれた文を語または語句の定義的実現値として定義します。
ブラウザはその用語を斜体 (イタリック) その他の差別化した文にすることを選ぶかもしれません。
加えて、ブラウザがその用語を集めて、文書中で定義されたすべての用語のハイパーリンク付き動的用語集を作るのに有用かもしれません。
[13] [[HTMKL4]] <IW:HTML4:"struct/text.html#edef-DFN">:
> Indicates that this is the defining instance of the encoded term.
これが囲まれた用語の定義的実現値であることを示します。
[16] [[XHTML2.0]] [[WD]]
''- XHTML Inline Text Module'' <http://www.w3.org/TR/2003/WD-xhtml2-20030506/mod-inline-text.html#sec_9.4.>
> The dfn element contains the defining instance of the enclosed term.
dfn 要素は囲まれた用語の定義的実現値を含めます。
[25]
[[Ian Hickson]] @ [[Google]]の例の研究によれば、
[CODE(HTMLe)@en[[[dfn]]]]は[[Web]]全体のおよそ0.1%で使われており、
[CODE(HTMLe)@en[[[ins]]]], [CODE(HTMLe)@en[[[del]]]],
[CODE(HTMLe)@en[[[var]]]], [CODE(HTMLe)@en[[[samp]]]],
[CODE(HTMLe)@en[[[bdo]]]]などよりは上ですが、
[CODE(HTMLe)@en[[[blink]]]], [CODE(HTMLe)@en[[[bgsound]]]],
[CODE(HTMLe)@en[[[marquee]]]], [CODE(HTMLe)@en[[[spacer]]]]よりは下だそうです。
;; [CITE@en[Re: XHTML 2.0 - dfn : Content model and usability (PR#7832)]]
<http://www.w3.org/mid/Pine.LNX.4.62.0603242012320.315@dhalsim.dreamhost.com>
([[名無しさん]] [sage])
[26]
[CITE[A Beginner's Guide to HTML]] ([CODE[2003-08-15 22:48:58 +09:00]] 版) <http://ccat.sas.upenn.edu/jod/primer.html#CharFormat>
>
- Other (the following special tag currently does not display in NCSA Mosaic)
-- <dfn>text</dfn> displays a definition in italics
([[名無しさん]])
[27]
[[Ian Hickson]] によれば、2006年9月の時点で、
[CODE(HTMLe)@en[[[dfn]]]] ''より'' [CODE(HTMLe)@en[[[i]]]] が178倍、
[CODE(HTMLe)@en[[[em]]]] が 80倍多くの [[Web頁]]で使われています。
また、 [CODE(HTMLe)@en[[[dfn]]]] は [CODE(HTMLe)@en[[[ins]]]]、
[CODE(HTMLe)@en[[[del]]]]、[CODE(HTMLe)@en[[[var]]]]、
[CODE(HTMLe)@en[[[kbd]]]]、[CODE(HTMLe)@en[[[samp]]]]
''よりも''よく使われています。
ですが、 [CODE(HTMLe)@en[[[dfn]]]] ''よりも''
[CODE(HTMLe)@en[[[zeroboard]]]]、
[CODE(HTMLe)@en[[[st1:place]]]]、
[CODE(HTMLe)@en[[[noembed]]]]、
[CODE(HTMLe)@en[[[blink]]]]、
[CODE(HTMLe)@en[[[bgsound]]]]、
[CODE(HTMLe)@en[[[ilayer]]]]
の方がよく使われています。
;; [CITE[HTML5 IRC logs: freenode / #whatwg / 20070424]] ([CODE[2007-04-24 16:45:07 +09:00]] 版) <http://krijnhoetmer.nl/irc-logs/whatwg/20070424#l-58>
([[名無しさん]])
[28]
[CITE@en[RE: posted without comment...]] ([[John Foliot]] 著, [CODE[2007-07-27 05:26:15 +09:00]] 版) <http://lists.w3.org/Archives/Public/w3c-wai-ig/2007JulSep/0010.html>
>
[PRE(HTML bad example code)[
<li><dfn>Next in thread</dfn>: <a href="0011.html" title="Next message in this discussion thread">Joshue O Connor: "Comments on IRC log"</a></li>
<li><a name="replies" id="replies"></a><dfn>Reply</dfn>: <a href="0011.html" title="Message sent in reply to this message">Joshue O Connor: "Comments on IRC log"</a></li>
<li><dfn>Reply</dfn>: <a href="0012.html" title="Message sent in reply to this message">Charles McCathieNevile: "Re: posted without comment..."</a></li>
<li><dfn>Reply</dfn>: <a href="0017.html" title="Message sent in reply to this message">Lachlan Hunt: "Re: posted without comment..."</a></li>
]PRE]
こういうのを [CODE(HTMLe)@en[[[dfn]]]] にするのはすごく違和感があります。。。 [CODE(HTMLe)@en[[[b]]]] を
[CODE(HTMLe)@en[[[strong]]]] に置き換えるようなものでしょう。
[Q@en[Reply]] という[Q[定義語]]が2回定義されていますし。。。
([[名無しさん]])
[29]
[CITE@en[The Definition Title | The Elementary Standards]] ([[Sean Fraser]] 著, [CODE[2007-09-19 00:38:00 +09:00]] 版) <http://www.elementary-group-standards.com/html/the-definition-title.html>
([[名無しさん]])
[30]
[CITE@en[rikkertkoppes.com ✤ thoughts - css syntax in graph]] ([CODE[2007-10-23 20:42:59 +09:00]] 版) <http://www.rikkertkoppes.com/thoughts/css-syntax/>
この文書は、2つの別の [CODE(HTMLe)@en[[[blockquote]]]] [[要素]]内にそれぞれ
[PRE(HTML example code)[
<dfn>selector</dfn>
]PRE]
を含んでいます。
[34]
[CITE[Feeedback on <dfn>, <abbr>, and other elements related to cross-references]] ([[Ian Hickson <ian@...>]] 著, [CODE[2008-04-20 22:26:46 +09:00]] 版) <http://permalink.gmane.org/gmane.org.w3c.whatwg.discuss/13786>
* @dfn{[VAR[term]]} (GNU Texinfo)
[6] [CODE[@dfn]] 命令は用語の導入・定義のために使うことができます。
ろくに使い方も示していない HTML 仕様書とは違って、
Texinfo マニュアル <http://www.gnu.org/software/texinfo/manual/texinfo/texinfo.html#dfn> は結構実践的です:
> Use the [CODE[@dfn]] command to identify the introductory or defining use of a technical term. Use the command only in passages whose purpose is to introduce a term which will be used again or which the reader ought to know. Mere passing mention of a term for the first time does not deserve [CODE[@dfn]]. The command generates italics in the printed manual, and double quotation marks in the Info file. For example:
技術用語の導入や定義的使用を識別するために
[CODE[@dfn]] 命令を使用してください。
この命令は、再度使われる用語または読者が知るべきである用語を導入することが目的の一節でのみ使ってください。
単に初出の用語に注意を惹くだけであるものは
[CODE[@dfn]] には値しません。この命令で、印刷したマニュアルでは斜体 (イタリック) になり、
Info ファイルでは二重引用符で囲まれます。たとえば、
>
- [SAMP[Getting rid of a file is called @dfn{deleting} it.]]
> produces
- [SAMP[ Getting rid of a file is called [DFN[deleting]] it.]]
- [SAMP[ファイルを取り除くことを@dfn{削除}といいます。]]
は
- [SAMP[ファイルを取り除くことを[DFN[削除]]といいます。]]
となります。
> As a general rule, a sentence containing the defining occurrence of a term should be a definition of the term. The sentence does not need to say explicitly that it is a definition, but it should contain the information of a definition--it should make the meaning clear.
一般的な規則として、用語の定義的出現を含む文はその用語の定義であるべきです。
その文は陽にそれが定義であると言う必要はありませんが、
定義の情報を含むべき (意味を明確にするべき) です。
[INS[
注: 他分野での訳語を考えると [CODE[defining]] は[CODE[規定的]]とした方がいいかもしれませんけど、全部[CODE[定義]]で統一しました。
]INS]
[8] [[Mule]] では Texinfo に言語指定命令がありまして、日本語だと[[ゴシック]]での表示になるそうです。 ([[Emacs20]] でその機能も併合されたのかな?)
* メモ
[41] [[DTBook]]
にも
[CODE[dfn]]
があります。
[33]
[CITE[dfn.js]] ([TIME[2008-12-10 11:05:59 +09:00]] 版) <http://www.whatwg.org/specs/web-apps/current-work/dfn.js>
[37] [CITE[RFC 7key 2008年05月上旬 -- Ray:雑学事典]] ([TIME[2008-06-25 01:18:19 +09:00]] 版) <http://www.7key.jp/diary/2008/05a.html#rfc_02_01>
>DT要素に対するDD要素のやうなものが、DFN要素に対して用意されないか、更にもつといへば、同一文章や同一段落、同一ページに限らずそれを用ゐたい。
[38] [CITE[IRC logs: freenode / #whatwg / 20140214]]
( ([TIME[2014-02-15 14:49:32 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20140214>
[4] [CITE@en[dfn what it means for elements to be “referenced”]]
([[sideshowbarker]]著, [TIME[2017-07-15 19:05:30 +09:00]])
<https://github.com/whatwg/html/commit/d0872abf29373f284c93434875e2e30d12602081>
[31] [CITE@en[dfn now maps to term role / issue #6]]
([[jasonkiss]]著, [TIME[2017-12-01 06:42:49 +09:00]])
<https://github.com/w3c/html-aam/commit/fbb9f82e234444247d87d012858234053549b903>
[32] [CITE@en[HTML-AAM: should <dfn> map to aria role=term? · Issue #6 · w3c/html-aam]]
([TIME[2017-12-02 00:15:04 +09:00]])
<https://github.com/w3c/html-aam/issues/6>
[35] [CITE@en[DT element change to default role=term (ARIA Working Group Comment) · Issue #78 · w3c/html-aam]]
([TIME[2018-01-23 16:21:56 +09:00]])
<https://github.com/w3c/html-aam/issues/78>
[36] [CITE@en[Align the title attribute with implementations]]
([[annevk]]著, [TIME[2018-01-31 19:14:07 +09:00]])
<https://github.com/whatwg/html/commit/2102913b313078cd8eeac7e81e6a8756cbd3e773>
[39] [CITE@en[Stop using textContent in normative text]]
([[annevk]]著, [TIME[2019-04-04 17:23:13 +09:00]])
<https://github.com/whatwg/html/commit/ec860d872de3712277242655562a4d2a1325592a>
[FIG(quote)[
[FIGCAPTION[
[40] [CITE@en[YOIC 1987/56 | Yukon Daylight Saving Time | CanLII]]
([TIME[2020-09-24T18:16:25.000Z]], [TIME[2020-09-26T00:48:34.117Z]])
<https://www.canlii.org/en/yk/laws/regu/yoic-1987-56/latest/yoic-1987-56.html>
]FIGCAPTION]
>
> <span class="canlii-label">Link to the <dfn title="This URL points to the most recent version of this legislation.">latest version</dfn>:</span>
]FIG]