python-hwpx 2.8__py3-none-any.whl → 2.8.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hwpx/oxml/document.py +29 -16
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/METADATA +34 -63
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/RECORD +7 -7
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/WHEEL +1 -1
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/entry_points.txt +0 -0
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/licenses/LICENSE +0 -0
- {python_hwpx-2.8.dist-info → python_hwpx-2.8.3.dist-info}/top_level.txt +0 -0
hwpx/oxml/document.py
CHANGED
|
@@ -47,6 +47,8 @@ logger = logging.getLogger(__name__)
|
|
|
47
47
|
|
|
48
48
|
_HP_NS = "http://www.hancom.co.kr/hwpml/2011/paragraph"
|
|
49
49
|
_HP = f"{{{_HP_NS}}}"
|
|
50
|
+
_HS_NS = "http://www.hancom.co.kr/hwpml/2011/section"
|
|
51
|
+
_HS = f"{{{_HS_NS}}}"
|
|
50
52
|
_HH_NS = "http://www.hancom.co.kr/hwpml/2011/head"
|
|
51
53
|
_HH = f"{{{_HH_NS}}}"
|
|
52
54
|
|
|
@@ -127,6 +129,7 @@ def _create_paragraph_element(
|
|
|
127
129
|
style_id_ref: str | int | None = None,
|
|
128
130
|
paragraph_attributes: Optional[dict[str, str]] = None,
|
|
129
131
|
run_attributes: Optional[dict[str, str]] = None,
|
|
132
|
+
parent: ET.Element | None = None,
|
|
130
133
|
) -> ET.Element:
|
|
131
134
|
"""Return a paragraph element populated with a single run and text node."""
|
|
132
135
|
|
|
@@ -138,7 +141,10 @@ def _create_paragraph_element(
|
|
|
138
141
|
if style_id_ref is not None:
|
|
139
142
|
attrs["styleIDRef"] = str(style_id_ref)
|
|
140
143
|
|
|
141
|
-
|
|
144
|
+
if parent is None:
|
|
145
|
+
paragraph = ET.Element(f"{_HP}p", attrs)
|
|
146
|
+
else:
|
|
147
|
+
paragraph = parent.makeelement(f"{_HP}p", attrs)
|
|
142
148
|
|
|
143
149
|
run_attrs: dict[str, str] = dict(run_attributes or {})
|
|
144
150
|
if char_pr_id_ref is not None:
|
|
@@ -146,8 +152,10 @@ def _create_paragraph_element(
|
|
|
146
152
|
else:
|
|
147
153
|
run_attrs.setdefault("charPrIDRef", "0")
|
|
148
154
|
|
|
149
|
-
run =
|
|
150
|
-
|
|
155
|
+
run = paragraph.makeelement(f"{_HP}run", run_attrs)
|
|
156
|
+
paragraph.append(run)
|
|
157
|
+
text_element = run.makeelement(f"{_HP}t", {})
|
|
158
|
+
run.append(text_element)
|
|
151
159
|
text_element.text = text
|
|
152
160
|
return paragraph
|
|
153
161
|
|
|
@@ -535,18 +543,22 @@ class HwpxOxmlSectionHeaderFooter:
|
|
|
535
543
|
def _ensure_text_element(self) -> ET.Element:
|
|
536
544
|
sublist = self.element.find(f"{_HP}subList")
|
|
537
545
|
if sublist is None:
|
|
538
|
-
sublist =
|
|
546
|
+
sublist = _append_child(
|
|
547
|
+
self.element,
|
|
548
|
+
f"{_HP}subList",
|
|
549
|
+
self._initial_sublist_attributes(),
|
|
550
|
+
)
|
|
539
551
|
paragraph = sublist.find(f"{_HP}p")
|
|
540
552
|
if paragraph is None:
|
|
541
553
|
paragraph_attrs = dict(_DEFAULT_PARAGRAPH_ATTRS)
|
|
542
554
|
paragraph_attrs["id"] = _paragraph_id()
|
|
543
|
-
paragraph =
|
|
555
|
+
paragraph = _append_child(sublist, f"{_HP}p", paragraph_attrs)
|
|
544
556
|
run = paragraph.find(f"{_HP}run")
|
|
545
557
|
if run is None:
|
|
546
|
-
run =
|
|
558
|
+
run = _append_child(paragraph, f"{_HP}run", {"charPrIDRef": "0"})
|
|
547
559
|
text = run.find(f"{_HP}t")
|
|
548
560
|
if text is None:
|
|
549
|
-
text =
|
|
561
|
+
text = _append_child(run, f"{_HP}t")
|
|
550
562
|
return text
|
|
551
563
|
|
|
552
564
|
@property
|
|
@@ -851,7 +863,7 @@ class HwpxOxmlSectionProperties:
|
|
|
851
863
|
attrs = {"applyPageType": page_type}
|
|
852
864
|
if header_id is not None:
|
|
853
865
|
attrs[self._apply_id_attributes(tag)[0]] = header_id
|
|
854
|
-
apply =
|
|
866
|
+
apply = _append_child(self.element, f"{_HP}{tag}Apply", attrs)
|
|
855
867
|
changed = True
|
|
856
868
|
else:
|
|
857
869
|
if apply.get("applyPageType") != page_type:
|
|
@@ -897,7 +909,7 @@ class HwpxOxmlSectionProperties:
|
|
|
897
909
|
element = self._find_header_footer(tag, page_type)
|
|
898
910
|
changed = False
|
|
899
911
|
if element is None:
|
|
900
|
-
element =
|
|
912
|
+
element = _append_child(
|
|
901
913
|
self.element,
|
|
902
914
|
f"{_HP}{tag}",
|
|
903
915
|
{"id": _object_id(), "applyPageType": page_type},
|
|
@@ -1362,7 +1374,7 @@ class HwpxOxmlMemoGroup:
|
|
|
1362
1374
|
memo_attrs.setdefault("id", memo_id or _memo_id())
|
|
1363
1375
|
if memo_shape_id_ref is not None:
|
|
1364
1376
|
memo_attrs.setdefault("memoShapeIDRef", str(memo_shape_id_ref))
|
|
1365
|
-
memo_element =
|
|
1377
|
+
memo_element = _append_child(self.element, f"{_HP}memo", memo_attrs)
|
|
1366
1378
|
memo = HwpxOxmlMemo(memo_element, self)
|
|
1367
1379
|
memo.set_text(text, char_pr_id_ref=char_pr_id_ref)
|
|
1368
1380
|
self.section.mark_dirty()
|
|
@@ -1466,10 +1478,11 @@ class HwpxOxmlMemo:
|
|
|
1466
1478
|
for child in list(self.element):
|
|
1467
1479
|
if _element_local_name(child) in {"paraList", "p"}:
|
|
1468
1480
|
self.element.remove(child)
|
|
1469
|
-
para_list =
|
|
1481
|
+
para_list = _append_child(self.element, f"{_HP}paraList", {})
|
|
1470
1482
|
paragraph = _create_paragraph_element(
|
|
1471
1483
|
desired,
|
|
1472
1484
|
char_pr_id_ref=existing_char if existing_char is not None else "0",
|
|
1485
|
+
parent=para_list,
|
|
1473
1486
|
)
|
|
1474
1487
|
para_list.append(paragraph)
|
|
1475
1488
|
self.group.section.mark_dirty()
|
|
@@ -3493,11 +3506,11 @@ class HwpxOxmlSection:
|
|
|
3493
3506
|
if paragraph is None:
|
|
3494
3507
|
paragraph_attrs = dict(_DEFAULT_PARAGRAPH_ATTRS)
|
|
3495
3508
|
paragraph_attrs["id"] = _paragraph_id()
|
|
3496
|
-
paragraph =
|
|
3509
|
+
paragraph = _append_child(self._element, f"{_HP}p", paragraph_attrs)
|
|
3497
3510
|
run = paragraph.find(f"{_HP}run")
|
|
3498
3511
|
if run is None:
|
|
3499
|
-
run =
|
|
3500
|
-
element =
|
|
3512
|
+
run = _append_child(paragraph, f"{_HP}run", {"charPrIDRef": "0"})
|
|
3513
|
+
element = _append_child(run, f"{_HP}secPr")
|
|
3501
3514
|
self._properties_cache = None
|
|
3502
3515
|
self.mark_dirty()
|
|
3503
3516
|
return element
|
|
@@ -3536,7 +3549,7 @@ class HwpxOxmlSection:
|
|
|
3536
3549
|
def _memo_group_element(self, create: bool = False) -> ET.Element | None:
|
|
3537
3550
|
element = self._element.find(f"{_HP}memogroup")
|
|
3538
3551
|
if element is None and create:
|
|
3539
|
-
element =
|
|
3552
|
+
element = _append_child(self._element, f"{_HP}memogroup", {})
|
|
3540
3553
|
self.mark_dirty()
|
|
3541
3554
|
return element
|
|
3542
3555
|
|
|
@@ -4660,7 +4673,7 @@ class HwpxOxmlDocument:
|
|
|
4660
4673
|
part_name = f"Contents/{section_id}.xml"
|
|
4661
4674
|
|
|
4662
4675
|
# Build minimal section XML
|
|
4663
|
-
section_element = ET.Element(f"{
|
|
4676
|
+
section_element = ET.Element(f"{_HS}sec")
|
|
4664
4677
|
para_attrs = {"id": _paragraph_id(), **_DEFAULT_PARAGRAPH_ATTRS}
|
|
4665
4678
|
para = ET.SubElement(section_element, f"{_HP}p", para_attrs)
|
|
4666
4679
|
run = ET.SubElement(para, f"{_HP}run", {"charPrIDRef": "0"})
|
|
@@ -1,48 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-hwpx
|
|
3
|
-
Version: 2.8
|
|
3
|
+
Version: 2.8.3
|
|
4
4
|
Summary: Hancom HWPX 패키지를 로드하고 편집하기 위한 Python 유틸리티 모음
|
|
5
5
|
Author: python-hwpx Maintainers
|
|
6
|
-
License:
|
|
7
|
-
|
|
8
|
-
Copyright (c) 2024 python-hwpx Maintainers
|
|
9
|
-
|
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
-
of this software and associated documentation files (the "Software"), to use,
|
|
12
|
-
copy, modify, merge, publish, distribute, and sublicense the Software only for
|
|
13
|
-
non-commercial purposes, subject to the following conditions:
|
|
14
|
-
|
|
15
|
-
1. Non-Commercial Use Only. The Software may be used, copied, modified,
|
|
16
|
-
merged, published, distributed, and sublicensed only for non-commercial
|
|
17
|
-
purposes. "Non-Commercial" means use that is not primarily intended for or
|
|
18
|
-
directed toward commercial advantage, monetary compensation, or any form of
|
|
19
|
-
direct or indirect commercial exploitation.
|
|
20
|
-
|
|
21
|
-
2. Attribution. The above copyright notice and this permission notice shall be
|
|
22
|
-
included in all copies or substantial portions of the Software.
|
|
23
|
-
|
|
24
|
-
3. No Warranty of Commercial Support. The maintainers are not obligated to
|
|
25
|
-
provide commercial support, maintenance, or updates.
|
|
26
|
-
|
|
27
|
-
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
28
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
29
|
-
FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
|
30
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
31
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
32
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
|
-
SOFTWARE.
|
|
34
|
-
|
|
35
|
-
If you require permissions to use this Software for commercial purposes,
|
|
36
|
-
please contact the copyright holders to negotiate an alternative licensing
|
|
37
|
-
arrangement.
|
|
38
|
-
|
|
6
|
+
License-Expression: LicenseRef-python-hwpx-NonCommercial
|
|
39
7
|
Project-URL: Homepage, https://github.com/airmang/python-hwpx
|
|
40
8
|
Project-URL: Documentation, https://github.com/airmang/python-hwpx/tree/main/docs
|
|
41
9
|
Project-URL: Issues, https://github.com/airmang/python-hwpx/issues
|
|
42
10
|
Keywords: hwp,hwpx,hancom,opc,xml
|
|
43
11
|
Classifier: Development Status :: 3 - Alpha
|
|
44
12
|
Classifier: Intended Audience :: Developers
|
|
45
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
46
13
|
Classifier: Programming Language :: Python :: 3
|
|
47
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
48
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -58,6 +25,7 @@ Requires-Dist: build>=1.0; extra == "dev"
|
|
|
58
25
|
Requires-Dist: twine>=4.0; extra == "dev"
|
|
59
26
|
Requires-Dist: pytest>=7.4; extra == "dev"
|
|
60
27
|
Provides-Extra: test
|
|
28
|
+
Requires-Dist: build>=1.0; extra == "test"
|
|
61
29
|
Requires-Dist: pytest>=7.4; extra == "test"
|
|
62
30
|
Requires-Dist: pytest-cov>=5.0; extra == "test"
|
|
63
31
|
Provides-Extra: typecheck
|
|
@@ -73,15 +41,16 @@ Dynamic: license-file
|
|
|
73
41
|
<p align="center">
|
|
74
42
|
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/v/python-hwpx?color=blue&label=PyPI" alt="PyPI"></a>
|
|
75
43
|
<a href="https://pypi.org/project/python-hwpx/"><img src="https://img.shields.io/pypi/pyversions/python-hwpx" alt="Python"></a>
|
|
76
|
-
<a href="https://github.com/airmang/python-hwpx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-
|
|
44
|
+
<a href="https://github.com/airmang/python-hwpx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Custom%20Noncommercial-orange" alt="License: Custom Non-Commercial"></a>
|
|
77
45
|
<a href="https://airmang.github.io/python-hwpx/"><img src="https://img.shields.io/badge/docs-Sphinx-8CA1AF" alt="Docs"></a>
|
|
78
46
|
</p>
|
|
79
47
|
</p>
|
|
80
48
|
|
|
81
49
|
---
|
|
82
50
|
|
|
83
|
-
`python-hwpx`는 한컴오피스의 [HWPX 포맷](https://www.hancom.com/)을 순수 Python으로 다루는
|
|
51
|
+
`python-hwpx`는 한컴오피스의 [HWPX 포맷](https://www.hancom.com/)을 순수 Python으로 다루는 라이브러리이자 CLI 도구 모음입니다.
|
|
84
52
|
한/글 설치 없이, OS에 관계없이 HWPX 문서의 구조를 파싱하고 콘텐츠를 조작할 수 있습니다.
|
|
53
|
+
문서 편집 API뿐 아니라 스키마/패키지 검증, unpack/pack, 템플릿 분석 같은 XML-first 워크플로도 함께 제공합니다.
|
|
85
54
|
|
|
86
55
|
> **pyhwpx / pyhwp와 다른 점?**
|
|
87
56
|
> | | python-hwpx | pyhwpx | pyhwp |
|
|
@@ -93,7 +62,7 @@ Dynamic: license-file
|
|
|
93
62
|
|
|
94
63
|
## 🌍 크로스 플랫폼 지원
|
|
95
64
|
|
|
96
|
-
HWPX 파일은 **ZIP + XML** 구조이므로, 한/글 프로그램 없이 Python만으로
|
|
65
|
+
HWPX 파일은 **ZIP + XML** 구조이므로, 한/글 프로그램 없이 Python만으로 읽고 편집하는 워크플로를 구성할 수 있습니다.
|
|
97
66
|
|
|
98
67
|
| 플랫폼 | 읽기 | 쓰기 | 비고 |
|
|
99
68
|
|--------|------|------|------|
|
|
@@ -115,14 +84,14 @@ pip install python-hwpx
|
|
|
115
84
|
```python
|
|
116
85
|
from hwpx import HwpxDocument
|
|
117
86
|
|
|
118
|
-
# 기존 문서 열기
|
|
119
|
-
doc = HwpxDocument.open("보고서.hwpx")
|
|
120
|
-
|
|
121
87
|
# 빈 문서 새로 만들기
|
|
122
88
|
doc = HwpxDocument.new()
|
|
123
89
|
|
|
90
|
+
# 기존 문서를 수정하려면:
|
|
91
|
+
# doc = HwpxDocument.open("보고서.hwpx")
|
|
92
|
+
|
|
124
93
|
# 문단 추가
|
|
125
|
-
doc.add_paragraph("python-hwpx로 생성한 문단입니다.")
|
|
94
|
+
paragraph = doc.add_paragraph("python-hwpx로 생성한 문단입니다.")
|
|
126
95
|
|
|
127
96
|
# 표 추가 (2×3)
|
|
128
97
|
table = doc.add_table(rows=2, cols=3)
|
|
@@ -130,9 +99,8 @@ table.set_cell_text(0, 0, "이름")
|
|
|
130
99
|
table.set_cell_text(0, 1, "부서")
|
|
131
100
|
table.set_cell_text(0, 2, "연락처")
|
|
132
101
|
|
|
133
|
-
# 메모 추가 (
|
|
134
|
-
paragraph =
|
|
135
|
-
doc.add_memo_with_anchor("검토 필요", paragraph=paragraph)
|
|
102
|
+
# 메모 추가 (기본 템플릿의 memo shape 사용)
|
|
103
|
+
doc.add_memo_with_anchor("검토 필요", paragraph=paragraph, memo_shape_id_ref="0")
|
|
136
104
|
|
|
137
105
|
# 저장
|
|
138
106
|
doc.save_to_path("결과물.hwpx")
|
|
@@ -166,7 +134,7 @@ doc.save_to_path("결과물.hwpx")
|
|
|
166
134
|
| 🎨 **스타일 치환** | 서식 기반 필터 | 색상/밑줄/charPrIDRef 기반 Run 검색 및 교체 |
|
|
167
135
|
| 📤 **내보내기** | 텍스트/HTML/Markdown | 문서 변환 출력 |
|
|
168
136
|
| ✅ **유효성 검사** | XSD + 패키지 구조 | CLI(`hwpx-validate`, `hwpx-validate-package`) 및 API |
|
|
169
|
-
| 🧰
|
|
137
|
+
| 🧰 **작업 도구** | unpack/pack/분석/비교 | pack-ready 작업 디렉터리 추출과 재구성 점검 |
|
|
170
138
|
| 🏗️ **저수준 XML** | 데이터클래스 매핑 | OWPML 스키마 ↔ Python 객체 직접 조작 |
|
|
171
139
|
| 🔄 **네임스페이스 호환** | 자동 정규화 | HWPML 2016 → 2011 자동 변환 |
|
|
172
140
|
|
|
@@ -174,7 +142,7 @@ doc.save_to_path("결과물.hwpx")
|
|
|
174
142
|
|
|
175
143
|
### 📄 문서 편집
|
|
176
144
|
|
|
177
|
-
문단, 표, 메모,
|
|
145
|
+
문단, 표, 메모, 머리글/바닥글을 Python 객체로 다룹니다.
|
|
178
146
|
|
|
179
147
|
```python
|
|
180
148
|
# 단락 추가·삭제
|
|
@@ -186,9 +154,9 @@ new_sec = doc.add_section() # 문서 끝에 섹션 추가
|
|
|
186
154
|
new_sec.add_paragraph("두 번째 섹션 내용")
|
|
187
155
|
doc.remove_section(1) # 인덱스로 섹션 삭제
|
|
188
156
|
|
|
189
|
-
#
|
|
157
|
+
# 머리글·바닥글
|
|
190
158
|
doc.set_header_text("기밀 문서", page_type="BOTH")
|
|
191
|
-
doc.set_footer_text("
|
|
159
|
+
doc.set_footer_text("1 / 10", page_type="BOTH")
|
|
192
160
|
|
|
193
161
|
# 표 셀 병합·분할
|
|
194
162
|
table.merge_cells(0, 0, 1, 1) # (0,0)~(1,1) 병합
|
|
@@ -201,13 +169,14 @@ table.set_cell_text(0, 0, "병합된 셀", logical=True, split_merged=True)
|
|
|
201
169
|
from hwpx import TextExtractor, ObjectFinder
|
|
202
170
|
|
|
203
171
|
# 텍스트 추출
|
|
204
|
-
|
|
205
|
-
for
|
|
206
|
-
|
|
172
|
+
with TextExtractor("문서.hwpx") as extractor:
|
|
173
|
+
for section in extractor.iter_sections():
|
|
174
|
+
for para in extractor.iter_paragraphs(section):
|
|
175
|
+
print(para.text())
|
|
207
176
|
|
|
208
177
|
# 특정 객체 탐색
|
|
209
|
-
for obj in ObjectFinder("문서.hwpx").
|
|
210
|
-
print(obj.tag, obj.
|
|
178
|
+
for obj in ObjectFinder("문서.hwpx").find_all(tag="tbl"):
|
|
179
|
+
print(obj.tag, obj.path)
|
|
211
180
|
```
|
|
212
181
|
|
|
213
182
|
### 🎨 스타일 기반 텍스트 치환
|
|
@@ -270,7 +239,7 @@ python-hwpx
|
|
|
270
239
|
│ ├── exporter # 텍스트/HTML/Markdown 내보내기
|
|
271
240
|
│ ├── validator # 스키마 유효성 검사 (hwpx-validate CLI)
|
|
272
241
|
│ ├── package_validator# ZIP/OPC/HWPX 구조 검사
|
|
273
|
-
│ ├── page_guard #
|
|
242
|
+
│ ├── page_guard # 구조 변화 징후 점검
|
|
274
243
|
│ └── template_analyzer# 레퍼런스 문서 분석/추출
|
|
275
244
|
└── hwpx.templates # 내장 빈 문서 템플릿
|
|
276
245
|
```
|
|
@@ -289,7 +258,7 @@ hwpx-unpack 문서.hwpx ./unpacked
|
|
|
289
258
|
hwpx-unpack 문서.hwpx ./pretty-unpacked --pretty-xml
|
|
290
259
|
hwpx-pack ./unpacked ./repacked.hwpx
|
|
291
260
|
|
|
292
|
-
# 레퍼런스
|
|
261
|
+
# 레퍼런스 문서 분석과 작업 디렉터리 추출
|
|
293
262
|
hwpx-analyze-template 문서.hwpx --extract-dir ./template-parts --json
|
|
294
263
|
hwpx-pack ./template-parts ./template-roundtrip.hwpx
|
|
295
264
|
hwpx-validate-package ./template-roundtrip.hwpx
|
|
@@ -297,15 +266,15 @@ hwpx-validate-package ./template-roundtrip.hwpx
|
|
|
297
266
|
# plain / markdown 텍스트 추출
|
|
298
267
|
hwpx-text-extract 문서.hwpx --format markdown --output 문서.md
|
|
299
268
|
|
|
300
|
-
#
|
|
269
|
+
# 문서 구조 변화 징후 비교
|
|
301
270
|
hwpx-page-guard --reference 원본.hwpx --output 결과.hwpx
|
|
302
271
|
```
|
|
303
272
|
|
|
304
|
-
`hwpx-page-guard`는 렌더된 실제 쪽수를 계산하지 않습니다. 대신 단락 수, 표 수, shape/control 수, 명시적 page/column break, 텍스트 길이
|
|
273
|
+
`hwpx-page-guard`는 렌더된 실제 쪽수를 계산하지 않습니다. 대신 단락 수, 표 수, shape/control 수, 명시적 page/column break, 텍스트 길이 같은 구조 지표를 비교해 편집 전후 변화 징후를 빠르게 점검합니다.
|
|
305
274
|
|
|
306
|
-
`hwpx-validate-package`는 `Contents/content.hpf` 같은 고정 경로를
|
|
275
|
+
`hwpx-validate-package`는 `Contents/content.hpf` 같은 고정 경로를 전제로 두지 않고, `META-INF/container.xml`과 실제 rootfile/manifest 선언을 따라가며 패키지 구조를 확인합니다. 엔진이 열 수 있는 비표준 패키지는 가능한 경우 경고로 분리해 보여줍니다.
|
|
307
276
|
|
|
308
|
-
`hwpx-analyze-template --extract-dir`는
|
|
277
|
+
`hwpx-analyze-template --extract-dir`는 다시 묶고 점검하기 쉬운 작업 디렉터리를 만듭니다. 재구성과 구조 검증에 필요한 파일을 함께 꺼내는 용도이며, 편집기에서의 최종 렌더링 결과까지 보장한다는 뜻은 아닙니다.
|
|
309
278
|
|
|
310
279
|
## 문서
|
|
311
280
|
|
|
@@ -352,13 +321,15 @@ pytest
|
|
|
352
321
|
|
|
353
322
|
## License
|
|
354
323
|
|
|
355
|
-
[
|
|
324
|
+
[Custom Non-Commercial License](LICENSE) © python-hwpx Maintainers
|
|
325
|
+
|
|
326
|
+
Commercial use requires separate permission from the copyright holders.
|
|
356
327
|
|
|
357
328
|
<br>
|
|
358
329
|
|
|
359
|
-
##
|
|
330
|
+
## Maintainer
|
|
360
331
|
|
|
361
|
-
**고규현** — 광교고등학교 정보·컴퓨터 교사
|
|
332
|
+
Primary maintainer/contact: **고규현** — 광교고등학교 정보·컴퓨터 교사
|
|
362
333
|
|
|
363
334
|
- ✉️ [kokyuhyun@hotmail.com](mailto:kokyuhyun@hotmail.com)
|
|
364
335
|
- 🐙 [@airmang](https://github.com/airmang)
|
|
@@ -10,7 +10,7 @@ hwpx/opc/xml_utils.py,sha256=1Cr9ZGR0z1N0NaFxnaHcC7Ne38UoyERGEd878F3co5s,3445
|
|
|
10
10
|
hwpx/oxml/__init__.py,sha256=N7APpTysxbxfZ2UehK2pGeiAuP0MeQrUA8hzIkY4mkQ,4962
|
|
11
11
|
hwpx/oxml/body.py,sha256=ALvxB_sLU-EoNpldMlnbv4QZEUXyWJMj6cwWVNRXRx4,13284
|
|
12
12
|
hwpx/oxml/common.py,sha256=-WkPxXsAcCxddzRPBfVHS_nZBuSd5g3_CzZyz2lU7Ss,1006
|
|
13
|
-
hwpx/oxml/document.py,sha256=
|
|
13
|
+
hwpx/oxml/document.py,sha256=bbdkMaSvTdRJWK7s9J-HIMROka1GM-jhY9bBUWlw3hI,171224
|
|
14
14
|
hwpx/oxml/header.py,sha256=L1gcBMgROFX9mH8Fj9Kipb7tKWItTKO4mxBbwaoLpDM,43042
|
|
15
15
|
hwpx/oxml/header_part.py,sha256=HXTDlaUzZ6DVfiZDGge2FuqTstEmUqdobiJ0dqjuYyk,193
|
|
16
16
|
hwpx/oxml/memo.py,sha256=qow_mWIQv0AlnIdFdnaL9n-tR0Xws0kv2lGNzefrCB8,190
|
|
@@ -33,9 +33,9 @@ hwpx/tools/text_extractor.py,sha256=LQOll7EZBP_QhRjiGofJAoMdZg7SUYVzeEr4JhMKYOg,
|
|
|
33
33
|
hwpx/tools/validator.py,sha256=KThqBQKKQfZkuLMGtzONbPkzy877-2FgT22FHPmt_gI,5979
|
|
34
34
|
hwpx/tools/_schemas/header.xsd,sha256=mJXuFMuHGT1JnFFaluUpYUglwjMCNlfbFCRVM26eHXE,664
|
|
35
35
|
hwpx/tools/_schemas/section.xsd,sha256=MgvavVHG05RDfUnVPxVU10H4FQOja5ON04_m9Uk_m7E,522
|
|
36
|
-
python_hwpx-2.8.dist-info/licenses/LICENSE,sha256=3F1-JUTcmjmxMpHGeB77ZzaSdhms3h8p1DBBa3lvV08,1609
|
|
37
|
-
python_hwpx-2.8.dist-info/METADATA,sha256=
|
|
38
|
-
python_hwpx-2.8.dist-info/WHEEL,sha256=
|
|
39
|
-
python_hwpx-2.8.dist-info/entry_points.txt,sha256=zKneV9VceQKwbJUo-mUUbwRmQjNyNSzrv44XuMhsaUU,368
|
|
40
|
-
python_hwpx-2.8.dist-info/top_level.txt,sha256=R1iToqDh80Nf2oQhRjTN0rbN2X6kyDUizIocZjkhuxc,5
|
|
41
|
-
python_hwpx-2.8.dist-info/RECORD,,
|
|
36
|
+
python_hwpx-2.8.3.dist-info/licenses/LICENSE,sha256=3F1-JUTcmjmxMpHGeB77ZzaSdhms3h8p1DBBa3lvV08,1609
|
|
37
|
+
python_hwpx-2.8.3.dist-info/METADATA,sha256=hjStxO4V0H5DBVmp-pmIr8ZCAQRHTQyGhIHlfEAN-uI,13673
|
|
38
|
+
python_hwpx-2.8.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
39
|
+
python_hwpx-2.8.3.dist-info/entry_points.txt,sha256=zKneV9VceQKwbJUo-mUUbwRmQjNyNSzrv44XuMhsaUU,368
|
|
40
|
+
python_hwpx-2.8.3.dist-info/top_level.txt,sha256=R1iToqDh80Nf2oQhRjTN0rbN2X6kyDUizIocZjkhuxc,5
|
|
41
|
+
python_hwpx-2.8.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|