|

Added Sandhi Page

In an effort to make this site more complete so that I could use it for my own studies instead of referring to my local Open Office docs, I decided it would be most useful to add the Sandhi charts next. This proved more difficult than I first expected. I thought I might just be able to cut and paste the document into a page, but the sandhi page is full of Sanskrit characters interspersed with English, and the cut-and-paste function in the WYSIWYG editor somehow sets the Sanskrit font (which in the document is Arial Unicode MS) to Tahoma! Or was it Times New Roman? At any rate, I began to go through the document and replace all the <span> tags that had style attributes designating the font family with <span class=”san”> tags. The class I have defined in custom CSS that I add to each page through a plugin so that it sets the font to Arial Unicode MS at a readable size. But not ever occurrence of that <span> tag needed to be replaced. It was also used around some of the English and symbols like the dash, etc. So, I was going through and finding the next occurrence and deciding whether I needed to replace it or not. Then, I figured out a regular expression search to just find the tag when it preceded a Sanskrit character. And then, once I tested it, it was a one click change. So that was handy.

For those interested, the regular expression I used was to search on:

<span style="font-family: 'Times New Roman', serif;">([ऀ-ॿ])

And to replace that with:

<span class="san">\1

Simple enough as regular expressions go. It just searches on the range of Unicode Devanāgarī characters (0900-097F): ([ऀ-ॿ]) Too bad I wasted 20 minutes doing the hunt-and-peck approach!

 

Similar Posts

  • | |

    A Burst of Activity

    Yesterday, I finished posting the verb pages I have to date in my local documents. So far I am up to the last or second to last chapter in Hart’s grammar. I have yet to do the Perfect, which will be the last page in Verbs. Yesterday, I added the Past Participles, the Continuative, the…

  • | |

    Perfect and Practice Texts

    I have added the Perfect Tenses from Hart’s chapter 29. This leaves one more chapter (The Gerundives) and the appendix (The Aorist and some secondary conjugations). I put the Perfect, of course, under the “Verb” drop down menu. As the menu was getting quite bloated or long, I tried reorganizing it. I created a page…

  • |

    Why Sandhi?

    This is not a post about the necessity of sandhi or even the historical/linguistic origin of it, which would be an interesting topic, though beyond me. After creating the Sandhi page on this site, the question arose for me as to why we write the term as “sandhi” in English. This appears to be the…

  • |

    More on Verbs

    There is a lot of information in Hart’s grammar on verbs. The ten class and the present system of tense conjugations are just one part, but there’s also participles both present and past, the passive, the causative, continuatives, and more. It would have been ideal to link all those pages here within the same drop-down…