IGT

IGTEditor

An {\tt IGTEditor} displays a single tokenized text block with its translation. There are two panels: the left panel displays text and translation, and the right panel displays lexical entries when one clicks on tokens. The right panel consists of a {\tt LexentViewer} element. The {\tt edit()} method generates the IGT editor page. It explicitly includes {\tt IGTEditor.css} and {\tt IGTEditor.js}. The latter in turn includes {\tt LexentViewer.js}. The editor page also includes the script initialization {\tt IGTEditor($p,t$)} where $p$ is the paragraph index (as a string) and $t$ is the token index (as a string) or {\tt null}.

LexentViewer

A {\tt LexentViewer} constitutes the right panel in an IGT display. It is a widget; its contents are generated by the {\tt LexentViewer.js} script. The {\tt LexentViewer} launches the script by placing the call {\tt new LexentPanel($v,\ell$)}, where $v$ is the viewer URL, e.g.\ {\tt edit.0;lexentViewer;}, and $\ell$ is the language URL, e.g.\ \begin{verbatim} /cgi-bin/cldx/langs/lang.oji/ \end{verbatim}

LexentPanel

A {\tt LexentPanel} is a Javascript object created on the client side. The entry point is the creation of a {\tt LexentPanel}, as described.