team-ljyzipelo

공개

Pretendard 글꼴을 포함하고 배포 고지에 넣음

Pretendard 1.3.9 Regular(SIL OFL 1.1)를 원본 그대로 포함함. 출처와 체크섬은
assets/fonts/README.md에 기록함. licenses.py는 Rust crate 밖의 포함 자산
원문을 THIRD-PARTY-LICENSES.txt에 넣고, 글꼴이나 원문이 없으면 배포를 중단함.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
작성자
LeeJunyoung
작성 시각
커밋
6db782b4f8f900dd813bedc35c36a4f93cf84385
부모
fc69467
이 시점의 파일 보기

변경된 파일 5개

+143-3
수정experiments/rust-ui-memory-app/THIRD-PARTY-NOTICES.txt+1-0
@@ -5,3 +5,4 @@ Zipelo 의존성 고지 생성 안내
55로컬 registry의 원문과 잠금 체크섬을 확인하며 누락 시 패키지 생성을 중단함.
66이 안내 파일과 과거 시험용 보충 원문은 최종 배포 고지를 대신하지 않음.
77운영체제 기본 파일 창의 rfd 0.16.0(MIT)과 Linux xdg-portal 전이 의존성도 잠금 파일에서 수집함.
8추가: 앱에 포함한 Pretendard 1.3.9 글꼴(SIL OFL 1.1)의 원문도 같은 고지에 넣음. 출처는 src/assets/fonts/README.md임.
추가experiments/rust-ui-memory-app/src/assets/fonts/OFL.txt+94-0
@@ -0,0 +1,94 @@
1추가: Copyright (c) 2021, Kil Hyung-jin (https://github.com/orioncactus/pretendard),
2추가: with Reserved Font Name Pretendard.
3추가:
4추가: This Font Software is licensed under the SIL Open Font License, Version 1.1.
5추가: This license is copied below, and is also available with a FAQ at:
6추가: https://scripts.sil.org/OFL
7추가:
8추가:
9추가: -----------------------------------------------------------
10추가: SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11추가: -----------------------------------------------------------
12추가:
13추가: PREAMBLE
14추가: The goals of the Open Font License (OFL) are to stimulate worldwide
15추가: development of collaborative font projects, to support the font creation
16추가: efforts of academic and linguistic communities, and to provide a free and
17추가: open framework in which fonts may be shared and improved in partnership
18추가: with others.
19추가:
20추가: The OFL allows the licensed fonts to be used, studied, modified and
21추가: redistributed freely as long as they are not sold by themselves. The
22추가: fonts, including any derivative works, can be bundled, embedded,
23추가: redistributed and/or sold with any software provided that any reserved
24추가: names are not used by derivative works. The fonts and derivatives,
25추가: however, cannot be released under any other type of license. The
26추가: requirement for fonts to remain under this license does not apply
27추가: to any document created using the fonts or their derivatives.
28추가:
29추가: DEFINITIONS
30추가: "Font Software" refers to the set of files released by the Copyright
31추가: Holder(s) under this license and clearly marked as such. This may
32추가: include source files, build scripts and documentation.
33추가:
34추가: "Reserved Font Name" refers to any names specified as such after the
35추가: copyright statement(s).
36추가:
37추가: "Original Version" refers to the collection of Font Software components as
38추가: distributed by the Copyright Holder(s).
39추가:
40추가: "Modified Version" refers to any derivative made by adding to, deleting,
41추가: or substituting -- in part or in whole -- any of the components of the
42추가: Original Version, by changing formats or by porting the Font Software to a
43추가: new environment.
44추가:
45추가: "Author" refers to any designer, engineer, programmer, technical
46추가: writer or other person who contributed to the Font Software.
47추가:
48추가: PERMISSION & CONDITIONS
49추가: Permission is hereby granted, free of charge, to any person obtaining
50추가: a copy of the Font Software, to use, study, copy, merge, embed, modify,
51추가: redistribute, and sell modified and unmodified copies of the Font
52추가: Software, subject to the following conditions:
53추가:
54추가: 1) Neither the Font Software nor any of its individual components,
55추가: in Original or Modified Versions, may be sold by itself.
56추가:
57추가: 2) Original or Modified Versions of the Font Software may be bundled,
58추가: redistributed and/or sold with any software, provided that each copy
59추가: contains the above copyright notice and this license. These can be
60추가: included either as stand-alone text files, human-readable headers or
61추가: in the appropriate machine-readable metadata fields within text or
62추가: binary files as long as those fields can be easily viewed by the user.
63추가:
64추가: 3) No Modified Version of the Font Software may use the Reserved Font
65추가: Name(s) unless explicit written permission is granted by the corresponding
66추가: Copyright Holder. This restriction only applies to the primary font name as
67추가: presented to the users.
68추가:
69추가: 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70추가: Software shall not be used to promote, endorse or advertise any
71추가: Modified Version, except to acknowledge the contribution(s) of the
72추가: Copyright Holder(s) and the Author(s) or with their explicit written
73추가: permission.
74추가:
75추가: 5) The Font Software, modified or unmodified, in part or in whole,
76추가: must be distributed entirely under this license, and must not be
77추가: distributed under any other license. The requirement for fonts to
78추가: remain under this license does not apply to any document created
79추가: using the Font Software.
80추가:
81추가: TERMINATION
82추가: This license becomes null and void if any of the above conditions are
83추가: not met.
84추가:
85추가: DISCLAIMER
86추가: THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87추가: EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88추가: MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89추가: OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90추가: COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91추가: INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92추가: DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93추가: FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94추가: OTHER DEALINGS IN THE FONT SOFTWARE.
추가experiments/rust-ui-memory-app/src/assets/fonts/Pretendard-Regular.ttf

바이너리 파일이라 Diff를 표시하지 않아요.

파일 내려받기
추가experiments/rust-ui-memory-app/src/assets/fonts/README.md+11-0
@@ -0,0 +1,11 @@
1추가: # 포함 글꼴
2추가:
3추가: | 파일 | 출처 | 라이선스 |
4추가: | --- | --- | --- |
5추가: | Pretendard-Regular.ttf | [Pretendard v1.3.9](https://github.com/orioncactus/pretendard/releases/tag/v1.3.9) `Pretendard-1.3.9.zip`의 `public/static/alternative/Pretendard-Regular.ttf` | SIL OFL 1.1 (`OFL.txt`) |
6추가:
7추가: - 릴리스 압축파일 SHA-256: `04be351a74d6bf7d60c480a3087e51d185485d35a52023142af1df19eb8c428a`
8추가: - 글꼴 파일 SHA-256: `6d0af5258997aec7354a6e340fc2325ba321c410ca48b3af858c8c3d6e92a324`
9추가: - `OFL.txt`는 같은 압축파일의 `LICENSE.txt` 원문임.
10추가: - 예약 글꼴 이름(Pretendard)이 있으므로 하위 집합 추출이나 변환 없이 원본 그대로 포함함.
11추가: - 배포 고지는 `packaging/licenses.py`가 `THIRD-PARTY-LICENSES.txt`에 이 원문을 넣음.
수정packaging/licenses.py+37-3
@@ -189,13 +189,47 @@ def inventory(manifests, project_root=None, supplement_path=ROOT / "packaging/li
189189 return [records[key] for key in sorted(records)]
190190
191191
192추가: # 앱에 그대로 포함하는 Rust crate 밖의 자산. 원문 고지가 없으면 배포를 중단함.
193추가: BUNDLED = [
194추가: {
195추가: "kind": "Font",
196추가: "name": "Pretendard",
197추가: "version": "1.3.9",
198추가: "license": "OFL-1.1",
199추가: "source": "https://github.com/orioncactus/pretendard/releases/tag/v1.3.9",
200추가: "asset": "experiments/rust-ui-memory-app/src/assets/fonts/Pretendard-Regular.ttf",
201추가: "license_file": "experiments/rust-ui-memory-app/src/assets/fonts/OFL.txt",
202추가: },
203추가: ]
204추가:
205추가:
206추가: def bundled_records(root=ROOT):
207추가: records = []
208추가: for item in BUNDLED:
209추가: asset = root / item["asset"]
210추가: license_file = root / item["license_file"]
211추가: if not asset.is_file() or not license_file.is_file():
212추가: raise ValueError(f"포함 자산 또는 원문 누락: {item['name']}")
213추가: content = license_file.read_bytes()
214추가: records.append({
215추가: "kind": item["kind"], "name": item["name"], "version": item["version"],
216추가: "source": item["source"], "license": item["license"],
217추가: "files": [{
218추가: "path": item["license_file"], "sha256": hashlib.sha256(content).hexdigest(),
219추가: "note": f"Asset: {item['asset']} (SHA-256 {hashlib.sha256(asset.read_bytes()).hexdigest()})",
220추가: "text": content.decode("utf-8"),
221추가: }],
222추가: })
223추가: return records
224추가:
225추가:
192226def render(records):
193227 missing = [f'{record["name"]}@{record["version"]}' for record in records if not record["files"]]
194228 if missing:
195229 raise ValueError(f"라이선스 원문 누락 {len(missing)}개: " + ", ".join(missing))
196삭제: lines = ["Zipelo third-party licenses", "Cargo.lock 전체 의존성의 원문 고지 (로컬 registry 및 고정 upstream 보충)", ""]
230추가: lines = ["Zipelo third-party licenses", "Cargo.lock 전체 의존성과 앱에 포함한 자산의 원문 고지 (로컬 registry 및 고정 upstream 보충)", ""]
197231 for record in records:
198삭제: lines.extend(["=" * 72, f'Crate: {record["name"]} {record["version"]}',
232추가: lines.extend(["=" * 72, f'{record.get("kind", "Crate")}: {record["name"]} {record["version"]}',
199233 f'Source: {record["source"]}', f'License: {record["license"]}', f'Version: {record["version"]}', ""])
200234 for file in record["files"]:
201235 lines.extend([f'File: {file["path"]}', f'SHA-256: {file["sha256"]}'])
@@ -206,7 +240,7 @@ def render(records):
206240
207241
208242def generate(manifests, output, audit=None):
209삭제: records = inventory(manifests)
243추가: records = inventory(manifests) + bundled_records()
210244 if audit:
211245 Path(audit).write_text(json.dumps(records, ensure_ascii=False, indent=4) + "\n", encoding="utf-8")
212246 text = render(records)