「敦煌漢文佛教寫卷點校本 XML 轉 InDesign 程式處理規則」:修訂間差異

出自DILA Wiki
imported>Ray
imported>Ray
 
(未顯示同一使用者於中間所作的 4 次修訂)
行 3: 行 3:
* 例如外層樣式為 subst,內層樣式為 add,則使用樣式 subst-add。
* 例如外層樣式為 subst,內層樣式為 add,則使用樣式 subst-add。
* 如果內外層樣相同,則不必套疊。例如外層樣式為 xxx,內層樣式也是 xxx,則仍然使用樣式 xxx。
* 如果內外層樣相同,則不必套疊。例如外層樣式為 xxx,內層樣式也是 xxx,則仍然使用樣式 xxx。
= 特殊字元 =
== 重文符號 U+303B 〻 ==
如果出現在 abbr 元素下,要使用 iteration 樣式。
如果出現在 <add place="inline-right"> 元素之下,要使用 add-iteration 樣式。


= add =
= add =
行 8: 行 16:
== Print1 ==
== Print1 ==


IF parent subst
IF place 屬性值 inline-right


<blockquote>
使用樣式 add
   使用樣式 add  (範例: lengqieshiziji-S-4272.xml,lb: S-4272r-0005)
* 如果不是「〻」字元: 在前面插入「\」字元,在後面插入「/ 」字元。
</blockquote>


ELSE IF place 屬性值 inline-right
ELSE IF parent subst


<blockquote>
使用 樣式 add  (範例: lengqieshiziji-S-4272.xml,lb: S-4272r-0005)
  在前面插入「\」字元,在後面插入「/」字元,並 使用 add  樣式。
</blockquote>


ELSE 不指定樣式。
ELSE 不指定樣式。
=== 範例 ===
lengqieshiziji-P-3436.xml, lb: P-3436-0260
<syntaxhighlight lang="XML">
<add place="inline-right">〻</add>
</syntaxhighlight>


== Print2 ==
== Print2 ==
行 47: 行 60:


ELSE 呈現 reg 屬性值
ELSE 呈現 reg 屬性值
= pc =
== hand2 ==
&lt;pc rend="hand2"> 後面如果跟著 &lt;pc rend="hand3">,例如:
<syntaxhighlight lang="XML">
<pc resp="hand2">.</pc><pc resp="hand3">.</pc>
</syntaxhighlight>
要轉為
<syntaxhighlight lang="XML">
<span rend="dot3">。</span>
</syntaxhighlight>


= unclear =
= unclear =

於 2016年12月14日 (三) 17:08 的最新修訂

樣式套疊

  • 例如外層樣式為 subst,內層樣式為 add,則使用樣式 subst-add。
  • 如果內外層樣相同,則不必套疊。例如外層樣式為 xxx,內層樣式也是 xxx,則仍然使用樣式 xxx。

特殊字元

重文符號 U+303B 〻

如果出現在 abbr 元素下,要使用 iteration 樣式。

如果出現在 <add place="inline-right"> 元素之下,要使用 add-iteration 樣式。

add

Print1

IF place 屬性值 是 inline-right

  • 使用樣式 add
  • 如果不是「〻」字元: 在前面插入「\」字元,在後面插入「/」字元。

ELSE IF parent 是 subst

  • 使用樣式 add (範例: lengqieshiziji-S-4272.xml,lb: S-4272r-0005)

ELSE 不指定樣式。

範例

lengqieshiziji-P-3436.xml, lb: P-3436-0260

<add place="inline-right"></add>

Print2

直接呈現內容,不指定樣式。

del

Print1

使用 del 樣式

Print2

不呈現

orig

Print1

直接呈現元素內容

Print2

IF 在 <div type="notes"> 裡面 THEN 呈現 元素內容

ELSE 呈現 reg 屬性值

pc

hand2

<pc rend="hand2"> 後面如果跟著 <pc rend="hand3">,例如:

<pc resp="hand2">.</pc><pc resp="hand3">.</pc>

要轉為

<span rend="dot3"></span>

unclear

Print1

IF 有 reason 屬性 THEN 使用 □ 字元

ELSE 使用全形問號