šŸ‘· šŸš§ Infrastructure Overhaul! Report newly broken functionality here! šŸ”„ šŸš’

Works. Thanks.

But using it, I now found another bug. If I click on a collapsed series I can see the read members, that works, but they are shown with white background which disrupts dark mode.

5 Likes

Ah yeah, thatā€™s a known style issue, thanks for the reminder!

6 Likes

Just in case, forwarding here:

5 Likes

Also pinging @mic. What is the proposed solution here? Wrapping the main site in lang=ā€œja-jpā€ attribute?

2 Likes

@mic was talking about the forum, not the main site. (And furthermore about Japanese kanji variants, not Chinese hanzi).

Only the Japanese part of the website (when Japanese is selected). My understanding is that Korean hanja are slightly different in appearance as well.

Hereā€™s a random example from the Internet:

6 Likes

Though I started with the forum, at the end I was talking about both sites.

4 Likes

I donā€™t know enough about web dev or Han unification to know any other solutions, but I assume there are more elegant ways of handling multiple languages on a single page than with an HTML tag predating Web2.0 :thinking:

If you use the attribute, it shouldnā€™t be on the whole site level, because the whole site is English, and from what I understand the top-level lang attribute determines your rank in search engines (e.g. an English site will be prioritized on a google.com search and disprioritized on a google.jp search). It would only be needed on divs that would be expected to contain Japanese text (like book titles and blurbs), meaning itā€™s not a good solution for the forum, because any Japanese text that shows up will be incidental.

4 Likes

I agree that a global lang tag is not the right solution. I may be missing something, but I donā€™t really see what there is to ā€œfixā€ at all. If you want to see Japanese fonts by default as opposed to Chinese, install Japanese as a language in your OS (browser setting may work too, not sure). A Chinese font is the default because itā€™s the more common language, but it does render in a Japanese font if you install Japanese.

5 Likes

Han unification is a mess IMHO, but the thing to fix is that where a website knows that text is Japanese it should tell the browser so that it can use a Japanese font, and vice versa for Chinese. If, say, Iā€™m learning both Japanese and Chinese, or Iā€™m a Japanese speaker learning Chinese, then I probably do have a preference for the default but I also want to see Chinese text with the right Chinese font and Japanese text with the right Japanese font. Setting the default at the user end is a great idea for anybody who (like I guess most of us) is almost only ever interacting with Japanese text and not Chinese because it sidesteps a whole load of cases where websites donā€™t (or canā€™t, as for instance with text in user posts on forums) indicate which language itā€™s in, but that doesnā€™t mean websites shouldnā€™t try to indicate the language where they can. Plus it means the website looks right even to users who havenā€™t read up about this han unification problem and been told they need to install Japanese language support or adjust which language is preferred over the other.

9 Likes

That makes sense, but I think where it can be applied is limited. It probably shouldnā€™t be applied on the forums at all since the forums are primarily in English and thereā€™s no Japanese/Chinese specific sections. (And users can define the language of their text themselves if itā€™s important enough.) For the main website, maybe it could be applied to titles and summary blurbs? I imagine thatā€™s about it though. Again, anything user-defined wouldnā€™t make sense, though Brandon could whitelist span tags and the lang attribute for use in reviews if he really wants.

3 Likes

A website with Japanese content should be serving users with the Japanese character variants by default, because Japanese is the language being used and not Chinese. In my case, Iā€™m pretty sure what broke and suddenly changed the font was a Firefox update and not Natively, and it was indeed easily fixed by resetting my preferred languages in Firefox, but browser and OS language settings are only meant to be fallbacks in case a website is available for multiple locales. For a site where the content will always be in a specific language, thatā€™s information that the site itself should provide so the browser doesnā€™t have to guess. Any user, from anywhere in the world with any primary language, should be able to visit learnnatively.com and see the titles of Japanese books written in a Japanese font, because those book titles are in Japanese and none of Nativelyā€™s content is in Chinese.

Unfortunately I might have been wrong about there being a more modern and elegant solution than bloating the HTML with a million lang attributes for every piece of Japanese text on the page. I tried looking it up, and every answer just said to control it with lang, and I even found this essay proposing best practices for mixed English-Japanese sites saying the same. :pensive: So in the case of forums and usernames and such where the language used will be unpredictable or majority non-Japanese, thereā€™s no good solution besides depending on the user to have the right OS/browser settings.

5 Likes

This is all very interesting and I never realized this was an issue! Granted, as I look at it more, the characters are at least all legibleā€¦ they donā€™t seem different enough to really cause problems, but definitely annoying, eek.

Totally agree with you and all the others saying this. I think titles, authors & blurbs are an easy fix and honestly more proper html. Tags also could potentially be included if they include Japanese characters, but there is a potential (far future) problem case of cross mixing Japanese/Chinese tags.

With regards to parsing reviews and/or allowing the user to specify spans & lang attributes, potentially.

As for the forum, yeah thereā€™s not a good way. Potentially a discourse plugin that a developer could build? Allow you to specify Japanese or Chinese based on a category tag?

But yes, for the time being, I think just titles/authors/blurbs make sense!

9 Likes