Recent Topics

[Today at 07:21:41 AM]

[Today at 04:35:25 AM]

[May 24, 2019, 07:28:30 PM]

[May 24, 2019, 09:07:15 AM]

[May 24, 2019, 08:06:18 AM]

[May 23, 2019, 01:46:12 PM]

[May 23, 2019, 06:04:43 AM]

[May 23, 2019, 01:20:33 AM]

[May 22, 2019, 05:17:19 PM]

[May 22, 2019, 11:43:06 AM]

[May 22, 2019, 11:22:45 AM]

[May 22, 2019, 02:44:35 AM]

[May 22, 2019, 01:05:34 AM]

[May 21, 2019, 04:58:49 AM]

[May 20, 2019, 05:47:16 PM]

[May 20, 2019, 03:37:42 PM]

[May 19, 2019, 05:50:42 AM]

[May 18, 2019, 11:53:48 PM]

[May 18, 2019, 01:47:14 PM]

[May 18, 2019, 01:45:55 PM]

[May 18, 2019, 01:44:42 PM]

[May 18, 2019, 01:43:15 PM]

[May 18, 2019, 09:09:22 AM]

[May 18, 2019, 06:11:47 AM]

[May 18, 2019, 04:55:52 AM]

[May 18, 2019, 04:30:31 AM]

[May 18, 2019, 03:59:38 AM]

[May 17, 2019, 01:29:38 AM]

[May 14, 2019, 05:36:15 AM]

[May 13, 2019, 07:06:45 PM]

[May 12, 2019, 02:29:06 PM]

[May 05, 2019, 12:40:38 AM]

[May 02, 2019, 03:16:56 PM]

[May 01, 2019, 04:34:46 PM]

Talkbox

2019 May 24 14:13:29
Johann: Nyom Moritz

2019 May 24 13:28:52
Moritz: Vandami Bhante _/\_

2019 May 24 05:23:33
Johann: Venerable

2019 May 24 05:22:57
Khemakumara:  _/\_ _/\_ _/\_ Bhante Johann

2019 May 24 02:08:29
Johann: Nyom Moritz, Nyom Villa.

2019 May 24 01:55:56
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 24 01:54:14
Moritz: Bong Villa _/\_

2019 May 24 01:49:43
Moritz: Vandami Bhante _/\_

2019 May 24 01:06:04
Johann: Venerable Ariyadhammika  _/\_

2019 May 20 04:14:26
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 20 01:31:27
Johann:  _/\_ Bhante Indannano

2019 May 19 11:28:39
Khemakumara: Nyom Cheav Villa

2019 May 19 11:27:48
Khemakumara:  _/\_ _/\_ _/\_ Bhante Johann  _/\_ _/\_ _/\_

2019 May 18 23:55:08
Moritz: Vandami Bhante _/\_

2019 May 18 10:34:49
amanaki: Thank you Johann  _/\_

2019 May 18 09:59:33
Johann: Nyom Amanaki. Mudita that you may have possible found what searched for on a special day.

2019 May 18 09:24:56
Maria:  _/\_

2019 May 18 09:24:35
Maria: werter Bhante!

2019 May 18 09:22:43
Johann: Nyom Mizi

2019 May 18 09:21:31
Johann: Nyom Sophorn, Nyom Villa... may all here but also there rejoice in own and others goodness.

2019 May 18 05:03:47
Cheav Villa: សាធុ​សាធុ _/\_ _/\_ _/\_

2019 May 18 02:16:49
Moritz: _/\_ _/\_ _/\_

2019 May 14 07:51:30
Vithou:  _/\_

2019 May 14 05:40:54
Johann: As long as not using telefon while riding. Sokh chomreoun, Nyom.

2019 May 13 18:38:46
Moritz: Vandami Bhante _/\_ (sitting in Taxi)

2019 May 12 15:44:32
Johann: But better ask Nyom Chanroth, since Atma does not walk that far these days.

2019 May 12 15:04:01
Johann: not teally, Nyom Vithou. Still less water in the streams here. Some still dry. Needs a while down from the mountains and not that much rain yet.

2019 May 12 14:54:37
Vithou: how is the road Bhante? Is it float at the mountain leg?

2019 May 12 14:51:59
Vithou:   _/\_

2019 May 12 14:40:43
Johann: Nyom Vithou. Nothing special. Yes, rain is present every afternoon since some days.

2019 May 12 14:38:33
Vithou: Bhante, how is everything at Asrum? Is it raining everyday?

2019 May 12 07:05:30
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 12 03:58:19
Johann: a joyful day in merits on this Sila-day

2019 May 11 17:04:10
Cheav Villa:  :) _/\_

2019 May 11 16:16:56
Moritz: Bong Villa _/\_

2019 May 11 05:35:39
Cheav Villa: Sadhu Sadhu Sadhu  _/\_ _/\_ _/\_

2019 May 11 00:52:44
Johann: an meritful Uposatha, those keeping it today

2019 May 10 17:14:43
Moritz: Chom reap leah, I am going to work. _/\_

2019 May 10 17:09:07
Johann: Nyom Moritz

2019 May 10 17:07:14
Moritz: Vandami Bhante _/\_

2019 May 10 16:19:14
Moritz: Chom reap sour, bong Villa _/\_

2019 May 07 19:12:10
Johann: Nyom Vithou. Just some hours ago, thought of him.

2019 May 05 04:26:53
Chanroth:  _/\_ _/\_ _/\_

2019 May 04 11:41:08
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 04 10:27:38
Khemakumara: Nyom Cheav Villa

2019 May 03 10:08:09
Khemakumara: Sadhu, sadhu, sadhu  _/\_ _/\_ _/\_

2019 May 03 01:17:53
Johann: A meritful new moon Uposatha those celebrating it today.

2019 May 03 01:16:05
Johann: Talk box is buggy and lines love to jump. Better not editing.

2019 May 03 01:14:19
Johann: U Chanroth: "ថ្ងៃនេះខ្ញុំបាទ បានទទួលនៅសម្ភារៈមួយចំនួន សម្រាប់កសាងអាស្រមថ្មទូកសូមជូនបុណ្យដល់ពុទ្ធបរិសទ័ទាំងអស់គ

2019 May 02 15:15:58
Cheav Villa:   <.I.> _/\_

2019 May 02 15:15:17
Cheav Villa: Sorry because of kh font doesn't run well on my phone. Kana go to edit  to see the right  shout but  was wrong by deleting Pou  Chanroth 's  shout

2019 May 02 15:01:04
Cheav Villa: Mudita  :) _/\_

2019 May 02 13:47:17
Moritz: Anumodana puñña kusala! _/\_

2019 May 01 14:49:38
Johann: Now some monks are so close to many, that they can be visited even by feet.

2019 May 01 06:27:25
Johann: Thats accoss the whole city and hot (but cloudy  :) ) Best wishes and greatings.

2019 May 01 06:22:36
Cheav Villa: Get lost in the jungle of Phnom Penh from 2pm till 6pm

2019 May 01 05:40:26
Cheav Villa: Bhante Khemakumara arrived at Wat Sophea Khun in late evening  _/\_ _/\_ _/\_

2019 Apr 29 09:19:56
Johann: Meister Moritz

2019 Apr 29 08:51:27
Moritz: Vandami Bhante _/\_

2019 Apr 29 03:07:40
Moritz: Chom reap leah _/\_ I am going to sleep.

2019 Apr 29 02:59:19
Cheav Villa:  _/\_

2019 Apr 29 02:41:01
Moritz: _/\_ Bong Villa

2019 Apr 29 01:02:45
Johann: let's see wheter the rain has swept away the new floor ...

2019 Apr 28 13:58:19
Cheav Villa: First time of Heavy rain in Phnom Penh  _/\_ _/\_ _/\_

2019 Apr 28 10:33:14
Cheav Villa: សាធុ​សាធុ  _/\_ _/\_ _/\_

2019 Apr 28 10:21:50
Johann: Oh, rain.

2019 Apr 28 08:46:02
Johann: Pleasing soft weather, yes  :)

2019 Apr 28 08:45:28
Johann: Atma rejoices with the may who possible are able to see a death man walking toward the deathless, and have even occation for a lot of spontan merits.

2019 Apr 28 07:31:59
Cheav Villa: May​ Bhante be well  _/\_ _/\_ _/\_  The sky has been cloudy since 10:30am

2019 Apr 28 03:02:15
Ieng Puthy: 🙏🏻🙏🏻🙏🏻 May Bhante Khemakumara walk(nimun) safely. _/\_ _/\_ _/\_

2019 Apr 27 20:51:41
Johann:  :)

2019 Apr 27 20:51:11
Johann: may it be cloudy (in the hot time) so that feet may be well

2019 Apr 27 17:53:19
Moritz: May Bhante travel safely. _/\_ _/\_ _/\_

2019 Apr 27 16:38:40
Cheav Villa: May​ the Mighty Devas protected Bhante Khemakumara along the path to Wat Sophea Khun  _/\_ _/\_ _/\_

2019 Apr 27 16:03:29
Cheav Villa: ខ្ញុំ​កូណាបាន លឺថា ព្រះអង្គ​ Kemakumara នឹង​និមន្ត ចេញពី វត្ត​អកយំ​ នៅថ្ងៃស្អែក

2019 Apr 27 16:01:32
Cheav Villa: ថ្វាយបង្គំ​ព្រះអង្គ  _/\_ _/\_ _/\_

2019 Apr 27 14:28:42
Ieng Puthy: 🙏🏻🙏🏻🙏🏻

2019 Apr 27 06:55:13
Johann: Nyom Villa

2019 Apr 27 06:54:35
Cheav Villa:   _/\_ _/\_ _/\_

2019 Apr 27 06:31:42
Johann: Nyom Moritz

2019 Apr 27 06:09:34
Moritz: Vandami Bhante _/\_

2019 Apr 27 05:42:54
Moritz: _/\_

2019 Apr 27 00:54:04
Johann: A blessed and meritful halfmoon Sila-day

2019 Apr 25 07:32:44
Ieng Puthy: 🙏🏻🙏🏻🙏🏻អរព្រះគុណ ព្រះអង្គ

2019 Apr 25 04:42:51
Johann: Sokh chomreoun, Nyom. (May well-being come to fullfillment.)

2019 Apr 25 02:30:46
Ieng Puthy: តេីលោកRoman មានបំណងទៅវត្តអកយំនៅថ្ងៃណាដែរ?ព្រះអង្គ🙏🏻🙏🏻🙏🏻

2019 Apr 25 02:29:26
Ieng Puthy: ករុណានិង បងសុភឿន នឹងជូនលោកRoman ទៅវត្តអកយំបាន

2019 Apr 25 02:28:00
Ieng Puthy: ករុណានិង បង សុភឿន នឹងជួយស

2019 Apr 25 02:27:00
Ieng Puthy: 🙏🏻🙏🏻🙏🏻ករុណាថ្វាយបង្គំុព្រះអង្គ Vandami Bhante

2019 Apr 24 17:56:05
Cheav Villa: កូណា សរសេរពួកយើង​ គឺជំនួសមុខ​ បងពុទ្ធីនិងសុភឿន  _/\_

2019 Apr 24 17:54:42
Cheav Villa: បង​ពុទ្ធី បានអោយកូណាសួរអំពីពេលវេលា​ ដែលលោកRoman នឹងទៅអកយំ _/\_

2019 Apr 24 17:52:47
Cheav Villa:  _/\_ _/\_ _/\_  កូណាបាន ប្រាប់បងពុទ្ធី និង​សុ​ភឿន ប្រសិនបើគាត់អាចជួយបាន ព្រោះកូណាមិនមានសេរីភាពច្រើនដូចពួកគាត់

2019 Apr 24 17:01:34
Johann: Modern (ab)art of conversation and old patient culture...  :) great training only serious take on and rushing hide on messanger, fb, or in the ocean of Maras internet. Mudita.  :)

2019 Apr 23 13:36:18
Cheav Villa: Kana :D _/\_

2019 Apr 23 13:24:57
Johann: ? But light is always good. Oh, maybe the honey bee candles...: Atma told Upasika Sophorn to take them with her to share, since the mices would eat them away here. Mudita

2019 Apr 23 12:52:51
Cheav Villa: Kana Preah Ang  _/\_ Vithou told kana that Bhante sending us a pair of candles all through Bang Sophorn  :D _/\_

2019 Apr 23 12:06:15
Johann: Nyom Villa. Atma does not understand all circumstances but much mudita and appreciantion with sharing merits with each other, taking each other along good.

2019 Apr 23 11:04:23
Cheav Villa: កូណា ទើបបានដំណឹងពី Vithou ថាព្រះអង្គផ្ញើទានមួយគូមក តាមរយៈ​បងសុភ័ណ​ ខ្ញុំកូណា​សូម​អរព្រះគុណ​  :) _/\_

2019 Apr 23 11:02:19
Cheav Villa: ថ្វាយបង្គំ​ព្រះអង្គ  _/\_ _/\_ _/\_

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 9176 times)

0 Members and 1 Guest are viewing this topic.

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +248/-0
  • Gender: Male
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #30 on: February 21, 2019, 09:55:02 AM »
The name of each file in it's content as part of the text, Nyom. File XY may get it filename as text content at the fist line.

With notepat++"s replacements this can then be used to render certain links and anchors now not existing in the files.
I see. With a complete list of the files I could write a php script to let it be done on the server directly.

So, as I understand, this is the complete list of files for which this should happen?

Or do still some need to be renamed? This could also be done with a script on the server. I could write it on the weekend.

_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #31 on: February 21, 2019, 12:50:44 PM »
Sadhu!

Atma will finish the replacements as far as possible and then upload the files. The file-list should be fine. The files are renamed and syntax replacements are 90% done aside of the headers.

Similar to the use for the Khmer-Tipitaka, each header should get it's anchor and back-link and forward-link (to the released file in the "public area" by "include-plugins" use). It will not always match right but often in this way:

File-name:{pitaka}.{nikaya}.{book}.({sometimes chapter, like sn,an}.){subhead serial no.}

anchor for sutta: sang_id #sut.kn.iti.001
back path to the source file: (cs-rm|cs-km|cs-th|cs-ru):tipitaka:{file name}#sut.kn.iti.001
path to the released single sutta/vagga: (cs-rm|cs-km|cs-th|cs-ru):tipitaka:sut:kn:iti:sut.kn.iti.001|sut.kn.iti.001

======= pitaka =======
<span sang_id #sut>[[km:tipitaka:sut:index|sut]] | [[km:tipitaka:book_053#sut|book_053]]</span>

======= nikaya =======
<span sang_id #sut.kn>[[km:tipitaka:sut:kn:index|sut.kn]] | [[km:tipitaka:book_053#sut.kn|book_053]]</span>

======= book =======
<span sang_id #sut.kn.iti>[[km:tipitaka:sut:kn:iti:sut.kn.iti|sut.kn.iti]] | [[km:tipitaka:book_053#sut.kn.iti|book_053]]</span>

====== chapter ======
<span sang_id #sut.kn.iti.v1>[[km:tipitaka:sut:kn:iti:sut.kn.iti.v1|sut.kn.iti.v1]] | [[km:tipitaka:book_053#sut.kn.iti.v1|book_053]]</span>

===== title =====
<span sang_id #sut.kn.iti.v1.1>[[km:tipitaka:sut:kn:iti:sut.kn.iti#sut.kn.iti.v1.1|sut.kn.iti.v1.1]] | [[km:tipitaka:book_053#sut.kn.iti.v1.1|book_053]]</span>

==== subhead ====
<span sang_id #sut.kn.iti.001>[[km:tipitaka:sut:kn:iti:sut.kn.iti.001|sut.kn.iti.001]] | [[km:tipitaka:book_053#sut.kn.iti.001|book_053]]</span>

...possible to complicated and a lot of exceptions, since all different structured.

Maybe easier to put the file name under the header and a serial number for the similar headers. Preparing it like this:

====== chapter ======
<span sang_id #{file(-_.-_.)}>

===== title =====
<span sang_id #{file(-_.)}.v{no 1}>

==== subhead ====
<span sang_id #{file}.{no 1,2...}>


Once the last is present, it should be no problem to make the rest with normal regex.

Atma will look that he can upload them today or tomorrow, depending on lasting battery (and hopefully havn't used all web-space by other revisions till then) and leave the replacement anchors {file} and {no} in not not clear order in those files.

May Nyom not invest to much time in to complicated solutions, as told, to many inconsistencies to match it without rendering it another time anyway.

Putting the file name into files and making an increasing replacement, this two things Atma misses tools (or skill).

(Atma is just trying to keep a "guide to do for", doku, for additional languages/scripts like Burmes, Sri Lankan...)
« Last Edit: February 21, 2019, 01:13:04 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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #32 on: February 21, 2019, 02:29:51 PM »
This are the replacements done incl. the placeholders for the two kind of paths {path-source} {path-release}, filename-part {file-}, filename {file} and number {no}.

"Chapter" should be always corresponding to the file-name. (but just 10500+ replacements, 2698x4 => 300?)

{path-source}: {lang}:{section}:{file}
{lang}: cs-rm or cs-km or cs-th or cs-ru
{section}: tipitaka or anya or atthakatha or tika; according to the file-name-end *_any, *_att, *_tik, or * (no "_" for "tipitaka")

{path-release}: {lang}:{section}:{pitaka}:{nikaya}:({sub-nikaya}:){chapter}:({title}:){no}:

{file}: {pitaka}.{nikaya}.({subnikaya}.){book}.({title}.){chapter}.{no}_{section}

{file-}: id/file-name-release reduced by one namespace

{file--}: id/file-name-release reduced by two namespaces

{file+}: id/file-name-release increased by one namespaces

Note that "subhead" has sometimes {file} (dn), {file-} (an,sn,kn sometimes) or {file--}
 (mn). Att, Any, Tik may be even more various.


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

<p rend=[^\w]bodytext[^\w] n=[^\w]([^<>]*?)[^\w]><hi rend=[^\w]paranum[^\w]>([^<>]*?)<\/hi><hi rend=[^\w]dot[^\w]>\.<\/hi>([^\n]*?)<\/p>[\s]* <span para #para_$1>[$2]</span>$3\n\n

<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

<pb ed=[^\w]([^<>]*?)[^\w] n=[^\w]([^<>]*?)[^\w][\s]*\/> <span anchor #$1_$2></span>

<p rend=[^\w]bodytext[^\w]>([^\n]+?)<\/p>[\s]* $1\n\n

<note>([^<>]+?)<\/note> <span note>$1</span>

<p rend=[^\w]gatha([^<>]*?)[^\w]>([^\n]+)<\/p>[\s]* <div gatha$1>$2</div>\n\n

<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

<hi rend=[^\w]bold[^\w]>([^\n]+?)<\/hi> **$1**

<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>

<p rend=[^\w]book[^\w]>([^<>]*?)<\/p> ======== $1 ========\n<span sang_id #{file-}>[[{path-release}:{file-}|{file-}]] | [[{path-source}:{file}#{file-}|source]]</span>

<p rend=[^\w]chapter[^\w]>([^<>]*?)<\/p> ======= $1 =======\n<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}:{file}#{file}|source]]</span>

<p rend=[^\w]title[^\w]>([^<>]*?)<\/p> ===== $1 =====\n<span sang_id #{file+}>[[{path-release}:{file+}|{file+}]] | [[{path-source}:{file}#{file+}|source]]</span>

<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>

Headers with note:

<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>

<p rend=[^\w]chapter[^\w]>([^<>]*?)<span note>([^<>]*?)<\/span>([^<>]*?)<\/p> ======= $1 =======\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>

<p rend=[^\w]title[^\w]>([^<>]*?)<span note>([^<>]*?)<\/span>([^<>]*?)<\/p> ===== $1 =====\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>

Headers with anchors:

<p rend=[^\w]subhead[^\w]>([^<>]*?)<span anchor #(.+)<\/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>

<p rend=[^\w]chapter[^\w]>([^<>]*?)<span anchor #(.+)<\/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>

<p rend=[^\w]title[^\w]>([^<>]*?)<span anchor #(.+)<\/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>

<p rend=[^\w]book[^\w]>([^<>]*?)<span anchor #(.+)<\/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>


<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>

<p rend=[^\w](indent|unindented)[^\w]>([^\n]+)<\/p>[\s]* <div $1>$2</div>\n\n

Replacements for each language/script (cs-rm, cs-km, cs-th, cs-ru): header and footer

Code: [Select]
^(.*?)<body>(.*?)<\/body>(.*)$	{{section>en:tech:template_includes#cs-rm_header&nouser&nodate&noheader&noeditbutton&firstsectiononly}}\n<span hide>{file}</span>$2{{section>en:tech:template_includes#cs-rm_footer&nouser&nodate&noheader&noeditbutton&firstsectiononly}}

Script-specific replacements:

cs-km: replacement of ព្ព with ព្វ (according to Khmer spelling tradition in Pali)

(cs-rm: replacment of "m dot below" to "m dot above", still not finally decided)

See also ati-page edits
If not finding additional header-kinds and other tags to be replaces, the files will be uploaded, rendered with this replacements, starting tomorrow.

* Johann comment Friday: cloudy, maybe Saturday noon till upload possible.

7.3.2019: Some renderings added
« Last Edit: March 07, 2019, 04:16:09 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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #33 on: February 22, 2019, 02:41:46 PM »
Since having run out of sun-power: some cleanings of not matched case have been not finished today and after that it might be tomorrow afternoon for uploading the files. Just to keep informed.

* Johann informative update: still some not matched cases, cloudy and so possible no upload today.
« Last Edit: February 23, 2019, 12:03:52 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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #34 on: February 23, 2019, 01:00:38 PM »
Many dot. issues, so still much work online then. How ever, headers should be for a great fine. Atma has uploaded the Khmer files into cs-km:tipitaka. The files of tika, anya, atthakata have not moved into there folders yet (for tika files Atma has started, but not sure if it will be finished).

Roman has been started likewise. No moving of att, tik, any for today started, but all files uploaded into tipitaka-folder in cs-rm.

Some 15% battery left, it might be finished.


Rest would come tomorrow.
« Last Edit: February 23, 2019, 03:07:53 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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #35 on: February 24, 2019, 10:11:16 AM »
File are all uploaded (certain release after 6 years carry), the Thai _any, _tik, _att moving to folders any, tik... is in progress (probably an hour or to, good battery left today).
« Last Edit: February 24, 2019, 10:57:40 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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #36 on: February 24, 2019, 12:50:00 PM »
Uploads of the source-files and putting into their categories are done. Anumodana!

There are still some xml-tags left, most seemingly in the Cyrillic edition, caused by certain inconsistency (probably done by somebody else for this font/script).

At this place, does Upasaka Dmytro ( Admin ) know anything about the situation of the Cyrillic Edition? And has it been given to a possible existing Sangha using this script, aside of the surely huge amount of not so proper accesses? If not so, if Nyom likes to assist ad take part on the merits, he may invite personally to make use of it and give access and accounts. If he likes to scarifies effort and knowledge to render the storage and text proper, he may do so given, for the Sanghas and their devoted followers use.

Atma would continue to correct certain syntax with batch-edit, if this does not disturb any fort that Nyom Moritz possible likes to put into. Headers might be touched for some less cases where the "note" span is included (i.e. have no placeholders now).

Ohh... no search results => re-indexing!? That will be long. Any idea who best should try it?

Ohh... and the Thai files are Cyrillic... looks likes some detail review required. Started upload Thai anew.
« Last Edit: February 24, 2019, 01:09:54 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +248/-0
  • Gender: Male
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #37 on: February 24, 2019, 01:20:07 PM »
Vandami Bhante,

so, to see if I understand correctly again: Filename just need to be put in the beginning of the text,
so maybe just

Code: [Select]
{filename}

...everything else from the file

?

And filename should have the complete path, for example "cs-km/anya/vismag.nid.23_any.txt"?



Quote
Ohh... no search results => re-indexing!? That will be long. Any idea who best should try it?

I think it would be best if I do the re-indexing from here, having a stable internet connection.

_/\_
« Last Edit: February 24, 2019, 01:28:13 PM by Moritz »

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #38 on: February 24, 2019, 01:32:40 PM »
There are now placeholders, Nyom Moritz, like {file} {file-} {file--} {file+} on each page, not only in the header part (like colored mentioned/specified below). If replacing just all {file} with the file-name of the list, then it should be possible for Atma to render the other.

http://www.accesstoinsight.eu/cs-rm/tipitaka/sut.an01.v01 for example

search for {file} replace with sut.an01.v01 (file-renaming-list is actually no more needed)

Code: [Select]
<div #cs-rm>
{{section>en:tech:template_includes#cs-rm_header&nouser&nodate&noheader&noeditbutton&firstsectiononly}}
<span hide>{file}</span>

<div centeralign> Namo tassa bhagavato arahato sammāsambuddhassa</div>

<div centeralign #nikaya>**Aṅguttaranikāyo**</div>
<span sang_id #{file--}>[[{path-release}:{file--}|{file--}]] | [[{path-source}:{file}#{file--}|source]]</span>

======== Ekakanipātapāḷi ========
<span sang_id #{file-}>[[{path-release}:{file}:{file}|{file-}]] | [[{path-source}#{file-}|source]]</span>

======= 1. Rūpādivaggo =======
<span sang_id #{file}>[[{path-release}:{file}|{file}]] | [[{path-source}#{file}|source]]</span>

<span para #para_1>[1]</span> Evaṃ <span anchor #T_1.0001></span><span anchor #V_1.0001></span><span anchor #P_1.0001></span><span anchor #M_1.0001></span> me sutaṃ – ekaṃ samayaṃ bhagavā sāvatthiyaṃ viharati jetavane anāthapiṇḍikassa ārāme. Tatra kho bhagavā bhikkhū āmantesi – ‘‘bhikkhavo’’ti. ‘‘Bhadante’’ti te bhikkhū bhagavato paccassosuṃ. Bhagavā etadavoca –

‘‘Nāhaṃ, bhikkhave, aññaṃ ekarūpampi samanupassāmi yaṃ evaṃ purisassa cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, itthirūpaṃ. Itthirūpaṃ, bhikkhave, purisassa cittaṃ pariyādāya tiṭṭhatī’’ti. Paṭhamaṃ.

<span para #para_2>[2]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekasaddampi samanupassāmi yaṃ evaṃ purisassa cittaṃ pariyādāya <span anchor #V_1.0002></span> tiṭṭhati yathayidaṃ, bhikkhave, itthisaddo. Itthisaddo, bhikkhave, purisassa cittaṃ pariyādāya tiṭṭhatī’’ti. Dutiyaṃ.

<span para #para_3>[3]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekagandhampi samanupassāmi yaṃ evaṃ purisassa cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, itthigandho. Itthigandho, bhikkhave, purisassa cittaṃ pariyādāya tiṭṭhatī’’ti. Tatiyaṃ.

<span para #para_4>[4]</span> ‘‘Nāhaṃ <span anchor #T_1.0002></span><span anchor #P_1.0002></span>, bhikkhave, aññaṃ ekarasampi samanupassāmi yaṃ evaṃ purisassa cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, itthiraso. Itthiraso, bhikkhave, purisassa cittaṃ pariyādāya tiṭṭhatī’’ti. Catutthaṃ.

<span para #para_5>[5]</span> ‘‘Nāhaṃ <span anchor #M_1.0002></span>, bhikkhave, aññaṃ ekaphoṭṭhabbampi samanupassāmi yaṃ evaṃ purisassa cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, itthiphoṭṭhabbo. Itthiphoṭṭhabbo, bhikkhave, purisassa cittaṃ pariyādāya tiṭṭhatī’’ti. Pañcamaṃ.

<span para #para_6>[6]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekarūpampi samanupassāmi yaṃ evaṃ itthiyā cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, purisarūpaṃ. Purisarūpaṃ, bhikkhave, itthiyā cittaṃ pariyādāya tiṭṭhatī’’ti. Chaṭṭhaṃ.

<span para #para_7>[7]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekasaddampi samanupassāmi yaṃ evaṃ itthiyā cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, purisasaddo. Purisasaddo, bhikkhave, itthiyā cittaṃ pariyādāya tiṭṭhatī’’ti. Sattamaṃ.

<span para #para_8>[8]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekagandhampi samanupassāmi yaṃ evaṃ itthiyā cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, purisagandho. Purisagandho, bhikkhave, itthiyā cittaṃ pariyādāya tiṭṭhatī’’ti. Aṭṭhamaṃ.

<span para #para_9>[9]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekarasampi samanupassāmi yaṃ evaṃ itthiyā cittaṃ pariyādāya <span anchor #V_1.0003></span> tiṭṭhati yathayidaṃ, bhikkhave, purisaraso. Purisaraso, bhikkhave, itthiyā cittaṃ pariyādāya tiṭṭhatī’’ti. Navamaṃ.

<span para #para_10>[10]</span> ‘‘Nāhaṃ, bhikkhave, aññaṃ ekaphoṭṭhabbampi samanupassāmi yaṃ evaṃ <span anchor #T_1.0003></span> itthiyā cittaṃ pariyādāya tiṭṭhati yathayidaṃ, bhikkhave, purisaphoṭṭhabbo. Purisaphoṭṭhabbo, bhikkhave, itthiyā cittaṃ pariyādāya tiṭṭhatī’’ti. Dasamaṃ.

<div centeralign>Rūpādivaggo paṭhamo.</div>
{{section>en:tech:template_includes#cs-rm_footer&nouser&nodate&noheader&noeditbutton&firstsectiononly}}
</div>

{file-} would be sut.an01

{file--} would be sut

{file+} would be sut.an01.v01.xx (not easy to automatically render)

{no} would be a serial 1, 2, 3... for each page

{path-source} would be the path of the current file, i.e. cs-rm:tipitaka

{path-release} would be cs-rm:tipitaka:sut:an (possible not always correct)
« Last Edit: February 24, 2019, 01:43:30 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +248/-0
  • Gender: Male
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #39 on: February 24, 2019, 01:49:21 PM »
Quote
search for {file} replace with sut.an01.v01 (file-renaming-list is actually no more needed)

Okay. So I just replace {file}, {file-} {file--} according to this pattern for now, for all files inside cs-km, cs-rm and cs-ru and then rebuild the index.

Thai then after re-upload when it is finished. Correct?

_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #40 on: February 24, 2019, 02:05:42 PM »
Quote
search for {file} replace with sut.an01.v01 (file-renaming-list is actually no more needed)

Okay. So I just replace {file}, {file-} {file--} according to this pattern for now, for all files inside cs-km, cs-rm and cs-ru and then rebuild the index.

Thai then after re-upload when it is finished. Correct?

_/\_

Sadhu!

Upload nearly finished, moving att, any, tik-files from tipitaka-folder to their folders might need another 1-2h. Atma would give an "ready", then.
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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Status of Cyrillic Chatta Sanghayana heritage
« Reply #41 on: February 24, 2019, 02:16:16 PM »

Aramika   *

Ein oder mehrer Beiträge wurden hier im Thema abgeschnitten und damit in neues Thema "Status of Cyrillic Chatta Sanghayana heritage " eröffnet, dem angehäng.
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 +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #42 on: February 24, 2019, 02:50:14 PM »
Overwriting the files in Thai in their folders seems to need more time, possible 5-6sec each file. Tika is still in progress since before. If Nyom thinks it would be faster with his tools, Atma would stop it and leave the move, the overwritting of the rest of _tika (if still), _any, _att-files found in the folder cs-th left, to the folders cs-th:anya:, cs-th:tika:, cs-th:atthakatha:. But just asked so that it would not take possible valuable time of Nyom.

On the other hand, since just insert file-names, it would not matter if made later, the overwrite, or? Andro-ES-explorer just gave up to response.
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +248/-0
  • Gender: Male
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #43 on: February 24, 2019, 03:11:52 PM »
Overwriting the files in Thai in their folders seems to need more time, possible 5-6sec each file. Tika is still in progress since before. If Nyom thinks it would be faster with his tools, Atma would stop it and leave the move, the overwritting of the rest of _tika (if still), _any, _att-files found in the folder cs-th left, to the folders cs-th:anya:, cs-th:tika:, cs-th:atthakatha:. But just asked so that it would not take possible valuable time of Nyom.

Quote
On the other hand, since just insert file-names, it would not matter if made later, the overwrite, or?
It would not matter. I could do it later when all is moved to the right place.


But it seems I still don't understand everything completely. So some more clarifications:

For each of the directories cs-rm, cs-km, ... etc. there are these subdirectories:
anya
atthakatha
tika
tipitaka

Some files from tipitaka are now being moved into anya, attakatha, etc.
(Only remaining files should be the sut.[...] files?)

Maybe moving could go faster if I write a script for that, too. So, what exactly must be moved?

All files inside tipitaka ending with _any should be moved to anya, for example? And what else? If there is a simple pattern, I think moving everything with a PHP script would be easy and go much faster than via FTP.


And then... after that is finished, I should replace {file} with the filename (without .txt ending) and maybe some other replacements.

But the patterns described here do not fit for all files. For example, some files like vismag.nid19_any:
{file-} would be vismag
{file--} would be empty?

Maybe best to clarify on the phone. I will try to call. _/\_
« Last Edit: February 24, 2019, 03:34:08 PM by Moritz »

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +361/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] CSCD xml to ati.eu format: converting, editing
« Reply #44 on: February 24, 2019, 03:33:51 PM »
Quote
Some files from tipitaka are now being moved into anya, attakatha, etc.

In cs-th, yes, overwritting the wrong cyrill files. Cs-rm, cs-ru, cs-km, should be fine already.

The upload tool on laptop does not allow search for _att for example, so my person uploaded all first to the folder tipitaka and moved the _any, _tik, _att files with an app on android, which allows search and handle this search, to the right folders. Those files who have no _any, _att, _tik at the and, remain as tipitaka files. And yes, for each language there are this four folders.

Quote
For each of the directories cs-rm, cs-km, ... etc. there are these subdirectories:
anya
atthakatha
tika
tipitaka
Yes.

Quote
(Only remaining files should be the sut.[...] files?)
No. They are just one part of the files (remaining) in the tipitaka folder, aside of vin and abh

Quote
All files inside tipitaka ending with _any should be moved to anya, for example? And what else? If there is a simple pattern, I think moving everything with a PHP script would be easy.

All files in cs-th/tipitaka/ (only cs-th namespace!), containing _any at the end, to cs-th/anya/
All files in cs-th/tipitaka/ (only cs-th), containing _tik at the end, to cs-th/tika/
All files in cs-th/tipitaka/ (only cs-th), containing _att at the end, to cs-th/atthakatha/

(over-writting the existent in folders (which are wrongly cyrillic))

Quote
And then... after that is finished, I should replace {file} with the filename (without .txt ending) and maybe some other replacements.
Yes, but no "should", could, if wishing.

Quote
But the patterns described here do not fit for all files. For example, some files like vismag.nid19_any:
{file-} would be vismag
{file--} would be empty?

Yes, Atma is aware of it, especially in anya, where there are flatter structure. But to handle the "lesser" inconsistent "manual" is thought to be easier then to think about all possibilities. Maybe a "if name is "0" then "(whole) filename" might be possible to cause no errors.

Quote
Maybe best to clarify on the phone. I will try to call.
How ever Nyom Moritz likes. Still some battery left (12% on LP, 40% on tablet).

Mudita









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

Tags: