Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SCRIPT_LOGATTR structure

Contains attributes of logical characters that are useful when editing and formatting text.

Syntax


typedef struct tag_SCRIPT_LOGATTR {
  BYTE fSoftBreak  :1;
  BYTE fWhiteSpace  :1;
  BYTE fCharStop  :1;
  BYTE fWordStop  :1;
  BYTE fInvalid  :1;
  BYTE fReserved  :3;
} SCRIPT_LOGATTR;

Members

fSoftBreak

Value indicating if breaking the line in front of the character, called a "soft break", is valid. Possible values are defined in the following table. This member is set on the first character of Southeast Asian words.

ValueMeaning
TRUE

A soft break is valid.

FALSE

A soft break is not valid.

 

fWhiteSpace

Value indicating if the character is one of the many Unicode characters classified as breakable white space. Possible values are defined in the following table. Breakable white space can break a word. All white space is breakable except nonbreaking space (NBSP) and zero-width nonbreaking space (ZWNBSP).

ValueMeaning
TRUE

The character is breakable white space.

FALSE

The character is not breakable white space.

 

fCharStop

Value indicating if the character is a valid position for showing the caret upon a character movement keyboard action. Possible values are defined in the following table. This member is set for most characters, but not on code points inside Indian and Southeast Asian character clusters. This member can be used to implement LEFT ARROW and RIGHT ARROW operations in editors.

ValueMeaning
TRUE

The character is a valid position for showing the caret upon a character movement keyboard action.

FALSE

The character is not a valid position for showing the caret upon a character movement keyboard action.

 

fWordStop

Value indicating the valid position for showing the caret upon a word movement keyboard action, such as CTRL+LEFT ARROW and CTRL+RIGHT ARROW. Possible values are defined in the following table. This member can be used to implement the CTRL+LEFT ARROW and CTRL+RIGHT ARROW operations in editors.

ValueMeaning
TRUE

The character is a valid position for showing the caret upon a word movement keyboard action.

FALSE

The character is not a valid position for showing the caret upon a word movement keyboard action.

 

fInvalid

Value used to mark characters that form an invalid or undisplayable combination. Possible values are defined in the following table. A script that can set this member has the fInvalidLogAttr member set in its SCRIPT_PROPERTIES structure.

ValueMeaning
TRUE

The character forms an invalid or undisplayable combination.

FALSE

The character does not form an invalid or undisplayable combination.

 

fReserved

Reserved.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Internet Explorer 5 or later onWindows Me/98/95

Header

Usp10.h

See also

Uniscribe
Uniscribe Structures
ScriptBreak
SCRIPT_PROPERTIES

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.