Why gradle lint think ellipsis character “…”

2020-07-27 02:41发布

问题:

I define a string "XXX..." in string.xml and get a gradle lint issue.

Replace "..." with ellipsis character (…, …) ?
Explanation: Ellipsis string can be replaced with ellipsis character.
You can replace the string "..." with a dedicated ellipsis character,
ellipsis character (…, …). This can help make the text more readable. 

Why is "…" more readable than "..."? When someone see "&#8230", I don't think he/she can realize that this is a ellipsis character.

回答1:

It's about good typography. The actual ellipsis character is almost always preferred to the approximation of having three dots. In some fonts, three dots in a row just have too much space in between while the actual ellipsis character looks nice: the font designer can control the appearance of the dedicated ellipsis sign but he can't control how three dots in a row should be displayed.

It's like using an em-dash "–" vs. the approximation with two minus-signs "--": using an approximation by combining several normal characters instead of using the dedicated character almost always looks clumsy and unprofessional.