Hi Sascha,

The checking capabilities of wmtrans have been incorporated in different editors and applications. As far as I know not in ULC applications. Their use and integration in Java code is fairly simple and is described here (http://www.canoo.com/wmtrans/developerzone/ recJavaAPI.html), at least for what it concerns a simple recognizer (yes/no answer):


What you need is to decide:

1. The way you show an error
2. The way you expect the interaction

For (1) I imagine you have already your own text format (you say you have a component which allow users to edit and format text), so what you need is to filter the recognizer answer, so that you can format your text according to the analysis result and show it in a way your component allows you.

For (2), depending on the expected interaction way, you have different integrations opportunities in ULC.

a) If you expect the text check to be performed when the user explicitly asks for it (say, with a button click), then the integration can be performed completely server side. The button action will trigger a complete text check, and your program will change the text format, according to the spelling checker results.

b) If you expect a single word to be checked as soon as the user has completed typing it, you can still perform the integration server side, but you need to realize an extension client-side that limit the round-trip only after a whole word has been typed (say, after a blank or whatever space character). Performing the check for the blank using the IKeyListener would generate traffic because for each character typed there will be a round-trip.

c) If you expect the check to be performed after each character, calling the spelling checker also for partial words (during the typing), you definitely need to integrate the spelling checker client side. Integrating it client side would also work for option (b), but there it is not necessary, if you can limit the roundtrips, as explained before.

I hope this helps.

Best regards
Sandro




On Feb 26, 2007, at 7:46 PM, <[EMAIL PROTECTED]> wrote:

Hi all,

our application features a component which allows users to edit and format text. Recently the requirement has arisen, that they would like to check their spelling as well. Therefore my question is: did anybody on the list add a spell checker to a ULC app before?

I believe, it should be possible to use wmtrans (or some part of it), which among other purposes can be used for spell checking. How should we go about it, if we wanted to incorporate the spell checking capabilities of wmtrans in our application?

Have there been any considerations at Canoo of integrating ULC with text editing and styling and some word analysis capabilities?

Best Regards,
Sascha Böhme

Sascha Böhme
SAB Sächsische Aufbaubank
Informationstechnologie
Tel. 0351/4910-1345
<mailto:[EMAIL PROTECTED]>





Sächsische Aufbaubank - Förderbank - Anstalt des öffentlichen Rechts,
Sitz Dresden,
Amtsgericht Dresden HRA 5353,
Ust-IdNr. DE179593934.

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to