Macro Language Reference > Macros > Text (Frame Level) > tsthy
  
tsthy
Description
Used in the development of PTC ALD to test the hyphenation of a word. The result of the test is written to the error log (by default serrlog.3at) which, it should be noted, is overwritten when a new session of PTC ALD generates its own errors.
 
Example 291. Test English hyphenation of a word
The macro shown below tests PTC ALD English hyphenation of the word 'hyphenation' writing the results to serrlog.3at:
Examining serrlog.3at we can now see how PTC ALD will hyphenate the word using the hyphenation level set with thyc:
tsthy 16,"hyphenation"
!2
hyphenation
.3....6....
 
Example 292. Test hyphenation with the Dieckmann hyphenation dictionary
This example demonstrates how to test hyphenation with the Dieckman hyphenation dictionary.
A hyphenation type over 1000 * and over will use Dieckman hyphenation, e.g. the macro below will use Dieckmann English:
tsthy 1016,"hyphenation"
Syntax
tsthy language:n? word:s?
language
The language code, e.g. 16 for English. The filenames of PTC ALD hyphenation dictionaries indicate which number to use for a specific language.
word
The word to be tested.