(defvar +language-abbreviations+
- '(("BAQ" . "Basque")
- ("DAN" . "Danish")
- ("DUT" . "Dutch")
- ("ENG" . "English")
- ("FIN" . "Finnish")
- ("FRE" . "French")
- ("GER" . "German")
- ("HEB" . "Hebrew")
- ("HUN" . "Hungarian")
- ("ITA" . "Italian")
- ("NOR" . "Norwegian")
- ("POR" . "Portuguese")
- ("RUS" . "Russian")
- ("SPA" . "Spanish")
- ("SWE" . "Swedish")))
+ '(("BAQ" . "Basque")
+ ("CZE" . "Chech")
+ ("DAN" . "Danish")
+ ("DUT" . "Dutch")
+ ("ENG" . "English")
+ ("FIN" . "Finnish")
+ ("FRE" . "French")
+ ("GER" . "German")
+ ("HEB" . "Hebrew")
+ ("HUN" . "Hungarian")
+ ("ITA" . "Italian")
+ ("JPN" . "Japanese")
+ ("NOR" . "Norwegian")
+ ("POR" . "Portuguese")
+ ("RUS" . "Russian")
+ ("SPA" . "Spanish")
+ ("SWE" . "Swedish")))
(defvar *lat-info-table* (make-hash-table :size 30 :test 'equal))
(defvar *is-lat-table-init* nil)
(setq *is-lat-table-init* t))
(defun lat-abbr-info (lat)
- (nth-value 0 (gethash (string-downcase lat) *lat-info-table*)))
+ (aif (nth-value 0 (gethash (string-downcase lat) *lat-info-table*))
+ it
+ lat))
+
(defun stt-abbr-info (stt)
(let* ((anc-this-cxn (remove-if-not
(lambda (cxt) (= (1+ i) (cxn cxt))) anc)))
(push
- (sort anc-this-cxn (lambda (a b) (< (rnk a) (rnk b))))
+ (sort anc-this-cxn (lambda (a b) (< (rank a) (rank b))))
anc-lists)))))
(code :value-type string :initarg :code :reader code)
(cxn :value-type fixnum :initarg :cxn :reader cxn)
(cxl :value-type string :initarg :cxl :reader cxl)
- (rnk :value-type string :initarg :rnk :reader rnk)
+ (rank :value-type string :initarg :rank :reader rank)
(cxs :value-type cdata :initarg :cxs :reader cxs)
(cui2 :value-type fixnum :initarg :cui2 :reader cui2 :hyperlink find-ucon-cui
:print-formatter fmt-cui)
(defun find-ucxt-cuisui (cui sui &key (srl *current-srl*))
(ensure-cui-integer cui)
(ensure-sui-integer sui)
- (collect-umlisp-query (mrcxt (sab code cxn cxl cxs cui2 hcd rela xc)
+ (collect-umlisp-query (mrcxt (sab rank code cxn cxl cxs cui2 hcd rela xc)
srl kcuisui (make-cuisui cui sui) :lrl ksrl)
- (make-instance 'ucxt :sab sab :code code
+ (make-instance 'ucxt :sab sab :code code
+ :rank rank
:cxn (ensure-integer cxn) :cxl cxl :cxs cxs :hcd hcd
:rela rela :xc xc
:cui2 (ensure-integer cui2))))