Skip to content

Commit 4e85079

Browse files
committed
修正少數描述不完整的問題
1 parent 315ca5f commit 4e85079

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

raw/parser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ for (let section = 1; section <= 4; section++) {
2828
if (ln.startsWith(" ".repeat(4))) {
2929
const thisQuestion = ln.trim().split(". ");
3030
currentQuestion.number = thisQuestion[0] - 0;
31-
currentQuestion.description = thisQuestion[1];
31+
currentQuestion.description = thisQuestion.splice(1).join(" ");
3232
} else if (ln.match(/^\([ABCD]\)/)) {
3333
const thisOption = ln.trim().split(" ");
3434
const thisId = thisOption[0].replace(/[\(\)]/g, "").toLowerCase();
35-
const thisDescription = thisOption[1];
35+
const thisDescription = thisOption.splice(1).join(" ");
3636
currentOptions[thisId] = thisDescription;
3737
} else if (ln === "") {
3838
currentQuestion.options = currentOptions;

raw/result.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@
17291729
"options": {
17301730
"a": "每秒徑度(rad/s)。",
17311731
"b": "每分鐘轉數(RPM)。",
1732-
"c": "赫茲",
1732+
"c": "赫茲 (Hz)。",
17331733
"d": "每分鐘徑度(rad/min)。"
17341734
},
17351735
"section": 2,
@@ -1993,7 +1993,7 @@
19931993
"options": {
19941994
"a": "分子光譜。",
19951995
"b": "動量守恆。",
1996-
"c": "相對運動",
1996+
"c": "相對運動 (相對氣流)。",
19971997
"d": "雷諾傳輸。"
19981998
},
19991999
"section": 2,
@@ -3275,7 +3275,7 @@
32753275
"number": 10,
32763276
"description": "下列有關大氣壓力量測之敘述,何者錯誤?",
32773277
"options": {
3278-
"a": "國際標準大氣(International",
3278+
"a": "國際標準大氣(International Standard Atmosphere,ISA)為各國公認之參考校正基準。",
32793279
"b": "海平面大氣壓力為29.92英吋汞柱(inHg)。",
32803280
"c": "一標準大氣壓力等於1017.2毫巴值。",
32813281
"d": "每上升1,000英呎,氣壓值減少約1英吋汞柱。"
@@ -3359,10 +3359,10 @@
33593359
"number": 17,
33603360
"description": "有關風速的單位下列何者為非?",
33613361
"options": {
3362-
"a": "公尺/每秒",
3363-
"b": "公里/每小時",
3364-
"c": "海浬/每小時",
3365-
"d": "公斤/每小時"
3362+
"a": "公尺/每秒 (m/s)。",
3363+
"b": "公里/每小時 (km/h)。",
3364+
"c": "海浬/每小時 (kts)。",
3365+
"d": "公斤/每小時 (kg)。"
33663366
},
33673367
"section": 3,
33683368
"answer": "d"

raw2/parser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ for (let section = 1; section <= 4; section++) {
2828
if (ln.startsWith(" ".repeat(4))) {
2929
const thisQuestion = ln.trim().split(". ");
3030
currentQuestion.number = thisQuestion[0] - 0;
31-
currentQuestion.description = thisQuestion[1];
31+
currentQuestion.description = thisQuestion.splice(1).join(" ");
3232
} else if (ln.match(/^\([ABCD]\)/)) {
3333
const thisOption = ln.trim().split(" ");
3434
const thisId = thisOption[0].replace(/[\(\)]/g, "").toLowerCase();
35-
const thisDescription = thisOption[1];
35+
const thisDescription = thisOption.splice(1).join(" ");
3636
currentOptions[thisId] = thisDescription;
3737
} else if (ln === "") {
3838
currentQuestion.options = currentOptions;

raw2/result.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@
23892389
"options": {
23902390
"a": "每秒徑度(rad/s)。",
23912391
"b": "每分鐘轉數(RPM)。",
2392-
"c": "赫茲",
2392+
"c": "赫茲 (Hz)。",
23932393
"d": "每分鐘徑度(rad/min)。"
23942394
},
23952395
"section": 2,
@@ -2653,7 +2653,7 @@
26532653
"options": {
26542654
"a": "分子光譜。",
26552655
"b": "動量守恆。",
2656-
"c": "相對運動",
2656+
"c": "相對運動 (相對氣流)。",
26572657
"d": "雷諾傳輸。"
26582658
},
26592659
"section": 2,
@@ -4437,7 +4437,7 @@
44374437
},
44384438
"S2-224": {
44394439
"number": 224,
4440-
"description": "在作飛行規畫或操作無人機時,操作人手上有多項重量和平衡的資訊,依日期先後排列,包括a",
4440+
"description": "在作飛行規畫或操作無人機時,操作人手上有多項重量和平衡的資訊,依日期先後排列,包括a 2016/8/15(無人機出廠時),b 2016/10/18,c 2016/12/27,d 2017/2/8,e 2017/6/19(無人機上次飛行時),f 2017/9/20,操作人應使用下列哪一項?",
44414441
"options": {
44424442
"a": "2017/9/20重量和平衡的資訊。",
44434443
"b": "2016/8/15(無人機出廠時)重量和平衡資訊。",
@@ -4679,7 +4679,7 @@
46794679
"number": 10,
46804680
"description": "下列有關大氣壓力量測之敘述,何者錯誤?",
46814681
"options": {
4682-
"a": "國際標準大氣(International",
4682+
"a": "國際標準大氣(International Standard Atmosphere,ISA)為各國公認之參考校正基準。",
46834683
"b": "海平面大氣壓力為29.92英吋汞柱(inHg)。",
46844684
"c": "一標準大氣壓力等於1017.2毫巴值。",
46854685
"d": "每上升1,000英呎,氣壓值減少約1英吋汞柱。"
@@ -4763,10 +4763,10 @@
47634763
"number": 17,
47644764
"description": "有關風速的單位下列何者為非?",
47654765
"options": {
4766-
"a": "公尺/每秒",
4767-
"b": "公里/每小時",
4768-
"c": "海浬/每小時",
4769-
"d": "公斤/每小時"
4766+
"a": "公尺/每秒 (m/s)。",
4767+
"b": "公里/每小時 (km/h)。",
4768+
"c": "海浬/每小時 (kts)。",
4769+
"d": "公斤/每小時 (kg)。"
47704770
},
47714771
"section": 3,
47724772
"answer": "d"
@@ -6059,10 +6059,10 @@
60596059
"number": 125,
60606060
"description": "無人機正以定速(40 kts/時)及定姿態方式保持往東飛行,此時GPS速度(地速)顯示為44 kts/時,GPS航向為116度,請問風速和風向約略為何?",
60616061
"options": {
6062-
"a": "東風20",
6063-
"b": "北風20",
6064-
"c": "南風20",
6065-
"d": "西風20"
6062+
"a": "東風20 kts。",
6063+
"b": "北風20 kts。",
6064+
"c": "南風20 kts。",
6065+
"d": "西風20 kts。"
60666066
},
60676067
"section": 3,
60686068
"answer": "b"

0 commit comments

Comments
 (0)