lang-8 fix CJK lang-specific variants display

fix display of language-specific glyphs of CJK ideographs

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
Bowen Ding
일일 설치 수
0
총 설치 수
143
평점
1 0 0
버전
5
생성일
2016-12-08
갱신일
2017-02-06
크기
95.4KB
라이선스
GPL
적용 사이트

CJK Shared Ideographs have different variants in terms of their shapes and sometimes structures. Take a look at the screenshot below, which is from one of my entries at lang-8.com. It's based on the language being used that a variant is selected to render the contents.

I wrote this script to fix the problem at lang-8 of display of Japanese Characters with the Chinese-specific glyphs. I guess it would work for other languages as well, but I have not tested it. It automatically detects the language used and adds "lang" tag to various HTML tags on journal pages on lang-8.com, to hint the brower so as to enable display of language-specific glyphs of CJK ideographs.

Note that you need to use an OpenType font that supports "localized forms" to make it work (in case you don't, the script can also work well, but the fonts displayed is inconsistent). I am using Adobe Source Han Sans. Also slight adjustments to the css configuration are needed to force the browser to use your font. You may want to use my userstyle to take a look: (https://userstyles.org/styles/138564/lang-8-com-fix-cjk-ideographs-display)

This script utilizes guessLanguage.js library authored by Rich Tibbett licensed under LGPL. This script itself is licensed under GPL.