mirror of
https://github.com/vincentdoerig/latex-css.git
synced 2024-08-16 08:10:35 +03:00
feat: add both simplified & traditional Chinese (#30)
Chinese words using default font seems a little bit weird, so I rewrite the 'font-family' rule and add 3 fonts for OS compatibility. By the way, I also update languages.html for your convenience.
This commit is contained in:
parent
04497134ca
commit
1cbe025b2c
5
lang/zh-hans.css
Normal file
5
lang/zh-hans.css
Normal file
@ -0,0 +1,5 @@
|
||||
:lang(zh-hans) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; }
|
||||
:lang(zh-hans) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; }
|
||||
:lang(zh-hans) .proof::before { content: '证明:' attr(title) !important; font-style: normal; }
|
||||
:lang(zh-hans) .definition::before { content: '定义 ' counter(definition) '. ' !important; }
|
||||
:lang(zh-hans) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; }
|
5
lang/zh-hant.css
Normal file
5
lang/zh-hant.css
Normal file
@ -0,0 +1,5 @@
|
||||
:lang(zh-hant) .theorem::before { content: '定理 ' counter(theorem) '. ' !important; }
|
||||
:lang(zh-hant) .lemma::before { content: '引理 ' counter(theorem) '. ' !important; }
|
||||
:lang(zh-hant) .proof::before { content: '證明:' attr(title) !important; font-style: normal; }
|
||||
:lang(zh-hant) .definition::before { content: '定義 ' counter(definition) '. ' !important; }
|
||||
:lang(zh-hant) ::before { font-family: 'Microsoft Yahei', 'STHeiti', 'Source Han Sans CN'; }
|
@ -49,6 +49,8 @@
|
||||
<option value="mwl">Mirandese (mwl)</option>
|
||||
<option value="pt">Portuguese (pt)</option>
|
||||
<option value="ro">Romanian (ro)</option>
|
||||
<option value="zh-hans">Simplified Chinese (zh-hans)</option>
|
||||
<option value="zh-hant">Traditional Chinese (zh-hant)</option>
|
||||
</select>
|
||||
|
||||
<div id="wrapper">
|
||||
|
Loading…
Reference in New Issue
Block a user