Skip to main content

bug: MS microsoft excel and libre office calc for those who use spreadsheets to do pali + english translation

 




In case anyone else uses libre office calc or Microsoft excel spreadsheet to do pali + english translation

(so things are lined up neatly side by side)


I frequently will cut an entire column (for example English) and paste into a text editor like notepad++ (plain text editor but with richer regex) 

do some editing in notepad++ then copy that back into the spreadsheet.


The bug is, 

the English text I have in the sample above, somehow either the brackets (), {},  [], or *********, or perhaps tabs or some other invisible characters,

 or some combination of all of the above causes the copy buffer clipboard, when moving from notepad++ back into excel spreadsheet,

Will read that entire block of 12 lines back into the spreadsheet as ONE single line.

Which screws up the pali + english side by side alignment for the entire file.


I have the entire AN 5 collection of suttas (hundreds) at  8000+ lines of pali + english,

and it was a nightmare to figure out what was the problem.

At first, I thought it was libre office bug,

so I tried out microsoft excel, same problem.

A day and half later I finally tracked down the problem.


Another issue: Non breaking spaces

They look like a regular ' ' (space), but they're an invisible character that joins the strings on either side of it, so that computers treat it as a single word.

For example "butt head" appears to be two words.

But if I put a non breaking space between "butt" and "head", computers treats that as a single word.


This happened with some sutta central source files from pali (and maybe english) in the past.

Maybe they've fixed it, maybe not.

But the problem it caused on my end, with side by side pali + english in a table, is that the non breaking spaces would create giant long words, causing a huge table imbalance with 90% of the width of the table for one over the other, instead of 50/50.


Simple fix to replace non-breaking spaces with normal space:

with regex, search for \s   [any white space code]

and replace with ' ' [single normal space]


more complicated but correct precise fix:

 with a decent text editor, search for the hex number of the unicode for non breaking space, and replace it with one 







Comments

Popular posts from this blog

Advice to younger meditators on jhāna, sex, porn, masturbation

Someone asked: Is porn considered harmful sexual.activity? I don't have a sex life because I don't have a partner and I don't wish to engage in casual sex so I use porn to quench the biological urge to orgasm. I can't see that's it's harmful because nobody is being forced into it. The actors are all paid well and claim to enjoy it etc. The only harm I can see is that it's so accessible these days on smart devices and so children may access it but I believe that this is the parents responsibility to not allow unsupervised use of devices etc. Views? Frankk response: In another thread, you asked about pleasant sensations and jhāna.  I'm guessing you're young, so here's some important advice you won't get from suttas   if you're serious about jhāna.  (since monastics are already celibate by rule)   If you want to attain stable and higher jhānas,   celibacy and noble silence to the best of your ability are the feedstock and prerequiste to tha...

SN 48.40 Ven. Thanissaro comments on Ven. Sunyo's analysis

This was Ven. Sunyo's analysis of SN 48.40: https://notesonthedhamma.blogspot.com/2024/05/exciting-news-honest-ebt-scholars-like.html And here is Ven. Thanissaro's response to that analysis: I think there’s a better way to tackle the issue of SN 48:40 than by appealing to the oldest layers of commentarial literature. That way is to point out that SN 48:40, as we have it, doesn’t pass the test in DN 16 for determining what’s genuine Dhamma and what’s not. There the standard is, not the authority of the person who’s claiming to report the Buddha’s teachings, but whether the teachings he’s reporting are actually in accordance with the principles of the Dhamma that you know. So the simple fact that those who have passed the Buddha’s teachings down to us say that a particular passage is what the Buddha actually taught is not sufficient grounds for accepting it. In the case of the jhānas—the point at issue here— we have to take as our guide the standard formula for the jhānas, a...

1min. video: Dalai Lama kissing boy and asking him to suck his tongue

To give more context, this is a public event,  * everyone knows cameras are rolling  *  it's a room full of children * the boy's mom is standing off camera a few feet away watching all of this * the boy initiated contact, he had already had a hug with Dalai Lama earlier and then asked Dalai Lama for another hug which triggered this segment  17 min. video showing what happened before that 1 min. clip and after, with some explanation https://www.youtube.com/watch?v=bT0qey5Ts78 16min talk from Ajahn Acalo with his thoughts on Dalai Lama kissing boy, relevance to Bhikkhu monastic code, sexual predators in religion in general, and how celibate monastics deal with sexual energy. https://www.youtube.com/watch?v=uK2m0TcUib0 The child's comments about the incident in a filmed interview later https://www.marca.com/en/lifestyle/world-news/2023/04/18/643eba5d46163ffc078b457c.html The child: It's a great experience It was amazing to meet His Holiness and I think it's a great ex...