equal
deleted
inserted
replaced
1809 /** |
1809 /** |
1810 * Return the "stronger" of the TextHitInfos. The TextHitInfos |
1810 * Return the "stronger" of the TextHitInfos. The TextHitInfos |
1811 * should be logical or visual counterparts. They are not |
1811 * should be logical or visual counterparts. They are not |
1812 * checked for validity. |
1812 * checked for validity. |
1813 */ |
1813 */ |
1814 private final TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) { |
1814 private TextHitInfo getStrongHit(TextHitInfo hit1, TextHitInfo hit2) { |
1815 |
1815 |
1816 // right now we're using the following rule for strong hits: |
1816 // right now we're using the following rule for strong hits: |
1817 // A hit on a character with a lower level |
1817 // A hit on a character with a lower level |
1818 // is stronger than one on a character with a higher level. |
1818 // is stronger than one on a character with a higher level. |
1819 // If this rule ties, the hit on the leading edge of a character wins. |
1819 // If this rule ties, the hit on the leading edge of a character wins. |