Recent Topics

[Today at 11:54:58 AM]

[Today at 11:23:38 AM]

[Today at 05:58:06 AM]

[Today at 05:42:57 AM]

[November 17, 2019, 06:07:26 PM]

[November 17, 2019, 05:43:55 PM]

[November 17, 2019, 03:35:17 PM]

[November 17, 2019, 11:25:12 AM]

[November 17, 2019, 11:09:54 AM]

[November 16, 2019, 10:06:15 PM]

[November 16, 2019, 06:33:59 PM]

[November 16, 2019, 05:20:48 PM]

[November 16, 2019, 01:45:32 PM]

[November 16, 2019, 06:39:00 AM]

[November 15, 2019, 05:23:35 PM]

[November 15, 2019, 05:19:52 PM]

[November 15, 2019, 06:39:27 AM]

[November 14, 2019, 04:12:21 PM]

[November 13, 2019, 12:17:11 PM]

[November 13, 2019, 07:27:02 AM]

[November 13, 2019, 06:46:12 AM]

[November 12, 2019, 08:15:05 AM]

[November 11, 2019, 05:22:23 PM]

[November 11, 2019, 03:02:17 PM]

[November 11, 2019, 10:49:24 AM]

[November 11, 2019, 10:35:59 AM]

[November 11, 2019, 06:36:45 AM]

[November 10, 2019, 07:25:28 PM]

[November 10, 2019, 06:21:10 PM]

Talkbox

2019 Nov 18 05:41:01
Moritz: Chom reap leah, for now _/\_ May Bhante have a pleasent day. _/\_

2019 Nov 18 05:22:11
Johann: Nyom Moritz

2019 Nov 18 05:20:39
Moritz: Vandami Bhante _/\_

2019 Nov 16 21:59:56
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2019 Nov 16 20:43:25
Johann: Ayasma Moritz

2019 Nov 14 22:46:22
Johann: Atma leaves the paranimmita-vasavatti deva and nimmanarati deva now to find good birth by themself, no more power left.

2019 Nov 14 22:00:48
Cheav Villa: _/\_ _/\_ _/\_

2019 Nov 14 21:39:00
Johann: Duties and Silas are words of same meaning, denoting "proper conduct and giving in ones relations where ne desires to have a good and safe stand"

2019 Nov 14 21:25:51
Cheav Villa:  _/\_ _/\_ _/\_

2019 Nov 14 21:21:02
Johann: May all have good rest at the end of day, done ones duties or even a blessed done merits after that as well. My person is now off of energy and good to rest as well.

2019 Nov 14 13:43:11
Khemakumara:  _/\_ _/\_ _/\_

2019 Nov 14 10:35:51
Johann: Respecting the Devas one gains their respect and protection.

2019 Nov 14 10:34:40
Johann: Bhante. (Meawmane is a spirit from a Server in Bangkok)

2019 Nov 14 10:28:52
Khemakumara: Nyom Meawmane

2019 Nov 14 10:27:53
Khemakumara:  _/\_ _/\_ _/\_ Bhante

2019 Nov 13 20:44:51
Cheav Villa:  _/\_ _/\_ _/\_

2019 Nov 13 20:28:20
Johann: Bhante  _/\_ Nyom, Nyom

2019 Nov 13 13:19:14
Cheav Villa: Kana Bhante :) _/\_ _/\_ _/\_

2019 Nov 13 11:54:18
Johann: Mahā (written), not moha (following civil transliteration of khmer, very unuseful, better following pali transliteration) "Deluded Wisdom Monastery" could be understood while "Great Wisdom Monastery"  :)

2019 Nov 13 10:22:14
Johann: mudita

2019 Nov 13 09:56:41
Cheav Villa: Kana now at Panha Moha Viheara, waiting for  Bhikkuni

2019 Nov 13 09:47:10
Cheav Villa: Vandami Bhante _/\_ _/\_ _/\_

2019 Nov 12 08:01:41
Cheav Villa: Sadhu Sadhu Sadhu  _/\_ _/\_ _/\_

2019 Nov 12 05:35:02
Khemakumara:  Sīlena nibbutiṁ yanti. Through virtue they go to Unbinding. May it be a fruit-and pathful Uposatha day.

