joidegn/leo-cli — pull request #3 by neingeist (2014-04-14 18:37:09+00:00)
Title: Fix lookup for some words

For some words, like 'nutritive', the lookup failed because there's no
tag with hc=0 attribute in leo.org's XML output, but rather two
with both tags having hc attributes set to 1.

Fix this by not looking at the "hc" attribute, but using the
tags and the words in them directly.

$ ./leo nutritive
translating to: ende
nutritive ernährend
nutritive Ernährungs...
nutritive Nähr...
[...]