Recent Topics

[June 03, 2020, 03:50:01 PM]

[June 03, 2020, 08:48:21 AM]

[June 02, 2020, 08:38:07 PM]

[June 02, 2020, 06:56:11 AM]

[June 01, 2020, 05:37:29 PM]

[May 31, 2020, 08:53:28 PM]

[May 29, 2020, 07:43:51 PM]

[May 28, 2020, 08:26:31 AM]

[May 26, 2020, 06:08:51 PM]

[May 25, 2020, 08:17:06 AM]

[May 24, 2020, 07:03:07 AM]

[May 23, 2020, 08:21:08 PM]

[May 23, 2020, 03:06:00 PM]

[May 22, 2020, 09:41:27 PM]

[May 19, 2020, 02:21:52 PM]

[May 17, 2020, 09:33:28 PM]

[May 17, 2020, 03:15:00 PM]

[May 17, 2020, 07:37:09 AM]

[May 16, 2020, 10:31:46 PM]

[May 15, 2020, 11:12:31 PM]

[May 15, 2020, 09:33:00 PM]

[May 14, 2020, 07:16:03 AM]

[May 13, 2020, 09:58:57 PM]

[May 13, 2020, 08:14:37 PM]

[May 13, 2020, 07:19:16 PM]

[May 11, 2020, 10:52:03 PM]

[May 11, 2020, 09:46:41 PM]

Talkbox

2020 Jun 01 10:53:45
Cheav Villa: _/\_  _/\_ _/\_

2020 May 31 18:59:38
Cheav Villa: Ligthning and Thunder…

2020 May 31 18:52:13
Cheav Villa: The Rain is falling down in PhnomPenh :) _/\_ _/\_ _/\_

2020 May 30 07:05:43
Cheav Villa: _/\_  _/\_ _/\_

2020 May 30 06:51:35
Johann: Those taking on the Uposatha today: may many follow your encouragement when leading after near and those depending on you.

2020 May 29 20:39:55
Cheav Villa: _/\_  _/\_ _/\_

2020 May 29 19:56:20
Johann: What ever sacrificed toward the Sublime Gems, toward liberation, such is condition for no more flowing back into the world. Mudita

2020 May 29 08:40:16
Cheav Villa: _/\_  _/\_ _/\_

2020 May 29 08:34:50
Johann: [continue] ...kāma-guṇa (sensual giving) , death, alive, increasing the cemeteries in the world. This is why just giving toward the virtuous, those with metta, bears fruits beyond the common, as it's not for further kāma-guṇa that they would use it for, but as base for lessons, for purificatio

2020 May 29 08:33:20
Cheav Villa: _/\_  _/\_ _/\_

2020 May 29 08:27:03
Johann: If one would know or remembering the suffering behind pleasing form, sound, smell, taste, touch, one certain would no more desire after it. But because lof lack of remembering and proper attention, beings go after it, take birth, age, get sick, seperated, die, again and again, keeping the flame of k

2020 May 29 08:15:29
Cheav Villa: _/\_  _/\_ _/\_

2020 May 29 08:15:19
Cheav Villa: _/\_  _/\_ _/\_

2020 May 29 07:42:53
Johann: If ones sacrifices, generosity, isn't protected by a good closed tank, less fruits can be expected. And what is the tank made of? Saddha, Pasada, metta, Sila, intention for own and others independency.

2020 May 29 06:36:24
Johann: A blessed Siladay all who are doing it today

2020 May 28 19:24:28
Johann: Sadhu

2020 May 28 18:32:00
Moritz: Upgrade to SMF 2.0.17 has been completed. Everything running smooth for everybody?

2020 May 23 06:43:43
Cheav Villa: _/\_  _/\_ _/\_

2020 May 22 21:09:34
Johann: May all still continue to spend a blessed New moon Uposatha till break on of a new day (of course good to continue without break). Mudita

2020 May 21 20:16:55
Cheav Villa: _/\_  _/\_ _/\_

2020 May 21 19:30:50
Johann: Nothing more a blessing as to do not cling to a specific Nikaya, since one can easy take the opportunity of doing theUposatha often two days a new. May all always make the best of given possibilities.

2020 May 20 21:19:41
Johann: Sadhu

2020 May 20 20:44:31
Cheav Villa: May Bhante get well soon.  _/\_ _/\_ _/\_

2020 May 20 20:43:13
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 May 18 14:55:14
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 May 18 12:17:04
Khemakumara: Upāsikā

2020 May 17 21:21:28
Johann: Nyom Sophorn

2020 May 17 07:36:11
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 May 17 07:14:16
Khemakumara: Upāsikā

2020 May 17 06:01:03
Khemakumara:  _/\_ _/\_ _/\_ Bhante

2020 May 16 20:42:01
Johann: Bhante

2020 May 15 20:13:51
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 May 15 19:17:25
Johann: A blessed Siladay ending for those who keep(ed) it today.

2020 May 14 09:09:08
Cheav Villa: _/\_  _/\_ _/\_

2020 May 14 06:17:12
Johann: A bl3ssed Sila-day those observing it today.

2020 May 12 21:00:24
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 May 12 19:10:56
Johann: May no one ever, even a moment, forget: "Sole dominion over the earth, going to heaven, lordship over all worlds:    the fruit of stream-entry    excels them."

2020 May 10 15:27:11
Depabhasadhamma: Thank you Johann

2020 May 10 15:26:00
Johann: "stand", taking, holding a stand makes it possible more understandable and fits better to it.

2020 May 10 15:24:35
Johann: Welcome Depabasadhamma, Atma will open a topic on it.

2020 May 10 15:04:51
Depabhasadhamma: I am in need of assistance. I am writing a paper about the Three Marks of Existence. I understand the three marks, however, I am befuddled by the meaning and use of the word "existence." Is this English word the translation of the Pali word thiti? Does the word "existence" imply life, living, consci

2020 May 09 21:15:38
Cheav Villa: _/\_  _/\_ _/\_ :)

2020 May 09 20:48:57
Johann: Apsara in Pali: accharā, translation actually "A Whoo!"

2020 May 09 20:45:38
Johann: "...“Then take joy, Nanda. Take joy! I am your guarantor for getting 500 dove-footed nymphs.”..."

2020 May 09 20:45:17
Johann: "“What do you think, Nanda? Which is lovelier, better looking, more charming: the Sakyan girl, the envy of the countryside, or these 500 dove-footed nymphs?”..."

2020 May 09 20:43:26
Johann: There was a Bhikkhu "who got an email from an ex-co-dweller" and thought he will return to lower life, Nyom: Nanda Sutta

2020 May 09 20:35:41
Johann: It's actually just about the clothes, since his livemode is already a great Samaneras one.

2020 May 09 20:33:48
Cheav Villa: Bhante _/\_ _/\_  _/\_ I kana never heard about the Bhuddha promised..  _/\_ _/\_ _/\_

2020 May 09 20:33:17
Johann: Till end of Vassa maybe?

2020 May 09 20:25:18
Cheav Villa: Master Moritz _/\_ Should try an ordination which in 7days.  _/\_ :)

2020 May 09 20:16:21
Johann: Apsara (dove feet Devatas).

2020 May 09 20:13:19
Johann: Temporary ordination is pretty normal, 3 days, a month, a Vassa... and not to forget that the Buddha promised union with the Asparas, which are beyond being compareable to others...

2020 May 09 19:25:54
Moritz: No no, I really prefer to be a householder, even though not having a house at the moment. I am not much inclined towards nekkhamma...  ^-^
... even though already doing some nekkhamma now, but not hoping to do so for the long term....

2020 May 09 19:24:05
Moritz: Bang Villa _/\_

2020 May 09 19:08:20
Cheav Villa: _/\_  _/\_ _/\_

2020 May 09 19:00:58
Johann: When not working he is already used to where his beige light clean cloth, morning, noon, evening and already good organized.

2020 May 09 18:52:05
Cheav Villa: Kana Bhante _/\_ _/\_ _/\_ :)

2020 May 09 18:39:04
Johann: Nyom has his working dress and his light formal dress. White he might have possible to much troubles, so better to convince him toward robes.  :)

2020 May 09 17:38:39
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_ Master Moritz should wear white clothes.  _/\_ _/\_ _/\_ :)

2020 May 07 15:18:07
Cheav Villa: _/\_  _/\_ _/\_

2020 May 07 10:33:24
Johann: Householder clothes are really no more proper for Upasaka Khemadasa.... good to take him fear of the robes

2020 May 07 10:21:10
Khemakumara: Upāsikā

2020 May 07 10:19:33
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 May 07 06:02:32
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 May 07 05:46:38
Johann: Sadhu

2020 May 07 03:25:02
Khemakumara: May it be a path-and fruitful vesak Uposatha

2020 May 06 16:07:14
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 May 06 16:02:35
Johann: A blessed Vesaka Puja all, today and tomorrow, in reflection the goodness and qualities of the Sublime Buddha.

