Recent Topics

[Today at 08:02:27 AM]

[Today at 06:53:43 AM]

[April 18, 2019, 04:01:57 PM]

[April 18, 2019, 02:22:14 AM]

[April 17, 2019, 11:15:34 PM]

[April 14, 2019, 01:04:23 PM]

[April 13, 2019, 05:11:01 PM]

[April 13, 2019, 08:20:39 AM]

[April 13, 2019, 04:17:38 AM]

[April 12, 2019, 02:10:10 PM]

[April 11, 2019, 12:38:23 PM]

[April 10, 2019, 11:05:15 AM]

[April 10, 2019, 08:55:52 AM]

[April 09, 2019, 03:33:44 PM]

[April 07, 2019, 04:51:51 PM]

[April 07, 2019, 01:23:59 AM]

[April 07, 2019, 01:15:02 AM]

[April 05, 2019, 03:46:39 PM]

[April 04, 2019, 10:08:52 AM]

[April 03, 2019, 02:18:53 AM]

[April 02, 2019, 03:35:05 PM]

[April 02, 2019, 09:09:52 AM]

[April 01, 2019, 07:08:32 PM]

[April 01, 2019, 05:11:35 PM]

[April 01, 2019, 11:26:10 AM]

[April 01, 2019, 04:56:40 AM]

[March 30, 2019, 12:43:51 AM]

[March 29, 2019, 01:45:50 PM]

Talkbox

2019 Apr 19 06:30:18
Cheav Villa:  _/\_

2019 Apr 19 06:25:58
Moritz: _/\_ bong Villa

2019 Apr 19 06:25:48
Moritz: _/\_ _/\_ _/\_ Bhante

2019 Apr 19 02:23:14
Cheav Villa:  សាធុ​ៗ  _/\_ _/\_ _/\_

2019 Apr 19 01:42:18
Johann: Another fullmoon, another chance. It's not sure that breaking apart will make it the last. May all spend a auspicious Uposatha.

2019 Apr 17 15:33:54
Chanroth:  _/\_ bong Moritz

2019 Apr 17 15:32:22
Chanroth:  _/\_bong villa

2019 Apr 17 15:31:07
Chanroth:  _/\_ _/\_ _/\_

2019 Apr 17 07:11:18
Johann: Bhante

2019 Apr 17 05:05:51
Johann: Bhante  _/\_

2019 Apr 17 02:16:55
Johann: May all bring some merits left into this new year for them!

2019 Apr 12 17:30:17
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 12 14:39:05
Johann: Nyom Moritz, Nyom Villa

2019 Apr 12 14:27:27
Cheav Villa:  _/\_  Master Moritz

2019 Apr 12 14:26:24
Moritz: _/\_ Bong Villa

2019 Apr 12 14:26:12
Moritz: _/\_ _/\_ _/\_ Bhante

2019 Apr 12 14:09:15
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 12 01:54:32
Johann: A meritful Sila-day and much rightly joy by doing merits.

2019 Apr 09 08:24:39
Johann: Meister Moritz

2019 Apr 09 08:14:00
Moritz: _/\_ _/\_ _/\_ Bhante

2019 Apr 06 19:12:07
Moritz: Vandami, Bhante _/\_

2019 Apr 06 08:32:11
Khemakumara:  _/\_ _/\_ _/\_

2019 Apr 06 07:44:05
Johann: _/\_ Bhante Indannano, Bhante Khemakumara

2019 Apr 06 06:51:05
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 05 14:37:22
Khemakumara: Nyom Roman

2019 Apr 05 14:35:22
Johann: Bhante, Meister Roman

2019 Apr 05 14:18:13
Khemakumara:  _/\_ _/\_ _/\_ Bhante

2019 Apr 05 09:58:10
Khemakumara: Nyom Cheav Villa

2019 Apr 05 09:55:43
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 05 09:53:07
Khemakumara: Nyom Moritz

2019 Apr 05 07:23:13
Moritz: Vandami Bhante _/\_

2019 Apr 05 05:41:00
Johann: Nyom Villa

2019 Apr 04 02:43:01
Johann: May all spend a meritful old month over New month birth day this day.

2019 Apr 03 21:09:04
Moritz: _/\_ _/\_ _/\_

2019 Apr 03 13:50:42
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 03 13:23:48
Johann: Sadhu

2019 Apr 03 13:07:53
Khemakumara: Tomorrow is new moon uposatha,  take this noble opportunity to come together in khema (peaceful).  It is not common,  that living beings are in contact with Buddha,  Dhamma, Sangha.  _/\_ _/\_ _/\_

2019 Apr 02 15:20:21
Cheav Villa:  _/\_ _/\_ _/\_

2019 Apr 02 05:09:56
Johann: Nyom Moritz

2019 Apr 02 04:40:57
Moritz: Good morning Bhante and Chanroth _/\_ And good night to me. :)

2019 Apr 01 17:12:00
Moritz: Good evening Bhante. _/\_

2019 Apr 01 15:16:08
Johann: Nyom Chanroth, Nyom Villa (mudita that those wishing to stay in touch are able here)

2019 Apr 01 04:29:01
Johann: One not having overcome sakayaditthi is not capable to judge right and will always be corrupt.

2019 Mar 31 01:02:21
Johann: One would not let go of ones stand/home.

2019 Mar 31 01:00:01
Johann: As long as Saddha does not arise, it's not right view but stuck in "panna".

2019 Mar 30 10:03:35
Johann: Nyom Moritz

2019 Mar 30 08:48:04
Moritz: Vandami Bhante _/\_

2019 Mar 30 08:28:03
Johann: Samvega, yes, Nyom. If there is no pasada. Cheating is of no help but selfish motivated. Maybe Affirming the Truths of the Heart: The Buddhist Teachings on Samvega  

2019 Mar 30 08:13:03
Kong Sokdina: Vandami Bhante    :D បើចង់ អោយចេះប្រមាណ បើបាន អោយចេះគ្រប់ ជៀរាងការកើតទុក្ខនាំមកនូវសេចក្ដីខកចិត្ត(depressed mood) ។

2019 Mar 29 06:06:43
Johann: Like a path would disappear fastly in the forest, the path for many unseen if nobody steps on it.

2019 Mar 29 06:04:31
Johann: Because Uppekha isn't the highest and nobody would benefit from it.

2019 Mar 29 06:03:18
Johann: And why the even Noble ones and Arahats continue asking, answering, coss-question, giving Anumodana, critic?

2019 Mar 29 00:41:54
Johann: Once knowing good and bad, no more independency of approve of others, thanks, praise for ones sacrifices.

2019 Mar 29 00:40:05
Johann: What ever one does, one does for him/herself. Knowing this it's importand to give praise and approve to ones own skillful deeds, shame and disprove to bad.

2019 Mar 28 08:51:12
Moritz: I am leaving my computer to work without me. May all have a good Uposatha day. _/\_

2019 Mar 28 08:00:48
Moritz: Ja, gut angekommen. Noch nicht ganz umgestellt. :) Bald wieder los zum Taxifahren. _/\_

2019 Mar 28 07:45:55
Johann: Meister Moritz. Gut angekommen und wieder umgestellt?

2019 Mar 28 07:28:51
Moritz: Vandami Bhante _/\_

2019 Mar 28 00:47:42
Johann: May all spend a meritful Sila-day and be able to recoice with their beauty of having given all being the gift of the Uposatha-Silas.

2019 Mar 26 01:18:56
Cheav Villa:  :D _/\_

2019 Mar 26 01:18:46
Cheav Villa: មិនខុសពីរឿងទៅសុំសៀវភៅសន្ទនានុក្រម នៅវ ត្ត បញ្ញា​ និង..

2019 Mar 26 01:16:15
Cheav Villa: កូណា ជារឿងដែលម្នាក់បានទទួលស្តាប់ និងធ្វើតាមតែមិនបានសំរេច តាមគោលដៅ :D _/\_

2019 Mar 25 15:28:24
Johann: Others, even if pure, is open for critic and bad assumings. Envy, jealously... on each side. So to become not susbected, needs good advices, double hard for woman to act perfect.

2019 Mar 25 15:23:21
Johann: Pappies can give good lessons when they don't fall, but the deeper, the hard training, must come from liberal mommies for daughters and liberal pappies for sons, in the world and for beyond.

