1 EGG ¤È¤ÎÄÌ¿®¤Î¥×¥í¥È¥³¥ë
2 anthy-agent¥³¥Þ¥ó¥É¤Ë--egg¥ª¥×¥·¥ç¥ó¤òÀßÄꤷ¤Æµ¯Æ°¤¹¤ë¤³¤È¤ÇÍøÍѲÄǽ¤Ç¤¹¡£
5 greeting = server-name " (" version ") " options " :" string CRLF
8 options = "[" string 1*(", " string ) "]"
10 Command Semantics and Syntax
12 context-desc = 1*( DIGIT)
16 ; segment number (0 origin)
18 candidate-offset = 1*(DIGIT)
20 max-candidates = 1*(DIGIT)
23 ; candidate number (0 origin)
25 string = 1*<any CHAR excluding control characters>
27 error = "-ERR" SP error-code SP string CRLF
29 error-code = 1*( DIGIT )
31 success-with-number = "+OK" SP number CRLF
37 segments = "+DATA" SP seg-no SP number-of-segments-removed SP
38 number-of-segments-inserted CRLF
39 1*( number-of-candidates SP converted SP yomi CRLF )
42 number-of-replaced = 1*( DIGIT )
46 number-of-segments = 1*( DIGIT )
52 candidates = "+DATA" SP offset SP number-of-candidates CRLF
56 number-of-candidates = 1*( DIGIT )
61 command-new-context = "NEW-CONTEXT" parameters CRLF
62 parameters = *( SP expression )
63 ; e.g. : Encoding specification, etc.
64 expression = var "=" value
65 var = 1*(ALPHA) 1*(ALPHA / DIGIT)
67 ; INPUT=UTF-8 OUTPUT=UTF-8
68 ; INPUT=#106 OUTPUT=#106
69 ; INPUT=EUC-JP OUTPUT=EUC-JP
70 ; INPUT=#18 OUTPUT=#18
73 reply-of-new-context = error
75 ; number: context-descriptor
79 command-release-context = "RELEASE-CONTEXT" SP context-desc CRLF
82 reply-of-release-context = error / success
86 command-convert = "CONVERT" SP context-desc SP input CRLF
90 reply-of-convert = error / segments
92 4. ÊÑ´¹·ë²Ì¥³¥ß¥Ã¥È/¥¥ã¥ó¥»¥ë
94 command-commit-or-cancel = "COMMIT" SP context-desc SP do-cancel CRLF
96 ; 0 ¤Î¤È¤³ÎÄê¡£¤½¤Î¾¤Î¤È¤¥¥ã¥ó¥»¥ë¡£
98 reply-of-commit-or-cancel = error / success
102 command-get-candidates = "GET-CANDIDATES" SP context-desc SP
103 seg-no SP candidate-offset SP
107 reply-of-get-candidates = error / candidates
111 command-select-candidate = "SELECT-CANDIDATE" SP context-desc SP
112 seg-no SP cand-no CRLF
114 reply-of-select-candidate = error / success / segments
118 command-resize-segment = "RESIZE-SEGMENT" SP context-desc SP
119 seg-no SP inc-dec CRLF
121 ; "0" means increment, while "1" means decrement
123 reply-of-resize-segment = error / segments
127 command-quit = "QUIT" CRLF
129 no reply, connection will be closed by server.