Posted by: Dhammañāṇa
« on: February 20, 2018, 03:54:24 PM »As told, my person has started anew the undertaking to implement the Sangha-gift in the given enviroment, starting in testing with AN01 khmer http://forum.sangham.net/index.php/page,sut.an.01.v01_pikm.html
Step 1. General transformation and html creating
replaced with (css link according script):
rend=" replaced with class="
bodytext" n=" replaced with bodytext" id="para
<hi replaced with <span
/hi> replaced with /span>
pb ed=" replaced with a id="
pb ed=" replaced with a id="
"/> replaced with ></a>
" n=" replace with nothing (to combine the code)
chapter" with chapter" id="" name="" text="Anchor="
subhead" with subhead" id="" name="" text="Anchor="
Sample: <p class="chapter" id="s001-010" name="s001-010" text="Anchor=s001-010">
With (for the khmer files, note no prove read & spelling correction done yet, see ឯកសារយោង Translation or prove read of source text sangham-Cscd khmer )
- Titel like source book (file)
- Query title like new file-name without .html Sample: sut.an.01.v01_pikm
- category: booktitle in la and lang script, if not existing to be created. Sample:
- other settings like in sample
- pre-view text incl. Nikaya, book, chapter
Note: This is a file by file, command by command edit specification and good if done book by book minimum. For further progress for next stages, files might be good also uploaded or exchanged as files for more global editions.
Suggestions and alternatives are always a possibility for merits and of course not restricted or excluded.
Step 1. General transformation and html creating
- Renaming the files according into the standard system started in the Khmer-transcription undertaking . Names should be redundant with the indexes and the index-xls-files and if needed edited equal.
{1}.{2}.{3}.{4}_{lang|script}_{author}.html
1: Pitaka
2: Nikaya
3: Vagga (optional)
4: sutta
5: sutta-sub (optional)
lang: pi (Pali), en (Englih), km (Khmer)...
script: km (for Khmer) la (for Latin) (optional)
author: if more than the original one by code similar to ZzE
Sample: sut.an.01.v01_pikm.html - Converting the xml-tags into html
Code: [Select]
<?xml version="1.0" encoding="UTF-16"?>
<?xml-stylesheet type="text/xsl" href="tipitaka-khmr.xsl"?>
<TEI.2>
<teiHeader></teiHeader>
<text>
<front></front>
<body>
replaced with (css link according script):
Code: [Select]
<link rel="stylesheet" type="text/css" href="http://forum.sangham.net/tipitaka-khmr_sangham.css" />
rend=" replaced with class="
bodytext" n=" replaced with bodytext" id="para
<hi replaced with <span
/hi> replaced with /span>
pb ed=" replaced with a id="
pb ed=" replaced with a id="
"/> replaced with ></a>
" n=" replace with nothing (to combine the code)
chapter" with chapter" id="" name="" text="Anchor="
subhead" with subhead" id="" name="" text="Anchor="
- adding Anchor id's according and redundant to Standard found in Khmer-Transc (like file name)
Sample: <p class="chapter" id="s001-010" name="s001-010" text="Anchor=s001-010">
- replacing footer with "Source-info" according the language.
Code: [Select]
</body>
<back></back>
</text>
</TEI.2>
With (for the khmer files, note no prove read & spelling correction done yet, see ឯកសារយោង Translation or prove read of source text sangham-Cscd khmer )
Code: [Select]
<p class="source"><b>Source :<b> CSCD - Chaṭṭhasanghayāna, Sanghadāna originated from the goodness of Upāsaka Goenka and Vipassana Research Institute, 02 May 2013 ( http://www.tipitaka.org/khmr/cscd/s0401m.mul0.xml ) stored and maintained by sangham.net for the sublime Sangha of the eight directions. Last edit : 2018-02-20 It is not for any commercal use, not given to be shared on commercial places and not for any purpose to gain wordily rewards, even suggesting Dāna. <a href="http://forum.sangham.net/index.php/page,sut.an.01.v01_pikm.html">sut.an.01.v01_pikm</a></p>
- adding sutta-code (redundant to standard) and anchor after the specific p-opening tag. Sample:
- creating the article
- Titel like source book (file)
- Query title like new file-name without .html Sample: sut.an.01.v01_pikm
- category: booktitle in la and lang script, if not existing to be created. Sample:
- other settings like in sample
- pre-view text incl. Nikaya, book, chapter
- if finished and uploaded, file can be further edited under certain "project" Adding anchors and infos such as book-page and paragraph no. of other sources (here book-edition)
Note: This is a file by file, command by command edit specification and good if done book by book minimum. For further progress for next stages, files might be good also uploaded or exchanged as files for more global editions.
Suggestions and alternatives are always a possibility for merits and of course not restricted or excluded.