-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Some languages do not use a single-byte space as a word divider. There is no word divider in Japanese, Chinese, Thai, Lao, and Khmer.
https://en.wikipedia.org/wiki/Word_divider?oldformat=true#None
It would be great if the space warning around HTML tags can be modified to accommodate these languages.
Case 1: No spaces UNLESS the tag is next to a single-byte character or symbol (Lao, Japanese, and Khmer)
Correct spacing
Add a space only if tag is next to a single-byte character.
日本語に接している<a href="#">タグ</a>です。英単語に接している <a href="#">tag</a> です。英単語に接している "<a href="#">tag</a>" です。英単語に接している <a href="#">"tag"</a> です。
Incorrect spacing
These are missing spaces around HTML tags.
英単語に接している<a href="#">tag</a>です。英単語に接している<a href="#">"tag"</a>です。英単語に接している"<a href="#">tag</a>"です。不正な<code>function_name</code>。(for this one, only 1 space is missing – before the opening tag. No space is needed after the closing tag since the character after it is a Japanese period)
Case 2: ALWAYS no spaces (Chinese)
- Chinese (China) search results of "<"
- Chinese (Hong Kong) search results of "<"
- Chinese (Taiwan) search results of "<"
- Chinese (Singapore) didn't have many strings translated, but assuming they follow the same rule as other Chinese locales.
Correct spacing
No spaces before or after tags.
-要发表评论,您必须先<a href="%s">登录</a>。 (See translation history)
-<strong>WordPress升级成功!</strong>请重新登录以查看更新详情。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request