50
edits
(Update links to graphemes explanations) |
(Finish missing phrase in graphemes explanation) |
||
Line 103: | Line 103: | ||
== Graphemes == | == Graphemes == | ||
When counting length of strings (e.g. for title, description, ...) we want to count the number of visual characters (since ) and not the number of Unicode characters needed to render this visual character. Some languages / characters need multiple Unicode characters. One example is <code>में</code> which has only 1 grapheme but uses 3 Unicode characters (e.g. in Python, <code>len("में") == 3</code>). | When counting length of strings (e.g. for title, description, ...) we want to count the number of visual characters (since this is the reason we limit the length of these metadata, we want to ensure they do not break reader UIs by taking way too much visual space) and not the number of Unicode characters needed to store/render this visual character. Some languages / characters need multiple Unicode characters. One example is <code>में</code> which has only 1 grapheme but uses 3 Unicode characters (e.g. in Python, <code>len("में") == 3</code>). | ||
You can have a look at [https://en.wikipedia.org/wiki/Grapheme wikipedia article on grapheme] | You can have a look at [https://en.wikipedia.org/wiki/Grapheme wikipedia article on grapheme] |
edits