Changeset 76 for lang/elisp/pdicv-mode
- Timestamp:
- 01/31/09 00:38:26 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/pdicv-mode/trunk/pdicv-core.el
r75 r76 19 19 20 20 ; (pdicv-get-header-info FILENAME) 21 ; - ��ؒ�Ò���������ߒ�蒤� 21 ; - ヘッダ情報を読み取る 22 ; 22 23 ; (pdicv-get-index-list FILENAME [WORD-ENCODING]) 23 ; - PDIC ��������������뒤���钡���������Ò�������꒥���Ȓ����24 ; - PDIC辞書ファイルから、インデックスリストを取得 24 25 ; 25 26 ; (pdicv-scan-datablock FILENAME PHYS CRITERIA-FUNC) 26 ; - ��ǒ�������֒�풥Ò���������㒥�; (pdicv-core-search DICINFO CRITERIA [SIMPLE-MODE-P DONT-CLEAR-P]) 27 ; - PDIC��������������뒡������ 27 ; - データブロックをスキャン 28 ; 29 ; (pdicv-core-search DICINFO CRITERIA [SIMPLE-MODE-P DONT-CLEAR-P]) 30 ; - PDIC検索(コアルーチン) 28 31 ; 29 32 … … 49 52 (defvar pdicv-result-height 8) 50 53 ; 51 ; ��ؒ�Ò���������ߒ�蒤� 54 ; ヘッダ情報を読み取る 55 ; 52 56 (defun pdicv-get-header-info (filename) 53 57 "[PDIC] Get Header Info" … … 278 282 ; (set-text-properties 0 (length jword) '(face pdicv-face-caption-gray) jword) 279 283 280 (setq jword (nt:replace-all jword " ������/ "))284 (setq jword (nt:replace-all jword "〓●" " // ")) 281 285 (setq jword (nt:replace-all jword "\n" "\n ")) 282 286 … … 322 326 (if (= field-size 2) (nt:read-ushort datablock p) (nt:read-ulong datablock p)) ) 323 327 (when (zerop field-length) (throw 'pdicv-scan-datablock (nreverse result))); sfield-list)) 324 (setq p (+ p field-size)) ;2��ʒ�����4��В����� (setq compress-length (nt:read-uchar datablock p)) ; �����̒Ĺ 328 (setq p (+ p field-size)) ;2ないし4バイト 329 (setq compress-length (nt:read-uchar datablock p)) ; 圧縮長 325 330 (setq p (1+ p)) 326 331 327 332 (when aligned 328 (setq eword-attrib (nt:read-uchar datablock p)) ; �����В��������333 (setq eword-attrib (nt:read-uchar datablock p)) ; 見出し語属性 329 334 (setq p (1+ p))) 330 ; �����В����쒰ʒ�ߒ����꒤������� rest ��˒���쒤� (setq rest (substring datablock p (+ p field-length))) 335 ; 見出し語以降をとりあえず rest に入れる 336 (setq rest (substring datablock p (+ p field-length))) 331 337 (setq p (+ p field-length)) 332 ; �����В�����NULL����ü)338 ; 見出し語 (NULL終端) 333 339 (let* ((eword-cstr (nt:read-cstring rest)) 334 340 (eword-compressed (car eword-cstr)) (eword-len (cdr eword-cstr)) … … 344 350 (concat (substring eword 0 compress-length) eword-compressed) )) 345 351 (setq q (1+ eword-len)) 346 ;; �����В��������352 ;; 見出し語属性 347 353 (when (not aligned) 348 354 (setq eword-attrib (nt:read-uchar rest q)) … … 357 363 (setq extended (if (zerop (logand eword-attrib 16)) nil t)) 358 364 (if extended 359 (progn ; ��Ȓĥ365 (progn ;拡張 360 366 (setq jword-cstr (nt:read-cstring rest q)) 361 367 (setq jword (car jword-cstr)) (setq jword-len (cdr jword-cstr)) … … 383 389 ) ; catch while2 384 390 ) ; progn 385 (progn ;�ɸ��� (setq jword (substring rest q)) 391 (progn ;標準 392 (setq jword (substring rest q)) 386 393 (setq pron "") 387 394 (setq example "")) … … 452 459 ;(pop-to-buffer pdicv-buffer-name) 453 460 ; (set-buffer pdicv-buffer-name) 454 (insert (format " ���������%s\n" word-to-search))455 (insert (format " ��������???\n"))461 (insert (format "検索文字列: %s\n" word-to-search)) 462 (insert (format "該当件数: ????\n")) 456 463 (newline)) 457 464 ;(insert "\n")) … … 498 505 (sit-for 0)) 499 506 ;;else 500 (when (zerop (% curr-size 128)) ;;128��ϒŬ����ʒ�� (message "%5d/%5d:%7d" curr-size index-size match-count)))) 507 (when (zerop (% curr-size 128)) ;;128は適当な数 508 (message "%5d/%5d:%7d" curr-size index-size match-count)))) 501 509 (setq ix (cdr ix)) 502 510 (setq curr-size (1- curr-size))