2019 Mar 25 15:11:15
Cheav Villa:   _/\_ _/\_ _/\_

2019 Mar 25 15:04:40
Johann: Does mommy generally don't actually love her child when not react?

2019 Mar 25 15:03:13
Johann: Mommy, mommy... but I like... ohh, they bite me... I am hungry... when do we go back?... why must we sit here... mommy!

2019 Mar 25 15:00:37
Johann: Which can be changed all the time, with feeding rightly.

2019 Mar 25 14:55:50
Cheav Villa: កូណាសង្ឃឹមថា.​ ជារឿងឧបនិស្ស័យ.​  :D _/\_ _/\_ _/\_

2019 Mar 25 14:50:25
Johann: ...teaching and mirror.

2019 Mar 25 14:49:40
Johann: When one is stressed or busy, remember how many times one him/herself was so as well. Intention will always has it's effects, sometimes quick, sometimes even sisters, mother and child... Nyom wouldn't have become here, if there would be not long, long bounds. Watch your child. Thats always a great t

2019 Mar 25 14:40:41
Cheav Villa: _/\_ _/\_ _/\_

2019 Mar 25 14:39:48
Cheav Villa: ព្រោះកូណាមិនអាចទៅឱរ៉ាល់បានកំឡុងពេលនេះ តែអាចជួបនៅភ្នំពេញបាន តែចេតនាម្ខាងមិនចង់ជួប ទើបមិនអាចជួប

2019 Mar 25 14:38:39
Cheav Villa: កូណាគ្រាន់តែចង់បញ្ជាក់អំពីចេតនា ដែលម្នាក់មាន និងម្នាក់គ្មាន ក្នុងការ​ជួបគ្នា.ជាហេតុមិនបានជួប :D _/\_

2019 Mar 25 14:37:02
Cheav Villa:    _/\_ _/\_ _/\_

2019 Mar 25 13:44:16
Johann: Nyom Vithou. Foot well again?

2019 Mar 25 11:56:36
Johann: Good stories: The Healing of the Bull and Prisoners of Karma .

2019 Mar 25 11:51:20
Johann: Although monks are allowed to explain how to work oneself out, they are not given to liberate "slaves", prisoner, as this would count as thief.

2019 Mar 25 11:46:29
Johann: When one is "bond" in families, relations... there is so much soil and danger for envy and jealously, and itjs not easy to "pay" one out. Normal being live from making others depending on one and fear to lose a "cattle" they gave so much into.

2019 Mar 25 09:53:57
Khemakumara: Nyom Cheav Villa

2019 Mar 25 05:00:43
Johann: Some pull back and offer favors, less are giving ways out. Let them wishing to live in cities go back, maintaining homes. Bond by mara there is no escape, they leave alm bowls behind and step into cars, to "help".

2019 Mar 25 04:11:30
Johann: One (who ever) gives the best when helping, assist, in sharing Dhamma, translate it, sort it, easy accessable and maintain it, by proper and given means.

2019 Mar 25 04:03:32
Cheav Villa:  _/\_ _/\_  _/\_

2019 Mar 25 03:53:23
Johann: One stopped at the topic Sangahak, worldily and best. It's hard to try to translate but bears a lot of fruits. Conceit is dangerous, and a feeling of "right" turns quick into lose. Satipatthana, the right workingplaces. And again Ways of  

2019 Mar 25 02:53:11
Kong Sokdina: ដំណើរផ្លូវឆ្ងាយ មិនប្រមាណ បាននូវសេចក្ដីប្រមាថ។

2019 Mar 24 18:54:30
Cheav Villa: ជាចិត្តលំអៀងព្រោះជំពាក់ក្នុងសេចក្តីស្រលាញ់សាច់ញាតិ​ បងប្អូន.​ ឪពុកម្ដាយ​  ^-^

2019 Mar 24 18:49:47
Cheav Villa: ជារឿងដដែល យូរណាស់មកហើយ  ខ្ញុំ​កូណាគួរតែបានរកឃើញផ្លូវកណ្តាល​  :) _/\_

