4

DirectWrite provides line-breaking information via IDWriteTextAnalysisSink::SetLineBreakpoints(). However I need to determine word boundaries as well, in accordance with Unicode Annex #29: Unicode Text Segmentation.

Is there a way to do this using DirectWrite? If not, what alternatives are there that work alongside DirectWrite's text layout system in Windows desktop as well as WinRT?

bright
  • 4,700
  • 1
  • 34
  • 59

1 Answers1

2

I can confirm that DirectWrite up to Windows 8.1 does not support UAX 29 (just LB UAX 14). As for direct OS supplied alternatives, either Windows.Data.Text (http://code.msdn.microsoft.com/windowsapps/Text-Segmentation-API-be73de71) or the Extended Linguistic Services (http://code.msdn.microsoft.com/windowsapps/Extended-Linguistic-ELS-d04c606a) which has been around since Windows 7, may help, but I do not believe either of these support a direct implementation of UAX 29.

Dwayne Robinson
  • 2,034
  • 1
  • 24
  • 39