Skip to content

Commit c80bb58

Browse files
committed
update
1 parent 4cc8247 commit c80bb58

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

Picviewer CE+/pvcep_rules.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,8 +1939,8 @@ var siteInfo = [
19391939
{
19401940
name: "Google review",
19411941
url: /\bgoogle\.com\//,
1942-
r: /=w\d+\-h\d+\-\w/,
1943-
s: "=s3072-v1"
1942+
r: [/=w\d+\-h\d+\-\w/, /=s\d+/],
1943+
s: ["=s0-v1", "=s0"]
19441944
},
19451945
{
19461946
name: "MAL Anime/Manga",

Switch Traditional Chinese and Simplified Chinese/lib/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "switch-chinese",
3-
"version": "1.0.3",
4-
"description": "Convert between simplified and traditional Chinese characters",
3+
"version": "1.0.4",
4+
"description": "Convert between simplified and traditional Chinese characters. 切換正體/簡體中文,超輕量級,支援自訂詞彙與「一簡多繁」轉換,無任何相依性。",
55
"main": "stcasc.lib.js",
66
"type": "module",
77
"repository": {
@@ -17,7 +17,11 @@
1717
"繁体中文",
1818
"簡體中文",
1919
"繁體中文",
20-
"正體中文"
20+
"正體中文",
21+
"简繁切换",
22+
"簡繁切換",
23+
"繁简转换",
24+
"繁簡轉換"
2125
],
2226
"author": "Hoothin",
2327
"license": "MIT",

Switch Traditional Chinese and Simplified Chinese/lib/readme.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,10 @@ console.log(stcasc.traditionalized(sc));
1717
//香菸 香煙裊裊 煙霧裡 里長面子 吃乾麵 幹 把考卷發回來 捲髮 智慧財產權
1818
```
1919

20-
``` js
21-
const stcasc = Stcasc({}, {}, true);
22-
const sc = "知识产权";
23-
console.log(stcasc.traditionalized(sc));
24-
//知識産權
25-
```
2620

2721
+ 透過 npm 安裝
2822

29-
```
23+
``` shell
3024
npm install switch-chinese
3125
import Stcasc from 'switch-chinese';
3226
```
@@ -45,7 +39,7 @@ stcasc.simplized("正體中文");
4539
//正体中文
4640
```
4741

48-
+ 添加快取
42+
+ 添加快取,避免重複生成字典
4943

5044
``` js
5145
let cache = loadCacheAtYourWay();
@@ -62,11 +56,14 @@ const custom = {
6256
"转换": "轉檔",
6357
"软件": "軟體"
6458
};
65-
let stcasc = Stcasc(cache, custom);
59+
const stcasc = Stcasc(cache, custom);
6660
```
6761

6862
+ 禁用用語轉換
6963

7064
``` js
71-
let stcasc = Stcasc({}, {}, true);
65+
const stcasc = Stcasc({}, {}, true);
66+
const sc = "知识产权";
67+
console.log(stcasc.traditionalized(sc));
68+
//知識産權
7269
```

0 commit comments

Comments
 (0)