2019 Mar 24 18:48:21
Cheav Villa: ការជាប់ជំពាក់នៅក្នុងការជួយអ្នកដទៃ ការជាប់ជំពាក់នៅក្នុងការចង់អោយគេបានសុខ តែងនាំសេចក្តីទុក្ខ ដល់ខ្លួន

2019 Mar 24 13:23:44
Johann: Nyom Senghour

2019 Mar 23 06:34:02
Johann: No problem Nyom Vithou.

2019 Mar 23 04:32:25
Vithou: ngyom kuna will inform Preah Ang later when kuna get better

2019 Mar 23 04:31:12
Vithou: Preah Ang, ngyom kuna cannot go Phnom Aural tomorrow due to my foot problem. I let is a bit pain and Ngyom kuna cannot walk properly

2019 Mar 20 19:02:36
Johann: May Nyom have a safe and careful travel, when ever he might do.

2019 Mar 20 18:46:53
Johann: Now, Nyom Moritz and Nyom Sophorn are here in the forest. Atma does not know how long.

2019 Mar 20 18:20:42
Vithou: Nyom Kuna planning to see Moritz and Bong Sophorn as well

2019 Mar 20 18:17:26
Vithou: Nyom Kuna planning to go Phnom Oral on Sunday

2019 Mar 20 18:16:07
Vithou: Nyom Kuna was sick too long after remove kidney stone . ( about 2 months ) and skittle busy with human job

2019 Mar 20 18:13:50
Vithou: Is Moritz and Bong Sophorn at Asram now?

2019 Mar 20 18:12:02
Vithou: Kuna Preah Ang

2019 Mar 20 18:05:01
Johann: Nyom Vithou

Tipitaka Khmer

 Please feel welcome to join the transcription project of the Tipitaka translation in khmer, and share one of your favorite Sutta or more. Simply click here or visit the Forum: 

Search ATI on ZzE

Zugang zur Einsicht - Schriften aus der Theravada Tradition



Access to Insight / Zugang zur Einsicht: Dhamma-Suche auf mehr als 4000 Webseiten (deutsch / english) - ohne zu googeln, andere Ressourcen zu nehmen, weltliche Verpflichtungen einzugehen. Sie sind für den Zugang zur Einsicht herzlich eingeladen diese Möglichkeit zu nutzen. (Info)

Random Sutta
Random Article
Random Jataka

Zufälliges Sutta
Zufälliger Artikel
Zufälliges Jataka


Arbeits/Work Forum ZzE

"Dhammatalks.org":
[logo dhammatalks.org]
Random Talk
[pic 30]

Zugang zur Einsicht - Übersetzung, Kritik und Anmerkungen

Herzlich Willkommen im Arbeitsforum von zugangzureinsicht.org im Onlinekloster sangham.net!


Danke werte(r) Besucher(in), dass Sie von dieser Möglichkeit Gebrauch machen und sich direkt einbringen wollen.

Unten (wenn Sie etwas scrollen) finden Sie eine Eingabemaske, in der Sie Ihre Eingabe einbringen können. Es stehen Ihnen auch verschiedene Gestaltungsmöglichkeiten zur Verfügung. Wenn Sie einen Text im formatierten Format abspeichern wollen, klicken Sie bitte das kleine Kästchen mit dem Pfeil.

Die Textfelder "Name" und "email" müssen ausgefüllt werden, Sie können hier aber auch eine Anonyme Angabe machen und eine Pseudo-email angeben (geben Sie, wenn Sie Rückantwort haben wollen, jedoch einen Kontakt an), wenn Ihnen das unangenehm ist. Der Name scheint im Forum als Text auf und die Email ist von niemanden außer dem Administrator einsehbar.

Wenn Sie den Text fertig geschrieben haben, müssen Sie noch den Spamschutz überwinden, das Bild zusammen setzen, und dann auf "Vorschau" oder "Senden" drücken, wenn für Sie alles passt.

Wenn Sie eine Spende einer Übersetzung machen wollen, wäre es schön, wenn Sie etwas vom Entstehen bzw. deren Herkunft erzählen und Ihrer Gabe vielleicht noch eine Widmung anhängen.

Gerne, so es möglich ist, werden wir Ihre Übersetzung dann auch den Seiten von Zugang zur Einsicht veröffentlichen. Für generelle Fragen zu dem Umfang der Dhamma-Geschenke auf ZzE sehen Sie bitte in den FAQ von ZzE ein.

Gerne empfangen wir Kritik und selbstverständlich auch Korrekturen oder Anregungen hier. Es steht Ihnen natürlich offen und Sie sind dazu herzlich eingeladen auch direkt mit einem eigenen Zugang hier an den Arbeiten vielleicht direkt teilzunehmen.

Sadhu!

metta & mudita
Ihr Zugang zur Einsicht Team

Um sich im Abeitsforum etwas unzusehen, klicken Sie hier. . Sie finden hier viele Informationen und vielleicht sogar neues rund um Zugang zur Einsicht.

Author Topic: [ATI.eu] CSCD xml to ati.eu format: converting, editing  (Read 7409 times)

0 Members and 2 Guests are viewing this topic.

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #75 on: March 11, 2019, 07:23:36 AM »
Having already found one of an potential content eater, having forgotten to escape dot

<p rend=[^\w]hangnum[^\w] n=[^\w]([^<>]*?)[^\w]><hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[. ]*<hi rend=[^\w]dot[^\w]>[. ]*<\/hi>[. ]*([^\n]*)<\/p>[\s]*   <div hangnum><span para #para_$1>[$2]</span></div> $3\n\n
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #76 on: March 12, 2019, 01:23:18 PM »
Status (lokal)

Some files have been re-renamed. Current list: Renaming of source files , renaming files.

Regex-list for xml- to ati-standard as done for "cs-rm", "cs-km", "cs-th", "cs-ru" at once.

Note that {...} strings will be replaced in a later selective session. Replacments are done "single-line" if not other mentioned.

##Starting with the header and footer, which replaces "content".

###HEADER multiline (10792 replacements)

Code: [Select]
[\s]*<\?xml(.+?)<body>[\s]*

<span hide>sources: cs-file name {cs file} path ati{lang}:{ns-section}:{file}</span>\n{{section>en:tech:template_includes#{lang}_header&nouser&nodate&noheader&noeditbutton&firstsectiononly}}\n<div {lang}>\n\n

###FOOTER multiline

Code: [Select]
[\s]*<\/body>(.*)<\/([^p]*?)>[\s]*

\n\n</div>\n{{section>en:tech:template_includes#{lang}_footer&nouser&nodate&noheader&noeditbutton&firstsectiononly}}

###CS-CD ANCHORS

Code: [Select]
<pb ed=[^\w]([^<>]*?)[^\w] n=[^\w]([^<>]*?)[^\w][\s]*\/>

<span anchor #$1_$2></span>

###BOLD

Code: [Select]
<hi rend=[^\w]bold[^\w]>([^\n]+?)<\/hi>

**$1**

###P CENTRE

Code: [Select]
<p rend=[^\w]centre[^\w]>(.*?)<\/p>

<div centeralign>$1</div>

###NOTE

Code: [Select]
<note>([^\n]+?)<\/note>

<span note>$1</span>

###P HI PARANUM DOT

Code: [Select]
<p rend=[^\w]bodytext[^\w] n=[^\w]([^<>]*?)[^\w]>[\s]*<hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\s]*<hi rend=[^\w]dot[^\w]>\.<\/hi>([^\n]*?)<\/p>[\s]*

<span para #para_$1>[$2]</span>$3\n\n

###P HI PARANUM DOT []

Code: [Select]
<p rend=[^\w]bodytext[^\w] n=[^\w]([^<>]*?)[^\w]><hi rend=[^\w]paranum[^\w]>([^<>]*?)[\. ]*?<\/hi>[\. ]*?([^\n]*?)<\/p>[\s]*

<span para #para_$1>[$2]</span> $3\n\n

###P

Code: [Select]
<p rend=[^\w]bodytext[^\w]>([^\n]+?)<\/p>[\s]*

$1\n\n

###P HI PARANUM DOT

Code: [Select]
<p rend=[^\w]hangnum[^\w] n=[^\w]([^<>]*?)[^\w]><hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\. ]*<hi rend=[^\w]dot[^\w]>[\. ]*<\/hi>[\. ]*([^\n]*)<\/p>[\s]*

<div hangnum><span para #para_$1>[$2]</span></div> $3\n\n

###GATHA

Code: [Select]
<p rend=[^\w]gatha([^<>]*?)[^\w]>([^\n]+)<\/p>[\s]*

<div gatha$1>$2</div>\n\n

###INDENT|UNINDENTED

Code: [Select]
<p rend=[^\w](indent|unindented)[^\w]>([^\n]+)<\/p>[\s]*

<div $1>$2</div>\n\n

###NIKAYA

Code: [Select]
<p rend=[^\w]nikaya[^\w]>([^<>]*?)<\/p>

<div centeralign #nikaya>**$1**</div>\n<span sang_id #{file--}>[[{path-release}:{file--}|{file--}]] | [[{path-source}:{file}#{file--}|source]]</span>

###BOOK 868

Code: [Select]
<p rend=[^\w]book[^\w]>([^<>]*?)<\/p>

======== $1 ========\n<span sang_id #{file-}>[[{path-release}:{file-}|{file-}]] | [[{path-source}:{file}#{file-}|source]]</span>

###CHAPTER

Code: [Select]
<p rend=[^\w]chapter[^\w]>([^<>]*?)<\/p>

======= $1 =======\n<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}:{file}#{file}|source]]</span>

###TITLE

Code: [Select]
<p rend=[^\w]title[^\w]>([^<>]*?)<\/p>

===== $1 =====\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>

###SUBHEAD

Code: [Select]
<p rend=[^\w]subhead[^\w]>([^<>]*?)<\/p>

==== $1 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>

###SUBSUBHEAD

Code: [Select]
<p rend=[^\w]subsubhead[^\w]>([^<>]*?)<\/p>

=== $1 ===\n<span sang_id #{file-}.{no+}>[[{path-release}:{file-}.{no+}|{file-}.{no+}]] | [[{path-source}:{file}#{file-}.{no+}|source]]</span>

###SUBHEAD NOTE

Code: [Select]
<p rend=[^\w]subhead[^\w]>([^<>]*?)<span note>([^<>]*?)<\/span>([^<>]*?)<\/p>

==== $1$3 ====\n<div centeralign>**$1<span note>$2</span>$3**</div>\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>

###CHAPTER NOTE

Code: [Select]
<p rend=[^\w]chapter[^\w]>([^<>]*?)<span note>([^<>]*?)<\/span>([^<>]*?)<\/p>

======= $1$3 =======\n<div centeralign>**$1<span note>$2</span>$3**</div>\n<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}:{file}#{file}|source]]</span>

###TITLE NOTE

Code: [Select]
<p rend=[^\w]title[^\w]>([^<>]*?)<span note>([^<>]*?)<\/span>([^<>]*?)<\/p>

===== $1$3 =====\n<div centeralign>**$1<span note>$2</span>$3**</div>\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>

###SUBHEAD ANCHOR

Code: [Select]
<p rend=[^\w]subhead[^\w]>([^<>]*?)<span anchor #([^\n]*?)<\/span>([^<>]*?)<\/p>

==== $1$3 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>\n<span span anchor #$2</span>

###CHAPTER ANCHOR

Code: [Select]
<p rend=[^\w]chapter[^\w]>([^<>]*?)<span anchor #([^\n]*?)<\/span>([^<>]*?)<\/p>

======= $1$3 =======\n<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}:{file}#{file}|source]]</span>\n<span span anchor #$2</span>

###TITLE ANCHOR

Code: [Select]
<p rend=[^\w]title[^\w]>([^<>]*?)<span anchor #([^\n]*?)<\/span>([^<>]*?)<\/p>

===== $1$3 =====\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>\n<span span anchor #$2</span>

###BOOK ANCHOR

Code: [Select]
<p rend=[^\w]book[^\w]>([^<>]*?)<span anchor #([^\n]*?)<\/span>([^<>]*?)<\/p>

======== $1$3 ========\n<span sang_id #{file-}>[[{path-release}:{file-}|{file-}]] | [[{path-source}:{file}#{file-}|source]]</span>\n<span span anchor #$2</span>

This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #77 on: March 15, 2019, 10:39:40 AM »
Further edits:

###DOT

Code: [Select]
<hi rend="dot">\.</hi>

.

###HANGUM INTO HEADER (JAT only) multiline

Code: [Select]
===== ([^<>]*?) =====\n<span sang_id #([^\n]*?)</span>(.*?)<p rend=[^\w]hangnum[^\w]>[\s]*<\/p>[\r\n]+ ([១២៣៤៥៦៧៨៩០1234567890๑๒๓๔๕๖๗๘๙๐\-]+)\. ([^\n]*?)\n

===== $1 =====\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>$3==== $4. $5 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>\n

###HANGUM INTO HEADER (JAT only) multiline [..] X.

Code: [Select]
===== ([^<>]*?) =====\n<span sang_id #([^\n]*?)</span>(.*?)<p rend=[^\w]hangnum[^\w]>[\s]*<\/p>[\r\n]+ \[([១២៣៤៥៦៧៨៩០1234567890๑๒๓๔๕๖๗๘๙๐\-]+)\] ([១២៣៤៥៦៧៨៩០1234567890๑๒๓๔๕๖๗๘๙๐\-]+)\. ([^\n]*?)\n

===== $1 =====\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>$3==== [$4] $5. $6 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>\n

###HANGUM INTO HEADER HH (JAT only) multiline

Code: [Select]
======= ([^<>]*?) =======[\r\n]+<span sang_id #\{file\}>\[\[\{path-release\}:\{file\}\|\{file\}\]\] \| \[\[\{path-source\}:\{file\}#\{file\}\|source\]\]<\/span>(.*?)<p rend=[^\w]hangnum[^\w]>[\s]*<\/p>[\r\n]+ ([១២៣៤៥៦៧៨៩០1234567890๑๒๓๔๕๖๗๘๙๐\-]+)\. ([^\n]*?)[\r\n]+

======= $1 =======\n<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}:{file}#{file}|source]]</span>$2==== $3. $4 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>\n\n

###HANGUM INTO HEADER HH (JAT only) no NO.

Code: [Select]
<p rend=[^\w]hangnum[^\w]>[\s]*<\/p>[\r\n]+ ([^\n]*?)[\r\n]+

==== $1 ====\n<span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>\n\n

###HANGNUM CORR (exception in bud-vgs.nk.2_any.txt and sut.sn.01.txt!!)

Code: [Select]
<p rend=[^\w]hangnum[^\w]>([^<>]+?)\.<\/p>

<div hangnum>$1.</div>

###Search "<p rend=[^\w]hangnum[^\w]>" further 47 hits in 39 files: best made one by one since many exceptions.

###BOLD corrections

without regex:

Code: [Select]
]</span> .

]</span>

correction before, ###HANGNUM, again

###P HANGNUM HI PARANUM BOLD

Code: [Select]
<p rend=[^\w]hangnum[^\w] n=[^\w]([^<>]*?)[^\w]>[\s]*<hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\s]*<hi rend=[^\w]bold[^\w]>\.<\/hi>([^\n]*?)<\/p>[\s]*

<span para #para_$1>[$2]</span>$3\n\n

###further <hi rend="bold"> corr. are made on the single pages

###P HANGNUM HI PARANUM

Code: [Select]
<p rend=[^\w]hangnum[^\w] n=[^\w]([^<>]*?)[^\w]>[\s]*<hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\s]*<\/p>[\s]*

<span para #para_$1>[$2]</span>\n\n

###P INTENT PARANUM

Code: [Select]
<p rend=[^\w]indent[^\w] n=[^\w]([^<>]*?)[^\w]>[\s]*<hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>\. ([^\n]*?)<\/p>[\s]*

<span para #para_$1>[$2]</span> $3\n\n

###P HANGNUM HI PARANUM content

Code: [Select]
<p rend=[^\w]hangnum[^\w] n=[^\w]([^<>]*?)[^\w]>[\s]*<hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\. ]([^\n]*?)<\/p>[\s]*

<span para #para_$1>[$2]</span>$3\n\n

###GATHA PARANUM

Code: [Select]
<div gatha1[^\w] n=[^\w]([0-9]*?)><hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi>[\. ]*([^\n]*?)</div>

<span para #para_$1>[$2]</span>\n\n<div gatha1>$3</div>

###Correction

Code: [Select]
<div gatha2" n="-><hi rend="paranum">-</hi>

<div gatha2>

###Manual corrections for all matches of "<p rend"

###Cleanings

Code: [Select]
\r\n

\n

There might be further xml-tags left and small edits needed, but those can be made online.

Atma will now replace the placeholder (except {no}, {no+}) where he has no idea of how to process that right and effective for now, and then upload all files anew.

(Note: working/processing on replacements with batchedit online is much faster as with notepad++ local (about a 3-4 days). Of course the cleaning of cache and delete of history online takes the also a good while.)
« Last Edit: March 15, 2019, 10:44:41 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #78 on: March 15, 2019, 10:58:27 AM »
And using Powershell such as ((Get-Content vin.par.ve.txt -Raw) -replace '{lang}','cs-km') | Set-Content vin.par.ve.txt destroyed the files, possible a utf-8-issue... (and having not made a backup...)

all once again  ^-^ :)
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #79 on: March 16, 2019, 01:02:54 AM »
Atma will upload the renamed files with original content and try again to make the replacements online with batchedit, since having come across that Notepad sometimes loses found matches and gives nothing back when replacing.
In this way, at least, the originals would be stored on ati as well. Lets see whether web-space and sun allows it the next days.
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #80 on: March 16, 2019, 04:25:30 PM »
Files are all anew uploaded so far. The Khmer files need some rest replacements of xml codes. Renamed files have been deleted.

Once the index is rebuild, the last replacements can be made.

As for the replacements of the placeholder {file}, {ns-section}... it's maybe good if runing similar scripts on the server.

In regard of {no}: no over all idea for now, so maybe good as before.

Attached an excel-list containing all particular replacements for each single file.
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #81 on: March 17, 2019, 11:41:59 AM »
List of renaming of the index files (toc.xml): renaming_files#index-files_toc
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #82 on: March 23, 2019, 11:45:38 AM »
Main indexes in the four scripts should be fine and complete now:

Tipiṭaka (Roman)
តិបិដក (បាឡិ​ខ្មែរ) ติปิฎก (Thai) д̇ибидага (кириллица)
My person currently ties to rebuild the index by actualization option, which actually seems to be double slower as to build anew, but possible would not aim in no index when stopping in between (about 3000 pages of 20500 indexed since this morning)
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
from: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #83 on: April 01, 2019, 12:23:19 PM »

Aramika   *

Ein oder mehrer Beiträge wurden hier im Thema abgeschnitten und damit in neues Thema "[ati.eu] Indexing, search engine " eröffnet, dem angehäng.
« Last Edit: April 01, 2019, 12:29:19 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #84 on: April 02, 2019, 08:18:28 AM »
{lang} and {ns-section} have now replaced on all pages except the 416 pages in cs-th (Thai, 268 in Atthakatha and 148 pages in Tika)

The further replacements ({file}, {path-source}...) could be made according the list above either page for page or with a script using the list. Files+/- etc, how ever, may need further renderings later. {no}... the same.

Sadhu for the great work and assitence of many to bring the first four languages into here and the availability for the Sangha and those with Nissaya.

Atma will look after the last xml converting into ati-syntax in the Khmer pages and then look after the css for "good" layouts.

An Excel-file which is of help for creation of the release files, also in languages to come, can be used: renaming_list.xlsx To extract them into directories and files for an upload the Converting lists into txt-files - Tools for Ati.eu can be used.
« Last Edit: April 07, 2019, 01:24:01 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +360/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #85 on: April 11, 2019, 12:38:23 PM »
Currently working on the "single-sutta release" files, which can require some time, given about 40.000 headers, but would then also give finally values for the {no..} replacements (for links to them) in the source-files.

Since making single files for Atthakatha and Tika would cause huge amount of files, if not skipping, and so Atma thought of implementing the related commentaries direct in the Sutta (Mula) files.
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Tags: