| Home |

Utility: Super Online Rich Text Editor

(Tested using IE7, IE8, IE11 and Firefox 25)

To see an example of how this web page works:

1. Select the SampleSanskritDiacriticsTextRT1­ function and then click the corresponding   (Apply selected function to selected text) button.

2. Check “Text only,” select the ToUnicode function and then click   to see the apostrophe and the quotes enhanced.

3. Select the AddSanskritDiacritics­ function and then click  to see Sanskrit diacritics added to 14 letters.

4. Select the <b>…</b> (bold) template and then click the corresponding   (Apply selected template to selected text) button.

5. Select the <i>…</i> (italic) template and then click .

6. Click the (middle)   button to see the italics removed.

7. Click  again to see the bold removed.

8. Click  again to see the Sanskrit diacritics removed.

9. Click  again to see the special Unicode characters changed back to ANSI.

10. Click the (middle)   button to undo the last .

Note: The  /  system works completely independently of whether or not the Show HTML checkbox is checked.
The AddSanskritDiacritics function is interesting. If some text is selected (highlighted), then only that particular text is worked on, otherwise all of the text, including the HTML, is worked on. However, if “Text only” is checked, then any HTML tags within the selected text are simply ignored. Therefore, checking “Text only” may result in a noticeable speed advantage.

Each word of the selected text is compared to either one or two word lists. If the particular word appears on a list of 1100 common English words/HTML reserved words, then no further action is taken for that particular word. If it doesn’t, then it is compared to a 2nd list of words: A list of 94,000 Sanskrit words! If it is found on the 2nd list, then diacritics are added.

The list of Sanskrit words was obtained by extracting those Sanskrit words which contain diacritics from 4671 HTML files on http://causelessmercy.com/. Those HTML files included Srila Prabhupada’s unchanged books, his tape transcriptions, and the Vaisnava Songbook. Although some additional words were added manually later on, almost all of the words were extracted using a completely automated process.

Many words can have the diacritics added in more than one way. For example, Krsna could be Krsna or Krsna, but since Krsna is more common, that’s the version which was selected. Sometimes a particular Sanskrit word appears with diacritics, but it appears more often without diacritics. In such a case, the word was not selected for inclusion in the list.

Concerning the ConvertANSI_HTMLToUnicode function, Unicode characters may be entered in 3 different ways. For example, the Greek letter Delta (Δ) may be entered as [Delta], as &Delta; ( Show HTML only), or as [#916]. Certain fractions may be entered in 4 different ways. For example, ¾ may be entered as 3/4, as [frac34], as &frac34; ( Show HTML only), or as [#190]. (See Table of HTML Special Character Designations - http://llbest.com/HTMLSpecialCharacterTable.htm)

Examples of a few of the many other special codes are as follows:












Note: The purpose of the button is to reset the 8 function / template selectors back to their default selections.
Questions, comments and suggestions are welcome.
Pratyatosa Dasa ()

| Home | THIS WEB PAGE URL: http://Pratyatosa.com/?P=5i |