wani 0.1.12 → 0.1.14
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.
- checksums.yaml +4 -4
- data/README.md +126 -65
- data/assets/build.json +3 -3
- data/assets/fonts/UDEVGothic-Bold.ttf +0 -0
- data/assets/fonts/UDEVGothic-Regular.ttf +0 -0
- data/assets/style.css +18 -1
- data/assets/wani.wasm +0 -0
- data/lib/wani/browser/layout.rb +14 -8
- data/lib/wani/server/application.rb +3 -2
- data/lib/wani/version.rb +1 -1
- data/third_party/udev-gothic/LICENSE.txt +101 -0
- data/third_party/udev-gothic/README.md +17 -0
- data/third_party/udev-gothic/provenance.json +19 -0
- metadata +6 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f47f0147e24156fd966b89b0185cacd07d7afd45d285c0a0d607d44de3cb6406
|
|
4
|
+
data.tar.gz: d8209c67e888d8e909551c0842167724fa8562934fc29f76a874de0a11c2d96d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a89984cbbbb6c8466b69b89affab16e36d0791bf63bc7ecc687ee06765be2899f6f3af75b526463e26ba5cf52917b6b1f09d5584af708456365cb2eb80e71f1
|
|
7
|
+
data.tar.gz: 565853474a5a6054b46042b8bced8759a4339d12845fd4ccc2fe28f6e862013c9c802913543cf68707e166d7d80f1fdadcce7df6d9e3cdfa087f53a1640115c7
|
data/README.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Markdown からスライドを作り、ブラウザー内の Ruby でプレゼンテーションするツールです。
|
|
4
4
|
Rabbit へのオマージュとして、因幡の白兎に登場するワニ(鮫)にちなんだ名前です。
|
|
5
5
|
|
|
6
|
+
**Markdownを書いたら、あとは話す準備を。**
|
|
7
|
+
|
|
8
|
+
waniは、内容に合わせて文字サイズを自動調整するプレゼンテーションツールです。
|
|
9
|
+
タイトルも本文もスライドに収まる大きさに自動調整。
|
|
10
|
+
文字サイズの調整に手をかけず、伝えたい内容に集中してください。
|
|
11
|
+
|
|
12
|
+
兎とワニがスライドの進み具合を楽しく伝えます。
|
|
13
|
+
持ち時間も、発表の演出に。
|
|
14
|
+
最後の5秒は観客と一緒にカウントダウン。
|
|
15
|
+
時間になるとワニが登場し、発表のフィナーレを飾ります。
|
|
16
|
+
|
|
6
17
|
<p align="center">
|
|
7
18
|
<img src="docs/images/wani-characters.png" alt="ノートパソコンを使う兎と、それを見守るワニ" width="640">
|
|
8
19
|
</p>
|
|
@@ -14,54 +25,35 @@ Rabbit へのオマージュとして、因幡の白兎に登場するワニ(
|
|
|
14
25
|
|
|
15
26
|
## インストールと開始
|
|
16
27
|
|
|
17
|
-
|
|
18
|
-
Ruby 3.2 以上が必要です。ソースのビルドには Node.js 22.13 以上、npm、Bundler が必要ですが、
|
|
19
|
-
ビルド済み gem の利用に Node.js は不要です。
|
|
20
|
-
|
|
21
|
-
```sh
|
|
22
|
-
bundle config set --local path vendor/bundle
|
|
23
|
-
bundle install
|
|
24
|
-
npm ci
|
|
25
|
-
bundle exec rake build:wasm
|
|
28
|
+
### インストール
|
|
26
29
|
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
[RubyGems.org](https://rubygems.org/gems/wani) からインストールできます。
|
|
31
|
+
Ruby 3.2 以上が必要です。
|
|
29
32
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
wani check
|
|
33
|
-
wani serve
|
|
33
|
+
```sh
|
|
34
|
+
gem install wani
|
|
34
35
|
```
|
|
35
36
|
|
|
36
37
|
rbenv 環境でインストール後に `wani: command not found` となる場合は、
|
|
37
38
|
`rbenv rehash` を実行して実行ファイルの shim を更新してください。
|
|
39
|
+
ソースからのビルド手順は [開発・検証](docs/development.md) を参照してください。
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
`slides.md` を編集したらブラウザーを再読み込みしてください。
|
|
41
|
-
生成されるプロジェクトには、各種Markdown記法を紹介する10ページの `slides.md` と、`images/` 内のサンプルSVG画像が含まれます。
|
|
42
|
-
HTML / CSS / JS ランタイム / wasm は gem が保持し、各プロジェクトへコピーしません。
|
|
43
|
-
|
|
44
|
-
## コマンド
|
|
41
|
+
### 開始
|
|
45
42
|
|
|
46
43
|
```sh
|
|
47
|
-
wani new
|
|
48
|
-
|
|
49
|
-
wani
|
|
50
|
-
wani
|
|
51
|
-
wani --help
|
|
44
|
+
wani new my-talk
|
|
45
|
+
cd my-talk
|
|
46
|
+
wani check
|
|
47
|
+
wani serve
|
|
52
48
|
```
|
|
53
49
|
|
|
54
|
-
- `new`: サンプルを生成します。既存のディレクトリ、ファイル、シンボリックリンクは上書きしません。
|
|
55
|
-
- `check`: ファイル省略時は `slides.md`。Front Matter・区切り・タイトル・ノート・画像を検証します。
|
|
56
|
-
エラーは終了コード1、成功および警告のみの場合は0です。実際のはみ出しはブラウザーが検出します。
|
|
57
|
-
- `serve`: 指定ファイルを静的配信します。省略時は `slides.md`。
|
|
58
|
-
`--port` / `-p`、`--bind` / `-b` で変更でき、Ctrl+C で正常終了します。
|
|
59
|
-
初期バインド先は127.0.0.1、ポートは8000です。ポート0を指定すると利用可能なポートを選びます。
|
|
60
50
|
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
表示された http://127.0.0.1:8000/ をブラウザーで開きます。
|
|
52
|
+
|
|
53
|
+
`new`コマンドで生成されるプロジェクトには、Markdown記法を紹介する10ページの `slides.md` とサンプルSVG画像が含まれます。
|
|
54
|
+
`slides.md` を編集したらブラウザーを再読み込みしてください。
|
|
63
55
|
|
|
64
|
-
## Markdown
|
|
56
|
+
## Markdown記法
|
|
65
57
|
|
|
66
58
|
```markdown
|
|
67
59
|
---
|
|
@@ -87,14 +79,62 @@ notes:
|
|
|
87
79
|
見出しレベルが違っても、タイトルのデザインは同じです。
|
|
88
80
|
```
|
|
89
81
|
|
|
90
|
-
独立した `---`
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
82
|
+
- 独立した `---` の行でスライドを分割
|
|
83
|
+
- 各ページの最初の見出しをタイトルに
|
|
84
|
+
- 本文には段落、強調、リスト、引用、コード、リンク、画像、表が使用可能
|
|
85
|
+
- コードフェンスに `ruby` や `js` などの言語名を付けると、スライド・ノート・PDFで構文ハイライトを適用
|
|
86
|
+
- 画像は、slides.mdを基準に相対パスで記述
|
|
87
|
+
- `<!-- notes: ... -->` は発表者ノート
|
|
88
|
+
- `<!-- page-footnote: ... -->` はページごとの脚注
|
|
89
|
+
|
|
90
|
+
詳細は [Markdown記法ガイド](docs/markdown.md) を参照してください。
|
|
91
|
+
|
|
92
|
+
## コマンド紹介
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
wani new DIRECTORY
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
`new`: サンプルを生成します。既存のディレクトリ、ファイル、シンボリックリンクは上書きしません。
|
|
99
|
+
|
|
100
|
+
```sh
|
|
101
|
+
wani check [FILE]
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`check`: Front Matter・区切り・タイトル・ノート・画像を検証します。
|
|
94
105
|
|
|
95
|
-
|
|
106
|
+
- ファイル省略時は `slides.md`
|
|
107
|
+
- エラーは終了コード1、成功および警告のみの場合は0
|
|
108
|
+
- フォントのスライドからのはみ出しはブラウザーで表示するときに検出
|
|
109
|
+
- HTTP(S)画像も表示できますが、`check` の存在確認はローカル画像のみ
|
|
96
110
|
|
|
97
|
-
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
wani serve [FILE] --port 8000 --bind 127.0.0.1
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
`serve`: 指定ファイルを静的配信します。
|
|
117
|
+
|
|
118
|
+
- ファイル省略時は `slides.md`
|
|
119
|
+
- Ctrl+C で終了
|
|
120
|
+
- 初期バインド先は127.0.0.1。ポート 8000
|
|
121
|
+
- `--port` / `-p`、`--bind` / `-b` で変更
|
|
122
|
+
- ポート0を指定すると利用可能なポートを選択
|
|
123
|
+
|
|
124
|
+
```sh
|
|
125
|
+
wani --version
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
`version`: バージョンを表示します。
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
wani --help
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
`help`: ヘルプを表示します。
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## 発表中の操作
|
|
98
138
|
|
|
99
139
|
| キー | 操作 |
|
|
100
140
|
| --- | --- |
|
|
@@ -105,28 +145,20 @@ notes:
|
|
|
105
145
|
| Esc | 全画面を解除 |
|
|
106
146
|
| N | 発表者ノートを別ウィンドウに開く |
|
|
107
147
|
|
|
108
|
-
`#slide=3` のような URL で特定のスライドを開けます。
|
|
109
|
-
ノート画面は本文・ノート・ページ番号をメインから一方向で同期します。
|
|
110
|
-
開けない場合はブラウザーのポップアップ設定を確認してください。
|
|
111
148
|
|
|
112
|
-
|
|
113
|
-
画像とフォントを読み込み、幅と高さに合わせて文字サイズを自動調整します。
|
|
114
|
-
タイトルは1行に収めます。本文の段落・見出し・箇条書きは、使用フォントの全角20文字(「あ」20個)相当の幅以下なら折り返さず、それを超える場合は自然に折り返します。
|
|
115
|
-
明示的な改行は維持し、改行ごとに幅を判定します。文字サイズは本文全体で共通です。
|
|
116
|
-
画像は比率を維持して縦に配置し、画像だけの場合は本文領域を広く使います。
|
|
117
|
-
収まらない内容は分割・スクロールせず、番号と内容を含む警告を表示します。
|
|
118
|
-
画像の読み込みを最大15秒待ち、失敗やタイムアウトを通知します。
|
|
149
|
+
### ノート
|
|
119
150
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
151
|
+
- ノート画面はメイン画面の操作に同期
|
|
152
|
+
- 開けない場合はブラウザーのポップアップ設定を確認してください。
|
|
153
|
+
|
|
154
|
+
### 進捗表示
|
|
155
|
+
|
|
156
|
+
兎と鰐が進捗に連動します。
|
|
157
|
+
|
|
158
|
+
- 前半ではワニが右から左へ増えて橋を作る
|
|
159
|
+
- 後半では兎が左の島からサメの背中を通って右の島へ渡る
|
|
160
|
+
- ページを戻すと位置と橋も戻る
|
|
161
|
+
- 最終ページで兎が右端に到着
|
|
130
162
|
|
|
131
163
|
## 発表タイマー
|
|
132
164
|
|
|
@@ -149,18 +181,47 @@ Front Matter の `time_limit` に分数を指定して変更できます(小
|
|
|
149
181
|
ページを再読み込みするとタイマーも最初から始まります。
|
|
150
182
|
開始待ち画面、タイマー、時間切れ画面はPDFには含めません。
|
|
151
183
|
|
|
184
|
+
## スライド
|
|
185
|
+
|
|
186
|
+
- 1920×1080、16:9
|
|
187
|
+
- 白背景
|
|
188
|
+
- 画像は比率を維持して縦に配置し、画像だけの場合は本文領域を広く使います。
|
|
189
|
+
- `#slide=3` のようなハッシュ付き URL で特定のスライドを開く
|
|
190
|
+
|
|
191
|
+
### 画像とフォントを読み込み、幅と高さに合わせて文字サイズを自動調整
|
|
192
|
+
- タイトルは1行に収める
|
|
193
|
+
- 本文の段落・見出し・箇条書きは、使用フォントの全角20文字(「あ」20個)相当の幅以下なら折り返さず、それを超える場合は自然に折り返し
|
|
194
|
+
- 明示的な改行は維持。改行ごとに幅を判定
|
|
195
|
+
- 文字サイズは本文全体で共通
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
### 警告
|
|
199
|
+
|
|
200
|
+
- 収まらない内容に警告を表示
|
|
201
|
+
- 画像の読み込みを最大15秒待ち、失敗やタイムアウトを通知
|
|
202
|
+
|
|
203
|
+
## 印刷
|
|
204
|
+
|
|
205
|
+
ツールバーの「PDF」「ノート付き PDF」から印刷ダイアログを開き、PDFとして保存します。
|
|
206
|
+
Ctrl+P でも印刷できます。
|
|
207
|
+
|
|
208
|
+
- 用紙は320×180mmを指定し、ブラウザーのヘッダー・フッターはオフにしてください。
|
|
209
|
+
- 通常版は1スライド1ページ、ノート付きは各スライドの次に対応するノートを置きます。
|
|
210
|
+
- 画像・フォントの完了後に印刷し、ページごとの脚注とページ番号を出力します。兎と鰐の装飾は常に非表示です。
|
|
211
|
+
|
|
212
|
+
|
|
152
213
|
## 同梱フォント
|
|
153
214
|
|
|
154
215
|
日本語・英数字の標準書体は **IBM Plex Sans JP** です。
|
|
155
216
|
通常と太字のフォントを gem に同梱します。
|
|
156
|
-
OS へのインストールや外部 CDN への接続は不要です。
|
|
157
217
|
|
|
158
218
|
本文・タイトル・発表者画面・PDF に同じ書体を使います。
|
|
159
|
-
|
|
160
|
-
|
|
219
|
+
コードには **UDEV Gothic** を使い、日本語も半角1:全角2の等幅で表示します。
|
|
220
|
+
UDEV Gothic も通常・太字を同梱するため、外部への通信やOSへのインストールは不要です。
|
|
161
221
|
|
|
162
222
|
フォントは SIL Open Font License 1.1 です。原文のライセンス・著作権表示と配布元・チェックサムは
|
|
163
|
-
[third_party/ibm-plex-sans-jp](third_party/ibm-plex-sans-jp/README.md)
|
|
223
|
+
[third_party/ibm-plex-sans-jp](third_party/ibm-plex-sans-jp/README.md) と
|
|
224
|
+
[third_party/udev-gothic](third_party/udev-gothic/README.md) に保持しています。
|
|
164
225
|
|
|
165
226
|
## フォントを変更する
|
|
166
227
|
|
data/assets/build.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
3
|
-
"source_sha256": "
|
|
2
|
+
"version": "0.1.14",
|
|
3
|
+
"source_sha256": "c3e705b68ea3335c7704a5be6989fd09d40d0bbc6f8dd6a2d26dd7ea9a49d05a",
|
|
4
4
|
"loader_commit": "dc6b0ffd5800ed9bfc49268ed8021d456f10ddf8",
|
|
5
|
-
"wasm_sha256": "
|
|
5
|
+
"wasm_sha256": "feac70ebd959b1aa5d8f628fce3bb8d5570b4404a3128cd37f721f611fe62d83"
|
|
6
6
|
}
|
|
Binary file
|
|
Binary file
|
data/assets/style.css
CHANGED
|
@@ -12,6 +12,20 @@
|
|
|
12
12
|
font-style: normal;
|
|
13
13
|
font-display: block;
|
|
14
14
|
}
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: "UDEV Gothic";
|
|
17
|
+
src: url("/assets/fonts/UDEVGothic-Regular.ttf") format("truetype");
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-display: block;
|
|
21
|
+
}
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: "UDEV Gothic";
|
|
24
|
+
src: url("/assets/fonts/UDEVGothic-Bold.ttf") format("truetype");
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-display: block;
|
|
28
|
+
}
|
|
15
29
|
:root { font-family: "IBM Plex Sans JP", sans-serif; color: #20352e; background: #e9eee9; }
|
|
16
30
|
* { box-sizing: border-box; }
|
|
17
31
|
body { margin: 0; }
|
|
@@ -34,19 +48,22 @@ button:focus-visible, a:focus-visible { outline: 2px solid #557e64; outline-offs
|
|
|
34
48
|
.title { margin: 0 0 36px; white-space: nowrap; flex: 0 0 160px; font-weight: 700; line-height: 1.12; overflow: hidden; letter-spacing: -.025em; }
|
|
35
49
|
.body { flex: 1 1 0; min-height: 0; overflow: hidden; line-height: 1.3; }
|
|
36
50
|
.body p { margin: 0 0 .35em; }
|
|
51
|
+
.body p, .body li { word-break: auto-phrase; text-wrap: pretty; }
|
|
37
52
|
.titleless .body { display: flex; flex-direction: column; justify-content: safe center; text-align: center; }
|
|
38
53
|
.titleless .body > * { flex-shrink: 0; }
|
|
39
54
|
.titleless .body > :last-child { margin-bottom: 0; }
|
|
40
55
|
.titleless .body img { margin-inline: auto; }
|
|
41
56
|
.body ul, .body ol { margin: .2em 0 .4em; padding-left: 1.35em; }
|
|
42
57
|
.body pre { margin: .3em 0; padding: .4em .55em; background: #f3f6f2; white-space: pre-wrap; tab-size: 2; }
|
|
43
|
-
.body
|
|
58
|
+
.titleless .body pre { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
|
|
59
|
+
.body code { font-family: "UDEV Gothic", "IBM Plex Sans JP", monospace; font-size: .8em; }
|
|
44
60
|
.body blockquote { border-left: .08em solid #b6cbb9; margin: .4em 0; padding-left: .6em; }
|
|
45
61
|
.body table { border-collapse: collapse; width: 100%; }
|
|
46
62
|
.body th, .body td { border: 1px solid #bac8bd; padding: .15em .3em; }
|
|
47
63
|
.body img { display: block; object-fit: contain; max-width: 100%; }
|
|
48
64
|
.body a { color: #32634b; }
|
|
49
65
|
.slide-footer { flex: 0 0 128px; position: relative; display: flex; align-items: start; font-size: 24px; color: #71887e; padding-top: 12px; }
|
|
66
|
+
.page-footnote { width: 100%; min-width: 0; height: 1.5em; line-height: 1.5; white-space: nowrap; overflow: hidden; }
|
|
50
67
|
.decorations { position: absolute; left: 0; right: 132px; bottom: 0; height: 80px; }
|
|
51
68
|
.slide-number { position: absolute; right: 0; bottom: 8px; width: 112px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
52
69
|
.decorations::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-top: 2px solid #71887e25; }
|
data/assets/wani.wasm
CHANGED
|
Binary file
|
data/lib/wani/browser/layout.rb
CHANGED
|
@@ -15,14 +15,16 @@ module Wani
|
|
|
15
15
|
|
|
16
16
|
def wait_assets(root)
|
|
17
17
|
unless @fonts_loaded
|
|
18
|
-
# Hidden slide titles do not trigger font downloads. Load both
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
# Hidden slide titles and code do not trigger font downloads. Load both
|
|
19
|
+
# bundled families and weights explicitly before fitting.
|
|
20
|
+
body_family = JS.global.getComputedStyle(@document[:documentElement])[:fontFamily].to_s
|
|
21
|
+
[body_family, '"UDEV Gothic"'].each do |family|
|
|
22
|
+
[400, 700].each do |weight|
|
|
23
|
+
begin
|
|
24
|
+
@document[:fonts].load("#{weight} 16px #{family}", "日本語 ABC").await
|
|
25
|
+
rescue JS::Error
|
|
26
|
+
@warn.call("フォントを読み込めませんでした。代替フォントを使用します (#{weight})")
|
|
27
|
+
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
@fonts_loaded = true
|
|
@@ -60,6 +62,10 @@ module Wani
|
|
|
60
62
|
fit_images(body)
|
|
61
63
|
fit_font(body, BODY_MIN, BODY_MAX)
|
|
62
64
|
@warn.call("スライド #{number}: 本文が収まりません: #{body[:textContent].to_s[0, 120]}") unless fits?(body)
|
|
65
|
+
footnote = section.querySelector(".page-footnote")
|
|
66
|
+
if footnote[:scrollWidth].to_i > footnote[:clientWidth].to_i + 1
|
|
67
|
+
@warn.call("スライド #{number}: 脚注が1行に収まりません。短くするか、詳細を本文へ移してください。")
|
|
68
|
+
end
|
|
63
69
|
section[:style][:display] = ""
|
|
64
70
|
end
|
|
65
71
|
|
|
@@ -8,8 +8,9 @@ module Wani
|
|
|
8
8
|
# Only the selected Markdown, images below its directory and fixed gem assets are public.
|
|
9
9
|
class Application
|
|
10
10
|
ASSETS = %w[index.html style.css highlight.css rouge.LICENSE bootstrap.rb speaker.html rabbit.svg shark.svg time-expired.webp runtime.pr672.js wani.wasm runtime.LICENSE runtime.NOTICE build.json
|
|
11
|
-
fonts/IBMPlexSansJP-Regular.woff2 fonts/IBMPlexSansJP-Bold.woff2
|
|
12
|
-
|
|
11
|
+
fonts/IBMPlexSansJP-Regular.woff2 fonts/IBMPlexSansJP-Bold.woff2
|
|
12
|
+
fonts/UDEVGothic-Regular.ttf fonts/UDEVGothic-Bold.ttf].freeze
|
|
13
|
+
TYPES = { ".html" => "text/html; charset=utf-8", ".css" => "text/css; charset=utf-8", ".rb" => "text/plain; charset=utf-8", ".js" => "text/javascript", ".wasm" => "application/wasm", ".md" => "text/plain; charset=utf-8", ".svg" => "image/svg+xml", ".png" => "image/png", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".webp" => "image/webp", ".json" => "application/json", ".woff2" => "font/woff2", ".ttf" => "font/ttf" }.freeze
|
|
13
14
|
IMAGES = %w[.png .jpg .jpeg .webp .svg].freeze
|
|
14
15
|
|
|
15
16
|
def initialize(file, assets: File.join(Wani::ROOT, "assets"), diagnostics: nil)
|
data/lib/wani/version.rb
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Licensing
|
|
2
|
+
|
|
3
|
+
- Source fonts are licensed under SIL OPEN FONT LICENSE Version 1.1.
|
|
4
|
+
For more information, see "LICENSE_<FontName>" file contained in the "source" directory.
|
|
5
|
+
- "UDEV Gothic" are licensed under SIL OPEN FONT LICENSE Version 1.1.
|
|
6
|
+
|
|
7
|
+
## "UDEV Gothic" licensing
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2022 Yuko OTAWARA. with Reserved Font Name "UDEV Gothic"
|
|
10
|
+
|
|
11
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
12
|
+
This license is copied below, and is also available with a FAQ at:
|
|
13
|
+
https://scripts.sil.org/OFL
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
-----------------------------------------------------------
|
|
17
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
18
|
+
-----------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
PREAMBLE
|
|
21
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
22
|
+
development of collaborative font projects, to support the font creation
|
|
23
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
24
|
+
open framework in which fonts may be shared and improved in partnership
|
|
25
|
+
with others.
|
|
26
|
+
|
|
27
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
28
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
29
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
30
|
+
redistributed and/or sold with any software provided that any reserved
|
|
31
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
32
|
+
however, cannot be released under any other type of license. The
|
|
33
|
+
requirement for fonts to remain under this license does not apply
|
|
34
|
+
to any document created using the fonts or their derivatives.
|
|
35
|
+
|
|
36
|
+
DEFINITIONS
|
|
37
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
38
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
39
|
+
include source files, build scripts and documentation.
|
|
40
|
+
|
|
41
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
42
|
+
copyright statement(s).
|
|
43
|
+
|
|
44
|
+
"Original Version" refers to the collection of Font Software components as
|
|
45
|
+
distributed by the Copyright Holder(s).
|
|
46
|
+
|
|
47
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
48
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
49
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
50
|
+
new environment.
|
|
51
|
+
|
|
52
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
53
|
+
writer or other person who contributed to the Font Software.
|
|
54
|
+
|
|
55
|
+
PERMISSION & CONDITIONS
|
|
56
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
57
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
58
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
59
|
+
Software, subject to the following conditions:
|
|
60
|
+
|
|
61
|
+
1) Neither the Font Software nor any of its individual components,
|
|
62
|
+
in Original or Modified Versions, may be sold by itself.
|
|
63
|
+
|
|
64
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
65
|
+
redistributed and/or sold with any software, provided that each copy
|
|
66
|
+
contains the above copyright notice and this license. These can be
|
|
67
|
+
included either as stand-alone text files, human-readable headers or
|
|
68
|
+
in the appropriate machine-readable metadata fields within text or
|
|
69
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
70
|
+
|
|
71
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
72
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
73
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
74
|
+
presented to the users.
|
|
75
|
+
|
|
76
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
77
|
+
Software shall not be used to promote, endorse or advertise any
|
|
78
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
79
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
80
|
+
permission.
|
|
81
|
+
|
|
82
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
83
|
+
must be distributed entirely under this license, and must not be
|
|
84
|
+
distributed under any other license. The requirement for fonts to
|
|
85
|
+
remain under this license does not apply to any document created
|
|
86
|
+
using the Font Software.
|
|
87
|
+
|
|
88
|
+
TERMINATION
|
|
89
|
+
This license becomes null and void if any of the above conditions are
|
|
90
|
+
not met.
|
|
91
|
+
|
|
92
|
+
DISCLAIMER
|
|
93
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
94
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
95
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
96
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
97
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
98
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
99
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
100
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
101
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# UDEV Gothic
|
|
2
|
+
|
|
3
|
+
[公式v2.2.0リリース](https://github.com/yuru7/udev-gothic/releases/tag/v2.2.0) の通常版Regular・Boldを同梱します。
|
|
4
|
+
半角1:全角2の等幅で、日本語と英数字に同じ書体を使用します。リガチャ・Nerd Fontsなしの版です。
|
|
5
|
+
|
|
6
|
+
- `assets/fonts/UDEVGothic-Regular.ttf`(400)
|
|
7
|
+
- `assets/fonts/UDEVGothic-Bold.ttf`(700)
|
|
8
|
+
|
|
9
|
+
公式ZIP内の完成版TTFを変換・サブセット化・改名せずに保存しています。
|
|
10
|
+
配布元・バージョン・アーカイブと各ファイルのSHA-256・サイズは `provenance.json` に記録します。
|
|
11
|
+
同じタグの `LICENSE` を `LICENSE.txt` として保持します。SIL Open Font License 1.1で配布し、アプリのMITライセンスとは区別します。
|
|
12
|
+
|
|
13
|
+
## 取得の再現
|
|
14
|
+
|
|
15
|
+
`provenance.json` のURLからZIPを取得し、SHA-256を照合して記録したパスの2ファイルを取り出します。
|
|
16
|
+
ライセンスは https://raw.githubusercontent.com/yuru7/udev-gothic/v2.2.0/LICENSE から取得します。
|
|
17
|
+
通常利用・ビルド時にダウンロードやOSへのインストールは不要です。
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2.2.0",
|
|
3
|
+
"repository": "https://github.com/yuru7/udev-gothic",
|
|
4
|
+
"archive": "https://github.com/yuru7/udev-gothic/releases/download/v2.2.0/UDEVGothic_v2.2.0.zip",
|
|
5
|
+
"archive_sha256": "c104c171f6ed8922ca52d74cd915a271e427f1e884e51431aae71d99e8b3b47b",
|
|
6
|
+
"license": "OFL-1.1",
|
|
7
|
+
"files": {
|
|
8
|
+
"UDEVGothic-Regular.ttf": {
|
|
9
|
+
"source_path": "UDEVGothic_v2.2.0/UDEVGothic-Regular.ttf",
|
|
10
|
+
"bytes": 3874344,
|
|
11
|
+
"sha256": "25fa0eca4be611ac125f03411d280c85494153da01dfa02ba734399c05f6289d"
|
|
12
|
+
},
|
|
13
|
+
"UDEVGothic-Bold.ttf": {
|
|
14
|
+
"source_path": "UDEVGothic_v2.2.0/UDEVGothic-Bold.ttf",
|
|
15
|
+
"bytes": 3865816,
|
|
16
|
+
"sha256": "1a1a7188a6b10195994cde6a30cca1cc7cbbc8badf0420bd29216035baa3d541"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wani
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ledsun
|
|
@@ -90,6 +90,8 @@ files:
|
|
|
90
90
|
- assets/build.json
|
|
91
91
|
- assets/fonts/IBMPlexSansJP-Bold.woff2
|
|
92
92
|
- assets/fonts/IBMPlexSansJP-Regular.woff2
|
|
93
|
+
- assets/fonts/UDEVGothic-Bold.ttf
|
|
94
|
+
- assets/fonts/UDEVGothic-Regular.ttf
|
|
93
95
|
- assets/highlight.css
|
|
94
96
|
- assets/index.html
|
|
95
97
|
- assets/rabbit.svg
|
|
@@ -134,6 +136,9 @@ files:
|
|
|
134
136
|
- third_party/ruby-wasm-loader/README.md
|
|
135
137
|
- third_party/ruby-wasm-loader/browser.script.iife.js
|
|
136
138
|
- third_party/ruby-wasm-loader/provenance.json
|
|
139
|
+
- third_party/udev-gothic/LICENSE.txt
|
|
140
|
+
- third_party/udev-gothic/README.md
|
|
141
|
+
- third_party/udev-gothic/provenance.json
|
|
137
142
|
homepage: https://github.com/ledsun/wani
|
|
138
143
|
licenses:
|
|
139
144
|
- MIT
|