Tweak diacritic detection: diacritic should not be below letter top.
This commit is contained in:
parent
ad3fffd7bc
commit
ce11d6e097
1 changed files with 2 additions and 0 deletions
|
|
@ -202,6 +202,8 @@ class Glyph(PageObject):
|
||||||
|
|
||||||
if glyph.elevation < self.DIACRITIC_MIN_ELEVATION:
|
if glyph.elevation < self.DIACRITIC_MIN_ELEVATION:
|
||||||
return 0
|
return 0
|
||||||
|
if glyph.top >= self.top:
|
||||||
|
return 0
|
||||||
if (
|
if (
|
||||||
glyph.left < self.left - self.DIACRITIC_WINDOW_LEFT
|
glyph.left < self.left - self.DIACRITIC_WINDOW_LEFT
|
||||||
or glyph.right > self.right + self.DIACRITIC_WINDOW_RIGHT
|
or glyph.right > self.right + self.DIACRITIC_WINDOW_RIGHT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue