Back to Online itrans |
The Online Itrans URL accepts a bunch of parameters which allow customization. It offers a way to automatically load customized conversion tables. It also offers a way to start with a specified number of textareas and scripts.
The script-name should match the name in the spreadsheet for itrans conversion without the leading # character.
Examples:
Load hindi only:
www.aczoom.com/itrans/online/?s=hindi
Load hindi and sanskrit:
www.aczoom.com/itrans/online/?s=hindi,sanskrit
The index.html file defines the maximum output boxes. Five is the maximum number in the current file, but it can be increased if making a local copy of this whole package and by updating index.html and adding more output boxes.
There is no support available for this tool, other than this document. Knowledge of web tools and editors is required to modify the default behavior. In addition to the steps below, the code can also be copied by looking at the source of this web page, and a local web page created with input and output text boxes as desired.
File → Make a copy ...
command.File → Download As...
command.INPUT
column so that it uses different input codes.INPUT
has unique codes with no
duplicates. If creating new rows, copy and existing row to make sure it has data
in all the columns.File → Download As...
command with the Tab-separated values (.tsv, current sheet)
.
Destktop spreadsheet programs may have different ways to do this - for example, the
Save As
may offer a way to save it in a Tab-Separated format and use a
.txt
file extension.. Or there may be an Export
command that offers that.For easier use of customized itrans conversion spreadsheet tables in tab-separated values format, there is the tsv= URL parameter for the Online Itrans URL, to load any custom table on page startup. This avoids the need to click on the Load tab-separated spreadsheet with itrans data button.
Make sure to provide the URL of a tab-separated values spreadsheet text file. And it must be hosted at a site has a permissible CORS policy otherwise the file cannot be fetched by the itrans script.
Examples:
Load the data file from the aczoom.com site:
aczoom.com/itrans/online/?tsv=data/DEFAULT.tsv
Or the Google Docs spreadsheet can also be loaded by using this URL:
aczoom.com/itrans/online/?tsv=https://docs.google.com/spreadsheets/d/14wZl8zCa4khZV3El2VGoqurKBLGx21mbS-yORi4w7Qo/export?format%3Dtsv%26gid%3D0
The default table from the source code Github site cannot be loaded since Github CORS setting rejects this request:
aczoom.com/itrans/online/?tsv=https://raw.githubusercontent.com/avinash311/itrans/master/js/data/DEFAULT.tsv [will fail]
The tsv= string should be URL encoded. At a minimum, encode = (%3D) and & (%26) in the tsv= value, as shown. The Google Docs Spreadsheet used for the
default spreadsheet for itrans conversion
can be downloaded as a TSV text file using the URL
docs.google.com/spreadsheets/d/14wZl8zCa4khZV3El2VGoqurKBLGx21mbS-yORi4w7Qo/export?format=tsv&gid=0
and that URL string should be provided as a parameter to tsv=, after encoding it as a string by replacing the = and & characters as shown above.
There is no requirement to use Google Docs. Any URL that shows a tab-seprated text file with the itrans conversion tables can be given as the tsv= parameter.
The Online Itrans
page section in the middle Customize the character mapping will show the tsv= parameter if that file was correctly loaded.
aczoom.com/itrans/online/?s=sanskrit,tamil,unicode-names,telugu,iso&tsv=iso
will load the built-in ISO based transliteration table. That also makes available the #iso output script.
The built-in version is usually the same as the latest online version of the
iso based itrans encoding.
To use multiple URL parameters, separate them by & character. Example:
aczoom.com/itrans/online/?s=sanskrit,tamil,unicode-names,hindi,telugu&tsv=data/DEFAULT.tsv
will use 5 output boxes with the listed scripts and use the conversion data as per the tsv= argument.
#language your-text
to enter that text in the Enter itrans input: box. See the
Examples present on the online itrans page.
The name of the column for a language name must be of the form #name
And if the custom spreadsheet has language columns deleted, that will remove
those languages from the drop-down list.
k
and h
and kh
exist, then input
text kh
will always match the longer kh sequence row. Use k_h
in the input to have it match the k row and then the h row instead.
Note: itrans uses a precise mapping of input codes to output code. It is not a phonetic conversion system, nor is it meant to be. (There are many other systems that do that.) Itrans is a table-driven, customizable mapping of input words to any Unicode character sequence.
The source code for this client-side application is available at GitHub itrans link. It has the Javascript files, as well as this HTML web page and CSS files.
Please note that no technical support is available for this web page or for the tools on this web page.
If you do find a bug (note that mapping issues may not be bugs, you can modify the mapping
and use a customized spreadsheet as described above), feel free to file it at the
GitHub itrans issues page.
Back to Online itrans |