2019 Nov 11 16:41:52
Varado: Happily indeed we live, we, for whom there is [nowhere] anything at all. We will feed on rapture like the Ābhassarā devas. Dh.v.200.

2019 Nov 11 11:40:45
Johann: Ven. Sirs  _/\_ (Kana trust that leave for some rest will not reduce Bhantes releasing joy here)

2019 Nov 11 11:13:48
Cheav Villa: Sadhu Sadhu Sadhu  _/\_ _/\_ _/\_

2019 Nov 11 11:06:19
Johann: May it be an auspicious end of the Vassa of the Noble ones, a deep Anapanasati day today, for all conducting the full moon uposatha today.

2019 Nov 11 06:00:43
Johann: " Happy/peaceful the area/custom of the Arahats, craving and wandering on having layed aside"?

2019 Nov 11 03:22:11
Johann: Of which would mean what, Lok Ta, if not wishing to use google or not given means?

2019 Nov 10 23:54:03
Varado: Sukhino vata arahanto taṇhā tesaṃ na vijjati _/\_

2019 Nov 10 19:51:07
Khemakumara:  _/\_ _/\_ _/\_ Bhante Ariyadhammika

2019 Nov 10 17:54:44
Johann: ភនតេ វ៉ាលិ

2019 Nov 10 14:42:47
Johann: Lok Ta  _/\_

2019 Nov 09 16:31:12
Cheav Villa: Sadhu Sadhu Sadhu  :) _/\_ _/\_ _/\_

2019 Nov 09 16:25:14
Johann: May Nyom and all have a safe travel

2019 Nov 09 16:03:41
Cheav Villa: Kana and kids Plan to go to Aural tomorrow, will leave Phnom Penh at 5am  _/\_ _/\_ _/\_

2019 Nov 09 15:41:39
Cheav Villa: Vandami Bhante  _/\_ _/\_ _/\_

2019 Nov 09 15:37:40
Johann: Bhante Ariyadhammica, Nyom Villa

2019 Nov 09 15:35:16
Johann: Sadhu

2019 Nov 09 14:56:15
Varado: Homage to the Noble Sangha _/\_ _/\_ _/\_

2019 Nov 09 14:55:15
Varado: Blessed is the arising of Buddhas. Blessed is the explaining of the true teaching. Blessed is concord in the community of bhikkhus. Of those in concord, blessed is their practice of austerity.

2019 Nov 09 14:53:06
Johann: Ven Grandfather, Nyom Annaleana,

2019 Nov 09 01:57:47
Moritz: Vandami, Bhante Varado _/\_

2019 Nov 09 01:43:05
Varado: Pūjā ca pūjanīyānaṃ

2019 Nov 09 00:44:14
Johann: Worthy those on path or reached the aim

2019 Nov 08 22:36:29
Varado: Homage to those elder bhikkhus of long-standing who have long gone forth, the fathers and leaders of the Sangha. _/\_

2019 Nov 08 20:16:23
Johann: May the Venerables allow my persons leave, running out of battery.  _/\_

2019 Nov 08 20:09:51
Johann: Sadhu, Sadhu!

2019 Nov 08 20:09:14
Varado: Homage to Good Friends. For this is the entire holy life. _/\_ _/\_ _/\_

2019 Nov 08 20:07:04
Varado: Homage to the Good Friends. For this is the entire holy life. _/\_ _/\_ _/\_

2019 Nov 08 19:29:09
Varado: Thanks for summary. I send article on milk. Anything else?

2019 Nov 08 18:53:24
Varado: Also greed, hatred, and delusion. Tīni akusalamūlāni: lobho akusalamūlaṃ doso akusalamūlaṃ moho akusalamūlaṃ (D.3.214).

2019 Nov 08 18:36:34
Johann: So does it, so does it, for Bhikkhus, layman, laywoman as well. And what is the root of stinginess? Ingratitude (wrong view).

2019 Nov 08 18:30:56
Varado: Possessing five qualities, a bhikkhuni is deposited in hell as if brought there. What five? She is miserly with dwellings, families, gains, praise, and the Dhamma (A.3.139). Pañcahi bhikkhave dhammehi samannāgatā bhikkhunī yathābhataṃ nikkhittā evaṃ niraye: katamehi pañcahi: Āvāsamaccha

2019 Nov 08 18:23:39
Varado: Macchariya for lodgings, maybe?

2019 Nov 08 18:01:17
Johann: Kana saw that Bhikkhunis has even a rule in regard of macchariya, for Vineyya in their Vinaya.

2019 Nov 08 17:58:14
Johann: So does it dear Ven. Grandfather, so does it. Amacchariya is the domain of the Noble Ones, beginning by the stream to the complete of stinginess's root.

2019 Nov 08 17:51:33
Varado: Having eliminated the stain of stinginess together with its origin, they are beyond criticism.

2019 Nov 08 17:35:15
Johann: ...and "Vineyya maccheramalaṁ samūlaṁ aninditā"

2019 Nov 08 17:29:21
Johann: These Devas and Brahmas...  :) mudita

2019 Nov 08 16:53:41
Varado: May the Buddha bless you. May the Dhamma shine on you. May Wat Ayum be a refuge to many. For any possible help with questions, please email. My pleasure.

2019 Nov 08 13:55:57
Johann: ..."This shows that the Buddha would not be troubled by those who become angry and resentful, but by those who are strongly opinionated and who relinquish their views reluctantly...."

2019 Nov 08 09:27:01
Johann: Ven. Bhantes

2019 Nov 08 09:23:11
Khemakumara:   _/\_ _/\_ _/\_ Bhante Ariyadhammika

2019 Nov 08 06:26:12
Johann: It was four days after closing that decreased in last instance

2019 Nov 08 06:15:13
Moritz: The bot traffic is not decreasing.

2019 Nov 08 06:15:10
Johann: Ayasma Moritz

2019 Nov 08 06:14:53
Moritz: (was logged in long time before, but not at PC)

2019 Nov 08 06:14:52
Johann: Ayasama Moritz

2019 Nov 08 06:14:06
Moritz: Vandami Bhante _/\_ _/\_ _/\_

2019 Nov 08 02:08:55
Moritz: Sadhu _/\_ May Bhante bear and overcome all sickness well _/\_ _/\_ _/\_

2019 Nov 08 02:05:42
Khemakumara: Khantı paramaṁ tapo tītikkhā. Patient forbearance is the highest austerity

2019 Nov 08 02:01:46
Khemakumara: lack of energy because of sickness of the body (boils) Nyom Moritz

2019 Nov 08 01:53:48
Khemakumara: Meister Moritz

2019 Nov 08 01:52:12
Moritz: Hoping Bhante is well _/\_

2019 Nov 08 01:51:55
Moritz: Vandami Bhante (Khemakumara) _/\_ _/\_ _/\_

2019 Nov 07 20:02:22
Johann: enery, battery saysfinish for now... may there be food for liberation be found and got touched by many independently.

2019 Nov 07 20:00:16
Johann: Every being, even without capacity to gain higher, is worthy of metta, worthy to be not harmed in existance, worthy to help in times of needing the four paccayas, Ven. Grandfather.

2019 Nov 07 19:37:39
Visitor: Let us treat those with Buddhanature with the respect appropriate to future Buddhas.

2019 Nov 07 19:01:03
Johann: Maybe an inspirig topic on the matter How should I express Mudita or Joy for all beings? for all having access (upanissaya).

2019 Nov 07 18:56:59
Johann: Sadhu, Sadhu. That's how mudita is good understood in relation with "Buddhanature"

2019 Nov 07 18:54:52
Visitor: Homage to all those with Buddhanature. _/\_ _/\_ _/\_

2019 Nov 07 18:53:59
Visitor:  Homage to all the Buddhas.  _/\_ _/\_ _/\_

2019 Nov 07 18:28:47
Johann: Dear lok ta Visitor

2019 Nov 07 17:29:02
Cheav Villa:  _/\_  _/\_ _/\_

2019 Nov 07 17:24:12
Johann: Don't worry either, yet perfect if visiting the Nuns. Mudita

2019 Nov 07 17:21:15
Cheav Villa: About the medicin called loṇasociraka, Kana will take time to go to Visit Wat Panha to ask her for detail  _/\_ _/\_ _/\_

2019 Nov 07 17:21:05
Johann: Cetana counts, the own one, Nyom.

2019 Nov 07 17:18:42
Johann: May Nyom not worry to much about it. My person guesses Nyom Chanroth might have lot of joy in the idea of planting. While Cacaco is fine, yet not a need or request, it's something that can be gained in shops.

2019 Nov 07 17:09:57
Cheav Villa: Kana now seen without Sila… someone could not tell the truth 

2019 Nov 07 17:01:13
Cheav Villa: Kana ordered 5kg via web, phoned them 2days ago but still no delivery cause of no confirmation since he still abroad now

2019 Nov 07 16:49:17
Cheav Villa: But the Cacao company in Mondolkiri doesnt allowed, they sale Cacao beans.

2019 Nov 07 16:47:38
Cheav Villa: Kana Bhante  _/\_ _/\_ _/\_ as he informed to bring only Cacao fruits for Bhante could make and use of medecine againts Malaria

2019 Nov 07 16:20:48
Johann: Indeed releasing investigation cause hunger and no food can be expected at the end as well.

2019 Nov 07 16:18:35
Johann: When homeless effort is requested, no joy in sacrificing into it. Oh this monks... of modern world.  :)

2019 Nov 07 16:16:59
Johann: Oh this monks  :) When household effort can be made for favor and house, all engaged...

2019 Nov 07 14:17:18
Johann: Āyasmā Moritz (Master, a usual address for skilled lay people in the Tipitaka)

2019 Nov 06 17:27:06
Cheav Villa: Master Moritz _/\_

2019 Nov 06 17:23:52
Moritz: Bong 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]

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

0 Members and 1 Guest are viewing this topic.

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +367/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Sadhu, Sadhu... may my person never hudles with comments and tests.  :) May Nyom spend a joyful Uposatha!

Atma will test on a little.
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 +367/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
The previous html-value things are gone, copy and paste works so far with a special when copy from the editor window to libre-office (for example). Actually looking nice but maybe not intended:



The comparison view seems to add "fictive" zwsp, but looks great as well so far.



« Last Edit: April 19, 2019, 01:15:34 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 +256/-0
  • Gender: Male
The previous html-value things are gone, copy and paste works so far with a special when copy from the editor window to libre-office (for example). Actually looking nice but maybe not intended:

No, not intended. But understandable. The unicode character E000 is used instead of ZWS to display the font. And that is also what is copied now, when copying from the textarea (since modifying the copying content did not work: removing line-breaks when trying to do so).

Since E000 belongs to the Unicode "Private use area" , its look is not defined by the unicode standard, but different fonts can define it as they want for their purposes.

I had expected that E000 and other "Private use area" unicode characters would not have a symbol defined in most fonts, displaying a generic placeholder sign (like an empty square, or a square with the code 'E000' written in it) instead.

So I thought it would just be displayed normally as just a placeholder square, something like this:
Code: [Select]
|E0|
|00|
(displayed as one small square symbol).

But it seems that for example LibreOffice will always try to find a font which has a character defined for this symbol, and use it. In this case there must be some font installed on the system where the character is defined and LibreOffice is automatically using that to display the E000 character. Otherwise it would be displayed as just a placeholder.

In any case, it is not possible for now to automatically replace the character with a real ZWS when copying. So one has to take care to replace it when editing in some other program. (But actually, pasting these characters back into the text area in ATI DokuWiki editor will not be a problem. It will then be saved as ZWS in DokuWiki.)

The comparison view seems to add "fictive" zwsp, but looks great as well so far.
Ah, now I think I know where this would come from. I have seen some function called "insertSoftBreaks" or similar, defined somewhere in the DokuWiki PHP code, and this is called when rendering the revision comparison page.
DokuWiki would insert ZWS characters on the comparison page, so that long code sections without space would be broken into different lines at some fitting positions, and not displayed as one huge line reaching out of the screen.
So I should try to make sure that the ZWS replacement happens before the insertSoftBreaks when displaying the comparison page. Should be possible to do so in the next days.

_/\_

Online Johann

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

If working further on a document outside of the editor one needs to replace the character then. Just a thought: what if the whitespace view (possible displaying linebreak, ws, tabs as well, similar like libre or word) can be turned on and off in the editor (where when off the normal character appear).

Amazing the effort here.
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 +256/-0
  • Gender: Male
I think the best solution might be to simply use the already existing and previously mentioned CodeMirror plugin .

It has all the desired features for the editor, including display of ZWS, whitespace and line breaks, possible to turn on and off. I had previously not tested it and thought that ZWS display would not be included. But it is, and it all seems to be working perfectly.

ZWS is always displayed as red dots, taking up one space, and not possible to turn off. Perhaps I can find a way to toggle them on/off as well.


The only additional thing remaining from my plugin attempt would then be the display of ZWS on the revision comparison page.

For now, I have disabled the ZWS plugin and installed CodeMirror instead.

For the ZWS display in the comparison page to work properly (without inserting additional ZWS between tags etc.), it would be necessary to change something in the DokuWiki code directly, which is not possible with a plugin.
And the little bit of JavaScript and CSS can be included in conf/userall.css and conf/userscript.js, so no real plugin needed anymore for that.

Edit: Comparison page should be working now, only showing the ZWS where they really are. All necessary for that is in conf/userall.css (marked with comment), conf/userscript.js and line 1366 of inc/html.php, which was changed from
Code: [Select]
        echo html_insert_softbreaks($diffformatter->format($diff)); ?>
to
Code: [Select]
        echo html_insert_softbreaks(str_replace("\u{200B}", "\u{E000}", $diffformatter->format($diff))); ?>

_/\_
« Last Edit: April 20, 2019, 11:08:27 AM by Moritz »

Online Johann

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

Didn't came across that this mod shows zwsp and great that the display of zwsp in compare view works. The possibility to write a zwsp might be great since certain keybords often lack of such.

Not sure if a "way to toggle them on/off" is needed. When copy to word or odt, all seems fine. Sure, the display is somehow "brutal" and confusing, giving ws, tabs or linebreaks not much sign.

Great work and much place to take ones goodness along, rejoice with it, and possible go on another time once again, delight in giving into something for good and liberating purpose. Mudita!
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 +256/-0
  • Gender: Male
Sadhu, Sadhu

Didn't came across that this mod shows zwsp and great that the display of zwsp in compare view works. The possibility to write a zwsp might be great since certain keybords often lack of such.
Ah yes, the button. I will try ti add it again.
There was also the vkeyboard plugin mentioned before. I had tried it out a bit, but does not seem to work. Not updated for almost five years, it might be that some things have changed and become incompatible. But it is surely worth a look to see if one can find good methods there to make something like this work here again.

Not sure if a "way to toggle them on/off" is needed. When copy to word or odt, all seems fine. Sure, the display is somehow "brutal" and confusing, giving ws, tabs or linebreaks not much sign.
I don't understand the last half-sentence "giving ws, tabs or linebreaks not much sign".
The red zero-mark looks "brutal", yes, maybe possible to change that into a thin line instead of taking up a complete space. But normal white-spaces/tabs/linebreaks might be better shown more strongly visible? Or how was it meant?

Great work and much place to take ones goodness along, rejoice with it, and possible go on another time once again, delight in giving into something for good and liberating purpose. Mudita!

Good to hear that it appears to be useful so far.  :)

_/\_

Online Johann

  • Samanera
  • Very Engaged Member
  • *
  • Sadhu! or +367/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Quote from: Upasaka Moritz
I don't understand the last half-sentence "giving ws, tabs or linebreaks not much sign".
The red zero-mark looks "brutal", yes, maybe possible to change that into a thin line instead of taking up a complete space. But normal white-spaces/tabs/linebreaks might be better shown more strongly visible? Or how was it meant?

Editors, at least if "more professional" usually show slight signs for certain line breaks, tabs, spaces (also word has this, this pi-like icon to switch on and off) and since syntax works much with them possible fine to have decent marks and zwsp is just one under them (red and brutal possible because it's a programmers enemy character, as far as it can be read and seldom used as important part of text). LibreO. uses decent signs. But it's all merely already comfort and for working it's great as it is as well. Surely the red point is very dominant and leaves one to oversee normal spaces.

Quote from: Upasaka Moritz
Good to hear that it appears to be useful so far.  :)

_/\_

