home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mxterm.zip / mxterm / VTPrsTbl.c < prev    next >
C/C++ Source or Header  |  1992-10-17  |  66KB  |  2,957 lines

  1. /*
  2.  *    $XConsortium: VTPrsTbl.c,v 1.8 91/05/29 18:06:08 gildea Exp $
  3.  */
  4.  
  5. /*
  6.  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
  7.  *
  8.  *                         All Rights Reserved
  9.  *
  10.  * Permission to use, copy, modify, and distribute this software and its
  11.  * documentation for any purpose and without fee is hereby granted,
  12.  * provided that the above copyright notice appear in all copies and that
  13.  * both that copyright notice and this permission notice appear in
  14.  * supporting documentation, and that the name of Digital Equipment
  15.  * Corporation not be used in advertising or publicity pertaining to
  16.  * distribution of the software without specific, written prior permission.
  17.  *
  18.  *
  19.  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20.  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21.  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22.  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23.  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25.  * SOFTWARE.
  26.  */
  27.  
  28. #include "VTparse.h"
  29.  
  30. #if __STDC__
  31. #define Const const
  32. #else
  33. #define Const /**/
  34. #endif
  35.  
  36. /*
  37.  * Stupid Apollo C preprocessor can't handle long lines.  So... To keep
  38.  * it happy, we put each onto a seperate line....  Sigh...
  39.  */
  40.  
  41. Const int groundtable[] =
  42. {
  43. /*    NUL        SOH        STX        ETX    */
  44. CASE_IGNORE,
  45. CASE_IGNORE,
  46. CASE_IGNORE,
  47. CASE_IGNORE,
  48. /*    EOT        ENQ        ACK        BEL    */
  49. CASE_IGNORE,
  50. CASE_IGNORE,
  51. CASE_IGNORE,
  52. CASE_BELL,
  53. /*    BS        HT        NL        VT    */
  54. CASE_BS,
  55. CASE_TAB,
  56. CASE_VMOT,
  57. CASE_VMOT,
  58. /*    NP        CR        SO        SI    */
  59. CASE_VMOT,
  60. CASE_CR,
  61. CASE_SO,
  62. CASE_SI,
  63. /*    DLE        DC1        DC2        DC3    */
  64. CASE_IGNORE,
  65. CASE_IGNORE,
  66. CASE_IGNORE,
  67. CASE_IGNORE,
  68. /*    DC4        NAK        SYN        ETB    */
  69. CASE_IGNORE,
  70. CASE_IGNORE,
  71. CASE_IGNORE,
  72. CASE_IGNORE,
  73. /*    CAN        EM        SUB        ESC    */
  74. CASE_IGNORE,
  75. CASE_IGNORE,
  76. CASE_IGNORE,
  77. CASE_ESC,
  78. /*    FS        GS        RS        US    */
  79. CASE_IGNORE,
  80. CASE_IGNORE,
  81. CASE_IGNORE,
  82. CASE_IGNORE,
  83. /*    SP        !        "        #    */
  84. CASE_PRINT,
  85. CASE_PRINT,
  86. CASE_PRINT,
  87. CASE_PRINT,
  88. /*    $        %        &        '    */
  89. CASE_PRINT,
  90. CASE_PRINT,
  91. CASE_PRINT,
  92. CASE_PRINT,
  93. /*    (        )        *        +    */
  94. CASE_PRINT,
  95. CASE_PRINT,
  96. CASE_PRINT,
  97. CASE_PRINT,
  98. /*    ,        -        .        /    */
  99. CASE_PRINT,
  100. CASE_PRINT,
  101. CASE_PRINT,
  102. CASE_PRINT,
  103. /*    0        1        2        3    */
  104. CASE_PRINT,
  105. CASE_PRINT,
  106. CASE_PRINT,
  107. CASE_PRINT,
  108. /*    4        5        6        7    */
  109. CASE_PRINT,
  110. CASE_PRINT,
  111. CASE_PRINT,
  112. CASE_PRINT,
  113. /*    8        9        :        ;    */
  114. CASE_PRINT,
  115. CASE_PRINT,
  116. CASE_PRINT,
  117. CASE_PRINT,
  118. /*    <        =        >        ?    */
  119. CASE_PRINT,
  120. CASE_PRINT,
  121. CASE_PRINT,
  122. CASE_PRINT, 
  123. /*    @        A        B        C    */
  124. CASE_PRINT,
  125. CASE_PRINT,
  126. CASE_PRINT,
  127. CASE_PRINT,
  128. /*    D        E        F        G    */
  129. CASE_PRINT,
  130. CASE_PRINT,
  131. CASE_PRINT,
  132. CASE_PRINT,
  133. /*    H        I        J        K    */
  134. CASE_PRINT,
  135. CASE_PRINT,
  136. CASE_PRINT,
  137. CASE_PRINT,
  138. /*    L        M        N        O    */
  139. CASE_PRINT,
  140. CASE_PRINT,
  141. CASE_PRINT,
  142. CASE_PRINT,
  143. /*    P        Q        R        S    */
  144. CASE_PRINT,
  145. CASE_PRINT,
  146. CASE_PRINT,
  147. CASE_PRINT,
  148. /*    T        U        V        W    */
  149. CASE_PRINT,
  150. CASE_PRINT,
  151. CASE_PRINT,
  152. CASE_PRINT,
  153. /*    X        Y        Z        [    */
  154. CASE_PRINT,
  155. CASE_PRINT,
  156. CASE_PRINT,
  157. CASE_PRINT,
  158. /*    \        ]        ^        _    */
  159. CASE_PRINT,
  160. CASE_PRINT,
  161. CASE_PRINT,
  162. CASE_PRINT,
  163. /*    `        a        b        c    */
  164. CASE_PRINT,
  165. CASE_PRINT,
  166. CASE_PRINT,
  167. CASE_PRINT,
  168. /*    d        e        f        g    */
  169. CASE_PRINT,
  170. CASE_PRINT,
  171. CASE_PRINT,
  172. CASE_PRINT,
  173. /*    h        i        j        k    */
  174. CASE_PRINT,
  175. CASE_PRINT,
  176. CASE_PRINT,
  177. CASE_PRINT,
  178. /*    l        m        n        o    */
  179. CASE_PRINT,
  180. CASE_PRINT,
  181. CASE_PRINT,
  182. CASE_PRINT,
  183. /*    p        q        r        s    */
  184. CASE_PRINT,
  185. CASE_PRINT,
  186. CASE_PRINT,
  187. CASE_PRINT,
  188. /*    t        u        v        w    */
  189. CASE_PRINT,
  190. CASE_PRINT,
  191. CASE_PRINT,
  192. CASE_PRINT,
  193. /*    x        y        z        {    */
  194. CASE_PRINT,
  195. CASE_PRINT,
  196. CASE_PRINT,
  197. CASE_PRINT,
  198. /*    |        }        ~        DEL    */
  199. CASE_PRINT,
  200. CASE_PRINT,
  201. CASE_PRINT,
  202. CASE_GROUND_STATE,
  203. /*      0x80            0x81            0x82            0x83    */
  204. CASE_IGNORE,
  205. CASE_IGNORE,
  206. CASE_IGNORE,
  207. CASE_IGNORE,
  208. /*      0x84            0x85            0x86            0x87    */
  209. CASE_IGNORE,
  210. CASE_IGNORE,
  211. CASE_IGNORE,
  212. CASE_IGNORE,
  213. /*      0x88            0x89            0x8a            0x8b    */
  214. CASE_IGNORE,
  215. CASE_IGNORE,
  216. CASE_IGNORE,
  217. CASE_IGNORE,
  218. /*      0x8c            0x8d            0x8e            0x8f    */
  219. CASE_IGNORE,
  220. CASE_IGNORE,
  221. CASE_IGNORE,
  222. CASE_IGNORE,
  223. /*      0x90            0x91            0x92            0x93    */
  224. CASE_IGNORE,
  225. CASE_IGNORE,
  226. CASE_IGNORE,
  227. CASE_IGNORE,
  228. /*      0x94            0x95            0x96            0x97    */
  229. CASE_IGNORE,
  230. CASE_IGNORE,
  231. CASE_IGNORE,
  232. CASE_IGNORE,
  233. /*      0x99            0x99            0x9a            0x9b    */
  234. CASE_IGNORE,
  235. CASE_IGNORE,
  236. CASE_IGNORE,
  237. CASE_IGNORE,
  238. /*      0x9c            0x9d            0x9e            0x9f    */
  239. CASE_IGNORE,
  240. CASE_IGNORE,
  241. CASE_IGNORE,
  242. CASE_IGNORE,
  243. /*      nobreakspace    exclamdown      cent            sterling        */
  244. CASE_PRINT,
  245. CASE_PRINT,
  246. CASE_PRINT,
  247. CASE_PRINT,
  248. /*      currency        yen             brokenbar       section         */
  249. CASE_PRINT,
  250. CASE_PRINT,
  251. CASE_PRINT,
  252. CASE_PRINT,
  253. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  254. CASE_PRINT,
  255. CASE_PRINT,
  256. CASE_PRINT,
  257. CASE_PRINT,
  258. /*      notsign         hyphen          registered      macron          */
  259. CASE_PRINT,
  260. CASE_PRINT,
  261. CASE_PRINT,
  262. CASE_PRINT,
  263. /*      degree          plusminus       twosuperior     threesuperior   */
  264. CASE_PRINT,
  265. CASE_PRINT,
  266. CASE_PRINT,
  267. CASE_PRINT,
  268. /*      acute           mu              paragraph       periodcentered  */
  269. CASE_PRINT,
  270. CASE_PRINT,
  271. CASE_PRINT,
  272. CASE_PRINT,
  273. /*      cedilla         onesuperior     masculine       guillemotright  */
  274. CASE_PRINT,
  275. CASE_PRINT,
  276. CASE_PRINT,
  277. CASE_PRINT,
  278. /*      onequarter      onehalf         threequarters   questiondown    */
  279. CASE_PRINT,
  280. CASE_PRINT,
  281. CASE_PRINT,
  282. CASE_PRINT,
  283. /*      Agrave          Aacute          Acircumflex     Atilde          */
  284. CASE_PRINT,
  285. CASE_PRINT,
  286. CASE_PRINT,
  287. CASE_PRINT,
  288. /*      Adiaeresis      Aring           AE              Ccedilla        */
  289. CASE_PRINT,
  290. CASE_PRINT,
  291. CASE_PRINT,
  292. CASE_PRINT,
  293. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  294. CASE_PRINT,
  295. CASE_PRINT,
  296. CASE_PRINT,
  297. CASE_PRINT,
  298. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  299. CASE_PRINT,
  300. CASE_PRINT,
  301. CASE_PRINT,
  302. CASE_PRINT,
  303. /*      Eth             Ntilde          Ograve          Oacute          */
  304. CASE_PRINT,
  305. CASE_PRINT,
  306. CASE_PRINT,
  307. CASE_PRINT,
  308. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  309. CASE_PRINT,
  310. CASE_PRINT,
  311. CASE_PRINT,
  312. CASE_PRINT,
  313. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  314. CASE_PRINT,
  315. CASE_PRINT,
  316. CASE_PRINT,
  317. CASE_PRINT,
  318. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  319. CASE_PRINT,
  320. CASE_PRINT,
  321. CASE_PRINT,
  322. CASE_PRINT,
  323. /*      agrave          aacute          acircumflex     atilde          */
  324. CASE_PRINT,
  325. CASE_PRINT,
  326. CASE_PRINT,
  327. CASE_PRINT,
  328. /*      adiaeresis      aring           ae              ccedilla        */
  329. CASE_PRINT,
  330. CASE_PRINT,
  331. CASE_PRINT,
  332. CASE_PRINT,
  333. /*      egrave          eacute          ecircumflex     ediaeresis      */
  334. CASE_PRINT,
  335. CASE_PRINT,
  336. CASE_PRINT,
  337. CASE_PRINT,
  338. /*      igrave          iacute          icircumflex     idiaeresis      */
  339. CASE_PRINT,
  340. CASE_PRINT,
  341. CASE_PRINT,
  342. CASE_PRINT,
  343. /*      eth             ntilde          ograve          oacute          */
  344. CASE_PRINT,
  345. CASE_PRINT,
  346. CASE_PRINT,
  347. CASE_PRINT,
  348. /*      ocircumflex     otilde          odiaeresis      division        */
  349. CASE_PRINT,
  350. CASE_PRINT,
  351. CASE_PRINT,
  352. CASE_PRINT,
  353. /*      oslash          ugrave          uacute          ucircumflex     */
  354. CASE_PRINT,
  355. CASE_PRINT,
  356. CASE_PRINT,
  357. CASE_PRINT,
  358. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  359. CASE_PRINT,
  360. CASE_PRINT,
  361. CASE_PRINT,
  362. CASE_PRINT,
  363. };
  364.  
  365. Const int csitable[] =        /* ESC [ */
  366. {
  367. /*    NUL        SOH        STX        ETX    */
  368. CASE_IGNORE,
  369. CASE_IGNORE,
  370. CASE_IGNORE,
  371. CASE_IGNORE,
  372. /*    EOT        ENQ        ACK        BEL    */
  373. CASE_IGNORE,
  374. CASE_IGNORE,
  375. CASE_IGNORE,
  376. CASE_BELL,
  377. /*    BS        HT        NL        VT    */
  378. CASE_BS,
  379. CASE_TAB,
  380. CASE_VMOT,
  381. CASE_VMOT,
  382. /*    NP        CR        SO        SI    */
  383. CASE_VMOT,
  384. CASE_CR,
  385. CASE_SO,
  386. CASE_SI,
  387. /*    DLE        DC1        DC2        DC3    */
  388. CASE_IGNORE,
  389. CASE_IGNORE,
  390. CASE_IGNORE,
  391. CASE_IGNORE,
  392. /*    DC4        NAK        SYN        ETB    */
  393. CASE_IGNORE,
  394. CASE_IGNORE,
  395. CASE_IGNORE,
  396. CASE_IGNORE,
  397. /*    CAN        EM        SUB        ESC    */
  398. CASE_IGNORE,
  399. CASE_IGNORE,
  400. CASE_IGNORE,
  401. CASE_ESC,
  402. /*    FS        GS        RS        US    */
  403. CASE_IGNORE,
  404. CASE_IGNORE,
  405. CASE_IGNORE,
  406. CASE_IGNORE,
  407. /*    SP        !        "        #    */
  408. CASE_ESC_IGNORE,
  409. CASE_ESC_IGNORE,
  410. CASE_ESC_IGNORE,
  411. CASE_ESC_IGNORE,
  412. /*    $        %        &        '    */
  413. CASE_ESC_IGNORE,
  414. CASE_ESC_IGNORE,
  415. CASE_ESC_IGNORE,
  416. CASE_ESC_IGNORE,
  417. /*    (        )        *        +    */
  418. CASE_ESC_IGNORE,
  419. CASE_ESC_IGNORE,
  420. CASE_ESC_IGNORE,
  421. CASE_ESC_IGNORE,
  422. /*    ,        -        .        /    */
  423. CASE_ESC_IGNORE,
  424. CASE_ESC_IGNORE,
  425. CASE_ESC_IGNORE,
  426. CASE_ESC_IGNORE,
  427. /*    0        1        2        3    */
  428. CASE_ESC_DIGIT,
  429. CASE_ESC_DIGIT,
  430. CASE_ESC_DIGIT,
  431. CASE_ESC_DIGIT,
  432. /*    4        5        6        7    */
  433. CASE_ESC_DIGIT,
  434. CASE_ESC_DIGIT,
  435. CASE_ESC_DIGIT,
  436. CASE_ESC_DIGIT,
  437. /*    8        9        :        ;    */
  438. CASE_ESC_DIGIT,
  439. CASE_ESC_DIGIT,
  440. CASE_IGNORE,
  441. CASE_ESC_SEMI,
  442. /*    <        =        >        ?    */
  443. CASE_IGNORE,
  444. CASE_IGNORE,
  445. CASE_IGNORE,
  446. CASE_DEC_STATE,
  447. /*    @        A        B        C    */
  448. CASE_ICH,
  449. CASE_CUU,
  450. CASE_CUD,
  451. CASE_CUF,
  452. /*    D        E        F        G    */
  453. CASE_CUB,
  454. CASE_GROUND_STATE,
  455. CASE_GROUND_STATE,
  456. CASE_GROUND_STATE,
  457. /*    H        I        J        K    */
  458. CASE_CUP,
  459. CASE_GROUND_STATE,
  460. CASE_ED,
  461. CASE_EL,
  462. /*    L        M        N        O    */
  463. CASE_IL,
  464. CASE_DL,
  465. CASE_GROUND_STATE,
  466. CASE_GROUND_STATE,
  467. /*    P        Q        R        S    */
  468. CASE_DCH,
  469. CASE_GROUND_STATE,
  470. CASE_GROUND_STATE,
  471. CASE_GROUND_STATE,
  472. /*    T        U        V        W    */
  473. CASE_TRACK_MOUSE,
  474. CASE_GROUND_STATE,
  475. CASE_GROUND_STATE,
  476. CASE_GROUND_STATE,
  477. /*    X        Y        Z        [    */
  478. CASE_GROUND_STATE,
  479. CASE_GROUND_STATE,
  480. CASE_GROUND_STATE,
  481. CASE_GROUND_STATE,
  482. /*    \        ]        ^        _    */
  483. CASE_GROUND_STATE,
  484. CASE_GROUND_STATE,
  485. CASE_GROUND_STATE,
  486. CASE_GROUND_STATE,
  487. /*    `        a        b        c    */
  488. CASE_GROUND_STATE,
  489. CASE_GROUND_STATE,
  490. CASE_GROUND_STATE,
  491. CASE_DA1,
  492. /*    d        e        f        g    */
  493. CASE_GROUND_STATE,
  494. CASE_GROUND_STATE,
  495. CASE_CUP,
  496. CASE_TBC,
  497. /*    h        i        j        k    */
  498. CASE_SET,
  499. CASE_GROUND_STATE,
  500. CASE_GROUND_STATE,
  501. CASE_GROUND_STATE,
  502. /*    l        m        n        o    */
  503. CASE_RST,
  504. CASE_SGR,
  505. CASE_CPR,
  506. CASE_GROUND_STATE,
  507. /*    p        q        r        s    */
  508. CASE_GROUND_STATE,
  509. CASE_GROUND_STATE,
  510. CASE_DECSTBM,
  511. CASE_GROUND_STATE,
  512. /*    t        u        v        w    */
  513. CASE_GROUND_STATE,
  514. CASE_GROUND_STATE,
  515. CASE_GROUND_STATE,
  516. CASE_GROUND_STATE,
  517. /*    x        y        z        {    */
  518. CASE_DECREQTPARM,
  519. CASE_GROUND_STATE,
  520. CASE_GROUND_STATE,
  521. CASE_GROUND_STATE,
  522. /*    |        }        ~        DEL    */
  523. CASE_GROUND_STATE,
  524. CASE_GROUND_STATE,
  525. CASE_GROUND_STATE,
  526. CASE_GROUND_STATE,
  527. /*      0x80            0x81            0x82            0x83    */
  528. CASE_IGNORE,
  529. CASE_IGNORE,
  530. CASE_IGNORE,
  531. CASE_IGNORE,
  532. /*      0x84            0x85            0x86            0x87    */
  533. CASE_IGNORE,
  534. CASE_IGNORE,
  535. CASE_IGNORE,
  536. CASE_IGNORE,
  537. /*      0x88            0x89            0x8a            0x8b    */
  538. CASE_IGNORE,
  539. CASE_IGNORE,
  540. CASE_IGNORE,
  541. CASE_IGNORE,
  542. /*      0x8c            0x8d            0x8e            0x8f    */
  543. CASE_IGNORE,
  544. CASE_IGNORE,
  545. CASE_IGNORE,
  546. CASE_IGNORE,
  547. /*      0x90            0x91            0x92            0x93    */
  548. CASE_IGNORE,
  549. CASE_IGNORE,
  550. CASE_IGNORE,
  551. CASE_IGNORE,
  552. /*      0x94            0x95            0x96            0x97    */
  553. CASE_IGNORE,
  554. CASE_IGNORE,
  555. CASE_IGNORE,
  556. CASE_IGNORE,
  557. /*      0x99            0x99            0x9a            0x9b    */
  558. CASE_IGNORE,
  559. CASE_IGNORE,
  560. CASE_IGNORE,
  561. CASE_IGNORE,
  562. /*      0x9c            0x9d            0x9e            0x9f    */
  563. CASE_IGNORE,
  564. CASE_IGNORE,
  565. CASE_IGNORE,
  566. CASE_IGNORE,
  567. /*      nobreakspace    exclamdown      cent            sterling        */
  568. CASE_GROUND_STATE,
  569. CASE_GROUND_STATE,
  570. CASE_GROUND_STATE,
  571. CASE_GROUND_STATE,
  572. /*      currency        yen             brokenbar       section         */
  573. CASE_GROUND_STATE,
  574. CASE_GROUND_STATE,
  575. CASE_GROUND_STATE,
  576. CASE_GROUND_STATE,
  577. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  578. CASE_GROUND_STATE,
  579. CASE_GROUND_STATE,
  580. CASE_GROUND_STATE,
  581. CASE_GROUND_STATE,
  582. /*      notsign         hyphen          registered      macron          */
  583. CASE_GROUND_STATE,
  584. CASE_GROUND_STATE,
  585. CASE_GROUND_STATE,
  586. CASE_GROUND_STATE,
  587. /*      degree          plusminus       twosuperior     threesuperior   */
  588. CASE_GROUND_STATE,
  589. CASE_GROUND_STATE,
  590. CASE_GROUND_STATE,
  591. CASE_GROUND_STATE,
  592. /*      acute           mu              paragraph       periodcentered  */
  593. CASE_GROUND_STATE,
  594. CASE_GROUND_STATE,
  595. CASE_GROUND_STATE,
  596. CASE_GROUND_STATE,
  597. /*      cedilla         onesuperior     masculine       guillemotright  */
  598. CASE_GROUND_STATE,
  599. CASE_GROUND_STATE,
  600. CASE_GROUND_STATE,
  601. CASE_GROUND_STATE,
  602. /*      onequarter      onehalf         threequarters   questiondown    */
  603. CASE_GROUND_STATE,
  604. CASE_GROUND_STATE,
  605. CASE_GROUND_STATE,
  606. CASE_GROUND_STATE,
  607. /*      Agrave          Aacute          Acircumflex     Atilde          */
  608. CASE_GROUND_STATE,
  609. CASE_GROUND_STATE,
  610. CASE_GROUND_STATE,
  611. CASE_GROUND_STATE,
  612. /*      Adiaeresis      Aring           AE              Ccedilla        */
  613. CASE_GROUND_STATE,
  614. CASE_GROUND_STATE,
  615. CASE_GROUND_STATE,
  616. CASE_GROUND_STATE,
  617. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  618. CASE_GROUND_STATE,
  619. CASE_GROUND_STATE,
  620. CASE_GROUND_STATE,
  621. CASE_GROUND_STATE,
  622. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  623. CASE_GROUND_STATE,
  624. CASE_GROUND_STATE,
  625. CASE_GROUND_STATE,
  626. CASE_GROUND_STATE,
  627. /*      Eth             Ntilde          Ograve          Oacute          */
  628. CASE_GROUND_STATE,
  629. CASE_GROUND_STATE,
  630. CASE_GROUND_STATE,
  631. CASE_GROUND_STATE,
  632. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  633. CASE_GROUND_STATE,
  634. CASE_GROUND_STATE,
  635. CASE_GROUND_STATE,
  636. CASE_GROUND_STATE,
  637. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  638. CASE_GROUND_STATE,
  639. CASE_GROUND_STATE,
  640. CASE_GROUND_STATE,
  641. CASE_GROUND_STATE,
  642. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  643. CASE_GROUND_STATE,
  644. CASE_GROUND_STATE,
  645. CASE_GROUND_STATE,
  646. CASE_GROUND_STATE,
  647. /*      agrave          aacute          acircumflex     atilde          */
  648. CASE_GROUND_STATE,
  649. CASE_GROUND_STATE,
  650. CASE_GROUND_STATE,
  651. CASE_GROUND_STATE,
  652. /*      adiaeresis      aring           ae              ccedilla        */
  653. CASE_GROUND_STATE,
  654. CASE_GROUND_STATE,
  655. CASE_GROUND_STATE,
  656. CASE_GROUND_STATE,
  657. /*      egrave          eacute          ecircumflex     ediaeresis      */
  658. CASE_GROUND_STATE,
  659. CASE_GROUND_STATE,
  660. CASE_GROUND_STATE,
  661. CASE_GROUND_STATE,
  662. /*      igrave          iacute          icircumflex     idiaeresis      */
  663. CASE_GROUND_STATE,
  664. CASE_GROUND_STATE,
  665. CASE_GROUND_STATE,
  666. CASE_GROUND_STATE,
  667. /*      eth             ntilde          ograve          oacute          */
  668. CASE_GROUND_STATE,
  669. CASE_GROUND_STATE,
  670. CASE_GROUND_STATE,
  671. CASE_GROUND_STATE,
  672. /*      ocircumflex     otilde          odiaeresis      division        */
  673. CASE_GROUND_STATE,
  674. CASE_GROUND_STATE,
  675. CASE_GROUND_STATE,
  676. CASE_GROUND_STATE,
  677. /*      oslash          ugrave          uacute          ucircumflex     */
  678. CASE_GROUND_STATE,
  679. CASE_GROUND_STATE,
  680. CASE_GROUND_STATE,
  681. CASE_GROUND_STATE,
  682. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  683. CASE_GROUND_STATE,
  684. CASE_GROUND_STATE,
  685. CASE_GROUND_STATE,
  686. CASE_GROUND_STATE,
  687. };
  688.  
  689. Const int dectable[] =        /* ESC [ ? */
  690. {
  691. /*    NUL        SOH        STX        ETX    */
  692. CASE_IGNORE,
  693. CASE_IGNORE,
  694. CASE_IGNORE,
  695. CASE_IGNORE,
  696. /*    EOT        ENQ        ACK        BEL    */
  697. CASE_IGNORE,
  698. CASE_IGNORE,
  699. CASE_IGNORE,
  700. CASE_BELL,
  701. /*    BS        HT        NL        VT    */
  702. CASE_BS,
  703. CASE_TAB,
  704. CASE_VMOT,
  705. CASE_VMOT,
  706. /*    NP        CR        SO        SI    */
  707. CASE_VMOT,
  708. CASE_CR,
  709. CASE_SO,
  710. CASE_SI,
  711. /*    DLE        DC1        DC2        DC3    */
  712. CASE_IGNORE,
  713. CASE_IGNORE,
  714. CASE_IGNORE,
  715. CASE_IGNORE,
  716. /*    DC4        NAK        SYN        ETB    */
  717. CASE_IGNORE,
  718. CASE_IGNORE,
  719. CASE_IGNORE,
  720. CASE_IGNORE,
  721. /*    CAN        EM        SUB        ESC    */
  722. CASE_IGNORE,
  723. CASE_IGNORE,
  724. CASE_IGNORE,
  725. CASE_ESC,
  726. /*    FS        GS        RS        US    */
  727. CASE_IGNORE,
  728. CASE_IGNORE,
  729. CASE_IGNORE,
  730. CASE_IGNORE,
  731. /*    SP        !        "        #    */
  732. CASE_ESC_IGNORE,
  733. CASE_ESC_IGNORE,
  734. CASE_ESC_IGNORE,
  735. CASE_ESC_IGNORE,
  736. /*    $        %        &        '    */
  737. CASE_ESC_IGNORE,
  738. CASE_ESC_IGNORE,
  739. CASE_ESC_IGNORE,
  740. CASE_ESC_IGNORE,
  741. /*    (        )        *        +    */
  742. CASE_ESC_IGNORE,
  743. CASE_ESC_IGNORE,
  744. CASE_ESC_IGNORE,
  745. CASE_ESC_IGNORE,
  746. /*    ,        -        .        /    */
  747. CASE_ESC_IGNORE,
  748. CASE_ESC_IGNORE,
  749. CASE_ESC_IGNORE,
  750. CASE_ESC_IGNORE,
  751. /*    0        1        2        3    */
  752. CASE_ESC_DIGIT,
  753. CASE_ESC_DIGIT,
  754. CASE_ESC_DIGIT,
  755. CASE_ESC_DIGIT,
  756. /*    4        5        6        7    */
  757. CASE_ESC_DIGIT,
  758. CASE_ESC_DIGIT,
  759. CASE_ESC_DIGIT,
  760. CASE_ESC_DIGIT,
  761. /*    8        9        :        ;    */
  762. CASE_ESC_DIGIT,
  763. CASE_ESC_DIGIT,
  764. CASE_IGNORE,
  765. CASE_ESC_SEMI,
  766. /*    <        =        >        ?    */
  767. CASE_GROUND_STATE,
  768. CASE_GROUND_STATE,
  769. CASE_GROUND_STATE,
  770. CASE_GROUND_STATE,
  771. /*    @        A        B        C    */
  772. CASE_GROUND_STATE,
  773. CASE_GROUND_STATE,
  774. CASE_GROUND_STATE,
  775. CASE_GROUND_STATE,
  776. /*    D        E        F        G    */
  777. CASE_GROUND_STATE,
  778. CASE_GROUND_STATE,
  779. CASE_GROUND_STATE,
  780. CASE_GROUND_STATE,
  781. /*    H        I        J        K    */
  782. CASE_GROUND_STATE,
  783. CASE_GROUND_STATE,
  784. CASE_GROUND_STATE,
  785. CASE_GROUND_STATE,
  786. /*    L        M        N        O    */
  787. CASE_GROUND_STATE,
  788. CASE_GROUND_STATE,
  789. CASE_GROUND_STATE,
  790. CASE_GROUND_STATE,
  791. /*    P        Q        R        S    */
  792. CASE_GROUND_STATE,
  793. CASE_GROUND_STATE,
  794. CASE_GROUND_STATE,
  795. CASE_GROUND_STATE,
  796. /*    T        U        V        W    */
  797. CASE_GROUND_STATE,
  798. CASE_GROUND_STATE,
  799. CASE_GROUND_STATE,
  800. CASE_GROUND_STATE,
  801. /*    X        Y        Z        [    */
  802. CASE_GROUND_STATE,
  803. CASE_GROUND_STATE,
  804. CASE_GROUND_STATE,
  805. CASE_GROUND_STATE,
  806. /*    \        ]        ^        _    */
  807. CASE_GROUND_STATE,
  808. CASE_GROUND_STATE,
  809. CASE_GROUND_STATE,
  810. CASE_GROUND_STATE,
  811. /*    `        a        b        c    */
  812. CASE_GROUND_STATE,
  813. CASE_GROUND_STATE,
  814. CASE_GROUND_STATE,
  815. CASE_GROUND_STATE,
  816. /*    d        e        f        g    */
  817. CASE_GROUND_STATE,
  818. CASE_GROUND_STATE,
  819. CASE_GROUND_STATE,
  820. CASE_GROUND_STATE,
  821. /*    h        i        j        k    */
  822. CASE_DECSET,
  823. CASE_GROUND_STATE,
  824. CASE_GROUND_STATE,
  825. CASE_GROUND_STATE,
  826. /*    l        m        n        o    */
  827. CASE_DECRST,
  828. CASE_GROUND_STATE,
  829. CASE_GROUND_STATE,
  830. CASE_GROUND_STATE,
  831. /*    p        q        r        s    */
  832. CASE_GROUND_STATE,
  833. CASE_GROUND_STATE,
  834. CASE_XTERM_RESTORE,
  835. CASE_XTERM_SAVE,
  836. /*    t        u        v        w    */
  837. CASE_GROUND_STATE,
  838. CASE_GROUND_STATE,
  839. CASE_GROUND_STATE,
  840. CASE_GROUND_STATE,
  841. /*    x        y        z        {    */
  842. CASE_GROUND_STATE,
  843. CASE_GROUND_STATE,
  844. CASE_GROUND_STATE,
  845. CASE_GROUND_STATE,
  846. /*    |        }        ~        DEL    */
  847. CASE_GROUND_STATE,
  848. CASE_GROUND_STATE,
  849. CASE_GROUND_STATE,
  850. CASE_GROUND_STATE,
  851. /*      0x80            0x81            0x82            0x83    */
  852. CASE_IGNORE,
  853. CASE_IGNORE,
  854. CASE_IGNORE,
  855. CASE_IGNORE,
  856. /*      0x84            0x85            0x86            0x87    */
  857. CASE_IGNORE,
  858. CASE_IGNORE,
  859. CASE_IGNORE,
  860. CASE_IGNORE,
  861. /*      0x88            0x89            0x8a            0x8b    */
  862. CASE_IGNORE,
  863. CASE_IGNORE,
  864. CASE_IGNORE,
  865. CASE_IGNORE,
  866. /*      0x8c            0x8d            0x8e            0x8f    */
  867. CASE_IGNORE,
  868. CASE_IGNORE,
  869. CASE_IGNORE,
  870. CASE_IGNORE,
  871. /*      0x90            0x91            0x92            0x93    */
  872. CASE_IGNORE,
  873. CASE_IGNORE,
  874. CASE_IGNORE,
  875. CASE_IGNORE,
  876. /*      0x94            0x95            0x96            0x97    */
  877. CASE_IGNORE,
  878. CASE_IGNORE,
  879. CASE_IGNORE,
  880. CASE_IGNORE,
  881. /*      0x99            0x99            0x9a            0x9b    */
  882. CASE_IGNORE,
  883. CASE_IGNORE,
  884. CASE_IGNORE,
  885. CASE_IGNORE,
  886. /*      0x9c            0x9d            0x9e            0x9f    */
  887. CASE_IGNORE,
  888. CASE_IGNORE,
  889. CASE_IGNORE,
  890. CASE_IGNORE,
  891. /*      nobreakspace    exclamdown      cent            sterling        */
  892. CASE_GROUND_STATE,
  893. CASE_GROUND_STATE,
  894. CASE_GROUND_STATE,
  895. CASE_GROUND_STATE,
  896. /*      currency        yen             brokenbar       section         */
  897. CASE_GROUND_STATE,
  898. CASE_GROUND_STATE,
  899. CASE_GROUND_STATE,
  900. CASE_GROUND_STATE,
  901. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  902. CASE_GROUND_STATE,
  903. CASE_GROUND_STATE,
  904. CASE_GROUND_STATE,
  905. CASE_GROUND_STATE,
  906. /*      notsign         hyphen          registered      macron          */
  907. CASE_GROUND_STATE,
  908. CASE_GROUND_STATE,
  909. CASE_GROUND_STATE,
  910. CASE_GROUND_STATE,
  911. /*      degree          plusminus       twosuperior     threesuperior   */
  912. CASE_GROUND_STATE,
  913. CASE_GROUND_STATE,
  914. CASE_GROUND_STATE,
  915. CASE_GROUND_STATE,
  916. /*      acute           mu              paragraph       periodcentered  */
  917. CASE_GROUND_STATE,
  918. CASE_GROUND_STATE,
  919. CASE_GROUND_STATE,
  920. CASE_GROUND_STATE,
  921. /*      cedilla         onesuperior     masculine       guillemotright  */
  922. CASE_GROUND_STATE,
  923. CASE_GROUND_STATE,
  924. CASE_GROUND_STATE,
  925. CASE_GROUND_STATE,
  926. /*      onequarter      onehalf         threequarters   questiondown    */
  927. CASE_GROUND_STATE,
  928. CASE_GROUND_STATE,
  929. CASE_GROUND_STATE,
  930. CASE_GROUND_STATE,
  931. /*      Agrave          Aacute          Acircumflex     Atilde          */
  932. CASE_GROUND_STATE,
  933. CASE_GROUND_STATE,
  934. CASE_GROUND_STATE,
  935. CASE_GROUND_STATE,
  936. /*      Adiaeresis      Aring           AE              Ccedilla        */
  937. CASE_GROUND_STATE,
  938. CASE_GROUND_STATE,
  939. CASE_GROUND_STATE,
  940. CASE_GROUND_STATE,
  941. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  942. CASE_GROUND_STATE,
  943. CASE_GROUND_STATE,
  944. CASE_GROUND_STATE,
  945. CASE_GROUND_STATE,
  946. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  947. CASE_GROUND_STATE,
  948. CASE_GROUND_STATE,
  949. CASE_GROUND_STATE,
  950. CASE_GROUND_STATE,
  951. /*      Eth             Ntilde          Ograve          Oacute          */
  952. CASE_GROUND_STATE,
  953. CASE_GROUND_STATE,
  954. CASE_GROUND_STATE,
  955. CASE_GROUND_STATE,
  956. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  957. CASE_GROUND_STATE,
  958. CASE_GROUND_STATE,
  959. CASE_GROUND_STATE,
  960. CASE_GROUND_STATE,
  961. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  962. CASE_GROUND_STATE,
  963. CASE_GROUND_STATE,
  964. CASE_GROUND_STATE,
  965. CASE_GROUND_STATE,
  966. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  967. CASE_GROUND_STATE,
  968. CASE_GROUND_STATE,
  969. CASE_GROUND_STATE,
  970. CASE_GROUND_STATE,
  971. /*      agrave          aacute          acircumflex     atilde          */
  972. CASE_GROUND_STATE,
  973. CASE_GROUND_STATE,
  974. CASE_GROUND_STATE,
  975. CASE_GROUND_STATE,
  976. /*      adiaeresis      aring           ae              ccedilla        */
  977. CASE_GROUND_STATE,
  978. CASE_GROUND_STATE,
  979. CASE_GROUND_STATE,
  980. CASE_GROUND_STATE,
  981. /*      egrave          eacute          ecircumflex     ediaeresis      */
  982. CASE_GROUND_STATE,
  983. CASE_GROUND_STATE,
  984. CASE_GROUND_STATE,
  985. CASE_GROUND_STATE,
  986. /*      igrave          iacute          icircumflex     idiaeresis      */
  987. CASE_GROUND_STATE,
  988. CASE_GROUND_STATE,
  989. CASE_GROUND_STATE,
  990. CASE_GROUND_STATE,
  991. /*      eth             ntilde          ograve          oacute          */
  992. CASE_GROUND_STATE,
  993. CASE_GROUND_STATE,
  994. CASE_GROUND_STATE,
  995. CASE_GROUND_STATE,
  996. /*      ocircumflex     otilde          odiaeresis      division        */
  997. CASE_GROUND_STATE,
  998. CASE_GROUND_STATE,
  999. CASE_GROUND_STATE,
  1000. CASE_GROUND_STATE,
  1001. /*      oslash          ugrave          uacute          ucircumflex     */
  1002. CASE_GROUND_STATE,
  1003. CASE_GROUND_STATE,
  1004. CASE_GROUND_STATE,
  1005. CASE_GROUND_STATE,
  1006. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  1007. CASE_GROUND_STATE,
  1008. CASE_GROUND_STATE,
  1009. CASE_GROUND_STATE,
  1010. CASE_GROUND_STATE,
  1011. };
  1012.  
  1013. Const int eigtable[] =        /* CASE_ESC_IGNORE */
  1014. {
  1015. /*    NUL        SOH        STX        ETX    */
  1016. CASE_IGNORE,
  1017. CASE_IGNORE,
  1018. CASE_IGNORE,
  1019. CASE_IGNORE,
  1020. /*    EOT        ENQ        ACK        BEL    */
  1021. CASE_IGNORE,
  1022. CASE_IGNORE,
  1023. CASE_IGNORE,
  1024. CASE_BELL,
  1025. /*    BS        HT        NL        VT    */
  1026. CASE_BS,
  1027. CASE_TAB,
  1028. CASE_VMOT,
  1029. CASE_VMOT,
  1030. /*    NP        CR        SO        SI    */
  1031. CASE_VMOT,
  1032. CASE_CR,
  1033. CASE_SO,
  1034. CASE_SI,
  1035. /*    DLE        DC1        DC2        DC3    */
  1036. CASE_IGNORE,
  1037. CASE_IGNORE,
  1038. CASE_IGNORE,
  1039. CASE_IGNORE,
  1040. /*    DC4        NAK        SYN        ETB    */
  1041. CASE_IGNORE,
  1042. CASE_IGNORE,
  1043. CASE_IGNORE,
  1044. CASE_IGNORE,
  1045. /*    CAN        EM        SUB        ESC    */
  1046. CASE_IGNORE,
  1047. CASE_IGNORE,
  1048. CASE_IGNORE,
  1049. CASE_ESC,
  1050. /*    FS        GS        RS        US    */
  1051. CASE_IGNORE,
  1052. CASE_IGNORE,
  1053. CASE_IGNORE,
  1054. CASE_IGNORE,
  1055. /*    SP        !        "        #    */
  1056. CASE_IGNORE,
  1057. CASE_IGNORE,
  1058. CASE_IGNORE,
  1059. CASE_IGNORE,
  1060. /*    $        %        &        '    */
  1061. CASE_IGNORE,
  1062. CASE_IGNORE,
  1063. CASE_IGNORE,
  1064. CASE_IGNORE,
  1065. /*    (        )        *        +    */
  1066. CASE_IGNORE,
  1067. CASE_IGNORE,
  1068. CASE_IGNORE,
  1069. CASE_IGNORE,
  1070. /*    ,
  1071.     -        .        /    */
  1072. CASE_IGNORE,
  1073. CASE_IGNORE,
  1074. CASE_IGNORE,
  1075. CASE_IGNORE,
  1076. /*    0        1        2        3    */
  1077. CASE_GROUND_STATE,
  1078. CASE_GROUND_STATE,
  1079. CASE_GROUND_STATE,
  1080. CASE_GROUND_STATE,
  1081. /*    4        5        6        7    */
  1082. CASE_GROUND_STATE,
  1083. CASE_GROUND_STATE,
  1084. CASE_GROUND_STATE,
  1085. CASE_GROUND_STATE,
  1086. /*    8        9        :        ;    */
  1087. CASE_GROUND_STATE,
  1088. CASE_GROUND_STATE,
  1089. CASE_GROUND_STATE,
  1090. CASE_GROUND_STATE,
  1091. /*    <        =        >        ?    */
  1092. CASE_GROUND_STATE,
  1093. CASE_GROUND_STATE,
  1094. CASE_GROUND_STATE,
  1095. CASE_GROUND_STATE,
  1096. /*    @        A        B        C    */
  1097. CASE_GROUND_STATE,
  1098. CASE_GROUND_STATE,
  1099. CASE_GROUND_STATE,
  1100. CASE_GROUND_STATE,
  1101. /*    D        E        F        G    */
  1102. CASE_GROUND_STATE,
  1103. CASE_GROUND_STATE,
  1104. CASE_GROUND_STATE,
  1105. CASE_GROUND_STATE,
  1106. /*    H        I        J        K    */
  1107. CASE_GROUND_STATE,
  1108. CASE_GROUND_STATE,
  1109. CASE_GROUND_STATE,
  1110. CASE_GROUND_STATE,
  1111. /*    L        M        N        O    */
  1112. CASE_GROUND_STATE,
  1113. CASE_GROUND_STATE,
  1114. CASE_GROUND_STATE,
  1115. CASE_GROUND_STATE,
  1116. /*    P        Q        R        S    */
  1117. CASE_GROUND_STATE,
  1118. CASE_GROUND_STATE,
  1119. CASE_GROUND_STATE,
  1120. CASE_GROUND_STATE,
  1121. /*    T        U        V        W    */
  1122. CASE_GROUND_STATE,
  1123. CASE_GROUND_STATE,
  1124. CASE_GROUND_STATE,
  1125. CASE_GROUND_STATE,
  1126. /*    X        Y        Z        [    */
  1127. CASE_GROUND_STATE,
  1128. CASE_GROUND_STATE,
  1129. CASE_GROUND_STATE,
  1130. CASE_GROUND_STATE,
  1131. /*    \        ]        ^        _    */
  1132. CASE_GROUND_STATE,
  1133. CASE_GROUND_STATE,
  1134. CASE_GROUND_STATE,
  1135. CASE_GROUND_STATE,
  1136. /*    `        a        b        c    */
  1137. CASE_GROUND_STATE,
  1138. CASE_GROUND_STATE,
  1139. CASE_GROUND_STATE,
  1140. CASE_GROUND_STATE,
  1141. /*    d        e        f        g    */
  1142. CASE_GROUND_STATE,
  1143. CASE_GROUND_STATE,
  1144. CASE_GROUND_STATE,
  1145. CASE_GROUND_STATE,
  1146. /*    h        i        j        k    */
  1147. CASE_GROUND_STATE,
  1148. CASE_GROUND_STATE,
  1149. CASE_GROUND_STATE,
  1150. CASE_GROUND_STATE,
  1151. /*    l        m        n        o    */
  1152. CASE_GROUND_STATE,
  1153. CASE_GROUND_STATE,
  1154. CASE_GROUND_STATE,
  1155. CASE_GROUND_STATE,
  1156. /*    p        q        r        s    */
  1157. CASE_GROUND_STATE,
  1158. CASE_GROUND_STATE,
  1159. CASE_GROUND_STATE,
  1160. CASE_GROUND_STATE,
  1161. /*    t        u        v        w    */
  1162. CASE_GROUND_STATE,
  1163. CASE_GROUND_STATE,
  1164. CASE_GROUND_STATE,
  1165. CASE_GROUND_STATE,
  1166. /*    x        y        z        {    */
  1167. CASE_GROUND_STATE,
  1168. CASE_GROUND_STATE,
  1169. CASE_GROUND_STATE,
  1170. CASE_GROUND_STATE,
  1171. /*    |        }        ~        DEL    */
  1172. CASE_GROUND_STATE,
  1173. CASE_GROUND_STATE,
  1174. CASE_GROUND_STATE,
  1175. CASE_GROUND_STATE,
  1176. /*      0x80            0x81            0x82            0x83    */
  1177. CASE_IGNORE,
  1178. CASE_IGNORE,
  1179. CASE_IGNORE,
  1180. CASE_IGNORE,
  1181. /*      0x84            0x85            0x86            0x87    */
  1182. CASE_IGNORE,
  1183. CASE_IGNORE,
  1184. CASE_IGNORE,
  1185. CASE_IGNORE,
  1186. /*      0x88            0x89            0x8a            0x8b    */
  1187. CASE_IGNORE,
  1188. CASE_IGNORE,
  1189. CASE_IGNORE,
  1190. CASE_IGNORE,
  1191. /*      0x8c            0x8d            0x8e            0x8f    */
  1192. CASE_IGNORE,
  1193. CASE_IGNORE,
  1194. CASE_IGNORE,
  1195. CASE_IGNORE,
  1196. /*      0x90            0x91            0x92            0x93    */
  1197. CASE_IGNORE,
  1198. CASE_IGNORE,
  1199. CASE_IGNORE,
  1200. CASE_IGNORE,
  1201. /*      0x94            0x95            0x96            0x97    */
  1202. CASE_IGNORE,
  1203. CASE_IGNORE,
  1204. CASE_IGNORE,
  1205. CASE_IGNORE,
  1206. /*      0x99            0x99            0x9a            0x9b    */
  1207. CASE_IGNORE,
  1208. CASE_IGNORE,
  1209. CASE_IGNORE,
  1210. CASE_IGNORE,
  1211. /*      0x9c            0x9d            0x9e            0x9f    */
  1212. CASE_IGNORE,
  1213. CASE_IGNORE,
  1214. CASE_IGNORE,
  1215. CASE_IGNORE,
  1216. /*      nobreakspace    exclamdown      cent            sterling        */
  1217. CASE_GROUND_STATE,
  1218. CASE_GROUND_STATE,
  1219. CASE_GROUND_STATE,
  1220. CASE_GROUND_STATE,
  1221. /*      currency        yen             brokenbar       section         */
  1222. CASE_GROUND_STATE,
  1223. CASE_GROUND_STATE,
  1224. CASE_GROUND_STATE,
  1225. CASE_GROUND_STATE,
  1226. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  1227. CASE_GROUND_STATE,
  1228. CASE_GROUND_STATE,
  1229. CASE_GROUND_STATE,
  1230. CASE_GROUND_STATE,
  1231. /*      notsign         hyphen          registered      macron          */
  1232. CASE_GROUND_STATE,
  1233. CASE_GROUND_STATE,
  1234. CASE_GROUND_STATE,
  1235. CASE_GROUND_STATE,
  1236. /*      degree          plusminus       twosuperior     threesuperior   */
  1237. CASE_GROUND_STATE,
  1238. CASE_GROUND_STATE,
  1239. CASE_GROUND_STATE,
  1240. CASE_GROUND_STATE,
  1241. /*      acute           mu              paragraph       periodcentered  */
  1242. CASE_GROUND_STATE,
  1243. CASE_GROUND_STATE,
  1244. CASE_GROUND_STATE,
  1245. CASE_GROUND_STATE,
  1246. /*      cedilla         onesuperior     masculine       guillemotright  */
  1247. CASE_GROUND_STATE,
  1248. CASE_GROUND_STATE,
  1249. CASE_GROUND_STATE,
  1250. CASE_GROUND_STATE,
  1251. /*      onequarter      onehalf         threequarters   questiondown    */
  1252. CASE_GROUND_STATE,
  1253. CASE_GROUND_STATE,
  1254. CASE_GROUND_STATE,
  1255. CASE_GROUND_STATE,
  1256. /*      Agrave          Aacute          Acircumflex     Atilde          */
  1257. CASE_GROUND_STATE,
  1258. CASE_GROUND_STATE,
  1259. CASE_GROUND_STATE,
  1260. CASE_GROUND_STATE,
  1261. /*      Adiaeresis      Aring           AE              Ccedilla        */
  1262. CASE_GROUND_STATE,
  1263. CASE_GROUND_STATE,
  1264. CASE_GROUND_STATE,
  1265. CASE_GROUND_STATE,
  1266. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  1267. CASE_GROUND_STATE,
  1268. CASE_GROUND_STATE,
  1269. CASE_GROUND_STATE,
  1270. CASE_GROUND_STATE,
  1271. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  1272. CASE_GROUND_STATE,
  1273. CASE_GROUND_STATE,
  1274. CASE_GROUND_STATE,
  1275. CASE_GROUND_STATE,
  1276. /*      Eth             Ntilde          Ograve          Oacute          */
  1277. CASE_GROUND_STATE,
  1278. CASE_GROUND_STATE,
  1279. CASE_GROUND_STATE,
  1280. CASE_GROUND_STATE,
  1281. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  1282. CASE_GROUND_STATE,
  1283. CASE_GROUND_STATE,
  1284. CASE_GROUND_STATE,
  1285. CASE_GROUND_STATE,
  1286. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  1287. CASE_GROUND_STATE,
  1288. CASE_GROUND_STATE,
  1289. CASE_GROUND_STATE,
  1290. CASE_GROUND_STATE,
  1291. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  1292. CASE_GROUND_STATE,
  1293. CASE_GROUND_STATE,
  1294. CASE_GROUND_STATE,
  1295. CASE_GROUND_STATE,
  1296. /*      agrave          aacute          acircumflex     atilde          */
  1297. CASE_GROUND_STATE,
  1298. CASE_GROUND_STATE,
  1299. CASE_GROUND_STATE,
  1300. CASE_GROUND_STATE,
  1301. /*      adiaeresis      aring           ae              ccedilla        */
  1302. CASE_GROUND_STATE,
  1303. CASE_GROUND_STATE,
  1304. CASE_GROUND_STATE,
  1305. CASE_GROUND_STATE,
  1306. /*      egrave          eacute          ecircumflex     ediaeresis      */
  1307. CASE_GROUND_STATE,
  1308. CASE_GROUND_STATE,
  1309. CASE_GROUND_STATE,
  1310. CASE_GROUND_STATE,
  1311. /*      igrave          iacute          icircumflex     idiaeresis      */
  1312. CASE_GROUND_STATE,
  1313. CASE_GROUND_STATE,
  1314. CASE_GROUND_STATE,
  1315. CASE_GROUND_STATE,
  1316. /*      eth             ntilde          ograve          oacute          */
  1317. CASE_GROUND_STATE,
  1318. CASE_GROUND_STATE,
  1319. CASE_GROUND_STATE,
  1320. CASE_GROUND_STATE,
  1321. /*      ocircumflex     otilde          odiaeresis      division        */
  1322. CASE_GROUND_STATE,
  1323. CASE_GROUND_STATE,
  1324. CASE_GROUND_STATE,
  1325. CASE_GROUND_STATE,
  1326. /*      oslash          ugrave          uacute          ucircumflex     */
  1327. CASE_GROUND_STATE,
  1328. CASE_GROUND_STATE,
  1329. CASE_GROUND_STATE,
  1330. CASE_GROUND_STATE,
  1331. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  1332. CASE_GROUND_STATE,
  1333. CASE_GROUND_STATE,
  1334. CASE_GROUND_STATE,
  1335. CASE_GROUND_STATE,
  1336. };
  1337.  
  1338. Const int esctable[] =        /* ESC */
  1339. {
  1340. /*    NUL        SOH        STX        ETX    */
  1341. CASE_IGNORE,
  1342. CASE_IGNORE,
  1343. CASE_IGNORE,
  1344. CASE_IGNORE,
  1345. /*    EOT        ENQ        ACK        BEL    */
  1346. CASE_IGNORE,
  1347. CASE_IGNORE,
  1348. CASE_IGNORE,
  1349. CASE_BELL,
  1350. /*    BS        HT        NL        VT    */
  1351. CASE_BS,
  1352. CASE_TAB,
  1353. CASE_VMOT,
  1354. CASE_VMOT,
  1355. /*    NP        CR        SO        SI    */
  1356. CASE_VMOT,
  1357. CASE_CR,
  1358. CASE_SO,
  1359. CASE_SI,
  1360. /*    DLE        DC1        DC2        DC3    */
  1361. CASE_IGNORE,
  1362. CASE_IGNORE,
  1363. CASE_IGNORE,
  1364. CASE_IGNORE,
  1365. /*    DC4        NAK        SYN        ETB    */
  1366. CASE_IGNORE,
  1367. CASE_IGNORE,
  1368. CASE_IGNORE,
  1369. CASE_IGNORE,
  1370. /*    CAN        EM        SUB        ESC    */
  1371. CASE_IGNORE,
  1372. CASE_IGNORE,
  1373. CASE_IGNORE,
  1374. CASE_ESC,
  1375. /*    FS        GS        RS        US    */
  1376. CASE_IGNORE,
  1377. CASE_IGNORE,
  1378. CASE_IGNORE,
  1379. CASE_IGNORE,
  1380. /*    SP        !        "        #    */
  1381. CASE_ESC_IGNORE,
  1382. CASE_ESC_IGNORE,
  1383. CASE_ESC_IGNORE,
  1384. CASE_SCR_STATE,
  1385. /*    $        %        &        '    */
  1386. CASE_ESC_IGNORE,
  1387. CASE_ESC_IGNORE,
  1388. CASE_ESC_IGNORE,
  1389. CASE_ESC_IGNORE,
  1390. /*    (        )        *        +    */
  1391. CASE_SCS0_STATE,
  1392. CASE_SCS1_STATE,
  1393. CASE_SCS2_STATE,
  1394. CASE_SCS3_STATE,
  1395. /*    ,        -        .        /    */
  1396. CASE_ESC_IGNORE,
  1397. CASE_ESC_IGNORE,
  1398. CASE_ESC_IGNORE,
  1399. CASE_ESC_IGNORE,
  1400. /*    0        1        2        3    */
  1401. CASE_GROUND_STATE,
  1402. CASE_GROUND_STATE,
  1403. CASE_GROUND_STATE,
  1404. CASE_GROUND_STATE,
  1405. /*    4        5        6        7    */
  1406. CASE_GROUND_STATE,
  1407. CASE_GROUND_STATE,
  1408. CASE_GROUND_STATE,
  1409. CASE_DECSC,
  1410. /*    8        9        :        ;    */
  1411. CASE_DECRC,
  1412. CASE_GROUND_STATE,
  1413. CASE_GROUND_STATE,
  1414. CASE_GROUND_STATE,
  1415. /*    <        =        >        ?    */
  1416. CASE_GROUND_STATE,
  1417. CASE_DECKPAM,
  1418. CASE_DECKPNM,
  1419. CASE_GROUND_STATE,
  1420. /*    @        A        B        C    */
  1421. CASE_GROUND_STATE,
  1422. CASE_GROUND_STATE,
  1423. CASE_GROUND_STATE,
  1424. CASE_GROUND_STATE,
  1425. /*    D        E        F        G    */
  1426. CASE_IND,
  1427. CASE_NEL,
  1428. CASE_GROUND_STATE,
  1429. CASE_GROUND_STATE,
  1430. /*    H        I        J        K    */
  1431. CASE_HTS,
  1432. CASE_GROUND_STATE,
  1433. CASE_GROUND_STATE,
  1434. CASE_GROUND_STATE,
  1435. /*    L        M        N        O    */
  1436. CASE_GROUND_STATE,
  1437. CASE_RI,
  1438. CASE_SS2,
  1439. CASE_SS3,
  1440. /*    P        Q        R        S    */
  1441. CASE_IGNORE_STATE,
  1442. CASE_GROUND_STATE,
  1443. CASE_GROUND_STATE,
  1444. CASE_GROUND_STATE,
  1445. /*    T        U        V        W    */
  1446. CASE_XTERM_TITLE,
  1447. CASE_GROUND_STATE,
  1448. CASE_GROUND_STATE,
  1449. CASE_GROUND_STATE,
  1450. /*    X        Y        Z        [    */
  1451. CASE_GROUND_STATE,
  1452. CASE_GROUND_STATE,
  1453. CASE_DECID,
  1454. CASE_CSI_STATE,
  1455. /*    \        ]        ^        _    */
  1456. CASE_GROUND_STATE,
  1457. CASE_OSC,
  1458. CASE_IGNORE_STATE,
  1459. CASE_IGNORE_STATE,
  1460. /*    `        a        b        c    */
  1461. CASE_GROUND_STATE,
  1462. CASE_GROUND_STATE,
  1463. CASE_GROUND_STATE,
  1464. CASE_RIS,
  1465. /*    d        e        f        g    */
  1466. CASE_GROUND_STATE,
  1467. CASE_GROUND_STATE,
  1468. CASE_GROUND_STATE,
  1469. CASE_GROUND_STATE,
  1470. /*    h        i        j        k    */
  1471. CASE_GROUND_STATE,
  1472. CASE_GROUND_STATE,
  1473. CASE_GROUND_STATE,
  1474. CASE_GROUND_STATE,
  1475. /*    l        m        n        o    */
  1476. CASE_GROUND_STATE,
  1477. CASE_GROUND_STATE,
  1478. CASE_LS2,
  1479. CASE_LS3,
  1480. /*    p        q        r        s    */
  1481. CASE_GROUND_STATE,
  1482. CASE_GROUND_STATE,
  1483. CASE_GROUND_STATE,
  1484. CASE_GROUND_STATE,
  1485. /*    t        u        v        w    */
  1486. CASE_GROUND_STATE,
  1487. CASE_GROUND_STATE,
  1488. CASE_GROUND_STATE,
  1489. CASE_GROUND_STATE,
  1490. /*    x        y        z        {    */
  1491. CASE_GROUND_STATE,
  1492. CASE_GROUND_STATE,
  1493. CASE_GROUND_STATE,
  1494. CASE_GROUND_STATE,
  1495. /*    |        }        ~        DEL    */
  1496. CASE_LS3R,
  1497. CASE_LS2R,
  1498. CASE_LS1R,
  1499. CASE_GROUND_STATE,
  1500. /*      0x80            0x81            0x82            0x83    */
  1501. CASE_IGNORE,
  1502. CASE_IGNORE,
  1503. CASE_IGNORE,
  1504. CASE_IGNORE,
  1505. /*      0x84            0x85            0x86            0x87    */
  1506. CASE_IGNORE,
  1507. CASE_IGNORE,
  1508. CASE_IGNORE,
  1509. CASE_IGNORE,
  1510. /*      0x88            0x89            0x8a            0x8b    */
  1511. CASE_IGNORE,
  1512. CASE_IGNORE,
  1513. CASE_IGNORE,
  1514. CASE_IGNORE,
  1515. /*      0x8c            0x8d            0x8e            0x8f    */
  1516. CASE_IGNORE,
  1517. CASE_IGNORE,
  1518. CASE_IGNORE,
  1519. CASE_IGNORE,
  1520. /*      0x90            0x91            0x92            0x93    */
  1521. CASE_IGNORE,
  1522. CASE_IGNORE,
  1523. CASE_IGNORE,
  1524. CASE_IGNORE,
  1525. /*      0x94            0x95            0x96            0x97    */
  1526. CASE_IGNORE,
  1527. CASE_IGNORE,
  1528. CASE_IGNORE,
  1529. CASE_IGNORE,
  1530. /*      0x99            0x99            0x9a            0x9b    */
  1531. CASE_IGNORE,
  1532. CASE_IGNORE,
  1533. CASE_IGNORE,
  1534. CASE_IGNORE,
  1535. /*      0x9c            0x9d            0x9e            0x9f    */
  1536. CASE_IGNORE,
  1537. CASE_IGNORE,
  1538. CASE_IGNORE,
  1539. CASE_IGNORE,
  1540. /*      nobreakspace    exclamdown      cent            sterling        */
  1541. CASE_GROUND_STATE,
  1542. CASE_GROUND_STATE,
  1543. CASE_GROUND_STATE,
  1544. CASE_GROUND_STATE,
  1545. /*      currency        yen             brokenbar       section         */
  1546. CASE_GROUND_STATE,
  1547. CASE_GROUND_STATE,
  1548. CASE_GROUND_STATE,
  1549. CASE_GROUND_STATE,
  1550. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  1551. CASE_GROUND_STATE,
  1552. CASE_GROUND_STATE,
  1553. CASE_GROUND_STATE,
  1554. CASE_GROUND_STATE,
  1555. /*      notsign         hyphen          registered      macron          */
  1556. CASE_GROUND_STATE,
  1557. CASE_GROUND_STATE,
  1558. CASE_GROUND_STATE,
  1559. CASE_GROUND_STATE,
  1560. /*      degree          plusminus       twosuperior     threesuperior   */
  1561. CASE_GROUND_STATE,
  1562. CASE_GROUND_STATE,
  1563. CASE_GROUND_STATE,
  1564. CASE_GROUND_STATE,
  1565. /*      acute           mu              paragraph       periodcentered  */
  1566. CASE_GROUND_STATE,
  1567. CASE_GROUND_STATE,
  1568. CASE_GROUND_STATE,
  1569. CASE_GROUND_STATE,
  1570. /*      cedilla         onesuperior     masculine       guillemotright  */
  1571. CASE_GROUND_STATE,
  1572. CASE_GROUND_STATE,
  1573. CASE_GROUND_STATE,
  1574. CASE_GROUND_STATE,
  1575. /*      onequarter      onehalf         threequarters   questiondown    */
  1576. CASE_GROUND_STATE,
  1577. CASE_GROUND_STATE,
  1578. CASE_GROUND_STATE,
  1579. CASE_GROUND_STATE,
  1580. /*      Agrave          Aacute          Acircumflex     Atilde          */
  1581. CASE_GROUND_STATE,
  1582. CASE_GROUND_STATE,
  1583. CASE_GROUND_STATE,
  1584. CASE_GROUND_STATE,
  1585. /*      Adiaeresis      Aring           AE              Ccedilla        */
  1586. CASE_GROUND_STATE,
  1587. CASE_GROUND_STATE,
  1588. CASE_GROUND_STATE,
  1589. CASE_GROUND_STATE,
  1590. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  1591. CASE_GROUND_STATE,
  1592. CASE_GROUND_STATE,
  1593. CASE_GROUND_STATE,
  1594. CASE_GROUND_STATE,
  1595. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  1596. CASE_GROUND_STATE,
  1597. CASE_GROUND_STATE,
  1598. CASE_GROUND_STATE,
  1599. CASE_GROUND_STATE,
  1600. /*      Eth             Ntilde          Ograve          Oacute          */
  1601. CASE_GROUND_STATE,
  1602. CASE_GROUND_STATE,
  1603. CASE_GROUND_STATE,
  1604. CASE_GROUND_STATE,
  1605. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  1606. CASE_GROUND_STATE,
  1607. CASE_GROUND_STATE,
  1608. CASE_GROUND_STATE,
  1609. CASE_GROUND_STATE,
  1610. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  1611. CASE_GROUND_STATE,
  1612. CASE_GROUND_STATE,
  1613. CASE_GROUND_STATE,
  1614. CASE_GROUND_STATE,
  1615. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  1616. CASE_GROUND_STATE,
  1617. CASE_GROUND_STATE,
  1618. CASE_GROUND_STATE,
  1619. CASE_GROUND_STATE,
  1620. /*      agrave          aacute          acircumflex     atilde          */
  1621. CASE_GROUND_STATE,
  1622. CASE_GROUND_STATE,
  1623. CASE_GROUND_STATE,
  1624. CASE_GROUND_STATE,
  1625. /*      adiaeresis      aring           ae              ccedilla        */
  1626. CASE_GROUND_STATE,
  1627. CASE_GROUND_STATE,
  1628. CASE_GROUND_STATE,
  1629. CASE_GROUND_STATE,
  1630. /*      egrave          eacute          ecircumflex     ediaeresis      */
  1631. CASE_GROUND_STATE,
  1632. CASE_GROUND_STATE,
  1633. CASE_GROUND_STATE,
  1634. CASE_GROUND_STATE,
  1635. /*      igrave          iacute          icircumflex     idiaeresis      */
  1636. CASE_GROUND_STATE,
  1637. CASE_GROUND_STATE,
  1638. CASE_GROUND_STATE,
  1639. CASE_GROUND_STATE,
  1640. /*      eth             ntilde          ograve          oacute          */
  1641. CASE_GROUND_STATE,
  1642. CASE_GROUND_STATE,
  1643. CASE_GROUND_STATE,
  1644. CASE_GROUND_STATE,
  1645. /*      ocircumflex     otilde          odiaeresis      division        */
  1646. CASE_GROUND_STATE,
  1647. CASE_GROUND_STATE,
  1648. CASE_GROUND_STATE,
  1649. CASE_GROUND_STATE,
  1650. /*      oslash          ugrave          uacute          ucircumflex     */
  1651. CASE_GROUND_STATE,
  1652. CASE_GROUND_STATE,
  1653. CASE_GROUND_STATE,
  1654. CASE_GROUND_STATE,
  1655. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  1656. CASE_GROUND_STATE,
  1657. CASE_GROUND_STATE,
  1658. CASE_GROUND_STATE,
  1659. CASE_GROUND_STATE,
  1660. };
  1661.  
  1662. Const int iestable[] =        /* CASE_IGNORE_ESC */
  1663. {
  1664. /*    NUL        SOH        STX        ETX    */
  1665. CASE_IGNORE_STATE,
  1666. CASE_IGNORE_STATE,
  1667. CASE_IGNORE_STATE,
  1668. CASE_IGNORE_STATE,
  1669. /*    EOT        ENQ        ACK        BEL    */
  1670. CASE_IGNORE_STATE,
  1671. CASE_IGNORE_STATE,
  1672. CASE_IGNORE_STATE,
  1673. CASE_IGNORE_STATE,
  1674. /*    BS        HT        NL        VT    */
  1675. CASE_IGNORE_STATE,
  1676. CASE_IGNORE_STATE,
  1677. CASE_IGNORE_STATE,
  1678. CASE_IGNORE_STATE,
  1679. /*    NP        CR        SO        SI    */
  1680. CASE_IGNORE_STATE,
  1681. CASE_IGNORE_STATE,
  1682. CASE_IGNORE_STATE,
  1683. CASE_IGNORE_STATE,
  1684. /*    DLE        DC1        DC2        DC3    */
  1685. CASE_IGNORE_STATE,
  1686. CASE_IGNORE_STATE,
  1687. CASE_IGNORE_STATE,
  1688. CASE_IGNORE_STATE,
  1689. /*    DC4        NAK        SYN        ETB    */
  1690. CASE_IGNORE_STATE,
  1691. CASE_IGNORE_STATE,
  1692. CASE_IGNORE_STATE,
  1693. CASE_IGNORE_STATE,
  1694. /*    CAN        EM        SUB        ESC    */
  1695. CASE_IGNORE_STATE,
  1696. CASE_IGNORE_STATE,
  1697. CASE_IGNORE_STATE,
  1698. CASE_IGNORE_STATE,
  1699. /*    FS        GS        RS        US    */
  1700. CASE_IGNORE_STATE,
  1701. CASE_IGNORE_STATE,
  1702. CASE_IGNORE_STATE,
  1703. CASE_IGNORE_STATE,
  1704. /*    SP        !        "        #    */
  1705. CASE_IGNORE_STATE,
  1706. CASE_IGNORE_STATE,
  1707. CASE_IGNORE_STATE,
  1708. CASE_IGNORE_STATE,
  1709. /*    $        %        &        '    */
  1710. CASE_IGNORE_STATE,
  1711. CASE_IGNORE_STATE,
  1712. CASE_IGNORE_STATE,
  1713. CASE_IGNORE_STATE,
  1714. /*    (        )        *        +    */
  1715. CASE_IGNORE_STATE,
  1716. CASE_IGNORE_STATE,
  1717. CASE_IGNORE_STATE,
  1718. CASE_IGNORE_STATE,
  1719. /*    ,        -        .        /    */
  1720. CASE_IGNORE_STATE,
  1721. CASE_IGNORE_STATE,
  1722. CASE_IGNORE_STATE,
  1723. CASE_IGNORE_STATE,
  1724. /*    0        1        2        3    */
  1725. CASE_IGNORE_STATE,
  1726. CASE_IGNORE_STATE,
  1727. CASE_IGNORE_STATE,
  1728. CASE_IGNORE_STATE,
  1729. /*    4        5        6        7    */
  1730. CASE_IGNORE_STATE,
  1731. CASE_IGNORE_STATE,
  1732. CASE_IGNORE_STATE,
  1733. CASE_IGNORE_STATE,
  1734. /*    8        9        :        ;    */
  1735. CASE_IGNORE_STATE,
  1736. CASE_IGNORE_STATE,
  1737. CASE_IGNORE_STATE,
  1738. CASE_IGNORE_STATE,
  1739. /*    <        =        >        ?    */
  1740. CASE_IGNORE_STATE,
  1741. CASE_IGNORE_STATE,
  1742. CASE_IGNORE_STATE,
  1743. CASE_IGNORE_STATE,
  1744. /*    @        A        B        C    */
  1745. CASE_IGNORE_STATE,
  1746. CASE_IGNORE_STATE,
  1747. CASE_IGNORE_STATE,
  1748. CASE_IGNORE_STATE,
  1749. /*    D        E        F        G    */
  1750. CASE_IGNORE_STATE,
  1751. CASE_IGNORE_STATE,
  1752. CASE_IGNORE_STATE,
  1753. CASE_IGNORE_STATE,
  1754. /*    H        I        J        K    */
  1755. CASE_IGNORE_STATE,
  1756. CASE_IGNORE_STATE,
  1757. CASE_IGNORE_STATE,
  1758. CASE_IGNORE_STATE,
  1759. /*    L        M        N        O    */
  1760. CASE_IGNORE_STATE,
  1761. CASE_IGNORE_STATE,
  1762. CASE_IGNORE_STATE,
  1763. CASE_IGNORE_STATE,
  1764. /*    P        Q        R        S    */
  1765. CASE_IGNORE_STATE,
  1766. CASE_IGNORE_STATE,
  1767. CASE_IGNORE_STATE,
  1768. CASE_IGNORE_STATE,
  1769. /*    T        U        V        W    */
  1770. CASE_IGNORE_STATE,
  1771. CASE_IGNORE_STATE,
  1772. CASE_IGNORE_STATE,
  1773. CASE_IGNORE_STATE,
  1774. /*    X        Y        Z        [    */
  1775. CASE_IGNORE_STATE,
  1776. CASE_IGNORE_STATE,
  1777. CASE_IGNORE_STATE,
  1778. CASE_IGNORE_STATE,
  1779. /*    \        ]        ^        _    */
  1780. CASE_GROUND_STATE,
  1781. CASE_IGNORE_STATE,
  1782. CASE_IGNORE_STATE,
  1783. CASE_IGNORE_STATE,
  1784. /*    `        a        b        c    */
  1785. CASE_IGNORE_STATE,
  1786. CASE_IGNORE_STATE,
  1787. CASE_IGNORE_STATE,
  1788. CASE_IGNORE_STATE,
  1789. /*    d        e        f        g    */
  1790. CASE_IGNORE_STATE,
  1791. CASE_IGNORE_STATE,
  1792. CASE_IGNORE_STATE,
  1793. CASE_IGNORE_STATE,
  1794. /*    h        i        j        k    */
  1795. CASE_IGNORE_STATE,
  1796. CASE_IGNORE_STATE,
  1797. CASE_IGNORE_STATE,
  1798. CASE_IGNORE_STATE,
  1799. /*    l        m        n        o    */
  1800. CASE_IGNORE_STATE,
  1801. CASE_IGNORE_STATE,
  1802. CASE_IGNORE_STATE,
  1803. CASE_IGNORE_STATE,
  1804. /*    p        q        r        s    */
  1805. CASE_IGNORE_STATE,
  1806. CASE_IGNORE_STATE,
  1807. CASE_IGNORE_STATE,
  1808. CASE_IGNORE_STATE,
  1809. /*    t        u        v        w    */
  1810. CASE_IGNORE_STATE,
  1811. CASE_IGNORE_STATE,
  1812. CASE_IGNORE_STATE,
  1813. CASE_IGNORE_STATE,
  1814. /*    x        y        z        {    */
  1815. CASE_IGNORE_STATE,
  1816. CASE_IGNORE_STATE,
  1817. CASE_IGNORE_STATE,
  1818. CASE_IGNORE_STATE,
  1819. /*    |        }        ~        DEL    */
  1820. CASE_IGNORE_STATE,
  1821. CASE_IGNORE_STATE,
  1822. CASE_IGNORE_STATE,
  1823. CASE_IGNORE_STATE,
  1824. /*      0x80            0x81            0x82            0x83    */
  1825. CASE_IGNORE,
  1826. CASE_IGNORE,
  1827. CASE_IGNORE,
  1828. CASE_IGNORE,
  1829. /*      0x84            0x85            0x86            0x87    */
  1830. CASE_IGNORE,
  1831. CASE_IGNORE,
  1832. CASE_IGNORE,
  1833. CASE_IGNORE,
  1834. /*      0x88            0x89            0x8a            0x8b    */
  1835. CASE_IGNORE,
  1836. CASE_IGNORE,
  1837. CASE_IGNORE,
  1838. CASE_IGNORE,
  1839. /*      0x8c            0x8d            0x8e            0x8f    */
  1840. CASE_IGNORE,
  1841. CASE_IGNORE,
  1842. CASE_IGNORE,
  1843. CASE_IGNORE,
  1844. /*      0x90            0x91            0x92            0x93    */
  1845. CASE_IGNORE,
  1846. CASE_IGNORE,
  1847. CASE_IGNORE,
  1848. CASE_IGNORE,
  1849. /*      0x94            0x95            0x96            0x97    */
  1850. CASE_IGNORE,
  1851. CASE_IGNORE,
  1852. CASE_IGNORE,
  1853. CASE_IGNORE,
  1854. /*      0x99            0x99            0x9a            0x9b    */
  1855. CASE_IGNORE,
  1856. CASE_IGNORE,
  1857. CASE_IGNORE,
  1858. CASE_IGNORE,
  1859. /*      0x9c            0x9d            0x9e            0x9f    */
  1860. CASE_IGNORE,
  1861. CASE_IGNORE,
  1862. CASE_IGNORE,
  1863. CASE_IGNORE,
  1864. /*      nobreakspace    exclamdown      cent            sterling        */
  1865. CASE_GROUND_STATE,
  1866. CASE_GROUND_STATE,
  1867. CASE_GROUND_STATE,
  1868. CASE_GROUND_STATE,
  1869. /*      currency        yen             brokenbar       section         */
  1870. CASE_GROUND_STATE,
  1871. CASE_GROUND_STATE,
  1872. CASE_GROUND_STATE,
  1873. CASE_GROUND_STATE,
  1874. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  1875. CASE_GROUND_STATE,
  1876. CASE_GROUND_STATE,
  1877. CASE_GROUND_STATE,
  1878. CASE_GROUND_STATE,
  1879. /*      notsign         hyphen          registered      macron          */
  1880. CASE_GROUND_STATE,
  1881. CASE_GROUND_STATE,
  1882. CASE_GROUND_STATE,
  1883. CASE_GROUND_STATE,
  1884. /*      degree          plusminus       twosuperior     threesuperior   */
  1885. CASE_GROUND_STATE,
  1886. CASE_GROUND_STATE,
  1887. CASE_GROUND_STATE,
  1888. CASE_GROUND_STATE,
  1889. /*      acute           mu              paragraph       periodcentered  */
  1890. CASE_GROUND_STATE,
  1891. CASE_GROUND_STATE,
  1892. CASE_GROUND_STATE,
  1893. CASE_GROUND_STATE,
  1894. /*      cedilla         onesuperior     masculine       guillemotright  */
  1895. CASE_GROUND_STATE,
  1896. CASE_GROUND_STATE,
  1897. CASE_GROUND_STATE,
  1898. CASE_GROUND_STATE,
  1899. /*      onequarter      onehalf         threequarters   questiondown    */
  1900. CASE_GROUND_STATE,
  1901. CASE_GROUND_STATE,
  1902. CASE_GROUND_STATE,
  1903. CASE_GROUND_STATE,
  1904. /*      Agrave          Aacute          Acircumflex     Atilde          */
  1905. CASE_GROUND_STATE,
  1906. CASE_GROUND_STATE,
  1907. CASE_GROUND_STATE,
  1908. CASE_GROUND_STATE,
  1909. /*      Adiaeresis      Aring           AE              Ccedilla        */
  1910. CASE_GROUND_STATE,
  1911. CASE_GROUND_STATE,
  1912. CASE_GROUND_STATE,
  1913. CASE_GROUND_STATE,
  1914. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  1915. CASE_GROUND_STATE,
  1916. CASE_GROUND_STATE,
  1917. CASE_GROUND_STATE,
  1918. CASE_GROUND_STATE,
  1919. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  1920. CASE_GROUND_STATE,
  1921. CASE_GROUND_STATE,
  1922. CASE_GROUND_STATE,
  1923. CASE_GROUND_STATE,
  1924. /*      Eth             Ntilde          Ograve          Oacute          */
  1925. CASE_GROUND_STATE,
  1926. CASE_GROUND_STATE,
  1927. CASE_GROUND_STATE,
  1928. CASE_GROUND_STATE,
  1929. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  1930. CASE_GROUND_STATE,
  1931. CASE_GROUND_STATE,
  1932. CASE_GROUND_STATE,
  1933. CASE_GROUND_STATE,
  1934. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  1935. CASE_GROUND_STATE,
  1936. CASE_GROUND_STATE,
  1937. CASE_GROUND_STATE,
  1938. CASE_GROUND_STATE,
  1939. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  1940. CASE_GROUND_STATE,
  1941. CASE_GROUND_STATE,
  1942. CASE_GROUND_STATE,
  1943. CASE_GROUND_STATE,
  1944. /*      agrave          aacute          acircumflex     atilde          */
  1945. CASE_GROUND_STATE,
  1946. CASE_GROUND_STATE,
  1947. CASE_GROUND_STATE,
  1948. CASE_GROUND_STATE,
  1949. /*      adiaeresis      aring           ae              ccedilla        */
  1950. CASE_GROUND_STATE,
  1951. CASE_GROUND_STATE,
  1952. CASE_GROUND_STATE,
  1953. CASE_GROUND_STATE,
  1954. /*      egrave          eacute          ecircumflex     ediaeresis      */
  1955. CASE_GROUND_STATE,
  1956. CASE_GROUND_STATE,
  1957. CASE_GROUND_STATE,
  1958. CASE_GROUND_STATE,
  1959. /*      igrave          iacute          icircumflex     idiaeresis      */
  1960. CASE_GROUND_STATE,
  1961. CASE_GROUND_STATE,
  1962. CASE_GROUND_STATE,
  1963. CASE_GROUND_STATE,
  1964. /*      eth             ntilde          ograve          oacute          */
  1965. CASE_GROUND_STATE,
  1966. CASE_GROUND_STATE,
  1967. CASE_GROUND_STATE,
  1968. CASE_GROUND_STATE,
  1969. /*      ocircumflex     otilde          odiaeresis      division        */
  1970. CASE_GROUND_STATE,
  1971. CASE_GROUND_STATE,
  1972. CASE_GROUND_STATE,
  1973. CASE_GROUND_STATE,
  1974. /*      oslash          ugrave          uacute          ucircumflex     */
  1975. CASE_GROUND_STATE,
  1976. CASE_GROUND_STATE,
  1977. CASE_GROUND_STATE,
  1978. CASE_GROUND_STATE,
  1979. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  1980. CASE_GROUND_STATE,
  1981. CASE_GROUND_STATE,
  1982. CASE_GROUND_STATE,
  1983. CASE_GROUND_STATE,
  1984. };
  1985.  
  1986. Const int igntable[] =        /* CASE_IGNORE_STATE */
  1987. {
  1988. /*    NUL        SOH        STX        ETX    */
  1989. CASE_IGNORE,
  1990. CASE_IGNORE,
  1991. CASE_IGNORE,
  1992. CASE_IGNORE,
  1993. /*    EOT        ENQ        ACK        BEL    */
  1994. CASE_IGNORE,
  1995. CASE_IGNORE,
  1996. CASE_IGNORE,
  1997. CASE_IGNORE,
  1998. /*    BS        HT        NL        VT    */
  1999. CASE_IGNORE,
  2000. CASE_IGNORE,
  2001. CASE_IGNORE,
  2002. CASE_IGNORE,
  2003. /*    NP        CR        SO        SI    */
  2004. CASE_IGNORE,
  2005. CASE_IGNORE,
  2006. CASE_IGNORE,
  2007. CASE_IGNORE,
  2008. /*    DLE        DC1        DC2        DC3    */
  2009. CASE_IGNORE,
  2010. CASE_IGNORE,
  2011. CASE_IGNORE,
  2012. CASE_IGNORE,
  2013. /*    DC4        NAK        SYN        ETB    */
  2014. CASE_IGNORE,
  2015. CASE_IGNORE,
  2016. CASE_IGNORE,
  2017. CASE_IGNORE,
  2018. /*    CAN        EM        SUB        ESC    */
  2019. CASE_GROUND_STATE, 
  2020. CASE_IGNORE,
  2021. CASE_GROUND_STATE,
  2022. CASE_IGNORE_ESC,
  2023. /*    FS        GS        RS        US    */
  2024. CASE_IGNORE,
  2025. CASE_IGNORE,
  2026. CASE_IGNORE,
  2027. CASE_IGNORE,
  2028. /*    SP        !        "        #    */
  2029. CASE_IGNORE,
  2030. CASE_IGNORE,
  2031. CASE_IGNORE,
  2032. CASE_IGNORE,
  2033. /*    $        %        &        '    */
  2034. CASE_IGNORE,
  2035. CASE_IGNORE,
  2036. CASE_IGNORE,
  2037. CASE_IGNORE,
  2038. /*    (        )        *        +    */
  2039. CASE_IGNORE,
  2040. CASE_IGNORE,
  2041. CASE_IGNORE,
  2042. CASE_IGNORE,
  2043. /*    ,        -        .        /    */
  2044. CASE_IGNORE,
  2045. CASE_IGNORE,
  2046. CASE_IGNORE,
  2047. CASE_IGNORE,
  2048. /*    0        1        2        3    */
  2049. CASE_IGNORE,
  2050. CASE_IGNORE,
  2051. CASE_IGNORE,
  2052. CASE_IGNORE,
  2053. /*    4        5        6        7    */
  2054. CASE_IGNORE,
  2055. CASE_IGNORE,
  2056. CASE_IGNORE,
  2057. CASE_IGNORE,
  2058. /*    8        9        :        ;    */
  2059. CASE_IGNORE,
  2060. CASE_IGNORE,
  2061. CASE_IGNORE,
  2062. CASE_IGNORE,
  2063. /*    <        =        >        ?    */
  2064. CASE_IGNORE,
  2065. CASE_IGNORE,
  2066. CASE_IGNORE,
  2067. CASE_IGNORE,
  2068. /*    @        A        B        C    */
  2069. CASE_IGNORE,
  2070. CASE_IGNORE,
  2071. CASE_IGNORE,
  2072. CASE_IGNORE,
  2073. /*    D        E        F        G    */
  2074. CASE_IGNORE,
  2075. CASE_IGNORE,
  2076. CASE_IGNORE,
  2077. CASE_IGNORE,
  2078. /*    H        I        J        K    */
  2079. CASE_IGNORE,
  2080. CASE_IGNORE,
  2081. CASE_IGNORE,
  2082. CASE_IGNORE,
  2083. /*    L        M        N        O    */
  2084. CASE_IGNORE,
  2085. CASE_IGNORE,
  2086. CASE_IGNORE,
  2087. CASE_IGNORE,
  2088. /*    P        Q        R        S    */
  2089. CASE_IGNORE,
  2090. CASE_IGNORE,
  2091. CASE_IGNORE,
  2092. CASE_IGNORE,
  2093. /*    T        U        V        W    */
  2094. CASE_IGNORE,
  2095. CASE_IGNORE,
  2096. CASE_IGNORE,
  2097. CASE_IGNORE,
  2098. /*    X        Y        Z        [    */
  2099. CASE_IGNORE,
  2100. CASE_IGNORE,
  2101. CASE_IGNORE,
  2102. CASE_IGNORE,
  2103. /*    \        ]        ^        _    */
  2104. CASE_IGNORE,
  2105. CASE_IGNORE,
  2106. CASE_IGNORE,
  2107. CASE_IGNORE,
  2108. /*    `        a        b        c    */
  2109. CASE_IGNORE,
  2110. CASE_IGNORE,
  2111. CASE_IGNORE,
  2112. CASE_IGNORE,
  2113. /*    d        e        f        g    */
  2114. CASE_IGNORE,
  2115. CASE_IGNORE,
  2116. CASE_IGNORE,
  2117. CASE_IGNORE,
  2118. /*    h        i        j        k    */
  2119. CASE_IGNORE,
  2120. CASE_IGNORE,
  2121. CASE_IGNORE,
  2122. CASE_IGNORE,
  2123. /*    l        m        n        o    */
  2124. CASE_IGNORE,
  2125. CASE_IGNORE,
  2126. CASE_IGNORE,
  2127. CASE_IGNORE,
  2128. /*    p        q        r        s    */
  2129. CASE_IGNORE,
  2130. CASE_IGNORE,
  2131. CASE_IGNORE,
  2132. CASE_IGNORE,
  2133. /*    t        u        v        w    */
  2134. CASE_IGNORE,
  2135. CASE_IGNORE,
  2136. CASE_IGNORE,
  2137. CASE_IGNORE,
  2138. /*    x        y        z        {    */
  2139. CASE_IGNORE,
  2140. CASE_IGNORE,
  2141. CASE_IGNORE,
  2142. CASE_IGNORE,
  2143. /*    |        }        ~        DEL    */
  2144. CASE_IGNORE,
  2145. CASE_IGNORE,
  2146. CASE_IGNORE,
  2147. CASE_IGNORE,
  2148. /*      0x80            0x81            0x82            0x83    */
  2149. CASE_IGNORE,
  2150. CASE_IGNORE,
  2151. CASE_IGNORE,
  2152. CASE_IGNORE,
  2153. /*      0x84            0x85            0x86            0x87    */
  2154. CASE_IGNORE,
  2155. CASE_IGNORE,
  2156. CASE_IGNORE,
  2157. CASE_IGNORE,
  2158. /*      0x88            0x89            0x8a            0x8b    */
  2159. CASE_IGNORE,
  2160. CASE_IGNORE,
  2161. CASE_IGNORE,
  2162. CASE_IGNORE,
  2163. /*      0x8c            0x8d            0x8e            0x8f    */
  2164. CASE_IGNORE,
  2165. CASE_IGNORE,
  2166. CASE_IGNORE,
  2167. CASE_IGNORE,
  2168. /*      0x90            0x91            0x92            0x93    */
  2169. CASE_IGNORE,
  2170. CASE_IGNORE,
  2171. CASE_IGNORE,
  2172. CASE_IGNORE,
  2173. /*      0x94            0x95            0x96            0x97    */
  2174. CASE_IGNORE,
  2175. CASE_IGNORE,
  2176. CASE_IGNORE,
  2177. CASE_IGNORE,
  2178. /*      0x99            0x99            0x9a            0x9b    */
  2179. CASE_IGNORE,
  2180. CASE_IGNORE,
  2181. CASE_IGNORE,
  2182. CASE_IGNORE,
  2183. /*      0x9c            0x9d            0x9e            0x9f    */
  2184. CASE_IGNORE,
  2185. CASE_IGNORE,
  2186. CASE_IGNORE,
  2187. CASE_IGNORE,
  2188. /*      nobreakspace    exclamdown      cent            sterling        */
  2189. CASE_GROUND_STATE,
  2190. CASE_GROUND_STATE,
  2191. CASE_GROUND_STATE,
  2192. CASE_GROUND_STATE,
  2193. /*      currency        yen             brokenbar       section         */
  2194. CASE_GROUND_STATE,
  2195. CASE_GROUND_STATE,
  2196. CASE_GROUND_STATE,
  2197. CASE_GROUND_STATE,
  2198. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  2199. CASE_GROUND_STATE,
  2200. CASE_GROUND_STATE,
  2201. CASE_GROUND_STATE,
  2202. CASE_GROUND_STATE,
  2203. /*      notsign         hyphen          registered      macron          */
  2204. CASE_GROUND_STATE,
  2205. CASE_GROUND_STATE,
  2206. CASE_GROUND_STATE,
  2207. CASE_GROUND_STATE,
  2208. /*      degree          plusminus       twosuperior     threesuperior   */
  2209. CASE_GROUND_STATE,
  2210. CASE_GROUND_STATE,
  2211. CASE_GROUND_STATE,
  2212. CASE_GROUND_STATE,
  2213. /*      acute           mu              paragraph       periodcentered  */
  2214. CASE_GROUND_STATE,
  2215. CASE_GROUND_STATE,
  2216. CASE_GROUND_STATE,
  2217. CASE_GROUND_STATE,
  2218. /*      cedilla         onesuperior     masculine       guillemotright  */
  2219. CASE_GROUND_STATE,
  2220. CASE_GROUND_STATE,
  2221. CASE_GROUND_STATE,
  2222. CASE_GROUND_STATE,
  2223. /*      onequarter      onehalf         threequarters   questiondown    */
  2224. CASE_GROUND_STATE,
  2225. CASE_GROUND_STATE,
  2226. CASE_GROUND_STATE,
  2227. CASE_GROUND_STATE,
  2228. /*      Agrave          Aacute          Acircumflex     Atilde          */
  2229. CASE_GROUND_STATE,
  2230. CASE_GROUND_STATE,
  2231. CASE_GROUND_STATE,
  2232. CASE_GROUND_STATE,
  2233. /*      Adiaeresis      Aring           AE              Ccedilla        */
  2234. CASE_GROUND_STATE,
  2235. CASE_GROUND_STATE,
  2236. CASE_GROUND_STATE,
  2237. CASE_GROUND_STATE,
  2238. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  2239. CASE_GROUND_STATE,
  2240. CASE_GROUND_STATE,
  2241. CASE_GROUND_STATE,
  2242. CASE_GROUND_STATE,
  2243. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  2244. CASE_GROUND_STATE,
  2245. CASE_GROUND_STATE,
  2246. CASE_GROUND_STATE,
  2247. CASE_GROUND_STATE,
  2248. /*      Eth             Ntilde          Ograve          Oacute          */
  2249. CASE_GROUND_STATE,
  2250. CASE_GROUND_STATE,
  2251. CASE_GROUND_STATE,
  2252. CASE_GROUND_STATE,
  2253. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  2254. CASE_GROUND_STATE,
  2255. CASE_GROUND_STATE,
  2256. CASE_GROUND_STATE,
  2257. CASE_GROUND_STATE,
  2258. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  2259. CASE_GROUND_STATE,
  2260. CASE_GROUND_STATE,
  2261. CASE_GROUND_STATE,
  2262. CASE_GROUND_STATE,
  2263. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  2264. CASE_GROUND_STATE,
  2265. CASE_GROUND_STATE,
  2266. CASE_GROUND_STATE,
  2267. CASE_GROUND_STATE,
  2268. /*      agrave          aacute          acircumflex     atilde          */
  2269. CASE_GROUND_STATE,
  2270. CASE_GROUND_STATE,
  2271. CASE_GROUND_STATE,
  2272. CASE_GROUND_STATE,
  2273. /*      adiaeresis      aring           ae              ccedilla        */
  2274. CASE_GROUND_STATE,
  2275. CASE_GROUND_STATE,
  2276. CASE_GROUND_STATE,
  2277. CASE_GROUND_STATE,
  2278. /*      egrave          eacute          ecircumflex     ediaeresis      */
  2279. CASE_GROUND_STATE,
  2280. CASE_GROUND_STATE,
  2281. CASE_GROUND_STATE,
  2282. CASE_GROUND_STATE,
  2283. /*      igrave          iacute          icircumflex     idiaeresis      */
  2284. CASE_GROUND_STATE,
  2285. CASE_GROUND_STATE,
  2286. CASE_GROUND_STATE,
  2287. CASE_GROUND_STATE,
  2288. /*      eth             ntilde          ograve          oacute          */
  2289. CASE_GROUND_STATE,
  2290. CASE_GROUND_STATE,
  2291. CASE_GROUND_STATE,
  2292. CASE_GROUND_STATE,
  2293. /*      ocircumflex     otilde          odiaeresis      division        */
  2294. CASE_GROUND_STATE,
  2295. CASE_GROUND_STATE,
  2296. CASE_GROUND_STATE,
  2297. CASE_GROUND_STATE,
  2298. /*      oslash          ugrave          uacute          ucircumflex     */
  2299. CASE_GROUND_STATE,
  2300. CASE_GROUND_STATE,
  2301. CASE_GROUND_STATE,
  2302. CASE_GROUND_STATE,
  2303. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  2304. CASE_GROUND_STATE,
  2305. CASE_GROUND_STATE,
  2306. CASE_GROUND_STATE,
  2307. CASE_GROUND_STATE,
  2308. };
  2309.  
  2310. Const int scrtable[] =        /* ESC # */
  2311. {
  2312. /*    NUL        SOH        STX        ETX    */
  2313. CASE_IGNORE,
  2314. CASE_IGNORE,
  2315. CASE_IGNORE,
  2316. CASE_IGNORE,
  2317. /*    EOT        ENQ        ACK        BEL    */
  2318. CASE_IGNORE,
  2319. CASE_IGNORE,
  2320. CASE_IGNORE,
  2321. CASE_BELL,
  2322. /*    BS        HT        NL        VT    */
  2323. CASE_BS,
  2324. CASE_TAB,
  2325. CASE_VMOT,
  2326. CASE_VMOT,
  2327. /*    NP        CR        SO        SI    */
  2328. CASE_VMOT,
  2329. CASE_CR,
  2330. CASE_SO,
  2331. CASE_SI,
  2332. /*    DLE        DC1        DC2        DC3    */
  2333. CASE_IGNORE,
  2334. CASE_IGNORE,
  2335. CASE_IGNORE,
  2336. CASE_IGNORE,
  2337. /*    DC4        NAK        SYN        ETB    */
  2338. CASE_IGNORE,
  2339. CASE_IGNORE,
  2340. CASE_IGNORE,
  2341. CASE_IGNORE,
  2342. /*    CAN        EM        SUB        ESC    */
  2343. CASE_IGNORE,
  2344. CASE_IGNORE,
  2345. CASE_IGNORE,
  2346. CASE_ESC,
  2347. /*    FS        GS        RS        US    */
  2348. CASE_IGNORE,
  2349. CASE_IGNORE,
  2350. CASE_IGNORE,
  2351. CASE_IGNORE,
  2352. /*    SP        !        "        #    */
  2353. CASE_ESC_IGNORE,
  2354. CASE_ESC_IGNORE,
  2355. CASE_ESC_IGNORE,
  2356. CASE_ESC_IGNORE,
  2357. /*    $        %        &        '    */
  2358. CASE_ESC_IGNORE,
  2359. CASE_ESC_IGNORE,
  2360. CASE_ESC_IGNORE,
  2361. CASE_ESC_IGNORE,
  2362. /*    (        )        *        +    */
  2363. CASE_ESC_IGNORE,
  2364. CASE_ESC_IGNORE,
  2365. CASE_ESC_IGNORE,
  2366. CASE_ESC_IGNORE,
  2367. /*    ,        -        .        /    */
  2368. CASE_ESC_IGNORE,
  2369. CASE_ESC_IGNORE,
  2370. CASE_ESC_IGNORE,
  2371. CASE_ESC_IGNORE,
  2372. /*    0        1        2        3    */
  2373. CASE_GROUND_STATE,
  2374. CASE_GROUND_STATE,
  2375. CASE_GROUND_STATE,
  2376. CASE_GROUND_STATE,
  2377. /*    4        5        6        7    */
  2378. CASE_GROUND_STATE,
  2379. CASE_GROUND_STATE,
  2380. CASE_GROUND_STATE,
  2381. CASE_GROUND_STATE,
  2382. /*    8        9        :        ;    */
  2383. CASE_DECALN,
  2384. CASE_GROUND_STATE,
  2385. CASE_GROUND_STATE,
  2386. CASE_GROUND_STATE,
  2387. /*    <        =        >        ?    */
  2388. CASE_GROUND_STATE,
  2389. CASE_GROUND_STATE,
  2390. CASE_GROUND_STATE,
  2391. CASE_GROUND_STATE,
  2392. /*    @        A        B        C    */
  2393. CASE_GROUND_STATE,
  2394. CASE_GROUND_STATE,
  2395. CASE_GROUND_STATE,
  2396. CASE_GROUND_STATE,
  2397. /*    D        E        F        G    */
  2398. CASE_GROUND_STATE,
  2399. CASE_GROUND_STATE,
  2400. CASE_GROUND_STATE,
  2401. CASE_GROUND_STATE,
  2402. /*    H        I        J        K    */
  2403. CASE_GROUND_STATE,
  2404. CASE_GROUND_STATE,
  2405. CASE_GROUND_STATE,
  2406. CASE_GROUND_STATE,
  2407. /*    L        M        N        O    */
  2408. CASE_GROUND_STATE,
  2409. CASE_GROUND_STATE,
  2410. CASE_GROUND_STATE,
  2411. CASE_GROUND_STATE,
  2412. /*    P        Q        R        S    */
  2413. CASE_GROUND_STATE,
  2414. CASE_GROUND_STATE,
  2415. CASE_GROUND_STATE,
  2416. CASE_GROUND_STATE,
  2417. /*    T        U        V        W    */
  2418. CASE_GROUND_STATE,
  2419. CASE_GROUND_STATE,
  2420. CASE_GROUND_STATE,
  2421. CASE_GROUND_STATE,
  2422. /*    X        Y        Z        [    */
  2423. CASE_GROUND_STATE,
  2424. CASE_GROUND_STATE,
  2425. CASE_GROUND_STATE,
  2426. CASE_GROUND_STATE,
  2427. /*    \        ]        ^        _    */
  2428. CASE_GROUND_STATE,
  2429. CASE_GROUND_STATE,
  2430. CASE_GROUND_STATE,
  2431. CASE_GROUND_STATE,
  2432. /*    `        a        b        c    */
  2433. CASE_GROUND_STATE,
  2434. CASE_GROUND_STATE,
  2435. CASE_GROUND_STATE,
  2436. CASE_GROUND_STATE,
  2437. /*    d        e        f        g    */
  2438. CASE_GROUND_STATE,
  2439. CASE_GROUND_STATE,
  2440. CASE_GROUND_STATE,
  2441. CASE_GROUND_STATE,
  2442. /*    h        i        j        k    */
  2443. CASE_GROUND_STATE,
  2444. CASE_GROUND_STATE,
  2445. CASE_GROUND_STATE,
  2446. CASE_GROUND_STATE,
  2447. /*    l        m        n        o    */
  2448. CASE_GROUND_STATE,
  2449. CASE_GROUND_STATE,
  2450. CASE_GROUND_STATE,
  2451. CASE_GROUND_STATE,
  2452. /*    p        q        r        s    */
  2453. CASE_GROUND_STATE,
  2454. CASE_GROUND_STATE,
  2455. CASE_GROUND_STATE,
  2456. CASE_GROUND_STATE,
  2457. /*    t        u        v        w    */
  2458. CASE_GROUND_STATE,
  2459. CASE_GROUND_STATE,
  2460. CASE_GROUND_STATE,
  2461. CASE_GROUND_STATE,
  2462. /*    x        y        z        {    */
  2463. CASE_GROUND_STATE,
  2464. CASE_GROUND_STATE,
  2465. CASE_GROUND_STATE,
  2466. CASE_GROUND_STATE,
  2467. /*    |        }        ~        DEL    */
  2468. CASE_GROUND_STATE,
  2469. CASE_GROUND_STATE,
  2470. CASE_GROUND_STATE,
  2471. CASE_GROUND_STATE,
  2472. /*      0x80            0x81            0x82            0x83    */
  2473. CASE_IGNORE,
  2474. CASE_IGNORE,
  2475. CASE_IGNORE,
  2476. CASE_IGNORE,
  2477. /*      0x84            0x85            0x86            0x87    */
  2478. CASE_IGNORE,
  2479. CASE_IGNORE,
  2480. CASE_IGNORE,
  2481. CASE_IGNORE,
  2482. /*      0x88            0x89            0x8a            0x8b    */
  2483. CASE_IGNORE,
  2484. CASE_IGNORE,
  2485. CASE_IGNORE,
  2486. CASE_IGNORE,
  2487. /*      0x8c            0x8d            0x8e            0x8f    */
  2488. CASE_IGNORE,
  2489. CASE_IGNORE,
  2490. CASE_IGNORE,
  2491. CASE_IGNORE,
  2492. /*      0x90            0x91            0x92            0x93    */
  2493. CASE_IGNORE,
  2494. CASE_IGNORE,
  2495. CASE_IGNORE,
  2496. CASE_IGNORE,
  2497. /*      0x94            0x95            0x96            0x97    */
  2498. CASE_IGNORE,
  2499. CASE_IGNORE,
  2500. CASE_IGNORE,
  2501. CASE_IGNORE,
  2502. /*      0x99            0x99            0x9a            0x9b    */
  2503. CASE_IGNORE,
  2504. CASE_IGNORE,
  2505. CASE_IGNORE,
  2506. CASE_IGNORE,
  2507. /*      0x9c            0x9d            0x9e            0x9f    */
  2508. CASE_IGNORE,
  2509. CASE_IGNORE,
  2510. CASE_IGNORE,
  2511. CASE_IGNORE,
  2512. /*      nobreakspace    exclamdown      cent            sterling        */
  2513. CASE_GROUND_STATE,
  2514. CASE_GROUND_STATE,
  2515. CASE_GROUND_STATE,
  2516. CASE_GROUND_STATE,
  2517. /*      currency        yen             brokenbar       section         */
  2518. CASE_GROUND_STATE,
  2519. CASE_GROUND_STATE,
  2520. CASE_GROUND_STATE,
  2521. CASE_GROUND_STATE,
  2522. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  2523. CASE_GROUND_STATE,
  2524. CASE_GROUND_STATE,
  2525. CASE_GROUND_STATE,
  2526. CASE_GROUND_STATE,
  2527. /*      notsign         hyphen          registered      macron          */
  2528. CASE_GROUND_STATE,
  2529. CASE_GROUND_STATE,
  2530. CASE_GROUND_STATE,
  2531. CASE_GROUND_STATE,
  2532. /*      degree          plusminus       twosuperior     threesuperior   */
  2533. CASE_GROUND_STATE,
  2534. CASE_GROUND_STATE,
  2535. CASE_GROUND_STATE,
  2536. CASE_GROUND_STATE,
  2537. /*      acute           mu              paragraph       periodcentered  */
  2538. CASE_GROUND_STATE,
  2539. CASE_GROUND_STATE,
  2540. CASE_GROUND_STATE,
  2541. CASE_GROUND_STATE,
  2542. /*      cedilla         onesuperior     masculine       guillemotright  */
  2543. CASE_GROUND_STATE,
  2544. CASE_GROUND_STATE,
  2545. CASE_GROUND_STATE,
  2546. CASE_GROUND_STATE,
  2547. /*      onequarter      onehalf         threequarters   questiondown    */
  2548. CASE_GROUND_STATE,
  2549. CASE_GROUND_STATE,
  2550. CASE_GROUND_STATE,
  2551. CASE_GROUND_STATE,
  2552. /*      Agrave          Aacute          Acircumflex     Atilde          */
  2553. CASE_GROUND_STATE,
  2554. CASE_GROUND_STATE,
  2555. CASE_GROUND_STATE,
  2556. CASE_GROUND_STATE,
  2557. /*      Adiaeresis      Aring           AE              Ccedilla        */
  2558. CASE_GROUND_STATE,
  2559. CASE_GROUND_STATE,
  2560. CASE_GROUND_STATE,
  2561. CASE_GROUND_STATE,
  2562. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  2563. CASE_GROUND_STATE,
  2564. CASE_GROUND_STATE,
  2565. CASE_GROUND_STATE,
  2566. CASE_GROUND_STATE,
  2567. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  2568. CASE_GROUND_STATE,
  2569. CASE_GROUND_STATE,
  2570. CASE_GROUND_STATE,
  2571. CASE_GROUND_STATE,
  2572. /*      Eth             Ntilde          Ograve          Oacute          */
  2573. CASE_GROUND_STATE,
  2574. CASE_GROUND_STATE,
  2575. CASE_GROUND_STATE,
  2576. CASE_GROUND_STATE,
  2577. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  2578. CASE_GROUND_STATE,
  2579. CASE_GROUND_STATE,
  2580. CASE_GROUND_STATE,
  2581. CASE_GROUND_STATE,
  2582. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  2583. CASE_GROUND_STATE,
  2584. CASE_GROUND_STATE,
  2585. CASE_GROUND_STATE,
  2586. CASE_GROUND_STATE,
  2587. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  2588. CASE_GROUND_STATE,
  2589. CASE_GROUND_STATE,
  2590. CASE_GROUND_STATE,
  2591. CASE_GROUND_STATE,
  2592. /*      agrave          aacute          acircumflex     atilde          */
  2593. CASE_GROUND_STATE,
  2594. CASE_GROUND_STATE,
  2595. CASE_GROUND_STATE,
  2596. CASE_GROUND_STATE,
  2597. /*      adiaeresis      aring           ae              ccedilla        */
  2598. CASE_GROUND_STATE,
  2599. CASE_GROUND_STATE,
  2600. CASE_GROUND_STATE,
  2601. CASE_GROUND_STATE,
  2602. /*      egrave          eacute          ecircumflex     ediaeresis      */
  2603. CASE_GROUND_STATE,
  2604. CASE_GROUND_STATE,
  2605. CASE_GROUND_STATE,
  2606. CASE_GROUND_STATE,
  2607. /*      igrave          iacute          icircumflex     idiaeresis      */
  2608. CASE_GROUND_STATE,
  2609. CASE_GROUND_STATE,
  2610. CASE_GROUND_STATE,
  2611. CASE_GROUND_STATE,
  2612. /*      eth             ntilde          ograve          oacute          */
  2613. CASE_GROUND_STATE,
  2614. CASE_GROUND_STATE,
  2615. CASE_GROUND_STATE,
  2616. CASE_GROUND_STATE,
  2617. /*      ocircumflex     otilde          odiaeresis      division        */
  2618. CASE_GROUND_STATE,
  2619. CASE_GROUND_STATE,
  2620. CASE_GROUND_STATE,
  2621. CASE_GROUND_STATE,
  2622. /*      oslash          ugrave          uacute          ucircumflex     */
  2623. CASE_GROUND_STATE,
  2624. CASE_GROUND_STATE,
  2625. CASE_GROUND_STATE,
  2626. CASE_GROUND_STATE,
  2627. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  2628. CASE_GROUND_STATE,
  2629. CASE_GROUND_STATE,
  2630. CASE_GROUND_STATE,
  2631. CASE_GROUND_STATE,
  2632. };
  2633.  
  2634. Const int scstable[] =        /* ESC ( etc. */
  2635. {
  2636. /*    NUL        SOH        STX        ETX    */
  2637. CASE_IGNORE,
  2638. CASE_IGNORE,
  2639. CASE_IGNORE,
  2640. CASE_IGNORE,
  2641. /*    EOT        ENQ        ACK        BEL    */
  2642. CASE_IGNORE,
  2643. CASE_IGNORE,
  2644. CASE_IGNORE,
  2645. CASE_BELL,
  2646. /*    BS        HT        NL        VT    */
  2647. CASE_BS,
  2648. CASE_TAB,
  2649. CASE_VMOT,
  2650. CASE_VMOT,
  2651. /*    NP        CR        SO        SI    */
  2652. CASE_VMOT,
  2653. CASE_CR,
  2654. CASE_SO,
  2655. CASE_SI,
  2656. /*    DLE        DC1        DC2        DC3    */
  2657. CASE_IGNORE,
  2658. CASE_IGNORE,
  2659. CASE_IGNORE,
  2660. CASE_IGNORE,
  2661. /*    DC4        NAK        SYN        ETB    */
  2662. CASE_IGNORE,
  2663. CASE_IGNORE,
  2664. CASE_IGNORE,
  2665. CASE_IGNORE,
  2666. /*    CAN        EM        SUB        ESC    */
  2667. CASE_IGNORE,
  2668. CASE_IGNORE,
  2669. CASE_IGNORE,
  2670. CASE_ESC,
  2671. /*    FS        GS        RS        US    */
  2672. CASE_IGNORE,
  2673. CASE_IGNORE,
  2674. CASE_IGNORE,
  2675. CASE_IGNORE,
  2676. /*    SP        !        "        #    */
  2677. CASE_ESC_IGNORE,
  2678. CASE_ESC_IGNORE,
  2679. CASE_ESC_IGNORE,
  2680. CASE_ESC_IGNORE,
  2681. /*    $        %        &        '    */
  2682. CASE_ESC_IGNORE,
  2683. CASE_ESC_IGNORE,
  2684. CASE_ESC_IGNORE,
  2685. CASE_ESC_IGNORE,
  2686. /*    (        )        *        +    */
  2687. CASE_ESC_IGNORE,
  2688. CASE_ESC_IGNORE,
  2689. CASE_ESC_IGNORE,
  2690. CASE_ESC_IGNORE,
  2691. /*    ,        -        .        /    */
  2692. CASE_ESC_IGNORE,
  2693. CASE_ESC_IGNORE,
  2694. CASE_ESC_IGNORE,
  2695. CASE_ESC_IGNORE,
  2696. /*    0        1        2        3    */
  2697. CASE_GSETS,
  2698. CASE_GSETS,
  2699. CASE_GSETS,
  2700. CASE_GROUND_STATE,
  2701. /*    4        5        6        7    */
  2702. CASE_GROUND_STATE,
  2703. CASE_GROUND_STATE,
  2704. CASE_GROUND_STATE,
  2705. CASE_GROUND_STATE,
  2706. /*    8        9        :        ;    */
  2707. CASE_GROUND_STATE,
  2708. CASE_GROUND_STATE,
  2709. CASE_GROUND_STATE,
  2710. CASE_GROUND_STATE,
  2711. /*    <        =        >        ?    */
  2712. CASE_GROUND_STATE,
  2713. CASE_GROUND_STATE,
  2714. CASE_GROUND_STATE,
  2715. CASE_GROUND_STATE,
  2716. /*    @        A        B        C    */
  2717. CASE_GROUND_STATE,
  2718. CASE_GSETS,
  2719. CASE_GSETS,
  2720. CASE_GROUND_STATE,
  2721. /*    D        E        F        G    */
  2722. CASE_GROUND_STATE,
  2723. CASE_GROUND_STATE,
  2724. CASE_GROUND_STATE,
  2725. CASE_GROUND_STATE,
  2726. /*    H        I        J        K    */
  2727. CASE_GROUND_STATE,
  2728. CASE_GROUND_STATE,
  2729. CASE_GROUND_STATE,
  2730. CASE_GROUND_STATE,
  2731. /*    L        M        N        O    */
  2732. CASE_GROUND_STATE,
  2733. CASE_GROUND_STATE,
  2734. CASE_GROUND_STATE,
  2735. CASE_GROUND_STATE,
  2736. /*    P        Q        R        S    */
  2737. CASE_GROUND_STATE,
  2738. CASE_GROUND_STATE,
  2739. CASE_GROUND_STATE,
  2740. CASE_GROUND_STATE,
  2741. /*    T        U        V        W    */
  2742. CASE_GROUND_STATE,
  2743. CASE_GROUND_STATE,
  2744. CASE_GROUND_STATE,
  2745. CASE_GROUND_STATE,
  2746. /*    X        Y        Z        [    */
  2747. CASE_GROUND_STATE,
  2748. CASE_GROUND_STATE,
  2749. CASE_GROUND_STATE,
  2750. CASE_GROUND_STATE,
  2751. /*    \        ]        ^        _    */
  2752. CASE_GROUND_STATE,
  2753. CASE_GROUND_STATE,
  2754. CASE_GROUND_STATE,
  2755. CASE_GROUND_STATE,
  2756. /*    `        a        b        c    */
  2757. CASE_GROUND_STATE,
  2758. CASE_GROUND_STATE,
  2759. CASE_GROUND_STATE,
  2760. CASE_GROUND_STATE,
  2761. /*    d        e        f        g    */
  2762. CASE_GROUND_STATE,
  2763. CASE_GROUND_STATE,
  2764. CASE_GROUND_STATE,
  2765. CASE_GROUND_STATE,
  2766. /*    h        i        j        k    */
  2767. CASE_GROUND_STATE,
  2768. CASE_GROUND_STATE,
  2769. CASE_GROUND_STATE,
  2770. CASE_GROUND_STATE,
  2771. /*    l        m        n        o    */
  2772. CASE_GROUND_STATE,
  2773. CASE_GROUND_STATE,
  2774. CASE_GROUND_STATE,
  2775. CASE_GROUND_STATE,
  2776. /*    p        q        r        s    */
  2777. CASE_GROUND_STATE,
  2778. CASE_GROUND_STATE,
  2779. CASE_GROUND_STATE,
  2780. CASE_GROUND_STATE,
  2781. /*    t        u        v        w    */
  2782. CASE_GROUND_STATE,
  2783. CASE_GROUND_STATE,
  2784. CASE_GROUND_STATE,
  2785. CASE_GROUND_STATE,
  2786. /*    x        y        z        {    */
  2787. CASE_GROUND_STATE,
  2788. CASE_GROUND_STATE,
  2789. CASE_GROUND_STATE,
  2790. CASE_GROUND_STATE,
  2791. /*    |        }        ~        DEL    */
  2792. CASE_GROUND_STATE,
  2793. CASE_GROUND_STATE,
  2794. CASE_GROUND_STATE,
  2795. CASE_GROUND_STATE,
  2796. /*      0x80            0x81            0x82            0x83    */
  2797. CASE_IGNORE,
  2798. CASE_IGNORE,
  2799. CASE_IGNORE,
  2800. CASE_IGNORE,
  2801. /*      0x84            0x85            0x86            0x87    */
  2802. CASE_IGNORE,
  2803. CASE_IGNORE,
  2804. CASE_IGNORE,
  2805. CASE_IGNORE,
  2806. /*      0x88            0x89            0x8a            0x8b    */
  2807. CASE_IGNORE,
  2808. CASE_IGNORE,
  2809. CASE_IGNORE,
  2810. CASE_IGNORE,
  2811. /*      0x8c            0x8d            0x8e            0x8f    */
  2812. CASE_IGNORE,
  2813. CASE_IGNORE,
  2814. CASE_IGNORE,
  2815. CASE_IGNORE,
  2816. /*      0x90            0x91            0x92            0x93    */
  2817. CASE_IGNORE,
  2818. CASE_IGNORE,
  2819. CASE_IGNORE,
  2820. CASE_IGNORE,
  2821. /*      0x94            0x95            0x96            0x97    */
  2822. CASE_IGNORE,
  2823. CASE_IGNORE,
  2824. CASE_IGNORE,
  2825. CASE_IGNORE,
  2826. /*      0x99            0x99            0x9a            0x9b    */
  2827. CASE_IGNORE,
  2828. CASE_IGNORE,
  2829. CASE_IGNORE,
  2830. CASE_IGNORE,
  2831. /*      0x9c            0x9d            0x9e            0x9f    */
  2832. CASE_IGNORE,
  2833. CASE_IGNORE,
  2834. CASE_IGNORE,
  2835. CASE_IGNORE,
  2836. /*      nobreakspace    exclamdown      cent            sterling        */
  2837. CASE_GROUND_STATE,
  2838. CASE_GROUND_STATE,
  2839. CASE_GROUND_STATE,
  2840. CASE_GROUND_STATE,
  2841. /*      currency        yen             brokenbar       section         */
  2842. CASE_GROUND_STATE,
  2843. CASE_GROUND_STATE,
  2844. CASE_GROUND_STATE,
  2845. CASE_GROUND_STATE,
  2846. /*      diaeresis       copyright       ordfeminine     guillemotleft   */
  2847. CASE_GROUND_STATE,
  2848. CASE_GROUND_STATE,
  2849. CASE_GROUND_STATE,
  2850. CASE_GROUND_STATE,
  2851. /*      notsign         hyphen          registered      macron          */
  2852. CASE_GROUND_STATE,
  2853. CASE_GROUND_STATE,
  2854. CASE_GROUND_STATE,
  2855. CASE_GROUND_STATE,
  2856. /*      degree          plusminus       twosuperior     threesuperior   */
  2857. CASE_GROUND_STATE,
  2858. CASE_GROUND_STATE,
  2859. CASE_GROUND_STATE,
  2860. CASE_GROUND_STATE,
  2861. /*      acute           mu              paragraph       periodcentered  */
  2862. CASE_GROUND_STATE,
  2863. CASE_GROUND_STATE,
  2864. CASE_GROUND_STATE,
  2865. CASE_GROUND_STATE,
  2866. /*      cedilla         onesuperior     masculine       guillemotright  */
  2867. CASE_GROUND_STATE,
  2868. CASE_GROUND_STATE,
  2869. CASE_GROUND_STATE,
  2870. CASE_GROUND_STATE,
  2871. /*      onequarter      onehalf         threequarters   questiondown    */
  2872. CASE_GROUND_STATE,
  2873. CASE_GROUND_STATE,
  2874. CASE_GROUND_STATE,
  2875. CASE_GROUND_STATE,
  2876. /*      Agrave          Aacute          Acircumflex     Atilde          */
  2877. CASE_GROUND_STATE,
  2878. CASE_GROUND_STATE,
  2879. CASE_GROUND_STATE,
  2880. CASE_GROUND_STATE,
  2881. /*      Adiaeresis      Aring           AE              Ccedilla        */
  2882. CASE_GROUND_STATE,
  2883. CASE_GROUND_STATE,
  2884. CASE_GROUND_STATE,
  2885. CASE_GROUND_STATE,
  2886. /*      Egrave          Eacute          Ecircumflex     Ediaeresis      */
  2887. CASE_GROUND_STATE,
  2888. CASE_GROUND_STATE,
  2889. CASE_GROUND_STATE,
  2890. CASE_GROUND_STATE,
  2891. /*      Igrave          Iacute          Icircumflex     Idiaeresis      */
  2892. CASE_GROUND_STATE,
  2893. CASE_GROUND_STATE,
  2894. CASE_GROUND_STATE,
  2895. CASE_GROUND_STATE,
  2896. /*      Eth             Ntilde          Ograve          Oacute          */
  2897. CASE_GROUND_STATE,
  2898. CASE_GROUND_STATE,
  2899. CASE_GROUND_STATE,
  2900. CASE_GROUND_STATE,
  2901. /*      Ocircumflex     Otilde          Odiaeresis      multiply        */
  2902. CASE_GROUND_STATE,
  2903. CASE_GROUND_STATE,
  2904. CASE_GROUND_STATE,
  2905. CASE_GROUND_STATE,
  2906. /*      Ooblique        Ugrave          Uacute          Ucircumflex     */
  2907. CASE_GROUND_STATE,
  2908. CASE_GROUND_STATE,
  2909. CASE_GROUND_STATE,
  2910. CASE_GROUND_STATE,
  2911. /*      Udiaeresis      Yacute          Thorn           ssharp          */
  2912. CASE_GROUND_STATE,
  2913. CASE_GROUND_STATE,
  2914. CASE_GROUND_STATE,
  2915. CASE_GROUND_STATE,
  2916. /*      agrave          aacute          acircumflex     atilde          */
  2917. CASE_GROUND_STATE,
  2918. CASE_GROUND_STATE,
  2919. CASE_GROUND_STATE,
  2920. CASE_GROUND_STATE,
  2921. /*      adiaeresis      aring           ae              ccedilla        */
  2922. CASE_GROUND_STATE,
  2923. CASE_GROUND_STATE,
  2924. CASE_GROUND_STATE,
  2925. CASE_GROUND_STATE,
  2926. /*      egrave          eacute          ecircumflex     ediaeresis      */
  2927. CASE_GROUND_STATE,
  2928. CASE_GROUND_STATE,
  2929. CASE_GROUND_STATE,
  2930. CASE_GROUND_STATE,
  2931. /*      igrave          iacute          icircumflex     idiaeresis      */
  2932. CASE_GROUND_STATE,
  2933. CASE_GROUND_STATE,
  2934. CASE_GROUND_STATE,
  2935. CASE_GROUND_STATE,
  2936. /*      eth             ntilde          ograve          oacute          */
  2937. CASE_GROUND_STATE,
  2938. CASE_GROUND_STATE,
  2939. CASE_GROUND_STATE,
  2940. CASE_GROUND_STATE,
  2941. /*      ocircumflex     otilde          odiaeresis      division        */
  2942. CASE_GROUND_STATE,
  2943. CASE_GROUND_STATE,
  2944. CASE_GROUND_STATE,
  2945. CASE_GROUND_STATE,
  2946. /*      oslash          ugrave          uacute          ucircumflex     */
  2947. CASE_GROUND_STATE,
  2948. CASE_GROUND_STATE,
  2949. CASE_GROUND_STATE,
  2950. CASE_GROUND_STATE,
  2951. /*      udiaeresis      yacute          thorn           ydiaeresis      */
  2952. CASE_GROUND_STATE,
  2953. CASE_GROUND_STATE,
  2954. CASE_GROUND_STATE,
  2955. CASE_GROUND_STATE,
  2956. };
  2957.