Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Input Panel with custom recognizer

2 views
Skip to first unread message

Ilia Shramko

unread,
Sep 24, 2004, 11:38:10 AM9/24/04
to
Hi,
I am developing a handwriting recognizer for Russian language using
Recognizer API.
I have some problems making Input Panel "Add to dictionary/Remove from
dictionary" feature work with it.

I implemented all functions required, I believe, including
AddWordsToWordList, DestroyWordList, MakeWordList, SetWordList &
IsStringSupported but I don't have the same call pattern as default
recognizers for U.S. English have. And even when I have (almost the same) it
just doesn't work - "Add to dictionary" button is disabled.
But it works fine when I replace a default U.S. English recognizer
(mshwusa.dll) with my one.

Have you got any idea why it is so and what should I do about it?

Thank you.


Stefan Wick[MS]

unread,
Sep 25, 2004, 10:17:07 AM9/25/04
to
Hello Ilia,

When the Input Panel displays the correction UI, your recognizer should be
called on the IsStringSupported API. What does your implementation return
when IsStringSupported is being called with a random string?

Here is a quick test program to check this out (C#):
Recognizers recos = new Recognizers();
Recognizer russianReco = recos.GetDefaultRecognizer(1049);
RecognizerContext rc = russianReco.CreateRecognizerContext();
bool isInDictionary = rc.IsStringSupported("someRandomString");

Thanks,
Stefan Wick
--
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Ilia Shramko" <il...@quarta.com> wrote in message
news:%23BdGtwk...@TK2MSFTNGP11.phx.gbl...

Stefan Wick[MS]

unread,
Sep 27, 2004, 1:06:29 PM9/27/04
to
Hi Ilia,

I just checked with the team who owns this functionality. Your guess was
correct: in the current version of the TabletPC Input Panel, the feature
only gets enabled if all characters are part of code page 1237.

Thanks,
Stefan Wick
--
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Ilia Shramko" <il...@quarta.com> wrote in message

news:%23morqUK...@TK2MSFTNGP14.phx.gbl...
> Hello Stefan,
>
> It returns S_FALSE. Why? Don't you think it returns S_OK or E_NOTIMPL on
> every call? :)
>
> I believe I found where can be a problem.
> Please, take a look at the attached log files.
> They were created during a simple test:
> - I restarted tabtip.exe,
> - set corresponding keyboard layout in notepad application,
> - called Input Panel, wrote "ppp" word and called the correction UI.
> The following log files were created:
> mshwusa.log - for English layout using the default U.S. English recognizer
> mshwfra.log - for French layout using the default French recognizer from
> Recognizer Pack
> qrecoRU.log - for Russian layout using custom recognizer
> qrecoEN.log - for English layout using custom recognizer in place of the
> default U.S. English recognizer
> qrecoRU+EN.log - for Russian layout, but the first element in the lattice
> was replaced on a random English word
>
> As you can see, IsStringSupported function wasn't called only once
> (qrecoRU.log) - when the first element in the lattice contained characters
> from the Russian (1251) codepage.
>
> So my guess is that it has something to do with characters from a
> different
> (from English) codepage.
> Can you confirm or deny that?
>
> Thank you.
>
>
> "Stefan Wick[MS]" <sw...@online.microsoft.com> wrote in message
> news:OIwQlpw...@TK2MSFTNGP09.phx.gbl...

Ilia Shramko

unread,
Sep 28, 2004, 8:19:32 AM9/28/04
to
Thank you, Stefan.


"Stefan Wick[MS]" <sw...@online.microsoft.com> wrote in message

news:udjhURLp...@tk2msftngp13.phx.gbl...

0 new messages