lang-8 add lang tag

fix display of language-specific glyphs of CJK ideographs

目前為 2016-12-08 提交的版本,檢視 最新版本

作者
Bowen Ding
評價
0 0 0
版本
2
建立日期
2016-12-08
更新日期
2016-12-08
尺寸
95.3 KB
授權條款
GPL
腳本執行於

Auto detects the language used and adds "lang" tag to various HTML tags on journal pages on lang-8.com, to enable display of language-specific glyphs of CJK ideographs.

I wrote this to fix the problem 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.

Note that you need a OpenType font that supports "localized forms" to make it work. I am using Adobe Source Han Sans. Also slight adjustments to the css configuration are needed:

body{
    font-family: sans-serif !important;    
}

to force the browser to use your font.

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址