Skip to content

Commit

Permalink
longman: BOOKFILM style
Browse files Browse the repository at this point in the history
Fix #18
  • Loading branch information
condy0919 committed Dec 11, 2021
1 parent ec4e28a commit c328cdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fanyi-longman.el
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ Typically it can be a list of strings or \"riched\" strings."))
(list (dom-texts node "") 'button (dom-texts node "")))
((dom-by-class node "REFHWD")
(list (dom-texts node "") 'face 'italic))
((dom-by-class node "BOOKFILM")
(dom-texts node ""))
(t (user-error "Unimplemented. %s" (pp-to-string node)))))
(_ (user-error "Unimplemented. %s" (pp-to-string node)))))
(dom-children (dom-by-class sense "^\\(DEF\\)$"))))
Expand Down Expand Up @@ -517,6 +519,8 @@ before calling this method."
(insert " ")
(insert (oref this :etymon)))
;; The end.
(while (equal (char-before) ?\n)
(delete-char -1))
(insert "\n\n")))

;; The Longman dict specific font-lock keywords
Expand Down

0 comments on commit c328cdd

Please sign in to comment.