diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..8322d04 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,16 @@ +{ + // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. + // 기존 특성에 대한 설명을 보려면 가리킵니다. + // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. + "version": "0.2.0", + "configurations": [ + + { + "name": "Python 디버거: 현재 파일", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + } + ] +} \ No newline at end of file diff --git a/250508_DIW_2504회_C형_TEST.xlsx b/250508_DIW_2504회_C형_TEST.xlsx new file mode 100644 index 0000000..5e897a9 Binary files /dev/null and b/250508_DIW_2504회_C형_TEST.xlsx differ diff --git a/DIW_2504A.json b/DIW_2504A.json index 3a83409..f1c0709 100644 --- a/DIW_2504A.json +++ b/DIW_2504A.json @@ -800,7 +800,7 @@ "path": "//c:catAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "X축/③ 기울임" @@ -827,7 +827,7 @@ "path": "//c:valAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "Y축/③ 기울임" @@ -854,7 +854,7 @@ "path": "//c:legend//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "범례/③ 기울임" diff --git a/DIW_2504B.json b/DIW_2504B.json index 20fd3ec..8f47ff7 100644 --- a/DIW_2504B.json +++ b/DIW_2504B.json @@ -800,7 +800,7 @@ "path": "//c:catAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "X축/③ 기울임" @@ -827,7 +827,7 @@ "path": "//c:valAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "Y축/③ 기울임" @@ -854,7 +854,7 @@ "path": "//c:legend//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "범례/③ 기울임" diff --git a/DIW_2504C.json b/DIW_2504C.json index 9803bb5..6d92128 100644 --- a/DIW_2504C.json +++ b/DIW_2504C.json @@ -800,7 +800,7 @@ "path": "//c:catAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "X축/③ 기울임" @@ -827,7 +827,7 @@ "path": "//c:valAx//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "Y축/③ 기울임" @@ -854,7 +854,7 @@ "path": "//c:legend//a:defRPr/@i", "path2": null, "searchValue": null, - "value": 1, + "value": "1", "points": 1, "category": "chart_xml", "item": "범례/③ 기울임" diff --git a/diwScoring.py b/diwScoring.py index 09ee799..064d246 100644 --- a/diwScoring.py +++ b/diwScoring.py @@ -96,8 +96,8 @@ class XMLScorer: if type(result) is list and len(result) == 0: return None elif result < points: - result = root.xpath(second_xpath) - return result + result2 = root.xpath(second_xpath) + return max(result, result2) else: return result @@ -614,12 +614,12 @@ def main(): # 250429기준 없는 시험 형식(A,B,C..)은 주석처리 하지 않으면 오류 발생 exam_types = [ - 'A', - 'B', + # 'A', + # 'B', 'C', ] - test_mode = False - # test_mode = True + # test_mode = False + test_mode = True output_excel_paths = [] for exam_type in exam_types: diff --git a/zzz.xbook b/zzz.xbook index a00ad97..4169663 100644 --- a/zzz.xbook +++ b/zzz.xbook @@ -1 +1 @@ -[{"kind":2,"language":"xpath","value":"//RECTANGLE//CHAR[text()='출판 산업 트렌드']/ancestor::RECTANGLE/descendant::WINDOWBRUSH/@FaceColor"},{"kind":2,"language":"xpath","value":"//CHARSHAPE[@Id=//CHAR[contains(text()[1],'{searchValue}')]/parent::TEXT/@CharShape][BOLD]"}] \ No newline at end of file +[{"kind":2,"language":"xpath","value":"//c:catAx//a:defRPr/@i"},{"kind":2,"language":"xpath","value":"count(//CHAR[contains(text(),'◆')]) + count(//CHAR[contains(text(),'※')])"},{"kind":2,"language":"xpath","value":"string-length(//CHAR[contains(text(),'◆')]) - string-length(translate(//CHAR[contains(text(),'◆')], '◆', '')) + string-length(//CHAR[contains(text(),'※')]) - string-length(translate(//CHAR[contains(text(),'※')], '※', ''))"}] \ No newline at end of file diff --git a/회차별채점자료/2504/excel_채점기준표/DIW_2504C.xlsx b/회차별채점자료/2504/excel_채점기준표/DIW_2504C.xlsx index e635117..12c23d2 100644 Binary files a/회차별채점자료/2504/excel_채점기준표/DIW_2504C.xlsx and b/회차별채점자료/2504/excel_채점기준표/DIW_2504C.xlsx differ diff --git a/회차별채점자료/2504/요청사항/0508.txt b/회차별채점자료/2504/요청사항/0508.txt new file mode 100644 index 0000000..80e4766 --- /dev/null +++ b/회차별채점자료/2504/요청사항/0508.txt @@ -0,0 +1,63 @@ +광일 김, [May 8, 2025 at 13:44:23]: + +001912 문성빈 +문구 (서울국제도서박람회) - 견고딕, 25pt, 가운데정렬 맞는데 오답처리 +- 문서 내에 "서울국제도서박람회" 찾는 문자열이 여러개일 경우 최초 검색된 항목에 대해서 속성비교 +- 수정중 + +000076 박다은 +특수문자 ① ◆, ② ◆, ③ ※ - ◆ 행사안내 ◆ 인데 1점 +- 수정완 + +001419 김사랑 +차트 X,Y,범례 기울임 없느데 정답처리됨 +- 수정완 + +글맵시 있는데 오답처리 +000076 박다은 - 정상채점 +000285 문예슬 - 글맵시 텍스트에 개행이 들어가 있음 "서울국제도서박람회␍␊" +001345 조수빈 - 서울국제도시박람회 +000203 이지운 - 서울국제도섭가람회 + +- 유사도 검색으로 더 일치하는 텍스트가 1페이지 최하단에 있어서 "서울국제도서박람회" 글맵시 부분을 찾지 못함 + +001473 노이솜 +문구 (◆ 행사안내 ◆) - 궁서/가운데정렬 맞는데 오답처리(띄어쓰기 때문인듯) + +- "◆ 행사안내 ◆" 기준으로 검색할 때는 "◆ 행사_안내 ◆" (공백 하나)는 유사도가 높아 찾을 수 있지만 +- 특수문자를 제외하고 "행사안내" 로만 검색 할 때는 "행사_안내"는 유사도가 낮아 해당 구문을 찾을 수 없음 + +001473 노이솜 +문제1 줄간격 180% 맞는데 오답처리(마지막 엔터값 때문인듯) + +- 1페이지의 문단 속성들의 줄간격이 180% 가 아닌 문단이 있으면 오답으로 처리중 +- 마지막 엔터값 줄간격 160%를 예외 처리할 기준이 애매모호함 + + + +002016-조승연 +001464-이주아 +000047-전지인 +.gmep가 아니라 .gmdp라서 0점 + +- 수정완 + +001662-노연우 +"화단의 꽃들" 자막 텍스트 맞는데 오답처리 +"아름다운 꽃 축제(Happy Flower Festival)" 자막 텍스트 맞는데 오답처리 + + + +1-10문제 배점이 6점인데 5점으로 잘못기재한거죠? + +001682-노연우 +"화단의 꽃들" 자막 텍스트 맞는데 오답처리 + +000400-서보길 +"흰 꽃 사이 노란 꽃 " <- 마지막에 띄어쓰기때문에 오답처리 됨/trim한 텍스트로 비교할 수 있을까요? + + +다 수정 채점 해뒀습니다! + + +DIC-A형만 확인하면 이번회차도 끝날것같습니다! \ No newline at end of file