the goal is to add the capitains sparrow cts selector and workflow plugins to the alignment editor input form so that users can select from texts available in various CTS repositories as the contents of their alignment.
We can use the work done on the treebank editor input form as a guide.
The starting point is the current input form (https://github.com/alpheios-project/alignment-editor/blob/master/db/app/align-entersentence-perseids.xhtml and https://github.com/alpheios-project/alignment-editor/blob/master/db/script/alph-align-enter-ext.js)
Here are the steps I think are necessary:
- add 2 selectors to the form - one for L1 and one for L2
- EnterSentence javascript function currently calls an xquery service, as defined in this metatag
<meta name="templateurl" content="../xq/align-maketemplate.xq"/>. We want to replace the use of this xquery service with the client side calls to the LLT segtok service to segment/tokenize the text and then send it to a client side transform using XSLT to create the alignment template. This will be similar to the segtok_to_tb.xsl but create an alignment xml file instead of a treebank one.
- this output is then what gets submitted to Perseids to create the document etc.
Hopefully this is enough of a guide to get this started, but please please ask if anything isn't clear.
the goal is to add the capitains sparrow cts selector and workflow plugins to the alignment editor input form so that users can select from texts available in various CTS repositories as the contents of their alignment.
We can use the work done on the treebank editor input form as a guide.
The starting point is the current input form (https://github.com/alpheios-project/alignment-editor/blob/master/db/app/align-entersentence-perseids.xhtml and https://github.com/alpheios-project/alignment-editor/blob/master/db/script/alph-align-enter-ext.js)
Here are the steps I think are necessary:
<meta name="templateurl" content="../xq/align-maketemplate.xq"/>. We want to replace the use of this xquery service with the client side calls to the LLT segtok service to segment/tokenize the text and then send it to a client side transform using XSLT to create the alignment template. This will be similar to the segtok_to_tb.xsl but create an alignment xml file instead of a treebank one.Hopefully this is enough of a guide to get this started, but please please ask if anything isn't clear.