Questions tagged [text-services-framework]

Microsoft Text Services Framework is a toolkit for creating advanced text input and natural language technologies. TSF allows applications and arbitrary text services to communicate and view application text to provide multilingual support, and implement text services such as keyboard processors, handwriting recognition, and speech recognition.

28 questions
5
votes
3 answers

Getting started with text service framework (TSF)?

I am asking about a good resources and sample code for TSF?
Ahmed
  • 7,148
  • 12
  • 57
  • 96
5
votes
1 answer

Since TranslateMessage() returns nonzero unconditionally, how can I tell, either before or after the fact, that a translation has occurred?

This is a continuation from What is the correct, modern way to handle arbitrary text input in a custom control on Windows? WM_CHAR? IMM? TSF?. So after experimenting with a non-IME layout (US English), a non-TSF IME (the Japanese FAKEIME from the…
andlabs
  • 11,290
  • 1
  • 31
  • 52
5
votes
1 answer

What is the correct, modern way to handle arbitrary text input in a custom control on Windows? WM_CHAR? IMM? TSF?

I want to be able to support text input in a custom Windows control, just like the EDIT and rich edit controls already do, but not subclassing either of those. The control currently uses Direct2D and DirectWrite to draw text, and runs on Windows…
andlabs
  • 11,290
  • 1
  • 31
  • 52
5
votes
2 answers

Vista Speech Recognition in Delphi

I would like to be able to dictate into my Delphi application using Microsoft Vista's speech recognition. However when attempting to dictate into a TMemo, it simply does not work. I noticed that Firefox 3.0 has the same issue and after they…
Senseful
  • 86,719
  • 67
  • 308
  • 465
3
votes
2 answers

Text Services Framework Application

I can find tons of examples on how to make a Text Services Framework Service but not one on how to make an app that uses it actually. While I'm trying to do this in C# I'm getting despite enough to even use C++ examples if that's all I can get!
shmuelie
  • 1,205
  • 1
  • 9
  • 24
2
votes
1 answer

Windows 10 detect keyboard layout change

I'm trying to implement a service that would monitor language/layout changes. I switch between English and Russian languages. So far I've found this question and tried to implement and install both sinks suggested there. However, there are problems.…
Andrew Sokolov
  • 277
  • 2
  • 12
2
votes
1 answer

CLR cannot create .NET-based COM objects in UWP

I have created a Class Library (.NET Framework 4.7.1) that implements a Text Service (ITfTextInputProcessorEx etc.) in TSF, using ComVisible attribute. I registered it using RegistrationServices and it can be successfully recognised by the system…
Radium Zheng
  • 203
  • 1
  • 9
2
votes
1 answer

how to get cursor position using GetSelection in text service framework windows8 application?

HRESULT hr; TF_SELECTION tfSelection; ULONG uFetched; //Obtain the default selection. hr = _pContext->GetSelection(ec, TF_DEFAULT_SELECTION, 1, &tfSelection, &uFetched); UINT ar=(UINT)uFetched; if(SUCCEEDED(hr) && (uFetched >…
Narasimha
  • 3,802
  • 11
  • 55
  • 83
2
votes
1 answer

how to retrieve total characters in a document used by the TSF manager in windows8?

i am working on Text service framework in windows8 application. in this application document manager interface using method is (*ppRange)-GetText(ec,TF_TF_IGNOREEND,wStr,WCHAR_MAX, &fetched);this method return only compossing mode text only . how to…
Narasimha
  • 3,802
  • 11
  • 55
  • 83
2
votes
1 answer

how to find the cursor position in text service frame work in windows8?

I am implemented sample IME in this service using Notepad and I want to insert text at the cursor's position in the text. How can I get the cursor's position in windows 8?
Narasimha
  • 3,802
  • 11
  • 55
  • 83
2
votes
1 answer

what is the difference between Text Service and Input method Editor?

I'm new to Windows8 Metro app development and Text Service and Input method Editor both are similar or not ,i am not understand the difference. Can someone point me in the right direction?
Narasimha
  • 3,802
  • 11
  • 55
  • 83
2
votes
2 answers

nmake fails to compile TSF samples with VS 2012

I'm trying to build Text Services Framework Sample Codes using Visual Studio 2012 on Windows 8 RC 64bit. The instructions on these samples were based on VS 2003. Here's the part of that (wrote my problems in bold) Open a command window. Run…
Mehdi
  • 1,075
  • 1
  • 11
  • 24
1
vote
1 answer

ITfTextInputProcessor::Deactivate gets called unexpectedly on regaining focus

I am implementing a text service on windows. Things work fine. However when I shift window focus to another application and shift focus back to the original application, the selected text services gets de-activated (I notice a call to…
Pankaj Lal
  • 307
  • 1
  • 12
1
vote
1 answer

ITfRange through text services framework does not honour shiftStart shiftEnd with many applications

I am implementing a text service on windows XP, using microsoft text services framework. I use ITfRange obtained through selection. With MSOffice apps as front end, the ITfRange->shiftStart interface behaves correctly. But when using with many other…
1
vote
1 answer

Cannot get ITfThreadMgrEx on my XP Professional System

I came across a problem with my XP Professional System while working with Text Services Framework. I want to get the ITfThreadMgrEx interface from ITfThreadMgr. According to Microsoft, ITfThreadMgr.QueryInterface() is used to get ITfThreadMgrEx.…
user574771
  • 999
  • 2
  • 10
  • 20
1
2