@eliceio/cdk-cli 1.2.1 → 1.3.0-contenttypes.1
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.
- package/README.md +63 -53
- package/es/cli.js +11 -2
- package/es/commands/build/index.js +12 -0
- package/es/commands/create/index.js +2 -0
- package/es/commands/create/scaffold.d.ts +2 -2
- package/es/commands/create/scaffold.js +3 -3
- package/es/commands/dev/index.d.ts +10 -1
- package/es/commands/dev/index.js +47 -7
- package/es/commands/doctor/index.js +6 -2
- package/es/core/config.d.ts +42 -9
- package/es/core/config.js +217 -12
- package/es/core/project-check.d.ts +3 -2
- package/es/core/project-check.js +14 -3
- package/es/core/regex.d.ts +11 -0
- package/es/core/regex.js +41 -0
- package/es/core/sandbox.d.ts +26 -0
- package/es/core/sandbox.js +240 -30
- package/es/dev/assets.d.ts +80 -0
- package/es/dev/assets.js +240 -0
- package/es/dev/check.d.ts +30 -0
- package/es/dev/check.js +224 -34
- package/es/dev/grading.d.ts +49 -14
- package/es/dev/grading.js +109 -29
- package/es/dev/host-page.js +27 -3
- package/es/dev/inject.d.ts +2 -1
- package/es/dev/inject.js +10 -2
- package/es/dev/mock-api.d.ts +26 -3
- package/es/dev/mock-api.js +219 -40
- package/es/dev/server.d.ts +12 -1
- package/es/dev/server.js +115 -9
- package/es/engines/vite/index.js +1 -1
- package/es/engines/vite/plugin.d.ts +2 -0
- package/es/engines/vite/plugin.js +33 -5
- package/es/rules/answers.d.ts +13 -0
- package/es/rules/answers.js +94 -0
- package/es/rules/check.js +70 -1
- package/es/rules/index.d.ts +1 -0
- package/es/rules/index.js +1 -0
- package/es/rules/size.d.ts +31 -0
- package/es/rules/size.js +58 -0
- package/es/rules/types.d.ts +12 -0
- package/es/rules.json.js +2 -2
- package/package.json +2 -2
- package/rules.json +34 -5
- package/skills/_shared/always.md +3 -3
- package/skills/_shared/references/00-what-the-person-decides.md +1 -1
- package/skills/_shared/references/02-design-the-material.md +10 -7
- package/skills/_shared/references/03-create-the-project.md +10 -8
- package/skills/_shared/references/04-rules.md +1 -1
- package/skills/_shared/references/05-screen-code.md +52 -23
- package/skills/_shared/references/06-using-the-quiz-template.md +7 -6
- package/skills/_shared/references/08-fix-check-errors.md +23 -22
- package/skills/_shared/references/09-check.md +8 -6
- package/skills/_shared/references/12-upload-with-the-material-mcp.md +13 -13
- package/skills/_shared/references/13-edit-screen-design.md +122 -0
- package/skills/_shared/references/14-layouts.md +96 -0
- package/skills/elice-content-check/SKILL.md +2 -2
- package/skills/elice-content-create/SKILL.md +1 -1
- package/skills/elice-content-migrate/SKILL.md +1 -1
- package/skills/elice-content-publish/SKILL.md +1 -1
- package/templates/_shared/lib/cdk-mock.d.ts +47 -3
- package/templates/_shared/lib/cdk-mock.js +293 -15
- package/templates/_shared/lib/elice-content-editor.js +89 -58
- package/templates/_shared/lib/elice-content.css +1313 -126
- package/templates/_shared/lib/elice-content.d.ts +222 -23
- package/templates/_shared/lib/elice-content.js +1176 -88
- package/templates/_shared/lib/icons/empty-content.d.ts +2 -0
- package/templates/_shared/lib/icons/empty-content.js +11 -0
- package/templates/_shared/lib/icons/file-video.d.ts +2 -0
- package/templates/_shared/lib/icons/file-video.js +11 -0
- package/templates/_shared/lib/icons/file.d.ts +2 -0
- package/templates/_shared/lib/icons/file.js +11 -0
- package/templates/blank/README.md +6 -4
- package/templates/blank/edit.html +8 -2
- package/templates/blank/index.html +6 -1
- package/templates/blank/instructor.html +6 -1
- package/templates/blank/screens/instructor.js +8 -2
- package/templates/blank/screens/learn.js +1 -1
- package/templates/blank/template.json +1 -1
- package/templates/document/README.md +92 -0
- package/templates/document/commentary.txt +2 -0
- package/templates/document/core/dom.d.ts +13 -0
- package/templates/document/core/dom.js +83 -0
- package/templates/document/core/file-type.d.ts +21 -0
- package/templates/document/core/file-type.js +85 -0
- package/templates/document/core/group-3d.d.ts +20 -0
- package/templates/document/core/group-3d.js +256 -0
- package/templates/document/core/inline-edit.d.ts +15 -0
- package/templates/document/core/inline-edit.js +377 -0
- package/templates/document/core/load.d.ts +13 -0
- package/templates/document/core/load.js +40 -0
- package/templates/document/core/pdf-options.d.ts +9 -0
- package/templates/document/core/pdf-options.js +36 -0
- package/templates/document/core/pdf-worker.d.ts +24 -0
- package/templates/document/core/pdf-worker.js +122 -0
- package/templates/document/core/pdf.d.ts +12 -0
- package/templates/document/core/pdf.js +190 -0
- package/templates/document/core/pptx-edit.d.ts +14 -0
- package/templates/document/core/pptx-edit.js +137 -0
- package/templates/document/core/pptx-fonts.d.ts +5 -0
- package/templates/document/core/pptx-fonts.js +115 -0
- package/templates/document/core/pptx-media.d.ts +18 -0
- package/templates/document/core/pptx-media.js +83 -0
- package/templates/document/core/pptx-view.d.ts +5 -0
- package/templates/document/core/pptx-view.js +185 -0
- package/templates/document/core/settings.d.ts +25 -0
- package/templates/document/core/settings.js +86 -0
- package/templates/document/core/slide-edges.d.ts +3 -0
- package/templates/document/core/slide-edges.js +82 -0
- package/templates/document/core/viewer.d.ts +28 -0
- package/templates/document/core/viewer.js +159 -0
- package/templates/document/edit.html +17 -0
- package/templates/document/gitignore +4 -0
- package/templates/document/index.html +18 -0
- package/templates/document/metadata.json +9 -0
- package/templates/document/package.json +17 -0
- package/templates/document/public/fonts/OFL-Caladea.txt +93 -0
- package/templates/document/public/fonts/OFL-Carlito.txt +93 -0
- package/templates/document/public/fonts/caladea-latin-400-normal.woff2 +0 -0
- package/templates/document/public/fonts/caladea-latin-700-normal.woff2 +0 -0
- package/templates/document/public/fonts/carlito-latin-400-normal.woff2 +0 -0
- package/templates/document/public/fonts/carlito-latin-700-normal.woff2 +0 -0
- package/templates/document/screens/edit.js +574 -0
- package/templates/document/screens/learn.js +61 -0
- package/templates/document/styles.css +644 -0
- package/templates/document/template.json +6 -0
- package/templates/document/ui/templates/edit.js +82 -0
- package/templates/document/ui/templates/page.js +11 -0
- package/templates/document/ui/templates/viewer.js +41 -0
- package/templates/document/ui/texts.d.ts +3 -0
- package/templates/document/ui/texts.js +62 -0
- package/templates/document/ui/theme.css +69 -0
- package/templates/quiz/README.md +32 -14
- package/templates/quiz/core/behaviors.d.ts +17 -7
- package/templates/quiz/core/behaviors.js +40 -53
- package/templates/quiz/core/editor.d.ts +27 -2
- package/templates/quiz/core/editor.js +412 -11
- package/templates/quiz/core/markdown.d.ts +19 -0
- package/templates/quiz/core/markdown.js +225 -11
- package/templates/quiz/core/model.d.ts +40 -3
- package/templates/quiz/core/model.js +112 -5
- package/templates/quiz/core/rich-text.d.ts +18 -0
- package/templates/quiz/core/rich-text.js +469 -0
- package/templates/quiz/edit.html +12 -3
- package/templates/quiz/index.html +12 -3
- package/templates/quiz/public/img/mascot-half.webp +0 -0
- package/templates/quiz/screens/edit.js +331 -49
- package/templates/quiz/screens/learn.js +147 -15
- package/templates/quiz/styles.css +1244 -622
- package/templates/quiz/template.json +9 -2
- package/templates/quiz/ui/templates/edit.d.ts +19 -5
- package/templates/quiz/ui/templates/edit.js +371 -77
- package/templates/quiz/ui/templates/group.js +19 -8
- package/templates/quiz/ui/templates/order.js +25 -24
- package/templates/quiz/ui/templates/page.js +33 -8
- package/templates/quiz/ui/templates/question.js +6 -4
- package/templates/quiz/ui/texts.js +91 -26
- package/templates/quiz/ui/theme.css +8 -9
- package/templates/steps/README.md +77 -0
- package/templates/steps/commentary.txt +7 -0
- package/templates/steps/edit.html +21 -0
- package/templates/steps/gitignore +4 -0
- package/templates/steps/index.html +69 -0
- package/templates/steps/metadata.json +9 -0
- package/templates/steps/package.json +13 -0
- package/templates/steps/screens/edit.js +32 -0
- package/templates/steps/screens/learn.js +108 -0
- package/templates/steps/styles.css +54 -0
- package/templates/steps/template.json +6 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// 문서 뷰어 동작 (고치지 않습니다): 쪽 넘기기 · n / N · 쪽 번호 입력 · 폭 맞춤 · 키보드 · 크기 바뀌면 다시 맞춤 (확대 버튼 없음).
|
|
2
|
+
// 마크업은 ui/templates/viewer.js (data-role로 찾음), 그리기는 core/pdf.js · core/pptx-view.js가 합니다.
|
|
3
|
+
import { part } from './dom.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 맞춤 배율: 쪽 전체가 보이게(contain) 무대 폭 · 높이에 맞춘다. 높이 한도가 없으면(0) 폭에만
|
|
7
|
+
* @param {{ width: number, height: number }} page 배율 1의 쪽 크기
|
|
8
|
+
* @param {{ width: number, height: number }} stage 그릴 수 있는 크기
|
|
9
|
+
*/
|
|
10
|
+
export function fitScale(page, stage) {
|
|
11
|
+
if (!(page.width > 0) || !(stage.width > 0)) return 1;
|
|
12
|
+
const byWidth = stage.width / page.width;
|
|
13
|
+
return stage.height > 0 ? Math.min(byWidth, stage.height / page.height) : byWidth;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 뷰어 틀(root)에 문서(doc)를 붙인다.
|
|
18
|
+
* @param {HTMLElement} root ui/templates/viewer.js viewer()
|
|
19
|
+
* @param {{ count: number, pageSize: (i: number) => { width: number, height: number }, render: (i: number, target: HTMLElement, scale: number) => Promise<boolean> }} doc
|
|
20
|
+
* @param {{ start?: number, maxHeight?: () => number, onPage?: (i: number, info: { scale: number, size: { width: number, height: number } }) => void, errorText?: (e: unknown) => string | null }} [opts]
|
|
21
|
+
* maxHeight를 주면 쪽 전체가 그 높이 안에 들어오게, 없으면 폭에 맞춘다.
|
|
22
|
+
* errorText: 쪽을 그리지 못했을 때 alert 자리에 보일 글 (null이면 보이지 않음). 다시 시도하지 않고, 다른 쪽을 그리면 지운다
|
|
23
|
+
*/
|
|
24
|
+
export function mountViewer(root, doc, opts = {}) {
|
|
25
|
+
const stage = part(root, 'stage');
|
|
26
|
+
const sheet = part(root, 'sheet');
|
|
27
|
+
const target = part(root, 'page');
|
|
28
|
+
const prev = part(root, 'prev');
|
|
29
|
+
const next = part(root, 'next');
|
|
30
|
+
const current = part(root, 'current');
|
|
31
|
+
const total = part(root, 'total');
|
|
32
|
+
const alert = root.querySelector('[data-role="alert"]');
|
|
33
|
+
const showAlert = (text) => {
|
|
34
|
+
if (!alert) return;
|
|
35
|
+
alert.textContent = text ?? '';
|
|
36
|
+
alert.hidden = !text;
|
|
37
|
+
// 안내하는 동안은 빈 쪽 틀을 보이지 않는다
|
|
38
|
+
sheet.style.visibility = text ? 'hidden' : '';
|
|
39
|
+
};
|
|
40
|
+
let index = Math.min(Math.max(0, opts.start ?? 0), doc.count - 1);
|
|
41
|
+
let drawn = Promise.resolve();
|
|
42
|
+
total.textContent = String(doc.count);
|
|
43
|
+
// 쪽 번호: 입력 칸(<input>)이면 값, 아니면 글
|
|
44
|
+
const isInput = current instanceof HTMLInputElement;
|
|
45
|
+
const showCurrent = () => {
|
|
46
|
+
if (isInput) current.value = String(index + 1);
|
|
47
|
+
else current.textContent = String(index + 1);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const available = () => {
|
|
51
|
+
const style = getComputedStyle(stage);
|
|
52
|
+
const pad = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0);
|
|
53
|
+
return {
|
|
54
|
+
width: Math.max(0, stage.clientWidth - pad),
|
|
55
|
+
height: Math.max(0, opts.maxHeight ? opts.maxHeight() : 0),
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
function draw() {
|
|
60
|
+
const size = doc.pageSize(index);
|
|
61
|
+
const scale = fitScale(size, available());
|
|
62
|
+
sheet.style.width = `${size.width * scale}px`;
|
|
63
|
+
sheet.style.height = `${size.height * scale}px`;
|
|
64
|
+
showCurrent();
|
|
65
|
+
prev.disabled = index === 0;
|
|
66
|
+
next.disabled = index === doc.count - 1;
|
|
67
|
+
const i = index;
|
|
68
|
+
drawn = doc.render(i, target, scale).then(
|
|
69
|
+
(ok) => {
|
|
70
|
+
if (ok && i === index) {
|
|
71
|
+
showAlert(null);
|
|
72
|
+
opts.onPage?.(i, { scale, size });
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
(e) => {
|
|
76
|
+
console.error('[document] 쪽을 그리지 못했습니다', i + 1, e);
|
|
77
|
+
if (i !== index) return;
|
|
78
|
+
// 안내할 글이 있으면 앞 쪽 그림이 남아 다른 쪽처럼 보이지 않게 비우고, 빈 쪽 틀 대신 안내만
|
|
79
|
+
const text = opts.errorText?.(e) ?? null;
|
|
80
|
+
if (text) target.replaceChildren();
|
|
81
|
+
showAlert(text);
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
drawn.catch(() => undefined);
|
|
85
|
+
return drawn;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function go(i) {
|
|
89
|
+
const n = Math.min(Math.max(0, i), doc.count - 1);
|
|
90
|
+
if (n === index) return drawn;
|
|
91
|
+
index = n;
|
|
92
|
+
stage.scrollTo?.({ top: 0, left: 0 });
|
|
93
|
+
return draw();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
prev.addEventListener('click', () => go(index - 1));
|
|
98
|
+
next.addEventListener('click', () => go(index + 1));
|
|
99
|
+
if (isInput) {
|
|
100
|
+
// 누르면 숫자 전체 선택, Enter면 확정, 숫자가 아니거나 범위 밖이면 가까운 쪽으로 · 지금 쪽 번호로 되돌림
|
|
101
|
+
current.addEventListener('focus', () => current.select());
|
|
102
|
+
current.addEventListener('keydown', (e) => {
|
|
103
|
+
if (e.key !== 'Enter') return;
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
current.blur();
|
|
106
|
+
});
|
|
107
|
+
current.addEventListener('change', () => {
|
|
108
|
+
const n = Number.parseInt(current.value, 10);
|
|
109
|
+
if (!Number.isNaN(n)) void go(n - 1);
|
|
110
|
+
showCurrent();
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
stage.addEventListener('keydown', (e) => {
|
|
114
|
+
if (e.target !== stage) return;
|
|
115
|
+
const keys = {
|
|
116
|
+
ArrowLeft: index - 1,
|
|
117
|
+
ArrowRight: index + 1,
|
|
118
|
+
PageUp: index - 1,
|
|
119
|
+
PageDown: index + 1,
|
|
120
|
+
Home: 0,
|
|
121
|
+
End: doc.count - 1,
|
|
122
|
+
};
|
|
123
|
+
if (!(e.key in keys)) return;
|
|
124
|
+
e.preventDefault();
|
|
125
|
+
void go(keys[e.key]);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// 화면 크기가 바뀌면 다시 맞춘다 (PDF는 다시 그리므로 잠깐 기다렸다가). 높이 한도(maxHeight)가 있으면 높이 변화도
|
|
129
|
+
let timer = 0;
|
|
130
|
+
let lastSize = '';
|
|
131
|
+
const observer =
|
|
132
|
+
typeof ResizeObserver === 'undefined'
|
|
133
|
+
? null
|
|
134
|
+
: new ResizeObserver(() => {
|
|
135
|
+
const size = `${stage.clientWidth}x${opts.maxHeight ? stage.clientHeight : 0}`;
|
|
136
|
+
if (size === lastSize) return;
|
|
137
|
+
lastSize = size;
|
|
138
|
+
clearTimeout(timer);
|
|
139
|
+
timer = setTimeout(draw, 120);
|
|
140
|
+
});
|
|
141
|
+
observer?.observe(stage);
|
|
142
|
+
|
|
143
|
+
draw();
|
|
144
|
+
return {
|
|
145
|
+
go,
|
|
146
|
+
get page() {
|
|
147
|
+
return index;
|
|
148
|
+
},
|
|
149
|
+
/** 같은 쪽을 다시 그린다 (편집 화면이 문서를 바꾼 뒤) */
|
|
150
|
+
refresh: draw,
|
|
151
|
+
get ready() {
|
|
152
|
+
return drawn;
|
|
153
|
+
},
|
|
154
|
+
destroy() {
|
|
155
|
+
observer?.disconnect();
|
|
156
|
+
clearTimeout(timer);
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="ko">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<!-- 제목 · "불러오는 중" 문구는 ui/texts.js(page)에서 고칩니다. 여기 글은 스크립트가 돌기 전에만 쓰이고 화면 읽기 프로그램만 읽습니다 -->
|
|
7
|
+
<title>내용 편집</title>
|
|
8
|
+
<link rel="stylesheet" href="lib/elice-tokens.css" />
|
|
9
|
+
<link rel="stylesheet" href="lib/elice-content.css" />
|
|
10
|
+
<link rel="stylesheet" href="ui/theme.css" />
|
|
11
|
+
<link rel="stylesheet" href="styles.css" />
|
|
12
|
+
<script type="module" src="screens/edit.js"></script>
|
|
13
|
+
</head>
|
|
14
|
+
<body class="ec-edit-page">
|
|
15
|
+
<main id="app"><div class="ec-sk ec-sk-edit" role="status"><span class="ec-visually-hidden">불러오는 중…</span><div class="ec-sk-bar ec-sk-shimmer"></div><div class="ec-sk-media ec-sk-shimmer"></div></div></main>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="ko">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<!-- 제목 · "불러오는 중" 문구는 ui/texts.js(page)에서 고칩니다. 여기 글은 스크립트가 돌기 전에만 쓰이고 화면 읽기 프로그램만 읽습니다.
|
|
7
|
+
body.dc-learn: 첫 화면부터 어두운 바탕 (screens/learn.js도 붙임) -->
|
|
8
|
+
<title>학생 화면</title>
|
|
9
|
+
<link rel="stylesheet" href="lib/elice-tokens.css" />
|
|
10
|
+
<link rel="stylesheet" href="lib/elice-content.css" />
|
|
11
|
+
<link rel="stylesheet" href="ui/theme.css" />
|
|
12
|
+
<link rel="stylesheet" href="styles.css" />
|
|
13
|
+
<script type="module" src="screens/learn.js"></script>
|
|
14
|
+
</head>
|
|
15
|
+
<body class="dc-learn">
|
|
16
|
+
<main id="app"><div class="ec-sk ec-sk-learn ec-sk-shimmer" role="status"><span class="ec-visually-hidden">불러오는 중…</span></div></main>
|
|
17
|
+
</body>
|
|
18
|
+
</html>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "module",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "ecdk dev",
|
|
6
|
+
"build": "ecdk build",
|
|
7
|
+
"validate": "ecdk validate"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@aiden0z/pptx-renderer": "1.4.0",
|
|
11
|
+
"@eliceio/cdk": "workspace:^1.3.0",
|
|
12
|
+
"@office-kit/pptx": "0.28.0",
|
|
13
|
+
"@office-kit/pptx-editor": "0.3.0",
|
|
14
|
+
"pdfjs-dist": "6.5.438"
|
|
15
|
+
},
|
|
16
|
+
"ecdk": {}
|
|
17
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2012 The Caladea Project Authors (https://github.com/huertatipografica/Caladea) Caladea-Italic.ttf: Copyright 2012 The Caladea Project Authors (https://github.com/huertatipografica/Caladea) Caladea-Bold.ttf: Copyright 2012 The Caladea Project Authors (https://github.com/huertatipografica/Caladea) Caladea-BoldItalic.ttf: Copyright 2012 The Caladea Project Authors (https://github.com/huertatipografica/Caladea)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2013 The Carlito Project Authors (https://github.com/googlefonts/carlito) Carlito-Italic.ttf: Copyright 2013 The Carlito Project Authors (https://github.com/googlefonts/carlito) Carlito-Bold.ttf: Copyright 2013 The Carlito Project Authors (https://github.com/googlefonts/carlito) Carlito-BoldItalic.ttf: Copyright 2013 The Carlito Project Authors (https://github.com/googlefonts/carlito)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|