| Home | Note: If some of the text is selected, then most of the buttons will work only on the selected text. If no text is selected, then all of the buttons will work on all of the text. See below for information about the AddSanskritDiacritics function. (Updated 8/7/2012) |
|

Utility: Super Online Text Editor

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

1. To see an example of how this web page works, try clicking the  button and then the  button above. After noting the result, try clicking  for even more fun with text.

2. For a slight variation, try clicking the  button again, but this time select a small portion of the text. Then click  and  again, noting the more localized effect.

3. Noting the contents of the text box each step of the way, try clicking , Add, and then Remove. Then select SingleSpace and click . Now you should be back to the sample text.

4. You might also want to try clicking , and then click a variety of other buttons to see what effect each of them has on the sample text.

5. To edit your own text, “Copy/Paste” it from a web page, an email message, a text editor, or a word processor into the text area above.

6. To save the edited text, use the  button to send it to yourself as an email message or do a “Copy/Paste” to your text editor or word processor.

NOTE: Clicking the  button will cause that particular button box to become the topmost box.
Before clicking , make sure that all paragraphs are separated by blank lines.

If the “Force max line length:” check box is not checked, then the  button functions as an “Eliminate word wrap” button.

If the “Force max line length:” check box is checked, then the  button functions as an “Add word wrap” button or as an “Adjust line length” button.

* The  button converts an “ordinary text” search string into the required, “Regular Expression” search string. Simply manually enter or “copy/paste” the search string, including any special characters or characters, into the “Search String:” text box, and then click . (The converted search string replaces the unconverted string.)

TIP: can be used in the unconverted search string as a shortcut meaning “Anything can go here.”

The following are some examples of the very powerful  function which utilizes the “Regular Expression” search/replacement strings:

EXAMPLE #1: Try clicking  and then .

NOTE: If the “Replacement string” contains one or more substrings, then each of the substrings in the replacement string is replaced by the text which is represented by the first part of the search string which is enclosed in characters. All of the substrings in the replacement string are replaced by the text represented by the second part of the search string which is enclosed in characters, etc.

EXAMPLE #2: Suppose you want to delete all of the “>” characters which occur at the beginning of a line. Then the “Search string” would be either or , and the “Replacement string” would be . Search string: and Replacement string: would also work, but the first line would have to be edited manually.

EXAMPLE #3: Suppose you are editing a web page (HTML), and you want the number portion of every line that begins with a number to be in bold. Then the “Search string” would be , and the “Replacement string” would be .

The above can get quite confusing, so please be careful! If the result is not what you expected, then click the  button which is immediately to the left of the  button.

For more examples of search / replacement string syntax using Regular Expressions, see: http://llbest.com/?P=1t.

For complete documentation on Regular Expressions, see:

http://ashutoshsaxena.tripod.com/jstut/

quickstart/ch080.html.

The AddSanskritDiacritics function is interesting. If some text is selected (highlighted), then only that particular text is worked on, otherwise all of the text is worked on. 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.

Note: On August 7, 2012, a problem with the “AddSanskritDiacritics” function’s handling of text which contained more than 2048 characters was discovered: It would fail to add diacritics to Sanskrit words which happened to straddle 2048 character boundaries. This bug has been fixed.

To see an example of the uniquely powerful features of the “[ Add | Renumber | Remove ] line numbers.” functions, go to http://llbest.com/?P=57, click the  button, and then the  button, etc.)
Note: The purpose of the button is to reset the function selector back to its default selection.
Questions, comments and suggestions are welcome.
Pratyatosa Dasa ()

| Home | THIS WEB PAGE URL: http://pratyatosa.com/?P=71 |