法鼓全集 XML 標記手冊

出自DILA Wiki
於 2013年10月2日 (三) 10:04 由 imported>Ray 所做的修訂 →‎type="person"

GitHub

安裝 Git

http://git-scm.com/

安裝 TortoiseGit

https://code.google.com/p/tortoisegit/

安裝過程會讓我們選擇「SSH Client」, 請保留預設值使用 TortoisePLink. [1]

如果已經安裝過 TortoiseGit, 那要確認一下:

  1. 程式集 => TortoiseGit => Settings => Network
  2. 確認 SSH client 是否為 C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe (也可能在 Program Files (x86) 資料夾裡)

註冊 GitHub 帳號

  1. https://github.com/ 註冊
  2. 把您的帳號通知管理者, 授予編輯權限.

產生 SSH Key

  1. 執行 程式集 => TortoiseGit => Puttygen
  2. 按「Generate」
  3. mouse 在上方任意移動, 程式會根據移動的變數產生 key, 如果 mouse 不移動, 產生進度會停下來.
  4. 產生完成後[2], 按「Save Private Key」儲存 private key, 路徑自己選, 要記得, 後面會用到.
  5. copy PuTTYKey Generator 上方的 public key (建議將此 public key 自己另外建檔儲存, 這樣如果以後要再用到, 就不必再重新產生)

設定 GitHub 裡的 SSH Key

到 GitHub 網站, 登入後, 點右上方出現自己的帳號的地方.

Github-account.jpg

按右上方按鈕「Edit Your File」

Github-edit-profile.jpg

  1. 按左方 「SSH Keys」
  2. 按右方「Add SSH Key」
  3. Title 可以不必輸入
  4. 將剛複製的 public key 貼到 key 欄位
  5. 按 Add Key

這個 key 是跟著你在 GitHub 中所建的帳號.

clone

做 clone

  • URL: git@github.com:ddbc/faguquanji.git
  • 「Load Putty Key」要打勾, 檔案選前面用 PuTTY Key Generator 產生、儲存的 private key.

pull

Pull 時, 「AutoLoad Putty Key」打勾

XML Elements

choice

修訂, 例如 06-02.xml

<choice change="2013-07-31">
  <sic>化成</sic>
  <corr resp="張晴">成化</corr>
</choice><!-- 相關文獻歷史記載,請參閱(http://www.chinalangshan.gov.cn/display.aspx?id=114) -->十六年

div1

@type="ms-ref"

記錄跟本書相關的手稿圖檔, ms-ref 的意思是 Manuscript References

<front>
  <div1 type="ms-ref">
    <p>
      <ref type="syms" target="SYA001812_001"/>
      <ref type="syms" target="SYA002835_001"/>
    </p>
  </div1>
</front>

p

@rendition

例如 《佛陀的勇士們》緬甸禪師會用一些詩偈,來幫助聽眾記住禪修實踐的一些原則。

<p rendition="motto">自然地呼吸,心固定在腹部上下。</p>

轉成 HTML:

<p class="motto">自然地呼吸,心固定在腹部上下。</p>

實際的樣式另外在樣式檔 tzungkuen.css 裡指定.

ref

target

連結到章節未註解,ex: 05-04.xml:

...作一番綜合的介紹而已<ref target="note013401">(註一)。</ref>...
<note n="註一" xml:id="note013401" place="end">...</note>

type="person"

<ref type="person" target="A023335"></ref>這次回大陸訪問

type="place"

<ref type="place" target="PL​​000000023647 PL000000023643">

type="syms"

連結到聖嚴師父手稿,Ex: 06-02.xml:

<ref type="syms" target="SYA001803_001"/>