Changeset 71 for lang/elisp/pdicv-mode/trunk/nt-english.el
- Timestamp:
- 01/30/09 23:52:02 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/pdicv-mode/trunk/nt-english.el
r67 r71 1 1 ;;; nt-english.el --- English 2 2 ;; 3 ;; Copyright (C) 2005 Naoya TOZUKA. All Rights Reserved.3 ;; Copyright (C) 2005-2009 naoya_t. All Rights Reserved. 4 4 ;; 5 ;; Author: Naoya TOZUKA <pdicviewer@gmail.com> 6 ;; Maintainer: Naoya TOZUKA <pdicviewer@gmail.com> 7 ;; Primary distribution site: http://pdicviewer.naochan.com/el/ 5 ;; Author: naoya_t <naoya.t@aqua.plala.or.jp> 6 ;; Maintainer: naoya_t <naoya.t@aqua.plala.or.jp> 7 ;; Primary distribution site: 8 ;; http://lambdarepos.svnrepository.com/svn/share/lang/elisp/pdicv-mode/trunk 8 9 ;; 9 10 ;; Created: 23 Dec 2005 … … 261 262 ((null word) (throw 'block nil)) 262 263 ((string= word "") (throw 'block nil)) 263 (t nil) 264 ) 264 (t nil)) 265 265 266 266 (let* ((word-len (length word)) … … 273 273 (setq suffix-1 (substring word -1 nil)) 274 274 275 (if (>= word-len 2) 276 (progn 277 (setq body-2 (substring word 0 -2)) 278 (setq suffix-2 (substring word -2 nil)) 279 280 (if (>= word-len 3) 281 (progn 282 (setq body-3 (substring word 0 -3)) 283 (setq suffix-3 (substring word -3 nil)) 284 285 (if (>= word-len 4) 286 (progn 287 (setq body-4 (substring word 0 -4)) 288 (setq suffix-4 (substring word -4 nil)) 289 )) 290 )) 291 )) 275 (when (>= word-len 2) 276 (setq body-2 (substring word 0 -2)) 277 (setq suffix-2 (substring word -2 nil)) 278 (when (>= word-len 3) 279 (setq body-3 (substring word 0 -3)) 280 (setq suffix-3 (substring word -3 nil)) 281 (when (>= word-len 4) 282 (setq body-4 (substring word 0 -4)) 283 (setq suffix-4 (substring word -4 nil))))) 292 284 293 285 ;; irregular verbs/nouns first. 294 286 (setq tmp (cdr (assoc word nt-english-irreg-verbs-list))) 295 ( iftmp (throw 'block (list tmp)))287 (when tmp (throw 'block (list tmp))) 296 288 (setq tmp (cdr (assoc word nt-english-irreg-nouns-list))) 297 ( iftmp (throw 'block (list tmp)))289 (when tmp (throw 'block (list tmp))) 298 290 299 291 (cond … … 328 320 ((string= suffix-2 "'s") (list body-2)) 329 321 330 (t nil) ;; ������ʤ��������������� 331 ) ;cond 332 ) ;let 333 );caught 334 ) 322 (t nil))))) ;; ������ʤ��������������� 335 323 336 324 (defmacro nt:skipit-p (word)