TeX in C
Explore TeX with modern c compiler.
PART 42: Hyphenation

宏定义

#define trielink(x)   trie[x].rh
 [p344#921] downward link in a trie 更多...
 
#define triechar(x)   trie[x].UU.U2.b1
 [p344#921] character matched at this trie location 更多...
 
#define trieop(x)   trie[x].UU.U2.b0
 [p344#921] program for hyphenation at this trie location 更多...
 
#define setcurlang()
 [p347#934] 更多...
 

函数

void hyphen_init ()
 [p346#928] 更多...
 
void newhyphexceptions (void)
 [#934] enters new exceptions. 更多...
 

变量

TwoHalves trie [TRIE_SIZE+1]
 
SmallNumber hyfdistance [TRIE_OP_SIZE]
 
SmallNumber hyfnum [TRIE_OP_SIZE]
 
QuarterWord hyfnext [TRIE_OP_SIZE]
 
short opstart [256]
 
StrNumber hyphword [HYPH_SIZE+1]
 
Pointer hyphlist [HYPH_SIZE+1]
 
HyphPointer hyphcount
 

详细描述

宏定义说明

◆ setcurlang

#define setcurlang ( )
值:
((language <= 0) \
? (curlang = 0) \
: ((language > 255) ? (curlang = 0) : (curlang = language)))
#define language
Definition: eqtb.h:392
ASCIICode curlang
Definition: hyphen_pre.c:20

[p347#934]

◆ triechar

#define triechar (   x)    trie[x].UU.U2.b1

[p344#921] character matched at this trie location

◆ trielink

#define trielink (   x)    trie[x].rh

[p344#921] downward link in a trie

◆ trieop

#define trieop (   x)    trie[x].UU.U2.b0

[p344#921] program for hyphenation at this trie location

函数说明

◆ hyphen_init()

void hyphen_init ( )

[p346#928]

◆ newhyphexceptions()

void newhyphexceptions ( void  )

[#934] enters new exceptions.

[#935] Enter as many hyphenation exceptions as are listed, until coming to a right brace; then return

[#937] Append a new letter or hyphen.

[#939] Enter a hyphenation exception

[#940] Insert the pair (s, p) into the exception table.

[#941] If the string hyph word [h] is less than or equal to s, interchange (hyph word [h], hyph list[h]) with (s, p)

end [#941]

end [#939]

变量说明

◆ hyfdistance

SmallNumber hyfdistance[TRIE_OP_SIZE]

◆ hyfnext

◆ hyfnum

◆ hyphcount

HyphPointer hyphcount

◆ hyphlist

Pointer hyphlist[HYPH_SIZE+1]

◆ hyphword

StrNumber hyphword[HYPH_SIZE+1]

◆ opstart

short opstart[256]

◆ trie