BiDi level Finite State Machine (wchao: 12-22-98)

Run

A(0)

B(1)

C(2)

 

X(1)

Y(2)

Z(2)

chLTR

0/A

0/A

0/A

 

2/Y

2/Y

2*/Y

chRTL

1/B

1/B

1/B

 

1/X

1/X

1/X

digitLTR

0/A

0/A

0/A

 

2/Y

2/Y

2*/Y

digitRTL

2/C

2/C

2/C

 

2/Z

2*/Z

2/Z

control

0/A

0/A

0/A

 

1/X

1/X

1/X

 

A : (LTR char in LTR para)

\ltrpara "ab", "+-", "12"

B : (RTL char in LTR para)

\ltrpara "{AB", "{-+"

C : (AN in LTR para)

\ltrpara "{AB{34"

X : (RTL char in RTL para)

\rtlpara "{AB", "{-+"

Y : (LTR char in RTL para)

\rtlpara "{{ab", "{{+-", "{{12", "{{ab12", "{{34}{ab"

Z : (AN in RTL para)

\rtlpara "{{34", "{AB{34", "{{ab}{34"

where: 12 : digitLTR; 34 : digitRTL; ab : chLTR; AB : chRTL; * : disconnect from preceding run