2020 May 04 21:25:10
Johann: followed by another overload by huawei-search engines... fixed

2020 May 04 20:31:45
Cheav Villa: _/\_  _/\_ _/\_

2020 May 04 20:25:53
Johann: A MS search engine (Bing) had overloaded the server capacity and might had caused the page not to be reached, but a cave-programmer quickly solved the issue, becoming aware of it. Sadhu

2020 May 03 21:13:46
Cheav Villa: Vandami Bhante Ariyadhammika _/\_ _/\_ _/\_

2020 May 03 20:32:57
Cheav Villa: _/\_  _/\_ _/\_

2020 May 03 19:15:52
Johann: Sokh chomreoun, Nyom.

2020 May 03 15:01:43
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 May 03 12:53:08
Cheav Villa: Master Moritz _/\_

2020 May 03 12:07:17
Moritz: Bang Villa _/\_

2020 May 03 12:00:57
Cheav Villa: _/\_  _/\_ _/\_

2020 May 03 09:39:36
Johann: ...and the snake hunts the mice...

2020 May 03 09:11:20
Johann: Dwelling like Devas under Devas, peaceful, respectful, careful, harmless

2020 Apr 30 10:05:08
Cheav Villa: Sadhu Sadhu Sadhu _/\_ _/\_ _/\_

2020 Apr 29 21:15:43
Moritz: _/\_ _/\_ _/\_

2020 Apr 29 21:08:53
Johann: May all spend a meritful end of Sila-day, those who taking on it today, and maybe continue with those doing so tomorrow.

2020 Apr 29 20:09:39
Johann: Nyom Villa

2020 Apr 29 20:07:29
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 Apr 26 20:26:31
Johann: Nyom Moritz, Nyom Villa

2020 Apr 26 20:23:57
Cheav Villa: and Master Moritz _/\_

2020 Apr 26 20:23:33
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 Apr 26 19:56:30
Moritz: Bang Villa _/\_

2020 Apr 26 19:56:25
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2020 Apr 26 08:18:19
Cheav Villa: _/\_  _/\_ _/\_

2020 Apr 26 07:18:02
Johann: Ādīnava , អដីនវ, As one of ten perceptions: AN 10.60

2020 Apr 26 07:09:32
Johann: May Dukkha be visible for all, so to stay on the path  that leads beyond and liberation.

2020 Apr 25 16:57:34
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

2020 Apr 25 15:54:00
Khemakumara: Upāsikā

2020 Apr 23 18:41:59
Johann: Sadhu for care to report and assist

2020 Apr 23 18:39:44
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_ I kana now not get notification.  _/\_ _/\_ _/\_

2020 Apr 23 15:04:07
Cheav Villa: Vandami Bhante _/\_ _/\_  _/\_

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]

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] Possibility to display of "zero width space" and other unicode characters  (Read 5670 times)

0 Members and 1 Guest are viewing this topic.

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Writing in Khmer without the use of zero white spaces is not very good, yet less editors and programs would allow to show them.

Are there possibilities to let them be shown in ati-editor and on the compare- page?

A topic was raised in DW-Forum as well: Display of "zero width space" and other unicode characters
« Last Edit: February 11, 2019, 01:13:56 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 +273/-0
  • Gender: Male
Just tried and added a button to the editor toolbar to switch on displaying zero-white-space characters. (See screenshot attached for how it look on a big desktop screen.)

It is a very hacky solution, and currently only working on a large screen. There is no way to directly render zero-width characters in HTML, so one has to indirectly copy/calculate the text layout and display marks in the right spots, which is very slow for large texts with many zero-whitespaces.

Tested for http://accesstoinsight.eu/km/tipitaka/book_053?do=edit on my desktop computer, it takes at least fifteen seconds here, after clicking the new button, before the browser becomes responsive again shows the blue marks. And when changing the text, one has to wait again, because the display of the white-space marks has to be calculated for the whole text with every change.

For very small texts it seems to work conveniently on my computer. But after some ten thousand characters, and especially with many zero whitespaces it becomes very slow quickly.

On Android smartphone (and probably any smaller screen), the layout is currently not usable at all, showing everything completely wrong.

Maybe possible to find some optimizations with time.

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Sadhu

(works as told and runs strange if zooming)

Atma came "CSS @font-face Rule", with which certain unicode-range can be addressed, to mind. Not sure if such as background or styling can be addressed with it.

   unicode-range    Optional. Defines the range of unicode characters the font supports. Default value is "U+0-10FFFF"

An idea came here to mind: what if there is a 'special' "white space font" wherein the zero width space is a slight box with a small point.

The "tool" then "simply" switches to another font which has the character not with a zero width and possible a small sign to recognize.

Or even generally using a font that is available at ati.eu server for the editor, editor friendly and Khmer-font friendly (incl. size, distances of lines... for certain character ranges).
« Last Edit: April 02, 2019, 11:46:34 AM 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 +273/-0
  • Gender: Male
An idea came here to mind: what if there is a 'special' "white space font" wherein the zero width space is a slight box with a small point.

The "tool" then "simply" switches to another font which has the character not with a zero width and possible a small sign to recognize.

That sounds like the most straightforward way if something like that is possible.
Not familiar with editing fonts and how they are actually stored, somehow I have doubts that it could be so clean and "easy", I will try to find out what is possible and impossible. Sadhu!

_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
They are often ttf-files, usually they are stored anywhere on certain server but can also stored on the own (at least if allowed by the creater, Atma did such for the Pali-Khmer script, called by "div cs-km"). There are certain programs, like grafic programs where one can desighn each character. There is of cource certain new knowledge needed and a punsh of "new" words and funcutions in detail but possible not that huge for simply make enlarge the zws to a small space and draw a point. Yet a given front is needed which also covers all scripts.

Maybe Nyom Nathan ( sungkhum ) , much infolved in the matter, knowing also designer) feels inspired to help that a script might be remorseless useable for the Sangha and has possible friends helping also with a "zero width space font". Not sure how libre office, for excample, managed the display.

Years ago my person "loved" drawing and scripts design, but it's truly not really proper anymore to engage much here but let others do merits instead. Surely a wonderful area for such, given that the Sangha has actually not even scripts to use, given.
« Last Edit: April 03, 2019, 06:45:47 AM 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 +273/-0
  • Gender: Male
Sadhu. I was aware of the various file extensions, but not how they are stored inside, and especially if it is really possible to make visible glyphs for invisible space or even other "control characters" (like line break etc.).

After some searching and trying, although no definite answer , I found that it is apparently impossible to just insert a glyph for zero whitespace that would then show up in HTML or text editors:
Note that many programs manage their whitespace themselves and, e.g., only use the width of the font’s space character. ...
With font editors, such as FontForge, one can create and assign such glyphs to any code point, including zero white-space (u200b) etc. But they are then not displayed in web browsers, or most editors, because most softwares just have their standard way of treating these special invisible characters without even looking if a glyph is defined in the font for them. Tried to make a glyph for zero white-space but it is simply not rendered.

However, as a workaround, one can just use another Unicode code point (from the Unicode "Private Use Area" which are not assigned to anything by the standard) instead of zero-whitespace, for which one can then define a glyph, and simply replace all zero-whitespace with that other code point during editing, and replace it back before saving. This would still require some JavaScript, but much simpler with no complicated calculation involved so that it would not slow down much or display garbage.

Some changes to the DokuWiki inner PHP code are needed, which is structured a bit complicated and confusing to me. So it may take some time to figure all out that is necessary.
At some point this evening I may be editing the necessary code on the server, so editing things may look strange or not work for a short time.
* Edit: Not really capable doing this anymore for today.

_/\_
« Last Edit: April 04, 2019, 02:08:23 AM by Moritz »

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Understandable, also that zwsp has been treated alien in programming.

Not sure if such helps if building on an editor like https://www.dokuwiki.org/plugin:codemirror
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 +273/-0
  • Gender: Male
Sadhu, yes. Probably best to do it as a plugin, for which the CodeMirror plugin is useful as an example, instead of butchering internal DokuWiki code.

Still needs some time to figure things out.
_/\_

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Just to let it be know (Atma thinks that it's know, but to do not forget at time then): the css wiki... might "confuse" the z-position, not only making a gray area on the left of the box but also getting the scroll area above the edit and menu section right of the text.

Atma made Nyoms effort and undertaking a little bit known: A "showing invisible character editor plugin"

Mr Myron has developed a key board plugin, which (others then the most mobile keyb can type zwsp and has all characters included) does not require much issues for the writer online then as well: https://www.dokuwiki.org/plugin:vkeyboard if thinking that such is useful.
« Last Edit: April 07, 2019, 04:24:35 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 +273/-0
  • Gender: Male
_/\_ _/\_ _/\_



The zero white-space plugin should now be working (all files contained in lib/plugins/zws), displaying zero whitespace in the text editing area and on the revision comparison page:


There is a button to insert a zws at the current position in the text:

Otherwise no changes in user interface.


The way it works is like this:

There is a font (lib/plugins/zws/zws2.ttf) with only one character, for the unicode code point E000 (written as '\ue000' in JavaScript and PHP), because a character for the actual ZWS code point 200B ('\u200b') would not be displayed in browsers.

This font is referenced in lib/plugins/zws/zws.css and applied only to the text editing area and the revision comparison table. (It does not matter that the font has only a symbol for one character. All other characters will be displayed by the next fonts on the "chain".)

During editing of a page, all ZWS characters are replaced by the placeholder E000, which is displayed by the font. When saving, the E000 character is replaced again by 200B (normal ZWS).


Very simple on principle, but some tricks were needed, because browser APIs are sometimes complicated when dealing with unusual cases.
So I hope that everything really works now. Feedback is of course very welcome.

 *sgift*




Some possible improvements:

Maybe the ZWS placeholder could be thicker? (Would be quick and easy.) Maybe colored? (Not sure how to make fonts that are colored by default. I think it is possible somehow.)

Maybe a button to turn ZWS display on and off? For now, it is always turned on (in the editor). Maybe somewhere on the normal page UI, a switch to use the ZWS font everywhere when reading would be good, but might need some tricks again.

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

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Sadhu, 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 +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
My person did not experiment much till now (thought of how would it insert copied text including zwsp) but came across that when copy form one editor window to another it seems that it suppresses line breaks (better replace with a white space).

Copy:


past:


Copy it here, it seems to come from the source and does not happen in the moment of past:

Code: [Select]
==== 1. Kimilasuttaṃ ==== <span sang_id #{file-}.{no}>[[{path-release}:{file-}.{no}|{file-}.{no}]] | [[{path-source}:{file}#{file-}.{no}|source]]</span>
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 +273/-0
  • Gender: Male
I see. I think it should be fixed now. (Maybe needing to clear cache by adding "&purge=true" to the URL, possibly also helpful to open and refresh the CSS and JS files http://accesstoinsight.eu/lib/plugins/zws/zws.css and http://accesstoinsight.eu/lib/plugins/zws/zws.js so that they are refreshed in browser cache).

I had wanted to automatically replace the placeholder with ZWS when copying from the editor. So that it would be a real ZWS when pasting somewhere else again. But it seems that this modification also removed the line breaks and I see no way to make it work like intended. So it has to work without this convenience for now.

On the other hand, when inserting text into the editor, ZWS characters will be automatically replaced with the visible placeholder, and this should still work as intended. (But it is not possible to do "undo" after such a paste, if there were zero-width characters in it that were replaced.)

_/\_

* Moritz hoping that it now really works after hudling to fix it, might not be much available in the next days

*  Edit: Oops, something again not working right: Now ZWS is not replaced in the text loaded from the server. Hope I can quickly make it work. Should work now.
« Last Edit: April 18, 2019, 10:31:13 PM by Moritz »

Offline Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +375/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Sadhu

The first test showed that text copied into the editor would be rendered in regard of certain html characters and what ever content is in the editor, can not be copied anywhere else.

http://accesstoinsight.eu/user/johann/test




The second test, after having called the posted links, shows that the renderings of special characters also become part of the displayed text.

http://accesstoinsight.eu/user/johann/test1



Atma is a little bit "scared" to open any page for now. Which seems to be good, since it obviously converts the text, having downloaded the file after saving:

Code: [Select]
==== សុន្ទរសមុទ្ទត្ថេរ ====

&lt;span sang_id #sut.kn.tha.07.01&gt;[[km:tipitaka:sut:kn:tha:sut.kn.tha.07.01|sut.kn.tha.07.01]] | [[km:tipitaka:book_057#sut.kn.tha.07.01|book_057]]&lt;/span&gt;



&lt;div centeralign&gt;**(១. សុន្ទរសមុទ្ទត្ថេរគាថា)**&lt;/div&gt;



&lt;span para #para_225&gt;[២២៥]&lt;/span&gt; ស្រីផ្កាមាស​តាក់​តែង ស្លៀក​ពាក់​ល្អ ទ្រទ្រង់​កម្រងផ្កា ស្អិតស្អាង​ហើយ មាន​ជើង​ស្រឡាប​ដោយ​ទឹក​ល័ខ ពាក់​ស្បែក​ជើង លុះ​ដោះ​ស្បែក​ជើង​ចេញ​ហើយ ក៏​ធ្វើ​អញ្ជលី​ចំពោះ​មុខ ស្រីផ្កាមាស​នោះ និយាយ​នូវ​ពាក្យ​ជា​ប្រធាន​នៃ​មិត្ត((ពាក្យ​ចែចង់។)) នឹង​ខ្ញុំ ដោយ​សំដី​ដ៏​ទន់​ពីរោះ​ថា លោក​នៅ​កំឡោះ​ហើយ​បួស លោក​ចូរ​ឋិត​នៅ​ក្នុង​ពាក្យ​ប្រដៅ​របស់​ខ្ញុំ លោក​ចូរ​បរិភោគ​កាម​ជា​របស់​មនុស្ស​ចុះ ខ្ញុំ​នឹង​ឲ្យ​សម្បត្តិ​ដ៏​ពេញ​ចិត្ត​ដល់​លោក។ ខ្ញុំ​បេ្តជ្ញា​ពាក្យ​ពិត​ដល់​លោក ឬ​នឹង​នាំ​ភ្លើង​ដល់​លោក។((ស្បថ​នឹង​ភ្លើង)) កាល​ណា​យើង​ទាំង​ពីរ​នាក់ ជា​មនុស្សចាស់​កាន់​ឈើច្រត់​ហើយ យើង​នឹង​បួស​ទាំង​ពីរ​នាក់ នឹង​កាន់​យក​នូវ​ជ័យជំនះ​ក្នុង​លោក​ទាំង​ពីរ។ ខ្ញុំ​បាន​ឃើញ​ស្រីផ្កាមាស​នោះ មក​ធ្វើ​អញ្ជលី តាក់​តែង ស្លៀក​ពាក់​ល្អ ដូច​ជា​ជាប់​អន្ទាក់​មច្ចុ លំដាប់​នុ៎ះ ខ្ញុំ​ក៏​បាន​ធ្វើ​ទុក​ក្នុង​ចិត្ត​ដោយ​ឧបាយ​​នៃ​បញ្ញា។បេ។((គប្បី​មើល​ក្នុង​ចតុក្កនិបាត។))

&lt;div rightalign&gt;សុន្ទរសមុទ្ទត្ថេរ។&lt;/div&gt;



==== លកុណ្តកត្ថេរ ====

&lt;span sang_id #sut.kn.tha.07.02&gt;[[km:tipitaka:sut:kn:tha:sut.kn.tha.07.02|sut.kn.tha.07.02]] | [[km:tipitaka:book_057#sut.kn.tha.07.02|book_057]]&lt;/span&gt;


It also seems to convert into CRLF line breaks.

Don't open any page in the editor and save the content for now!

It seems that the script also adds zwsp next to the html-value of certain characters.



If having less time and much in hurry, maybe it's good and possible to disable the modification meanwhile.
« Last Edit: April 19, 2019, 11:24: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 Moritz

  • Cief houskeeper / Chefhausmeister
  • Very Engaged Member
  • *
  • Sadhu! or +273/-0
  • Gender: Male
Vandami Bhante _/\_

That comes from hudling.

*  Oh... I just notice, when clicking the "<.I.>" smiley here in the forum post editor, it inserts "&lt;.I.&gt;", instead of <.I.>. Must be a similar problem...   ^-^

Now I am confident everything should really be fixed. Sorry for any troubles. But at least nothing could have been lost, with old versions being kept in revision history.


Problem 1: inserting &gt; instead of > etc. happened during loading of the text for editing (in /lib/plugins/zws/action.php on line 86 at the time of this writing, applying formText function to the text, which DokuWiki applies afterwards another time, so it was done twice [converting into &lt; etc. for display is necessary but should happen only one time]). Is now fixed.

Problem 2: Not being able to copy from the editor, was leftover from the previous attempt of using contenteditable instead of textarea, using a method that does not work with textarea (in zws.js, lines 64-72 at the time of this writing). Is now fixed (only using standard copy now without modifications).

Problem 3:
Quote
It also seems to convert into CRLF line breaks.
Must have been the same cause as the first problem.

Problem 4:
Quote
It seems that the script also adds zwsp next to the html-value of certain characters.
Must have been the same cause as the first problem.


All this should now work. I don't think it is necessary to disable modification. Old versions will remain in history and can be restored in case that really still something is wrong. And nothing really dangerous would happen.

_/\_
« Last Edit: April 19, 2019, 11:53:01 AM by Moritz »

Tags: