Recent Topics

[Today at 07:13:01 AM]

[June 24, 2019, 10:39:34 AM]

[June 24, 2019, 07:17:31 AM]

[June 24, 2019, 04:51:23 AM]

[June 24, 2019, 01:58:24 AM]

[June 23, 2019, 04:31:10 PM]

[June 23, 2019, 08:31:21 AM]

[June 23, 2019, 05:45:24 AM]

[June 22, 2019, 06:24:16 AM]

[June 22, 2019, 05:04:59 AM]

[June 21, 2019, 06:57:43 AM]

[June 20, 2019, 09:14:19 AM]

[June 17, 2019, 07:50:33 PM]

[June 16, 2019, 01:11:35 PM]

[June 16, 2019, 05:18:24 AM]

[June 16, 2019, 04:34:53 AM]

[June 15, 2019, 12:43:56 PM]

[June 15, 2019, 11:04:03 AM]

[June 15, 2019, 11:02:12 AM]

[June 15, 2019, 06:57:16 AM]

[June 15, 2019, 06:08:53 AM]

[June 12, 2019, 10:30:41 AM]

[June 12, 2019, 06:13:12 AM]

[June 12, 2019, 05:32:58 AM]

[June 12, 2019, 05:04:05 AM]

[June 12, 2019, 03:27:40 AM]

[June 11, 2019, 03:17:28 PM]

[June 11, 2019, 01:50:14 PM]

[June 11, 2019, 12:35:13 PM]

[June 11, 2019, 11:45:49 AM]

[June 09, 2019, 12:47:01 PM]

[June 09, 2019, 06:08:40 AM]

[June 06, 2019, 06:25:19 AM]

[June 06, 2019, 05:40:23 AM]

[June 06, 2019, 04:52:49 AM]

[June 06, 2019, 04:35:16 AM]

[June 04, 2019, 03:34:05 PM]

[May 31, 2019, 02:10:34 PM]

[May 31, 2019, 11:18:24 AM]

[May 31, 2019, 10:00:56 AM]

[May 31, 2019, 07:33:31 AM]

[May 30, 2019, 04:34:37 AM]

[May 29, 2019, 01:23:15 PM]

[May 29, 2019, 10:32:44 AM]

[May 29, 2019, 05:37:30 AM]

[May 29, 2019, 05:33:43 AM]

[May 29, 2019, 05:23:07 AM]

[May 29, 2019, 02:13:33 AM]

Talkbox

2019 Jun 25 05:02:43
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jun 25 01:34:59
Johann: May all spend a blessed meritful Sila observing day today

2019 Jun 25 01:34:36
Johann: May all spend a blessed meritful Sila observing day today

2019 Jun 25 01:34:17
Johann: May all spend a blessed meritful Sila observing day today

2019 Jun 23 19:01:54
Vithou:  _/\_

2019 Jun 17 10:19:29
Johann: Bhante Khemakumara. Everything fine, health? Can he walk like before already?

2019 Jun 17 06:34:44
Johann: Sadhu, Sadhu

2019 Jun 17 03:56:38
Cheav Villa: សាធុ សាធុ _/\_ _/\_ _/\_

2019 Jun 17 00:46:14
Khemakumara: May all have a joy-full and fruit-full  Uposatha full-moon day

2019 Jun 15 17:53:43
Cheav Villa: កូណាព្រះអង្គទាំងអស់គ្នាសុខទុក្ខធម្មតា ទាំងសុខភាពឈឺ ជា មិនទៀងទាត់  _/\_ _/\_ _/\_ ស្រីមុខក្រញ៉ូវ គាត់មានសុខភាពល្អជា

2019 Jun 15 13:03:21
Johann: All health?

2019 Jun 15 13:02:56
Johann: Nyom Muk-kamau?

2019 Jun 15 13:01:36
Johann: And own well-being, family?

2019 Jun 15 12:48:22
Johann: Maybe all busy like most at this times.

2019 Jun 15 12:44:14
Cheav Villa: បងពុទ្ធី និងវិធូរ ខ្ញុំកូណាមិនបានជួបគ្នា និងទាក់ទងគ្នាទេ ប៉ុន្មានខែចុងក្រោយនេះ _/\_ _/\_ _/\_

2019 Jun 15 12:42:16
Cheav Villa: ថ្វាយបង្គំព្រះអង្គ  _/\_ _/\_ _/\_

2019 Jun 15 04:21:08
Johann: Nyom Villa. All fine? Nyoms fellows, like Nyom Buddhi... havn't been seen since longer. All fine with friends and family?

2019 Jun 10 04:05:23
Cheav Villa: Sadhu Sadhu  _/\_ _/\_ _/\_

2019 Jun 10 01:47:04
Johann: Sadhu, Sadhu

2019 Jun 10 01:28:53
Khemakumara: May all have a fruitful waxing moon Uposatha!

2019 Jun 10 01:26:44
Khemakumara: Silena sugatiṁ yanti. Through virtue they go to a good destination.  Silena bhoga-sampadā.  Through virtue is wealth attained.  Silena nibbutiṁ yanti. Through virtue they go to Unbinding.  Tasmā silaṁ visodhaye. Therefore we should purify our virtue.

2019 Jun 06 14:52:24
Khemakumara:  _/\_ _/\_ _/\_ kana,  Bhante. The wound heals fast and good.

2019 Jun 06 13:46:02
Johann: Bhante is fine, at least better?

2019 Jun 05 11:53:33
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jun 05 05:19:35
Johann: "N'atthi santi param sukham", there is no peace equal the hail of release

2019 Jun 04 10:25:51
Johann: Nyom Villa

2019 Jun 04 05:13:11
Cheav Villa:  _/\_ _/\_ _/\_

2019 Jun 02 12:03:42
Cheav Villa: Sadhu Sadhu  _/\_ _/\_ _/\_

2019 Jun 02 00:29:09
Johann: May all enjoy the bliss of the fruitful observing of the Uposatha

2019 May 31 14:40:02
Cheav Villa: សាធុ​ សាធុ  _/\_ _/\_ _/\_

2019 May 31 13:47:09
Johann: Sadhu and Anumodana Nyom.

2019 May 31 12:40:14
Cheav Villa: សូមអោយព្រះអង្គឆាប់ជាសះស្បើយ  _/\_ _/\_ _/\_

2019 May 31 12:39:05
Cheav Villa: ព្រះអង្គKhemakumara ត្រូវបានពុទ្ធបរិស័ទនិមន្តទៅគ្លីនីកនៅជិតវត្តកាលពីម៉ោង​2 និងបានវះកាត់ព្យាបាល រួចត្រឡប់ទៅវត្ត

2019 May 31 12:36:20
Cheav Villa: ថ្វាយបង្គំ​ ព្រះ​អង្គ​ _/\_ _/\_ _/\_

2019 May 29 09:03:01
Johann: Had overseen Bhante here. Bhante Ariyadhammika  _/\_

2019 May 29 02:19:33
Khemakumara: Bhante Johann  _/\_ _/\_ _/\_

2019 May 28 04:18:48
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 27 10:03:55
Johann: Much in German, Nyom, currently. Atma will try to translate as much as possible, step by step.

2019 May 26 03:04:21
Cheav Villa:  _/\_ _/\_ _/\_

2019 May 26 03:04:06
Cheav Villa: សាធុ​

2019 May 26 01:02:17
Johann: Sadhu

2019 May 26 00:44:22
Khemakumara: May all have a meritful Uposatha day. Meeting some good friends (kalyanamitta) and som(e) sil(a) សំម សីល!

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  _/\_ _/\_ _/\_

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

0 Members and 1 Guest are viewing this topic.

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
[ATI.eu] Replacement, regex issues (Content styling)
« on: June 16, 2018, 02:53:02 PM »
Atma has just seen the nice Wrap plugin been installed which might make it much easier to bring html content of ZzE pages into the cms/wiki.

The backward is that it's then no more as "light" as with simple wiki-syntax.

How ever, this topic is dedicated for styling of content, ideas, standards... what ever.

A list of replacements can be found here: http://accesstoinsight.eu/doku.php?id=de:import_zze (development in progress)
« Last Edit: July 02, 2018, 05:03:37 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [dokuwiki] ATI/ZzE Content-style
« Reply #1 on: June 16, 2018, 03:06:26 PM »
Existing stylings on ZzE for content part:

Chapter
Code: [Select]
<div class="chapter">
replace with
Code: [Select]
<div chapter>

Editor note

Citation excerpt
Code: [Select]
<div class='excerpt'>
replace with
Code: [Select]
<div excerpt>

Cite (text source)
Code: [Select]
<p class='cite'>Text</p>
replace with
Code: [Select]
<span cite>Text</span>

Free verse
Code: [Select]
<div class="freeverse">

Verse
Code: [Select]
<div class="verse">

Tagline
Code: [Select]
<p class="tagline">
« Last Edit: June 17, 2018, 11:51:42 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #2 on: June 17, 2018, 01:34:28 PM »
Atma had started here with replacements in file-coding.

http://www.accesstoinsight.eu/doku.php?id=de:lib:authors:thanissaro:beyond1

Might be "no" problem if having such as notepad++, multiple files access and regex with replacement function avaliable. By "hand", with given tools and skill, proximate 4000h for all pages.

Atma will now try to get the zze-styling in the ati.eu css.
« Last Edit: June 25, 2018, 05:25:38 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #3 on: June 25, 2018, 05:24:34 PM »
A list of replacements can be found here: http://accesstoinsight.eu/doku.php?id=de:import_zze (development in progress)
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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #4 on: June 26, 2018, 05:12:36 AM »
First action with replace plugin:

Code: [Select]
find	^	replace with	^	matches ^
/<!DOCTYPE(.*?)<body>/s | <body> | 6508 |

Quote
Display: Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

Seems that no action was taken and the building of the searchpage result (maybe 10-50Mb large) needed time.

Try to reduce to smaller amount by sellecting name spaces.

Code: "ns de:lib:" [Select]
find	^	replace with	^	matches ^
/<!DOCTYPE(.*?)<body>/s | <body> | 663 |


seems like having executed! Atma will do forther step by step in this way, accourding to the replace list

Replace plugin (see ini-isdue above) can execute "only" 1000 replace requests at once, as it seems, for now, but it works and is a useful way.
« Last Edit: June 26, 2018, 06:15:54 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #5 on: June 26, 2018, 07:28:43 AM »
header-deletion
find: /<!DOCTYPE(.*?)<body>/s replace with <body>


de: lib: 663, de:tipitaka:sut:an: 483, de:tipitaka:sut:sn: 471, de:tipitaka:sut:kn: j: 614, de: (rest) 797, en:lib: 654, en:zipitaka:sut:an: 364, en:tipitaka:sut:sn: 470, en:tipitaka:sut:kn:j: 611, en:tipitaka:vin: 616, en:tipitaka:sut:kn: (rest) 400, (rest over all) 365, search for *<body> still gives matches


6458 matches (if quick head-callucating was right) of 6508.

forgot the redirect pages (aside of 22, to find with "<!DOCTYPE html PUBLIC"), other redircts seems to be lost, so far.

Bug? After search request of more complex search, the result page's imput fields are destroyed. See attached. " seems to be the issue.
« Last Edit: June 26, 2018, 08:28:00 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #6 on: June 28, 2018, 08:02:15 AM »
Replace-plugin workes fine so far, of cource there is much to spend to get into regex most efficent.

Two things, Nyom Moritz , since the amount of 1000 matches is very less for large clean ups. Could Atma change that? Is it accessable via ftp? And is it of no problem to increase it to maybe 20.000 or even much higher?

Quote
Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0

Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".
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] ATI/ZzE Content-style
« Reply #7 on: June 28, 2018, 02:31:34 PM »
since the amount of 1000 matches is very less for large clean ups. Could Atma change that? Is it accessable via ftp? And is it of no problem to increase it to maybe 20.000 or even much higher?
This file is not accessible for us, I think.
But I changed the code to work around that.
It should work now for larger numbers, but it could be very slow. There might come a message from the browser "script is not responding" or something, and being asked if wanting to continue the script, simply answer "yes" and wait.

Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".

I don't know. Maybe there is another syntax for it. I found this: https://stackoverflow.com/questions/34592160/regex-string-substitution-upper-and-lower-case
But don't know at the moment if that would provide a solution.

_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #8 on: June 28, 2018, 04:22:06 PM »
Sadhu!
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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #9 on: June 29, 2018, 07:26:59 AM »
The replacment works good for great amount. The only thing that takes time is the builing of the resultpage which is of course huge. Sadhu
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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #10 on: June 30, 2018, 03:38:23 PM »
Firefox verkraften das Laden der Ergebnisseiten ganz gut.

Atma hat heute alle zze txt-file neu hochgeladen, neu-indexiert und von nochmal von Vorne begonnen.

Einen Tag herumgeregext funktioniert alles recht fein. Manchmal, bei größeren Anfragen erscheint nach Abbruch (zwischen drinnen im Überschreiben)

Quote
Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/clients/clientxxx/webxxx/web/inc/io.php on line 235

mag aber mit Verbindung zusammen hängen, da kein besonderes Muster erkannt. -> kommt bei mehr als 4000 betroffenen Seiten (unabhängig der einzelnen Anzahl der Treffer) scheinbar auf.

Stück für Stück, in alle Richtungen, die Codes und Layout... Links ändern, Daten-Table... , wird wohl noch gut eine Woche, zwei, voll in Anspruch nehmen, bis erste annehmliche Erscheinung.

« Last Edit: June 30, 2018, 04:49:31 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] ATI/ZzE Content-style
« Reply #11 on: July 01, 2018, 04:14:48 AM »
Sadhu!

Manchmal, bei größeren Anfragen erscheint nach Abbruch (zwischen drinnen im Überschreiben)

Quote
Fatal error: Maximum execution time of 60 seconds exceeded in /var/www/clients/clientxxx/webxxx/web/inc/io.php on line 235

mag aber mit Verbindung zusammen hängen, da kein besonderes Muster erkannt. -> kommt bei mehr als 4000 betroffenen Seiten (unabhängig der einzelnen Anzahl der Treffer) scheinbar auf.

Das hat nichts mit der Verbindung zu tun, sondern damit, dass der Server ein Zeitlimit hat, um ein einzelnes Skript auszuführen. Das Ersetzen in 4000 Seiten dauert scheinbar zu lange und wird dann abgebrochen.

Man kann offenbar aber mitten im Skript immer wieder neu das Zeitlimit sich selbst bestimmen und hoch setzen. Habe nun entsprechend eingebaut, dass es für jeder Datei sich wieder 120 Sekunden reserviert. Das sollte locker reichen und wohl keine solchen Abbrüche mehr stattfinden.

(Habe auch die neuesten Änderungen des Original-Autors nun mit eingebaut, der mein hingehacktes "alles markieren" mit einer sauber zu DokuWiki passenden grafischen Oberfläche versehen hat.)

_/\_

Offline Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +248/-0
  • Gender: Male
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #12 on: July 01, 2018, 04:32:13 AM »
Replace seems to have no variables like \L to replace a string in lower cases, or is it just a synatax language-lack of my person. (to get a word, say "halLo_Was_iSt" replaced by "hallo_was_ist".

I don't know. Maybe there is another syntax for it. I found this: https://stackoverflow.com/questions/34592160/regex-string-substitution-upper-and-lower-case
But don't know at the moment if that would provide a solution.

_/\_

It seems such things like \L and \U for uppercase and lowercase replacement are not "standard" regex features, but only part of extra stuff in some programs.
It would surely be possible to build something like this into the BatchEdit plugin as well. I am not really knowleadgable about regular expressions, but have just found a really good manual with clear explanations. So maybe I would try to add things like that when I understand more and find time for it.

And I also still don't know how the indexing works and how fast or slow it is. Have there ever been problems with the BatchEdit plugin showing old results that had not been updated, even when a newer version should exist?
When looking at the code it seems to me that the BatchEdit plugin will always load the latest version and show matches accordingly. So a slow index might perhaps only be a problem sometimes for new pages that have not even been included in the index for the first time so that no results for it would be found...

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #13 on: July 01, 2018, 09:47:24 AM »
So far, Nyom Moritz , all works fine to progress step by step. No real problems seen in regard of index as it is used only for the selection of avaliable files while the search is done direct in the files (so no need of refreshing / new indexing, except new files are added).

Page lookup

BatchEdit uses DokuWiki page index to get the list of existing pages instead of going through the data directories. If the index is incomplete the plugin will not see some pages. This also applies to the “special” pages, for example, namespace templates.

So it's only about the list of files that batchEdit uses the index.

Index it self: Not sure for now, but it seems so, that refresh index matches also new files. It works not too slow.

In regard of regex, yes, the returns seems to be special. Hier $ seems to work more, as for place a string \1 = $1, maybe it works also for \L = $L (did not try for now).

Since Atma does not intent to learn/invest much in this skills, when ever a need arises, he would look and maybe addopt, investigate samples given here around.

It's good then, steo by Step, to make explainary pages on ATI.eu in all regards, for further future easier work and transfer.

http://accesstoinsight.eu/doku.php?id=de:tech:regex_use z.b.
« Last Edit: July 01, 2018, 09:52:33 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 +362/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Re: [ATI.eu] ATI/ZzE Content-style
« Reply #14 on: July 01, 2018, 11:39:08 AM »
Spoken of problems... Nyom Moritz (attached)

Note that after copy the new file into cs-rm (Cattasanghayana - Roman), Atma did only a refresh index, so maybe this had caused an appearances never had before, also first time to regex in cs-rm .

oh... maybe it (this error) has to do with the uploaded image/media-files (maybe wrong Uppercase-cases), have to look at it and rename them...

Done, so far, but not reidexed for now. It seems that regex also addresses mediafiles, not clear in how far (or just when collecting posdible files avaliable. If also executing them likewise, this could be a mess probably.

now the task of replacement there gave:

Code: [Select]
Fatal error: Uncaught Error: Call to undefined function setTimeLimit() in /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php:412 Stack trace: #0 /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php(385): admin_plugin_batchedit->applyMatches() #1 /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php(102): admin_plugin_batchedit->apply() #2 /var/www/clients/client2157/web5417/web/inc/Action/Admin.php(47): admin_plugin_batchedit->handle() #3 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(83): dokuwiki\Action\Admin->preProcess() #4 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(48): dokuwiki\ActionRouter->setupAction('admin') #5 /var/www/clients/client2157/web5417/web/inc/ActionRouter.php(60): dokuwiki\ActionRouter->__construct() #6 /var/www/clients/client2157/web5417/web/inc/actions.php(16): dokuwiki\ActionRouter::getInstance(true) #7 /var/www/clients/client2157/web5417/web/doku.php(120): act_dispatch() #8 {main} thrown in /var/www/clients/client2157/web5417/web/lib/plugins/batchedit/admin.php on line 412

Atma will do an reindex, since files have different names now and index still holds the old. Maybe that solves that.
« Last Edit: July 01, 2018, 12:04:01 PM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Tags: