「CBData HTML 規範」:修訂間差異

出自DILA Wiki
imported>Ray
imported>Ray
→‎head
行 76: 行 76:
<syntaxhighlight lang="XML">
<syntaxhighlight lang="XML">
<p class='head'>...</p>
<p class='head'>...</p>
</syntaxhighlight>
==juan==
卷首或卷尾資訊
XML:
<syntaxhighlight lang="XML">
<juan>
</syntaxhighlight>
HTML:
<syntaxhighlight lang="XML">
<p class='juan'>...</p>
</syntaxhighlight>
</syntaxhighlight>

於 2015年1月19日 (一) 14:56 的修訂

一卷一檔

HTML 根據 XML <milestone unit="juan"> 切卷。檔名為冊號、經號、卷號,例如 T01n0001_001.htm、T01n0001_002.htm...。

HTML 檔內容架構:

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="filename" content="T01n0001_018.htm" />
  <title>經名</title>
</head>
<body>
  <div id="body">內文</div>
  <div id="back">校勘與缺字資訊</div>
</body>
</html>

檔頭有以下標記表示本檔檔名:

<meta name="filename" content="T01n0001_018.htm" />

經名

經名轉為 head/title,例如:

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>長阿含經</title>
</head>

區塊標記

byline

byline 轉為

<p class="byline"/>....</p>

div

附文

XML:

<div type="w">

HTML:

<div class='w'>

figure 插圖

XML:

<figure>

HTML:

<p class='figure'>...</p>

head

XML:

<head>

HTML:

<p class='head'>...</p>

juan

卷首或卷尾資訊

XML:

<juan>

HTML:

<p class='juan'>...</p>