trueWord

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
trueWord
Summary

Designates a string as part of a chunk expression, delimited by Unicode word breaks, as determined by the ICU Library.

Introduced7.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put "外国語の学習と教授" & return into tText
put "Language Learning and Teaching" & return after tText
put "Изучение и обучение иностранных языков" after tText
put trueWord 4 of tText -- returns "学習"
put "外国語の学習と教授" & return into tText
put "Language Learning and Teaching" & return after tText
put "Изучение и обучение иностранных языков" after tText
put trueWord 3 of line 3 of tText -- returns "обучение"
get trueWord 4 of ("The programme output:" && quote & "Hello World!" & quote) -- yields Hello
RelatedKeyword: item, character, segment, sentence, line, word, paragraph, token
Description

Use the trueWord keyword to refer to one or more words, delimited by Unicode word breaks.

A trueWord is a word chunk, delimited by Unicode word breaks, as determined by the ICU Library. When there are no alphabetic or numeric characters between two word breaks, that string is not considered by LiveCode to be a trueWord.

Tagstext processing