Description: Seen from attachment 137942 [details] and attachment 137944 [details] I found the spacing between CJK and western text looks narrow than text inserted space between CJK and western text. I.e. our spacing algorithm between CJK and western text not looks consistent with wenstern text font, so I suggest a new algorithm for finding Space insertion opportunities between CJK and western text. This algorithm works as follows: 1. Get width of space (U+0020) from western text font 2. Finding Space insertion opportunities 3. Insert it as a gap between CJK and western text, but not treat as individual character. Steps to Reproduce: - Actual Results: - Expected Results: - Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Android 5.1.1; Mobile; rv:59.0) Gecko/59.0 Firefox/59.0
This algorithm should having an exception for space between CJK characters, where the space should keep 1 en.
(In reply to Volga from comment #0) > Description: > Seen from attachment 137942 [details] and attachment 137944 [details] I > found the spacing between CJK and western text looks narrow than text > inserted space between CJK and western text. I.e. our spacing algorithm I don't understand your original description. Is there any mistake in the above text? "spacing between CJK and western text looks narrow than text inserted space between CJK and western text" Which spacing do you compare? Is it possible for you to highlight with picture? There is a feature called "Apply spacing between Asian and non-Asian text" in "Asian Typography" tab of paragraph style. If you enable that, space will be inserted between Asian and other scripts.
OK, let me explain. This algorithm is an improvement for "Apply spacing between Asian and non-Asian text" functionality, this algotithm will make the width of this spacing match the width of space in a western text font, rather than fixed width.
(In reply to Volga from comment #3) > OK, let me explain. This algorithm is an improvement for "Apply spacing > between Asian and non-Asian text" functionality, this algotithm will make > the width of this spacing match the width of space in a western text font, > rather than fixed width. Is there any other software padding this way, or any source suggesting that? There is no standard for the width of kerning inserted between CJK and other scripts, but CLREQ said it is up to a quarter of the width of a Han character: https://www.w3.org/TR/clreq/ 3.2.4 Handling Western Text in Chinese Text Using Proportional Western Fonts Tracking or spacing between a Han character and a Western letter or numeral is up to a quarter of the width of a Han character.
Oh, I understand, thanks. And I decided to close.
Now I have an idea that is it possible to make use of four-per-em space (U+2005)? If so I will reopen this bug.