Recent Topics

[August 25, 2019, 07:42:15 PM]

[August 25, 2019, 07:01:43 PM]

[August 25, 2019, 03:11:24 PM]

[August 25, 2019, 01:24:15 PM]

[August 25, 2019, 12:02:02 PM]

[August 25, 2019, 11:16:13 AM]

[August 24, 2019, 04:33:41 AM]

[August 23, 2019, 01:34:43 AM]

[August 22, 2019, 10:24:37 AM]

[August 22, 2019, 06:58:35 AM]

[August 21, 2019, 09:56:13 AM]

[August 20, 2019, 06:15:17 AM]

[August 19, 2019, 01:43:01 PM]

[August 18, 2019, 04:08:12 PM]

[August 17, 2019, 08:57:24 AM]

[August 17, 2019, 07:47:03 AM]

[August 17, 2019, 05:52:08 AM]

[August 16, 2019, 11:17:41 AM]

[August 16, 2019, 09:39:24 AM]

[August 14, 2019, 06:05:05 AM]

[August 14, 2019, 04:49:54 AM]

[August 11, 2019, 01:02:12 PM]

[August 09, 2019, 02:15:16 PM]

[August 07, 2019, 11:14:15 AM]

[August 06, 2019, 07:25:37 AM]

[August 05, 2019, 06:48:08 PM]

[August 05, 2019, 04:54:14 PM]

[August 05, 2019, 01:35:16 PM]

[August 04, 2019, 07:27:01 AM]

[August 03, 2019, 04:41:10 PM]

[August 03, 2019, 02:19:08 PM]

[August 03, 2019, 01:39:56 PM]

[August 03, 2019, 01:05:00 PM]

[August 03, 2019, 12:50:15 PM]

[August 03, 2019, 09:05:14 AM]

Talkbox

2019 Aug 25 15:07:04
Vithou:  _/\_

2019 Aug 23 06:28:14
Cheav Villa:  _/\_ _/\_ _/\_

2019 Aug 23 06:06:18
Johann: At least here in the vally, people celebrate the Uposatha today. May it be blessed and meritful spend by those taking part.

2019 Aug 22 12:53:30
Cheav Villa:  _/\_

2019 Aug 22 10:04:46
Moritz: Chom reap leah _/\_

2019 Aug 22 10:01:05
Moritz: Vandami Bhante _/\_ _/\_ _/\_
Bong Villa _/\_

2019 Aug 21 10:59:03
Johann: May Sukha come to fulfillment, Nyom.

2019 Aug 21 10:44:55
Moritz: Chom reap leah, Bhante _/\_ I have some other stuff to do now and will come back later. _/\_ _/\_ _/\_

2019 Aug 21 09:15:49
Johann: Nyom Moritz

2019 Aug 21 08:22:24
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2019 Aug 20 11:46:26
Cheav Villa: Vandami Bhante  _/\_  _/\_ _/\_

2019 Aug 20 11:25:55
Johann: Nyom Villa

2019 Aug 16 12:51:30
Johann: Does she have any technical difficulty? Just because such could be.

2019 Aug 16 12:50:14
Johann: Nyom Anneliese

2019 Aug 15 04:29:20
Khemakumara:  _/\_ _/\_ _/\_ Sadhu

2019 Aug 15 03:49:34
Cheav Villa:  _/\_ _/\_ _/\_

2019 Aug 15 00:36:44
Johann: A blessed full moon Upusatha and much joy in merits

2019 Aug 11 14:35:01
Mohan Gnanathilake: Dear The Most Reverend Samanera Johann, Dhamma Greetings from Sri Lanka! Sehr ehrwürdiger Samanera Johann, Dhamma Grüße an Sie aus Sri Lanka!

2019 Aug 11 14:32:29
Mohan Gnanathilake: Dear The Most Reverend Samanera Johann, Dhamma Greetings from Sri Lanka!

2019 Aug 11 14:14:46
Johann: Nyom Mohan

2019 Aug 11 07:32:16
Cheav Villa:  _/\_ _/\_ _/\_

2019 Aug 11 01:15:57
Johann: Nothing much burdensome this time, Nyom Villa.

2019 Aug 10 16:42:46
Cheav Villa: How is Bhante health?  _/\_ _/\_ _/\_

2019 Aug 10 16:28:44
Cheav Villa: Vandami Bhante _/\_ _/\_ _/\_

2019 Aug 10 15:04:44
Johann: Nyom Vithou, Nyom Villa

2019 Aug 08 02:03:56
Cheav Villa: Sadhu Sadhu  _/\_ _/\_ _/\_

2019 Aug 08 01:32:20
Khemakumara:  _/\_ _/\_ _/\_ sadhu

2019 Aug 08 00:29:15
Johann: A blessed Uposatha-Sila-observation day and much recoicing with ones beauty investments and gains.

2019 Aug 03 01:35:23
Johann: Nyom Moritz

2019 Aug 03 01:09:55
Moritz: (or morning...)

2019 Aug 03 01:09:31
Moritz: Good evening, Bhante _/\_

2019 Aug 02 08:54:49
Cheav Villa:  _/\_ _/\_ _/\_

2019 Aug 02 07:30:06
Johann: Once really going for refuge, such is ensured.

2019 Aug 02 07:28:16
Johann: Sadhu, Sadhu

2019 Aug 02 07:04:04
Cheav Villa: May all suffering being healed under the refuge of the three gems _/\_ _/\_ _/\_

2019 Aug 02 05:36:31
Cheav Villa:  _/\_

2019 Aug 02 05:28:41
Moritz: (going to sleep now) _/\_

2019 Aug 02 05:28:24
Moritz: _/\_

2019 Aug 02 05:28:21
Moritz: Good morning, Bhante, bong Villa!

2019 Aug 02 01:37:32
Johann: Nyom Moritz

2019 Aug 02 01:32:14
Moritz: Vandami Bhante _/\_

2019 Jul 31 12:20:23
Johann: Nyom Moritz

2019 Jul 31 12:02:09
Moritz: Vandami Bhante _/\_

2019 Jul 31 12:01:42
Moritz: _/\_ _/\_ _/\_

2019 Jul 31 04:38:59
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 31 01:32:33
Johann: Sadhu

2019 Jul 31 01:12:19
Khemakumara: May all have a meritful, fruitful full moon uposatha

2019 Jul 31 01:09:55
Khemakumara: May the Buddha Parisā live  united, in harmony,  in accordance with the dhamma vinaya of the Buddha.

2019 Jul 30 15:48:19
Johann: Upasaka Jens

2019 Jul 29 05:58:57
Johann: Dhammata, Nyom

2019 Jul 28 19:00:12
Vithou: Everything fine with me. What about Bhante?  _/\_

2019 Jul 28 18:58:39
Vithou: kana bhante.

2019 Jul 28 16:26:30
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 28 16:19:49
Johann: Over 1100 fine material visitor at the same time. Mudita and a blessed mindful night.

2019 Jul 28 14:14:10
Johann: over 700 "Devas" following Nyom Villa currently here  :) maybe they will reach 1000 today.

2019 Jul 27 17:54:39
Johann: Nyom Vithou. Everthing fine for him?

2019 Jul 27 17:44:50
Vithou:  _/\_

2019 Jul 27 16:20:40
Johann: Upasaka Vinz

2019 Jul 24 23:34:36
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 24 13:21:25
Khemakumara:  _/\_ _/\_ _/\_ Sadhu

2019 Jul 24 13:10:12
Johann: May all spend a blessed Sila day

2019 Jul 19 17:04:51
Johann: Master Moritz. Much joy with good undertakings.

2019 Jul 19 17:01:59
Moritz: and off to work _/\_

2019 Jul 19 17:01:42
Moritz: Vandami Bhante _/\_

2019 Jul 16 09:09:25
Khemakumara:  _/\_ _/\_ _/\_ sadhu

2019 Jul 16 02:34:51
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 16 01:43:24
Johann: A meritful and joyful Fullmoo Uposatha obervance today!

2019 Jul 10 05:42:38
Khemakumara:  _/\_ _/\_ _/\_ Sadhu

2019 Jul 10 02:06:05
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 10 02:02:27
Johann: May all spend a blessed Sila-day today, engaging much in good deeds.

2019 Jul 09 11:04:55
Johann: A meritful rest of Sila-day, those who observe it today.

2019 Jul 07 06:03:30
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 06 14:38:48
Mohan Gnanathilake: Dear The Most Reverend Samanera Johann, Dhamma Greetings from Sri Lanka!

2019 Jul 06 14:38:26
Mohan Gnanathilake: Sehr ehrwürdiger Samanera Johann, Dhamma Grüße an Sie aus Sri Lanka!                                                                                                                                 

2019 Jul 06 14:11:36
Johann: Nyom Mohan

2019 Jul 06 13:15:40
Khemakumara:  _/\_ _/\_ _/\_

2019 Jul 06 13:03:25
Johann: Kana will try to send the other half of bag as well as "tnam luvin".

2019 Jul 06 12:57:40
Johann: Half the bag, 7 pills, leaded fast to cure.

2019 Jul 06 12:56:05
Johann: Kana wondered about eye and head ache, later reading that viruse, if on head, easy can damage both.

2019 Jul 06 12:54:26
Johann: Kana had to use anti-biotica (augumentine) of which was still left

2019 Jul 06 12:29:25
Khemakumara:  _/\_ _/\_ _/\_ good state of mind.  The infection of the skin isn't already healed but getting better day by day.

2019 Jul 06 12:18:09
Johann: Bhante. Already good healthy again?

2019 Jul 06 12:12:21
Khemakumara: Nyom Cheav Villa

2019 Jul 06 12:11:55
Khemakumara:  _/\_ _/\_ _/\_ Bhante Johann

2019 Jul 06 11:46:47
Khemakumara: Nyom Vinz

2019 Jul 06 06:21:33
Johann: Sokh chomreoun Nyom

2019 Jul 06 04:29:33
Cheav Villa: ថ្វាយបង្គំព្រះអង្គ _/\_ _/\_ _/\_

2019 Jul 05 12:27:20
Johann: Sadhu

2019 Jul 05 07:51:59
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 05 06:52:40
Khemakumara: Today isn't a"full moon"uposatha,  but nevertheless it can be also a"full heart"day of observance and sila.

2019 Jul 04 16:42:58
Moritz: Bong Villa _/\_

2019 Jul 04 16:22:16
Moritz: Vandami Bhante _/\_

2019 Jul 02 04:43:47
Khemakumara:  _/\_ _/\_ _/\_ Sadhu, Sadhu

2019 Jul 02 02:04:50
Johann: A blessed and meritful new-moon Uposatha

2019 Jul 01 06:43:03
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jul 01 04:09:06
Johann: May those undertaking the Uposatha today spend the new-moon joyfull with much merits.

2019 Jun 26 01:07:18
Johann: Good to hear

2019 Jun 25 16:22:42
Cheav Villa: ជំរាបសួរបងស្រី Norum  :D _/\_

2019 Jun 25 12:48:21
Vithou:  _/\_

2019 Jun 25 05:02:43
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]

New Uploads (login!)

Dear Visitor!

Herzlich Willkommen auf sangham.net! Welcome to sangham.net!
Ehrenwerter Gast, fühlen sie sich willkommen!

Sie können sich gerne auch unangemeldet an jeder Diskussion beteiligen und eine Antwort posten. Auch ist es Ihnen möglich, ein Post oder ein Thema an die Moderatoren zu melden, sei es nun, um ein Lob auszusprechen oder um zu tadeln. Beides ist willkommen, wenn es gut gemeint und umsichtig ist. Lesen Sie mehr dazu im Beitrag: Melden/Kommentieren von Postings für Gäste
Sie können sich aber auch jederzeit anmelden oder sich via Email einladen und anmelden lassen oder als "Visitor" einloggen, und damit stehen Ihnen noch viel mehr Möglichkeiten frei. Nutzen Sie auch die Möglichkeit einen Segen auszusprechen oder ein Räucherstäbchen anzuzünden und wir freuen uns, wenn Sie sich auch als Besucher kurz vorstellen oder Hallo sagen .
Wir wünschen viel Freude beim Nutzen und Entdecken des Forums mit all seinen nützlichen Möglichkeiten .
 
Wählen Sie Ihre bevorzugte Sprache rechts oben neben dem Suchfenster.

Wähle Sprache / Choose Language / เลือก ภาษา / ជ្រើសយកភាសា: ^ ^
 Venerated Visitor, feel heartily welcome!
You are able to participate in discussions and post even without registration. You are also able to report a post or topic to the moderators, may it be praise or a rebuke. Both is welcome if it is meant with good will and care. Read more about it within the post: Report/comment posts for guests
But you can also register any time or get invited and registered in the way to request via Email , or log in as "Visitor". If you are logged in you will have more additional possibilities. Please feel free to use the possibility to  give a blessing or light an incent stick and we are honored if you introduce yourself or say "Hello" even if you are on a short visit.
We wish you much joy in using and exploring the forum with all its useful possibilities  
Choose your preferred language on the right top corner next to the search window!

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] Replacement, regex issues (Content styling)  (Read 23816 times)

0 Members and 1 Guest are viewing this topic.

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #30 on: September 06, 2018, 02:43:58 AM »
Sadhu!

The options "multiline", upper/lower case... replace the use of delimiter.
Usually putting the search between /{string}/x. x would give definitions to lower/upeer case, more the one line...

So more user-friendly. Let's see if it can match with the previous "hack" in regard of 10.000 and more matches.

Seems to work fine, shortly tested.
« Last Edit: September 06, 2018, 02:53:11 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #31 on: September 17, 2018, 09:40:43 AM »
  • Just to report: the multiline option (when working without delimiter) seems not to work proper. All well by simple using delimiters.
  • Data-capacity: the limit is some over 100MB, which is problematic to replace to large things on the ati pages:


1. Spaces at line-beginning and linebreaks before tags, using find: \n[\s]+< and replace with \n\n, one one hand because replaced would nevertheless give a match and doing folder by folder would need long and has it's and at the root lang. (just lib:thai: could be managed so far, namespace thanissaro would require 300MB+, all in a lang-space propable some 10GB). A possible way, if nothing else found, is maybe 2 two step way, replacing firts with any special character and this later with two line-break. In this way matches can be reduced, slowly, slowly, step by step (about 20-50h).

2. p-tags with two line-breaks by using something like find <\/p>[\s]*<p> and replace with \n\n.

3. the many spaces and tabs between tags without touching/destroying unformated textpages (not thought in detail about it, but would be a mass-problem as well)

4. later on things like em, i, b, br, u, s-tags, while these matches can of cause be reduced step by step.

5. of cause the will be other mass-replacements harder to manage, but can be all of cause done by beggar-"tricks" and effort and patient like always.

* Johann : switching back to huge amount of pts-dictionary -> accessibility replacements for "dummies" and those not wishing to become schoolars or x.y.z., ax4 language speaker, Brahmans or depending on them, before or rather then gaining awakening.
« Last Edit: September 17, 2018, 09:46:26 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #32 on: September 21, 2018, 01:46:31 PM »
The result-page does no more display the amount of matched pages and matches. Only the amout of replacements, after execution, would be displayed.
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Danilo

  • Aramika
  • Regular Member / Normales Mitglied
  • *
  • Sadhu! or +14/-0
  • Gender: Male
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #33 on: July 19, 2019, 04:20:17 AM »
Bhante and readers,  _/\_

I've managed to learn how to use dokuwiki a bit and have improved some details in this page as a sample.
Between other changes for the better, I've used the dokuwiki's footnotes feature because it doesn't need to go to the bottom of the page to read it.
If there is no problem with the changes, I would like to use this page as a model to edit the other pages as well.

Note that the words (those wrapped in "//") in the titles can't be displayed as italic. But this can be fixed by installing this plugin.

It's pretty simple:
1. Rename the plugin's directory to "wikiformatstyling"
2. Place the directory in "dokuwiki/lib/plugins"

I have tested and it did worked.

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #34 on: July 19, 2019, 05:30:42 AM »
Sadhu, Sadhu

If having any general styling idea, good to give it as sample. My person is currently prossessing to regex all html stuff global on the pages.

It might need another weeks to match all. i, b, em, strong, u tags may be replaced already completely. Some a-tags are still to match, anchors and picture-links, may still make much work, images might need some manual care since needing the whole path for linking to larger picture.

If Upasaka Danilo focus on one page, such is great.

The header styling seems to be great, just not sure in how far it might cause problems with other plugins like include. Generally my person thinks that the more lesser plugins the lesser troubles and maintaining issues.

Not sure if simply removing stylings in headers, which my person thought of doing after having replaced all htmls, might be not better.

Best to coordinate plugin issues with Upasaka Moritz and also let him keep the overview about installations, at least known if he might not have time.

Some comments on the edits Nyom Danilo made:

Footnote: generally good to use wikis tools, but in regard of many many pages, and the immobility of global replacement without errors, since very different, my person would not make use or it for old pages. The use of wiki only becomes also a problem for extended footnotes, incl. blockquotes, lists... a great challenge even with the ya-list mode, but possible.

Removing div-tags and adding styling tags: Till now Atma looked to simply bring all to one standard. So there might be parts in the header which will then global removed or replaced. The css has one some stylings yet and is not done for now.

Anchors also still in header and under removing: Althought indexes could be removed there are many cross-links on other pages. If removing the original anchors one would need to seek for all links to them and change them as well. Huge work and possible so far, but in regard of old links all around the internet (zze-links will get later redirects to ati), one would cause a lot of "death" links. So anchors should be best never removed.

Divisions around headers:

Code: [Select]
<WRAP centeralign>​ 
===== A Brief Summary of the Buddha'​s Teachings ​=====
</WRAP>

Still there are divisions (use of div instead of WRAP general preferred) wraping headers. This causes the section-edit not to work. Atmas objectives are to fix that global but only after all htmls are replaced.

Further: there is no need for particular styling of headers since that can, actually is already, made in the css-sheed. They have already centeralign styling.

Styling in links: like

Code: [Select]
[[ptf/​dhamma/​sacca/​sacca1/​index_en.html|//​Dukkha://]]

No need to do that manually, there are thousands of such. That will bee replaced by regex global. Half styled link texts will be not possible to maintain easy so removed.

Block-quotes and other div in content:

Code: [Select]
	<blockquote>"​Birth is ended, the holy life fulfilled, the task done! There is nothing further for the sake of this world."​ 	+	<WRAP indent> 
- <cite> [[en:​ptf:​buddha#​done|MN 36]]</cite></​blockquote>

They are all fine already as they are it allready replaces with wiki and wrap tags, like this. It does display wrong as code because there is still a tab at the beginning of the line. Removing just the tab here will display it perfect so far. blockquote is a additional plugin ati uses, incl. cite-tag

html-values:

There are still such as &​iuml;​ around. If coming across, best to select them in a list with its proper replacement so my person could make this global for all pages.

Footer:

No need to but much effort in manual editing the divs and styling. That is an issue for thousands of pages and will be made at "once".

Content edits - Styling edits:

If seeing certain typos, small style issues in text,... aside of div-, span-tags, great if correcting. If seeing something strange of an old html tag, best to report it and collect on one place.

Sadhu for efforts! And mudita.

Atma thinks, how ever, easier to undo the edits and repeat some of the small, incl. As Upasaka thinks that it is well, now possible more informed.


Mudita
« Last Edit: July 19, 2019, 05:36:57 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #35 on: July 19, 2019, 06:21:51 AM »
It's pretty simple:
1. Rename the plugin's directory to "wikiformatstyling"
2. Place the directory in "dokuwiki/lib/plugins"

Installing plugins: it's best, secure and easy made via the Admin-panel. Not sure if Nyom Danilo has admin rights, which should be no problem. Good how ever, since some tools are very powerful and could even destroy much, to coordinate with Nyom Moritz or ask my person if not sure in some regards.

In regard of distinguishing tags and divs, whether already changed or old ones. Old htmls tags incl. always ="..." or and other marks. For the stylings for wike tags always look like this <div class_texts #anchor_text> or  <span class_texts #anchor_text> or <span #anchor_text> or <div class_texts>. If seeing others then this, old, best to list them with a link to the place where seen, in a list (maybe a topic only for that, or here just a post).

Not sure if Nyom Danilo is familiar and skilled with regex, powerful, but also dangerous to destroy a lot. Let it be know if wishing to use it for global changes.
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 +250/-0
  • Gender: Male
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #36 on: July 19, 2019, 05:00:43 PM »
Sadhu! (and good to see Danilo back here)

I have not read everything in detail now, but have, after taking a quick look at it, installed the WikiStyle Script plugin.
It seems the plugin does not change any stored data, but only affects how things are rendered.

Possible that there might be conflicts with other plugins like the include-plugin, as Bhante says. But it would not destroy any data.
If there are any problems with it, one can simply uninstall/deactivate it and maybe think of other solutions.

Not yet looked much at any results and if all works correctly, but the example page seems to look fine so far.

I gave Danilo Admin rights now.

_/\_ _/\_ _/\_


* Moritz will not have time to look at anything deeper until Sunday

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #37 on: July 19, 2019, 05:09:06 PM »
Sadhu

The mod seems also to solve the problem of styling in link texts and seems to release from a lot of work so far.
« Last Edit: July 20, 2019, 06:40:19 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Offline Danilo

  • Aramika
  • Regular Member / Normales Mitglied
  • *
  • Sadhu! or +14/-0
  • Gender: Male
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #38 on: July 21, 2019, 03:14:27 AM »
Not sure if Nyom Danilo is familiar and skilled with regex, powerful, but also dangerous to destroy a lot. Let it be know if wishing to use it for global changes.

I have some experience with regex.

If Bhante thinks it's a good idea, he could specify the patters to be matched in the html pages and the output data of the dokuwiki's pages, thus a standard model would be clearly defined to be used as reference and I (or anyone else) could come up with the corresponding regex rules and do the appropriate changes.

When editing the html page, I had saw many tags which didn't appeared to had any effect. So I end up removing it.


Sadhu! (and good to see Danilo back here)

I have not read everything in detail now, but have, after taking a quick look at it, installed the WikiStyle Script plugin.
It seems the plugin does not change any stored data, but only affects how things are rendered.

Possible that there might be conflicts with other plugins like the include-plugin, as Bhante says. But it would not destroy any data.
If there are any problems with it, one can simply uninstall/deactivate it and maybe think of other solutions.

Not yet looked much at any results and if all works correctly, but the example page seems to look fine so far.

I gave Danilo Admin rights now.

_/\_ _/\_ _/\_


* Moritz will not have time to look at anything deeper until Sunday

Thanks, Moritz. _/\_

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #39 on: July 21, 2019, 06:45:25 AM »
Althought no problem, Nyom Danilo , general in Dhamma, never, if correcting, risk that something get lost. If not seeing the use for now, simply "hide" it. In that way the Dhamma could be maintained till in our days.

Atma, as told, will need some days more to replace the most (lists and tables will need manual edits).

Next step would be to bring it in a nice easy standard and creat templets for new pages.

Ati had a huge standard and my person thinks that most is good to carry on. It needs a while to understand all (working now 7+ years with it, still finding hidden treasures).

Is Nyom familar with css?

Some of the ATI.synax features he can find at Ati.eu Syntax. Detail Doku is not written for now, even having started. The topic old posts here give some impressions for understanding.

To investigate and see of what Atma is currently doing, best to check Activity Lists or http://accesstoinsight.eu/index?do=recent

If wishing to use regex for many pages (be careful, can damage much and not easy till impossible to recover, incl all Sanghayana Tipitakas) he finds the batcheditor tool in the Admin area.

(The last year+ Atma had started all anew surely 2,3 times... 10.000 of pages, because some mistakes...)
« Last Edit: August 02, 2019, 10:03:24 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #40 on: July 26, 2019, 09:40:22 AM »
Updates Info:

Link-tags should be now all replaced by wiki-mark-ups.

Certain things that will need further fixes in regard of links.

  • relative links, missing ./ or ../ at the beginning would not work for now. General my person tends to replace relative links with the whole path, starting with :en:....:file

  • since the structure has been slightly changed in regard of the tipitaka folder, starting with adding :sut: and renaming folders already toward the cs-rm standard (not all done for now, especially in the kn folder) not all links are correct for now and need work.
  • media-links may be not correct for now. Since image links with destiny require an obsolute url, having either host/_detail/en/.../file (display of pictures within the media manager) or host/_media/en/.../file (direct download) it's not possible to replace relative links correct more global. Alternative would be to either change the logos used by media-manager or to let go of the zze-logos for certain files.

  • links which have been generated by script in the doc-info at the footer need to be made as static one.
  • It might be that my person has deleted certain anchors which gave reference to headers from the index and also other pages. Those would be needed to be renewed.
  • There is no idea of how to maintain hover-texts in good ways. Most have been given up. The rest has been placed within images (Info sign)


My person will focus now on replacing the rest of div and span tags.

The Portuguese pages, btw, since even only 3 pages, would had increased the work and time by 50% are left behind meanwhile, thinking much faster to edit the three pages manual next to the global replacements.

The last and greatest challenge of replacements will then be that of the special lists and tables... and of course many small and special things will be left. 
« Last Edit: August 02, 2019, 10:03:02 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #41 on: July 31, 2019, 12:28:32 PM »
Divisions should be "fine" already. Some less alian Spans are left, and will be made tomorrow, when sun is shining.

There is one issue in regard of classes, but more over on id's: low letters. While notepad+ gives the possibility to replace with the lower-case value, batch-edit seems not to support \l$1. Since there might be lot of anchors and links to them (which are not so problematic since cut down to low case by the system if right, also for anchor extention) containing upper-case, maybe someone has an idea how to transform them more global.
« Last Edit: August 02, 2019, 10:02:45 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #42 on: August 02, 2019, 09:48:04 AM »
Looks like certain character combinations are not matched proper by the header-styling plugin. Sample:

=== //Object:// ===

returns

Object://

Atma didn't test it in detail yet.

http://accesstoinsight.eu/en/lib/authors/thanissaro/bmc/section0020

ohh... doc of wikistyle-pugin tells: ":// won't be converted."
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +364/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #43 on: August 02, 2019, 12:49:56 PM »
Plain text replacement &amp; -> & seems to have "destroyed" certain characters, mostly Pali.

More seemingly a simple header replacement of h5-tag. The action caused invisible characters in &.. html values.

http://accesstoinsight.eu/en/lib/authors/thanissaro/bmc/section0059?do=diff&rev2%5B0%5D=1564461374&rev2%5B1%5D=1564741857&difftype=sidebyside

Could such happen just by connectivity problems?

Not sure if it's better to try to recover the versions with the Spam-tool or replace the strangers (here the invisible could be maybe difficultly handled well).
« Last Edit: August 02, 2019, 01:40:15 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 +250/-0
  • Gender: Male
Re: [ATI.eu] Replacement, regex issues (Content styling)
« Reply #44 on: August 02, 2019, 10:51:39 PM »
That looks strange. No clear idea at the moment.
Knowing exactly what the regex to replace was might help to understand it better.

Connection problems should not be a possible reason.
Possibly a programming error from some of the modifications I made.

I think it is best to to keep the old revision, better than trying to replace from this result.

I can look in the morning, or if Bhante could send me the FTP password (already have the password now), maybe I find something useful from here (at work now, in taxi, but a "boring" night so far only sitting and waiting).

_/\_
« Last Edit: August 03, 2019, 01:00:25 AM by Moritz »

Tags: