 #Oހ^R6O\ 
 
 # h t t p : / / w w w . b u b u k o . c o m / i n f o d e t a i l - 9 2 8 3 . h t m l 
 
 
 
 # P r a a t[Xvhl^8W(xzveN
Y*Yv`QN[QhbK]ۈLOFf/Ygeepcn_Yye_O^^8abNN-eN:O ۈLkv~hlYgg	fY}ve_ۈLRk[P\Ow_Yeeg	   S P P A S  h7v]QwOFf/[NR[fge^vN
[fccW(ّYgOu(g,ve_\XeNThleg,ۈLN N*[^ّv[^SNe^sWGP<v_b_Qs^vN
f/[QhaNIN
vk[PN_\w_YeN[NR[fgeSf/ccN N*g,vOu(\1SN0NN*g,u(N{zg	Nk[Pv]O\S[N_vXeN^vN
f/_eOّve_\OQN*0 
 
 
 
 #QH\{zvehlQS[P^S 
 
 
 
 
 
 #SOuYN \BSsS0 
 
 
 
 #Qvk!R6O\eg,S[P[^v^SRh 
 
 
 
 
 
 #hY4{&TN
bvT
y0b@ s y l l a b l eN RN;f/QR0 hl\BW(lIN-N RSe9N:lI[WvbNzzh<_ 0 
 
 
 
 #\N
RhR6O\beg,eNh<_N: U n i c o d eh<_0 
 
 
 
 #q6TW( P r a a t̏ЈLNNg, 
 
 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 # # # # # D e s i g n e d   b y   P e n g f e i   S h a o   f e i p e n g s h a o @ 1 6 3 . c o m 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 # # # #  N{zN:Yt[aYPZR0\Q[RmRhlN-OFf/el_:R6[PSf/h9cne^sWGmR0 
 
 # # # #  lB 
 
 # # # #   1 .g	XeN 
 
 # # # #   2 .XeNg	N \BhlhlQ[f/XeNvR~N 1 2 3 4R_ kN N*ep[WNhN SbN N*w 
 
 # # # #   3 .R6O\TN
R~Q[[^veg,eNlBN: U n i c o d eh<_eg,eNg	N	R{,N Rf/TN
b[^v^ShY4N: o r d e r 
 
 # # # #      {,NRf/ s e n t e n c e  Ygf/N-e\1f/^SNhvlI[WS[PYgf/e\1f/S[P{,N	Rf/ s y l l a b l eYgf/N-ef/bYgf/f/S[P 
 
 # # # #   4 .lIONu\N	\BS[P\Bf/lIS[PSU\Bf/bX\Bf/NuvXkRR_ NuV\BS[P\Bf/S[PSU\Bf/SUR_ g	\BTk\B 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 # # # #   2 0 1 3 . 9 . 2 4  [NlIbY[N
T|{WvRR+hlN
TY z h ihN: z h   i i i{I 
 
 # # # #   2 0 1 3 . 9 . 2 5   f i l e n a m eN ReSNf/eNT
yN_SNf/^&bi\UT
 
 
 # # # #   2 0 1 3 . 9 . 2 6  mR[NvkvYt 
 
 # # # #   2 0 1 4 . 1 . 1 2  \N*g,Oe9N:[N{zvYt 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 f o r m   i n f o r m a t i o n 
 
 	 c o m m e n t  QeS[Phl\B~ 
 
 	 p o s i t i v e   t i e r _ n u m b e r   1 
 
 	 c o m m e n t  QeXeNb@W(vv_U 
 
 	 c o m m e n t   (Nuv T e x t G r i d\OO[XW(XeNb@W(vv_U ) 
 
 	 t e x t   o p e n p a t h   C : \ U s e r s \ d e l l \ D e s k t o p \ 2 0 2 0^t 4g 1 4eN
gPe  bKRhlS[P^S[s 3\BS[PXRhl 
 
 	 c o m m e n t  QeNuve T e x t g r i dO[Xv_U 
 
 	 t e x t   s a v e p a t h   C : \ U s e r s \ d e l l \ D e s k t o p \ 2 0 2 0^t 4g 1 4eN
gPe  bKRhlS[P^S[s 3\BS[PXRhl \ n e w 
 
 	 c o m m e n t     
 
 	 c o m m e n t  Qeeg,ehcb@W(v_TeNT
y 
 
 	 c o m m e n t   (h<_f/ T A B ) 
 
 	 t e x t   t e x t P a t h   C : \ U s e r s \ d e l l \ D e s k t o p \ 2 0 2 0^t 4g 1 4eN
gPe  bKRhlS[P^S[s 3\BS[PXRhl \ 
 
 	 t e x t   t e x t F i l e N a m e   c o n t e n t 6 - 1 0 0 s e n t e n c e s . t x t 
 
 	 
 
 	 c o m m e n t  	b y|{ : 
 
 	 o p t i o n m e n u   l a n g u a g e _ o f _ t e x t :   1 
 
 	 	 o p t i o n   E n g l i s h 
 
 	 	 o p t i o n   C h i n e s e 
 
 e n d f o r m 
 
 
 
 
 
 i f   r i g h t $ ( o p e n p a t h $ , 1 ) < > " \ " 
 
 	 o p e n p a t h $ = o p e n p a t h $ + " \ " 
 
 e n d i f 
 
 i f   r i g h t $ ( s a v e p a t h $ , 1 ) < > " \ " 
 
 	 s a v e p a t h $ = s a v e p a t h $ + " \ " 
 
 e n d i f 
 
 i f   r i g h t $ ( t e x t P a t h $ , 1 ) < > " \ " 
 
 	 t e x t P a t h $ = t e x t P a t h $ + " \ " 
 
 e n d i f 
 
 
 
 c r e a t e D i r e c t o r y :   s a v e p a t h $ 
 
 
 
 t e x t P a t h $ = t e x t P a t h $ + t e x t F i l e N a m e $ 
 
 
 
 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 #  Q[Rh 
 
 R e a d   T a b l e   f r o m   t a b - s e p a r a t e d   f i l e . . .   ' t e x t P a t h $ ' 
 
 t x t S i m p l e N a m e $ = s e l e c t e d $ ( " T a b l e " , 1 ) 
 
 n u m O f R o w s = G e t   n u m b e r   o f   r o w s 
 
 f o r   i R o w s   f r o m   1   t o   n u m O f R o w s 
 
 	 #   f i l e N a m e O f T x t ' i R o w s ' $ = G e t   v a l u e . . .   ' i R o w s '   f i l e n a m e 
 
 	 s e n t e n c e ' i R o w s ' $ = G e t   v a l u e . . .   ' i R o w s '   s e n t e n c e 
 
 	 o r d e r ' i R o w s ' $ = G e t   v a l u e . . .   ' i R o w s '   o r d e r 
 
 	 s y l l a b l e ' i R o w s ' $ = G e t   v a l u e . . .   ' i R o w s '   s y l l a b l e 
 
 e n d f o r 
 
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 
 
 C r e a t e   S t r i n g s   a s   f i l e   l i s t . . .   f i l e L i s t   ' o p e n p a t h $ ' * . w a v 
 
 n u m O f W a v F i l e s = G e t   n u m b e r   o f   s t r i n g s 
 
 f o r   i f i l e   f r o m   1   t o   n u m O f W a v F i l e s 
 
 	 s e l e c t   S t r i n g s   f i l e L i s t 
 
 	 f i l e N a m e $ = G e t   s t r i n g . . .   ' i f i l e ' 
 
 	 R e a d   f r o m   f i l e . . .   ' o p e n p a t h $ ' ' f i l e N a m e $ ' 
 
 	 s i m p l e N a m e $ = s e l e c t e d $ ( " S o u n d " , 1 ) 
 
 	 t e x t G r i d N a m e $ = s i m p l e N a m e $ + " . T e x t G r i d " 
 
 	 w a v N a m e $ = s i m p l e N a m e $ + " . w a v " 
 
 	 R e a d   f r o m   f i l e . . .   ' o p e n p a t h $ ' ' t e x t G r i d N a m e $ ' 
 
 	 
 
 	 s e l e c t   T e x t G r i d   ' s i m p l e N a m e $ ' 
 
 	 S e t   t i e r   n a m e . . .   1   s e n t e n c e 
 
 	 n u m b e r O f I n t e r v a l s = G e t   n u m b e r   o f   i n t e r v a l s . . .   ' t i e r _ n u m b e r ' 
 
 	 # # #  \g	S[PSvN \BY
R6R0{,N\B^vnzz 
 
 	 i f   l a n g u a g e _ o f _ t e x t = 1 
 
 	 	 D u p l i c a t e   t i e r . . .   1   2   w o r d 
 
 	 e l s e 
 
 	 	 D u p l i c a t e   t i e r . . .   1   2   w o r d 
 
 	 	 D u p l i c a t e   t i e r . . .   1   3   P Y 
 
 	 e n d i f 
 
 	 
 
 	 f o r   i I n t e r v a l s   f r o m   1   t o   n u m b e r O f I n t e r v a l s 
 
 	 	 s e l e c t   T e x t G r i d   ' s i m p l e N a m e $ ' 
 
 	 	 l a b e l O f I n t e r v a l O n e $ = G e t   l a b e l   o f   i n t e r v a l . . .   ' t i e r _ n u m b e r '   ' i I n t e r v a l s ' 
 
 
 
 	 	 b e g i n _ i n t e r v a l = G e t   s t a r t   p o i n t . . .   ' t i e r _ n u m b e r '   ' i I n t e r v a l s ' 
 
 	 	 e n d _ i n t e r v a l = G e t   e n d   p o i n t . . .   ' t i e r _ n u m b e r '   ' i I n t e r v a l s ' 
 
 
 
 	 	 i f   l a b e l O f I n t e r v a l O n e $ < > " " 
 
 	 	 	 f o r   i R o w s   f r o m   1   t o   n u m O f R o w s 
 
 	 	 	 	 o r d e r C o n t e n t $ = o r d e r ' i R o w s ' $ 
 
 	 	 	 	 i f   o r d e r C o n t e n t $ = l a b e l O f I n t e r v a l O n e $ 
 
 	 	 	 	 	 s e n t e n c e D e t a i l s $ = s e n t e n c e ' i R o w s ' $ 
 
 	 	 	 	 	 s y l l a b l e D e t a i l s $ = s y l l a b l e ' i R o w s ' $ 
 
 	 	 	 	 e n d i f 
 
 	 	 	 e n d f o r 
 
 	 	 	 t e m p S e n D e t a i l s $ = s e n t e n c e D e t a i l s $ 
 
 	 	 	 t e m p S y l D e t a i l s $ = s y l l a b l e D e t a i l s $ 
 
 	 	 	 i f   l a n g u a g e _ o f _ t e x t = 1 
 
 	 	 	 	 r 1 = r i n d e x ( t e m p S e n D e t a i l s $ , "   " ) 
 
 	 	 	 	 l e n 1 = l e n g t h ( t e m p S e n D e t a i l s $ ) 
 
 	 	 	 	 i S e n = 1 
 
 	 	 	 	 # # # #  \zzh<_ vSUR_  
 
 	 	 	 	 r e p e a t 
 
 	 	 	 	 	 s e n S t r E a c h ' i S e n ' $ = m i d $ ( t e m p S e n D e t a i l s $ , r 1 , l e n 1 ) 
 
 	 	 	 	 	 t 1 $ = s e n S t r E a c h ' i S e n ' $ 
 
 	 	 	 	 	 t e m p S e n D e t a i l s $ = t e m p S e n D e t a i l s $ - t 1 $ 	 	 	 
 
 	 	 	 	 	 r 1 = r i n d e x ( t e m p S e n D e t a i l s $ , "   " ) 	 
 
 	 	 	 	 	 l e n 1 = l e n g t h ( t e m p S e n D e t a i l s $ ) 
 
 	 	 	 	 	 i S e n = i S e n + 1 
 
 	 	 	 	 u n t i l   r 1 = 0 
 
 	 	 	 	 s e n S t r E a c h ' i S e n ' $ = t e m p S e n D e t a i l s $ 
 
 	 	 	 	 t o t a l W o r d N u m b e r = i S e n 
 
 	 	 	 	 # # # #  _ vSUf/^vetz^^vNR dSURMTvzzh< 
 
 	 	 	 	 n e w M a r k = 1 
 
 	 	 	 	 f o r   j   f r o m   1   t o   t o t a l W o r d N u m b e r 
 
 	 	 	 	 	 m T e m p = t o t a l W o r d N u m b e r + 1 - j 
 
 	 	 	 	 	 t $ = s e n S t r E a c h ' m T e m p ' $ 
 
 	 	 	 	 	 i f   t $ < > "   " 
 
 	 	 	 	 	 	 t e m p $ = t $ 
 
 	 	 	 	 	 	 l e n = l e n g t h ( t e m p $ ) 
 
 	 	 	 	 	 	 r e p e a t 
 
 	 	 	 	 	 	 	 l e n = l e n g t h ( t e m p $ ) 
 
 	 	 	 	 	 	 	 l e f t T e m p $ = l e f t $ ( t e m p $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   l e f t T e m p $ = "   " 
 
 	 	 	 	 	 	 	 	 t e m p $ = r i g h t $ ( t e m p $ , l e n - 1 ) 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 r i g h t T e m p $ = r i g h t $ ( t e m p $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   r i g h t T e m p $ = "   " 
 
 	 	 	 	 	 	 	 	 t e m p $ = l e f t $ ( t e m p $ , l e n - 1 ) 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 u n t i l   l e f t T e m p $ < > "   "   a n d   r i g h t T e m p $ < > "   " 
 
 	 	 	 	 	 	 n e w S e n S t r ' n e w M a r k ' $ = t e m p $ 
 
 	 	 	 	 	 	 n e w M a r k = n e w M a r k + 1 
 
 	 	 	 	 	 e n d i f 
 
 	 	 	 	 e n d f o r 
 
 	 	 	 	 w o r d N u m b e r 2 = n e w M a r k - 1 
 
 	 	 	 	 w a v D u r a t i o n 2 = e n d _ i n t e r v a l - b e g i n _ i n t e r v a l 
 
 	 	 	 	 s t e p T i m e = w a v D u r a t i o n 2 / w o r d N u m b e r 2 
 
 
 
 	 
 
 	 	 	 	 f i r s t _ b o u n d a r y = b e g i n _ i n t e r v a l 
 
 	 	 	 	 l a s t _ b o u n d a r y = e n d _ i n t e r v a l 
 
 	 
 
 	 	 	 	 # # # #mR{,N\BSU\BuL 
 
 	 	 	 	 f o r   j   f r o m   1   t o   w o r d N u m b e r 2 - 1 
 
 	 	 	 	 	 b o n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * j 
 
 	 	 	 	 	 I n s e r t   b o u n d a r y . . .   2   ' b o n d a r y T i m e ' 
 
 	 	 	 	 	 s t a r t B o u n d a r y T w o ' j ' = f i r s t _ b o u n d a r y + s t e p T i m e * ( j - 1 ) 
 
 	 	 	 	 	 e n d B o u n d a r y T w o ' j ' = f i r s t _ b o u n d a r y + s t e p T i m e * j 
 
 	 	 	 	 e n d f o r 
 
 	 	 	 	 s t a r t B o u n d a r y T w o ' w o r d N u m b e r 2 ' = f i r s t _ b o u n d a r y + s t e p T i m e * ( w o r d N u m b e r 2 - 1 ) 
 
 	 	 	 	 e n d B o u n d a r y T w o ' w o r d N u m b e r 2 ' = f i r s t _ b o u n d a r y + s t e p T i m e * w o r d N u m b e r 2 
 
 
 
 	 	 	 	 f o r   j   f r o m   1   t o   w o r d N u m b e r 2 
 
 	 	 	 	 	 b o n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * ( j - 1 ) 
 
 	 	 	 	 	 n e w I n t e r v a l T e m p = G e t   i n t e r v a l   a t   t i m e . . .   2   ' b o n d a r y T i m e ' 
 
 	 	 	 	 	 t e m p S t r T o T w o $ = n e w S e n S t r ' j ' $ 
 
 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   2   ' n e w I n t e r v a l T e m p '   ' t e m p S t r T o T w o $ ' 
 
 	 	 	 	 e n d f o r 
 
 	 	 	 	 t e m p T i m e F o r O n e = f i r s t _ b o u n d a r y + s t e p T i m e 
 
 	 	 	 	 n e w I n t e r v a l T e m p O n e = G e t   i n t e r v a l   a t   t i m e . . .   1   ' t e m p T i m e F o r O n e ' 
 
 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   1   ' n e w I n t e r v a l T e m p O n e '   ' s e n t e n c e D e t a i l s $ ' 
 
 	 	 	 # # # #N* e l s ef/	b |{WN:f/lI 
 
 	 	 	 e l s e 
 
 	 	 	 	 
 
 	 	 	 	 r 1 = r i n d e x ( t e m p S y l D e t a i l s $ , "   " ) 
 
 	 	 	 	 l e n 1 = l e n g t h ( t e m p S y l D e t a i l s $ ) 
 
 	 	 	 	 i S y l = 1 
 
 	 	 	 	 r e p e a t 
 
 	 	 	 	 	 s y l S t r E a c h ' i S y l ' $ = m i d $ ( t e m p S y l D e t a i l s $ , r 1 , l e n 1 ) 
 
 	 	 	 	 	 t 1 $ = s y l S t r E a c h ' i S y l ' $ 
 
 	 	 	 	 	 t e m p S y l D e t a i l s $ = t e m p S y l D e t a i l s $ - t 1 $ 	 	 	 
 
 	 	 	 	 	 r 1 = r i n d e x ( t e m p S y l D e t a i l s $ , "   " ) 
 
 	 	 	 	 	 l e n 1 = l e n g t h ( t e m p S y l D e t a i l s $ ) 	 
 
 	 	 	 	 	 i S y l = i S y l + 1 
 
 	 	 	 	 u n t i l   r 1 = 0 
 
 	 	 	 	 s y l S t r E a c h ' i S y l ' $ = t e m p S y l D e t a i l s $ 
 
 	 	 	 	 t o t a l S y l l a b l e N u m b e r = i S y l 
 
 	 
 
 	 	 	 	 n e w M a r k = 1 
 
 	 	 	 	 f o r   j   f r o m   1   t o   t o t a l S y l l a b l e N u m b e r 
 
 	 	 	 	 	 m T e m p = t o t a l S y l l a b l e N u m b e r + 1 - j 
 
 	 	 	 	 	 t $ = s y l S t r E a c h ' m T e m p ' $ 
 
 	 	 	 	 	 i f   t $ < > "   " 
 
 	 	 	 	 	 	 t e m p $ = t $ 
 
 	 	 	 	 	 	 l e n = l e n g t h ( t e m p $ ) 
 
 	 	 	 	 	 	 r e p e a t 
 
 	 	 	 	 	 	 	 l e n = l e n g t h ( t e m p $ ) 
 
 	 	 	 	 	 	 	 l e f t T e m p $ = l e f t $ ( t e m p $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   l e f t T e m p $ = "   " 
 
 	 	 	 	 	 	 	 	 t e m p $ = r i g h t $ ( t e m p $ , l e n - 1 ) 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 r i g h t T e m p $ = r i g h t $ ( t e m p $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   r i g h t T e m p $ = "   " 
 
 	 	 	 	 	 	 	 	 t e m p $ = l e f t $ ( t e m p $ , l e n - 1 ) 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 u n t i l   l e f t T e m p $ < > "   "   a n d   r i g h t T e m p $ < > "   " 
 
 	 	 	 	 	 	 n e w S y l S t r ' n e w M a r k ' $ = t e m p $ 
 
 	 	 	 	 	 	 n e w M a r k = n e w M a r k + 1 
 
 	 	 	 	 	 e n d i f 
 
 	 	 	 	 e n d f o r 
 
 	 
 
 	 	 	 	 s y l l a b l e N u m b e r 3 = n e w M a r k - 1 
 
 	 	 	 	 w a v D u r a t i o n 2 = e n d _ i n t e r v a l - b e g i n _ i n t e r v a l 
 
 	 	 	 	 s t e p T i m e = w a v D u r a t i o n 2 / s y l l a b l e N u m b e r 3 
 
 	 	 	 	 f i r s t _ b o u n d a r y = b e g i n _ i n t e r v a l 
 
 	 	 	 	 l a s t _ b o u n d a r y = e n d _ i n t e r v a l 
 
 	 	 	 	 # # # #mR{,N\B 
 
 	 	 	 	 s t e p T i m e 2 = s t e p T i m e / 2 
 
 	 	 	 	 f o r   j   f r o m   1   t o   s y l l a b l e N u m b e r 3 - 1 
 
 	 	 	 	 	 b o n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * j 
 
 	 	 	 	 	 I n s e r t   b o u n d a r y . . .   2   ' b o n d a r y T i m e ' 
 
 	 	 	 	 	 I n s e r t   b o u n d a r y . . .   3   ' b o n d a r y T i m e ' 
 
 	 	 	 	 	 i n s i d e B o u n d a r y T i m e = b o n d a r y T i m e - s t e p T i m e 2 
 
 	 	 	 	 	 I n s e r t   b o u n d a r y . . .   3   ' i n s i d e B o u n d a r y T i m e ' 
 
 	 	 	 	 e n d f o r 
 
 	 	 	 	 i n s i d e B o u n d a r y T i m e = l a s t _ b o u n d a r y - s t e p T i m e 2 
 
 	 	 	 	 I n s e r t   b o u n d a r y . . .   3   ' i n s i d e B o u n d a r y T i m e ' 
 
 
 
 	 	 	 	 f o r   j   f r o m   1   t o   s y l l a b l e N u m b e r 3 
 
 	 	 	 	 	 b o n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * ( j - 1 ) 
 
 	 	 	 	 	 n e w I n t e r v a l T e m p = G e t   i n t e r v a l   a t   t i m e . . .   2   ' b o n d a r y T i m e ' 
 
 	 	 	 	 	 t e m p S t r T o T w o $ = n e w S y l S t r ' j ' $ 
 
 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   2   ' n e w I n t e r v a l T e m p '   ' t e m p S t r T o T w o $ ' 
 
 	 	 	 	 e n d f o r 
 
 	 	 	 	 t e m p T i m e F o r O n e = f i r s t _ b o u n d a r y + s t e p T i m e 
 
 	 	 	 	 n e w I n t e r v a l T e m p O n e = G e t   i n t e r v a l   a t   t i m e . . .   1   ' t e m p T i m e F o r O n e ' 
 
 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   1   ' n e w I n t e r v a l T e m p O n e '   ' s e n t e n c e D e t a i l s $ ' 
 
 	 	 	 	 # # #  mR{,N	\Bk\B 
 
 	 	 	 	 m a r k T h r e e = 1 
 
 	 	 
 
 	 	 	 	 a c t u a l _ T h r e e ' m a r k T h r e e ' $ = " s i l " 
 
 	 	 	 	 f o r   j   f r o m   1   t o   s y l l a b l e N u m b e r 3 
 
 	 	 	 	 	 b o n d a r y T i m e 0 0 = f i r s t _ b o u n d a r y + s t e p T i m e * ( j - 1 ) 
 
 	 	 	 	 	 t e m p I n t e r v a l N u m 2 2 = G e t   i n t e r v a l   a t   t i m e . . .   2   b o n d a r y T i m e 0 0 
 
 	 	 	 	 	 
 
 	 	 	 	 	 t $ = G e t   l a b e l   o f   i n t e r v a l . . .   2   ' t e m p I n t e r v a l N u m 2 2 ' 
 
 	 	 	 	 	 l e n O f T h i s = l e n g t h ( t $ ) 
 
 	 	 	 	 	 
 
 	 	 	 	 	 i f   t $ < > " s i l " 
 
 	 	 	 	 	 	 b o n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * j 
 
 	 	 	 	 	 	 b e g i n B o u n d a r y T i m e = f i r s t _ b o u n d a r y + s t e p T i m e * ( j - 1 ) 
 
 	 	 	 	 	 	 #  N{,N\BN:N-_NepN:T|lBQ{,N	\Bv i n t e r v a l^R 
 
 	 	 	 	 	 	 i n t e r v a l N u m T h r e e 1 = G e t   i n t e r v a l   a t   t i m e . . .   3   b e g i n B o u n d a r y T i m e 
 
 	 	 	 	 	 	 i n t e r v a l N u m T h r e e 2 = G e t   i n t e r v a l   a t   t i m e . . .   3   b o n d a r y T i m e 
 
 	 	 	 	 	 	 i n t e r v a l N u m T h r e e 2 = i n t e r v a l N u m T h r e e 2 - 1 
 
 	 	 	 	 	 	 #  N;f/[ z h   c h   s hvb@NcSY4N$N*[W{&TN N*[W{&NkdR$e 
 
 	 	 	 	 	 	 c t e x t 1 $ = l e f t $ ( t $ , 1 ) 
 
 	 	 	 	 	 	 c t e x t 2 $ = l e f t $ ( t $ , 2 ) 
 
 	 	 	 	 
 
 	 	 	 	 	 	 #  _Sf/ z h   c h   s he 
 
 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' c t e x t 1 $ ' 
 
 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 2 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 i f   c t e x t 2 $ = " z h "   o r   c t e x t 2 $ = " s h "   o r   c t e x t 2 $ = " c h " 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' c t e x t 2 $ ' 
 
 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 3 , l e n O f T h i s - 2 ) 
 
 	 	 	 	 	 	 	 m t e x t 2 $ = m i d $ ( t $ , 3 , l e n O f T h i s - 3 ) 
 
 	 	 	 	 	 	 	 t o n e $ = r i g h t $ ( t $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " i " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " i i i " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " u i " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " u e i " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " u n " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " u e n " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " i u " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " i o u " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " u i " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " u e i " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 2 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 
 
 	 	 	 	 	 	 i f   ( c t e x t 1 $ = " z "   o r   c t e x t 1 $ = " s "   o r   c t e x t 1 $ = " c " )   a n d   c t e x t 2 $ < > " z h "   a n d   c t e x t 2 $ < > " s h "   a n d   c t e x t 2 $ < > " c h " 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' c t e x t 1 $ ' 
 
 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 	 m t e x t 2 $ = m i d $ ( t $ , 2 , l e n O f T h i s - 2 ) 
 
 	 	 	 	 	 	 	 t o n e $ = r i g h t $ ( t $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " i " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " i i " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 2 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 i f   c t e x t 1 $ = " j "   o r   c t e x t 1 $ = " q "   o r   c t e x t 1 $ = " x " 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' c t e x t 1 $ ' 
 
 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 	 m t e x t 2 $ = m i d $ ( t $ , 2 , l e n O f T h i s - 2 ) 
 
 	 	 	 	 	 	 	 t o n e $ = r i g h t $ ( t $ , 1 ) 
 
 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " u " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " v " + t o n e $ 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 2 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 i f   c t e x t 1 $ = " y " 
 
 	 	 	 	 	 	 	 n e x t S t r $ = m i d $ ( t $ , 2 , 1 ) 
 
 	 	 	 	 	 	 	 i f   n e x t S t r $ = " i " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 	 	 R e m o v e   r i g h t   b o u n d a r y . . .   3   ' i n t e r v a l N u m T h r e e 1 ' 
 
 	 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 	 e l s e 
 
 	 	 	 	 	 	 	 	 m t e x t 2 $ = m i d $ ( t $ , 2 , l e n O f T h i s - 2 ) 
 
 	 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " i " + m t e x t $ 
 
 	 	 	 	 	 	 	 	 R e m o v e   r i g h t   b o u n d a r y . . .   3   ' i n t e r v a l N u m T h r e e 1 ' 
 
 	 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 	 	 t o n e $ = r i g h t $ ( t $ , 1 ) 
 
 	 	 	 	 	 
 
 	 	 	 	 	 	 
 
 	 	 	 	 	 	 	 	 i f   m t e x t 2 $ = " u " 
 
 	 	 	 	 	 	 	 	 	 m t e x t $ = " v " + t o n e $ 
 
 	 	 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 i f   c t e x t 1 $ = " w " 
 
 	 	 	 	 	 	 	 n e x t S t r $ = m i d $ ( t $ , 2 , 1 ) 
 
 	 	 	 	 	 	 	 i f   n e x t S t r $ = " u " 
 
 	 	 	 	 	 	 	 	 m t e x t $ = n e x t S t r $ 
 
 	 	 	 	 	 	 	 	 R e m o v e   r i g h t   b o u n d a r y . . .   3   ' i n t e r v a l N u m T h r e e 1 ' 
 
 	 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 	 e l s e 
 
 	 	 	 	 	 	 	 	 m t e x t $ = m i d $ ( t $ , 2 , l e n O f T h i s - 1 ) 
 
 	 	 	 	 	 	 	 	 m t e x t $ = " u " + m t e x t $ 
 
 	 	 	 	 	 	 	 	 R e m o v e   r i g h t   b o u n d a r y . . .   3   ' i n t e r v a l N u m T h r e e 1 ' 
 
 	 	 	 	 	 	 	 	 S e t   i n t e r v a l   t e x t . . .   3   ' i n t e r v a l N u m T h r e e 1 '   ' m t e x t $ ' 
 
 	 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 	 e n d i f 
 
 	 	 	 	 	 e n d i f 
 
 	 	 	 	 e n d f o r 	 
 
 	 	 	 #  N*f/ 	bv~g_ 
 
 	 	 	 e n d i f 
 
 	 	 e n d i f 
 
 	 e n d f o r 
 
 	 
 
 	 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 	 i f   l a n g u a g e _ o f _ t e x t = 1 
 
 	 	 D u p l i c a t e   t i e r . . .   2   3   s y l l a b l e 
 
 	 	 D u p l i c a t e   t i e r . . .   3   4   p h o n 
 
 	 e n d i f 
 
 	 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 
 
 	 W r i t e   t o   t e x t   f i l e . . .   ' s a v e p a t h $ ' ' t e x t G r i d N a m e $ ' 
 
 	 s e l e c t   S o u n d   ' s i m p l e N a m e $ ' 
 
 	 R e m o v e 
 
 	 s e l e c t   T e x t G r i d   ' s i m p l e N a m e $ ' 
 
 	 R e m o v e 
 
 e n d f o r 
 
 s e l e c t   S t r i n g s   f i l e L i s t 
 
 R e m o v e 
 
 s e l e c t   T a b l e   ' t x t S i m p l e N a m e $ ' 
 
 R e m o v e 
 
 e x i t  g,ЈL~g_ 
 
