Tweak diacritic detection: diacritic should not be below letter top.

This commit is contained in:
Andrey Golovizin 2014-08-25 13:49:16 +02:00
parent ad3fffd7bc
commit ce11d6e097

View file

@ -202,6 +202,8 @@ class Glyph(PageObject):
if glyph.elevation < self.DIACRITIC_MIN_ELEVATION:
return 0
if glyph.top >= self.top:
return 0
if (
glyph.left < self.left - self.DIACRITIC_WINDOW_LEFT
or glyph.right > self.right + self.DIACRITIC_WINDOW_RIGHT