Act-ually the quality of mind and it's object (joy with the object of ones scarifies), it's pureness counts and that is something only attained and gained by the doer and particularly shared by letting others known ones deeds. It's usual that such also is of much use in merely wordily manners as well, pleasing and easy nourishment. Mudita.
« Last Edit: April 20, 2019, 01:17:30 PM 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 +367/-0
  • Gender: Male
  • Date of ordination/Datum der Ordination.: 20140527
Just found out that there are even a lot of settings incl. the display of white spaces and line breaks. The layout and frontsize options are also very useful. Althought disable spell check, it's also possible to disable the editor to normal.



In regard of the "styling" of the zwsp Atma investigated a little the origin sphere of the editor and asked the developer, Mr. Marijn , so to possible find out how and where to simple edit.

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 +256/-0
  • Gender: Male
Just found out that there are even a lot of settings incl. the display of white spaces and line breaks. The layout and frontsize options are also very useful. Althought disable spell check, it's also possible to disable the editor to normal.



In regard of the "styling" of the zwsp Atma investigated a little the origin sphere of the editor and asked the developer, Mr. Marijn , so to possible find out how and where to simple edit.

Thanks to the hint I was able to make the zws a bit better looking (see screenshot). Now in light blue (for now not possible to turn on/off, will try to add option soon).
Other special characters (from the range of special characters defined by CodeMirror ) are still rendered as red dots.
If there are any suggestions for better colors, also for the space and line-break markers (shown when enabling the options "Show Whitespace" and "Display line numbers", respectively), I could change that as well.

_/\_

* Moritz The "line break" marker seems a bit buggy when using "Highlight current line" but not "Show line numbers". Then the marker will appear only at the end of the current line and stay there even when selecting a different line. Might be confusing. I will try to find out the reason. Maybe would be good to just combine "Highlight current line" and "Show line numbers" into one option, so that the error would never appear.

Online Johann

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

Looks more/used easy for the eye, the color as well, either dark or white.

Maybe the other signs like the point of white space, the line break, can be made in the same color (then its easy to see them as a "kind").

If the zwps could be moved sight to the right, so that it comes between the characters without (like now) changing the width, and if it would be slight broader, then it might be even more easy to discriminate required and not so different as used.







Not sure if it is possible to use also a sign, like an arrow, for tabs.

Btw., by clicking Ctrl+F one can search within the text, also with regex, and all finds would be marked.
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 +256/-0
  • Gender: Male
Ah, I see. That must be because of using different fonts.

On my system, CodeMirror was using the default monospace font for the text area, while on the pictures shown above, a different (non-monospace) font is used (which is probably not installed on my system, and therefore the monospace font used instead).

I have inserted the ZWS marker as a simple '|' symbol, shifted slightly to the left, and overlayed, so not taking up any space of the actual text behind. The positioning would be different for different fonts. I chose -0.25rem (rem is a unit of text size in CSS, 1rem = current line height or something), which should be more or less correct for most monospace fonts.

I think between non-monospace fonts, there may be more differences, so it might not be possible to find a left shift value that works perfectly for every font.

For now, I have changed the CSS to use the borrowed "Moul Pali" font in the editor, and set the zws left shift to -0.125rem, which seems to fit well together. But I am not sure if Moul Pali is really a good font choice.

Since the Moul Pali font was actually not really used before, the Khmer texts seen on accesstoinsight.eu were always in some "default" fonts. So it seems there should not be a necessity to specifically include a font to support Khmer script. Khmer script seems to be included in most or many "standard" fonts nowadays, and browsers would automatically choose a font where the Khmer character is defined in most normal cases (if not explicitly setting a CSS rule to use _only_ one specific font, without default "fallback", which has no Khmer characters).


I also changed references to "Moul Pali" in conf/userall.css, because they were all written wrong. (Need to be put into quotes, because of space in the name.) So "Moul Pali" was probably actually never used before.

Not sure where the following CSS rules are now visibly applied. Maybe Bhante might check if they are actually looking as intended:
Code: [Select]
/*pali khmer font span*/

@font-face { font-family: "Moul Pali"; src: url('Moul Pali.ttf'); }


.dokuwiki div.wrap_pali_km {
font-family:"Moul Pali", sans-serif;
font-size:80%;
}

.dokuwiki span.wrap_pali_km {
font-family:"Moul Pali", sans-serif;
font-size:80%;
}

/* ... */

.dokuwiki div.wrap_cs-km { font-family:"Moul Pali", sans-serif !important;
}


I set ", sans-serif" everywhere behind as a "fallback" (although Moul Pali is more of a Serif font) in all those cases where using "Moul Pali" as font. This means that if a character is not defined in Moul Pali, it will use the standard of the "sans-serif" family instead. This is how it generally works in CSS: if a symbol is not found, the browser will look in the next font of the list, and in general it would always fall back on one of the three "standard font families": monospace, serif or sans-serif. Normally, Moul Pali would fall back on "serif" for non-Khmer symbols, using whatever is the standard serif font on the system. But sans-serif seems generally better to read and fitting with the general DokuWiki style.


Maybe it would be better to not use "Moul Pali", because it is more like a Serif font, and some things can look a bit strange (see screenshot ).


I think it might be best to use the standard font that is used on DokuWiki pages, which is "Arial, sans-serif" (i.e. using Windows "Arial" font if it is available, or otherwise whatever standard "sans-serif" is installed on the system).

For now, the editor font is set as "Moul Pali, sans-serif". But there is also a button now to choose a different font (need to enter a correct font name that is recognized on the system), so one can try out different fonts if one knows some font names (however it is probably best for compatibility on different systems to rely mostly on just the standard font-families "serif, sans-serif and monospace", if not having font files available to share).

The "insert ZWS" button is also included again:


[small]("insert ZWS" and "choose editor font" buttons)[/small]

Adding tab arrows is surely possible, but maybe difficult to implement well with non-monospace fonts and might need some time.


Ah, and I recognized the use of different "themes" in CodeMirror that one can choose. So I thought it is best to use one of the theme colors also for zero-whitespace (instead of a fixed color, that might not fit well with some themes).
The color themes of CodeMirror have a number of CSS classes for certain elements in the text, for example:
span.cm-keyword, span.cm-atom, span.cm-number, span.cm-def, span.cm-variable, span.cm-variable-2, ..., span.cm-operator, span.cm-property, span.cm-comment, ...
, which have different colors for different themes and are used differently for whatever kind of "programming language" CodeMirror is set to use. (DokuWiki markup has its own CodeMirror definitions in the plugin).
For now, I chose the CSS class cm-comment for the ZWS markers. I think the color is good for most themes. But feedback is welcome. One could try different things.

_/\_

« Last Edit: April 27, 2019, 10:49:18 PM by Moritz »

Online Johann

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

Moul Pali is only a "style/decor" font for Pali-words, not so known and possible had to read since old script. Like old German script after 2 Generations can no more be read. Atma used this sript for the cs-km pages and for the use of pali-words in dictionary as span. For editor general probably not good (my person still has a very hard to read, remember the different characters). It would also require much styling like line spaces 200% etc. since overlapping otherwise like Nyom has already seen.



The fall back fonts on pc and android are different, but always easy to read. Most easy the android used. Fall backs of "Sans" but which is owned by google http://www.khmerfonts.info/fontinfo.php?font=2522

"Koh Santepheap" looks also fine and a nice name "Island of peace"...

PC (windows) uses Khmer OS System which is not so pleasing on small devices but possible best aside of Sans. As there is no font owned by the Sangha, fall back seems to be fine for general script and the tool to select wished scripts is more then comfortable in addition.

Mr Nathan ( sungkhum )might know much and more in regard of scripts, having been involved much in their development.

A screen-shot from mobil device (wsp are here dark-green). Position look perfect.





 Changing themes seems to cause different colors for wsp and it's endless and sisiphus-work to look for perfect style. If it looks ok for Nyom on pc and in standard theme, thats great. If one wishes other themes, that has already lot of ways and may be open for inspired gifts all the time.

For working direct in the editor, use dw as editor, the conditions are, aside of the spell-check, really great and comfortable.
« Last Edit: April 28, 2019, 02:54:34 AM by Johann »
This post and Content has come to be by Dhamma-Dana and so is given as it       Dhamma-Dana: Johann

Tags: