| Home | Note: The purpose of this web page is to provide a “fill-in-the-blanks” approach to creating a new web page by directly editing the HTML with lots of help from ?? functions / templates. |

Utility: Super Online Web Page Creator

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

The purpose of this web page is to provide a “fill-in-the-blanks” approach to creating a new web page by directly editing the HTML with lots of help from ?? functions / templates. The various functions / templates are available through the agency of 4 selectors each. One of the functions is the PreviewWebPage function. This function allows you to instantly check to see how your newly created web page will look when it’s online.
Here an example of how this web page works:

1. Select the SampleAnsiHtml function and then click the associated  (Apply selected function to selected text) button.

2. Check either the “Text only” or the “All” option.

3. Select the ConvertAnsiHtmlToUnicode function and then again click the associated  button.

The “8 changes made” alert message may be explained as follows: 7 items of the changes count are obvious, but the other one is not so obvious. It results from the fact that changing 1 3/4 to was counted as 2 changes.

Here’s another example:

1. Using one of the 4 function selectors, select SkeletonWebPage and then click the corresponding  button.

2. Check the “All” option.

3. Using a different selector than the one used in step #1, select the MoveRight function and click the corresponding  button.

Here’s yet another example:

1. For a slight variation of the preceeding example, click the SkeletonWebPage  button again, but this time select (highlight) a small portion of the text.

2. Again click the MoveRight button and note the more localized effect.

* The ConvertToRegularExpression function converts an “ordinary text” search string into the “Regular Expression” search string required by the SearchAndReplaceUsingRegExp function. Simply manually enter or “copy/paste” the search string, including any special characters or characters, into the left hand text box, and then click the ConvertToRegularExpression  button. (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.”

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, 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.

Questions, comments and suggestions are welcome.
Pratyatosa Dasa ()

| Home | THIS WEB PAGE URL: http://Pratyatosa.com/?P=7c |