Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
hexbog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
avoid "alternative form of ..." definitions
[hexbog.git]
/
main.coffee
diff --git
a/main.coffee
b/main.coffee
index
0467055
..
b444f1a
100644
(file)
--- a/
main.coffee
+++ b/
main.coffee
@@
-505,7
+505,7
@@
extract_wiktionary_definiton = (html) ->
if part and el.tagName is 'OL'
$(el).children().each (i, el) ->
new_def = $(el).text()
if part and el.tagName is 'OL'
$(el).children().each (i, el) ->
new_def = $(el).text()
- if new_def.substr(0, 9) is '(obsolete' or new_def.substr(0, 8) is "(archaic"
+ if new_def.substr(0, 9) is '(obsolete' or new_def.substr(0, 8) is "(archaic" or new_def.substr(0, 20) is "Alternative form of "
key = 'obsolete'
else
if part is 'verb'
key = 'obsolete'
else
if part is 'verb'