Page MenuHomePhabricator

Rethink the TOC indentation sizes on wikis with non-Latin scripts
Open, MediumPublic

Description

On zhwiki, volunteers have suggested that in the TOC, the indentation size should be equal to the font size: .vector-toc .vector-toc-list-item { padding-left: 0.875em; }

The same may apply to the Korean and Japanese-script wikis.

Event Timeline

This is an interesting observation. East asian scripts typically have much smaller line-lengths than western scripts, so they can afford more indentation without breaking the text on multiple lines.

I'm curious if one of the goals of this very specific request is to makes the characters line up vertically? If we increase the indentation to equal the font-size, we would have an almost grid-like alignment of characters, is this a desirable outcome? (just asking out of curiosity, I don't know anything about east asian typography).

Screenshot 2023-06-19 at 11.22.00 AM.png (429×191 px, 21 KB)
Screenshot 2023-06-19 at 11.22.40 AM.png (545×206 px, 27 KB)
current (8px)proposed (14px)

However, regardless of the rationale, I think we can mark this task as #fixed-in-zebra, because we are increasing the indentation in that design revision from 8px to 12px there (almost font-size, which is 14px).

Screenshot 2023-06-19 at 11.29.09 AM.png (418×279 px, 23 KB)

Jdlrobson subscribed.

Potential blocker for deploying to zhwiki

Hi @Sneha could you give us some direction on what we want to do here? Thanks in advance!

I am also not familiar with these scripts. However some of these scripts can be read vertically too and if we align it exactly with the character above I wonder if it would create some confusion in reading. Perhaps those who can read the script may not find it confusing but I think having a little offset might be better to avoid any potential confusion. We are already increasing the indentation as @Jdrewniak mentioned so hopefully that alone will help. Could we try that first and see if that satisfies the request before aligning it to the character?

Jdlrobson changed the task status from Open to Stalled.Jul 12 2023, 5:10 PM
Jdlrobson removed Sneha as the assignee of this task.

Thanks @Sneha. I'm stalling this on T341275 then.

I am also not familiar with these scripts. However some of these scripts can be read vertically too and if we align it exactly with the character above I wonder if it would create some confusion in reading. Perhaps those who can read the script may not find it confusing but I think having a little offset might be better to avoid any potential confusion. We are already increasing the indentation as @Jdrewniak mentioned so hopefully that alone will help. Could we try that first and see if that satisfies the request before aligning it to the character?

If there are enough vertical spaces between each line of scripts (name of the chapters), I don't think Chinese readers would be confused. Since currently, the vertical spaces between words are already larger than the horizontal ones, we shall not be worry about it.

Note that there are usually no spaces between characters in Chinese and Japanese scripts.

Jdlrobson lowered the priority of this task from High to Medium.Sep 12 2023, 6:22 PM

My understanding of this issue is that the indentation should be the same width as one character. @Jdrewniak 's proposed solution above should fix it.

Jdlrobson changed the task status from Stalled to Open.Sep 12 2023, 6:27 PM