kumiori 0.1.0 → 0.1.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/CHANGELOG.en.md +12 -0
- package/CHANGELOG.md +12 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/THIRD_PARTY_NOTICES.md +77 -9
- package/dist-browser/THIRD_PARTY_NOTICES.md +77 -9
- package/dist-cli/THIRD_PARTY_NOTICES.md +77 -9
- package/dist-cli/cli.js +53 -1
- package/dist-lib/THIRD_PARTY_NOTICES.md +77 -9
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/types/cssCascade.d.ts +10 -1
- package/dist-lib/types/htmlPrepare.d.ts +7 -0
- package/dist-lib/types/webp.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.en.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
Version numbers follow [Semantic Versioning](https://semver.org/). During 0.x, incompatible changes may also be released in a minor version (such as 0.2.0).
|
|
6
6
|
|
|
7
|
+
## 0.1.1 (2026-11-09)
|
|
8
|
+
|
|
9
|
+
A release that completes the notices for third-party software and documents. Typesetting behaviour and the API are the same as in 0.1.0.
|
|
10
|
+
|
|
11
|
+
- **Third-party notices** (`THIRD_PARTY_NOTICES.md`, also included in the `dist-lib`, `dist-cli` and `dist-browser` distributions):
|
|
12
|
+
- Added the copyright notices and licenses (including the full text of the W3C Document License) for the default style sheet rules copied from W3C documents (CSS Ruby 1 Appendix A.1 and CSS 2.1 Appendix D)
|
|
13
|
+
- Stated that part of the WebP decoding code is derived from libwebp (the libwebp notice has been included since 0.1.0)
|
|
14
|
+
- Added the distribution terms of the Adobe font metrics (AFM) for the standard 14 fonts, included in @pdf-lib/standard-fonts
|
|
15
|
+
- Corrected the description of which distributions bundle the dependencies (`dist-browser` also bundles @xmldom/xmldom; `dist-lib` bundles none)
|
|
16
|
+
- **README**: states that `LICENSE`, `NOTICE` and `THIRD_PARTY_NOTICES.md` are included in the output of all four builds
|
|
17
|
+
- **Documents**: the "Sources" appendix of the Conformance Guides (Japanese and English) now gives the version, copyright notice and full license text of each quoted W3C specification
|
|
18
|
+
|
|
7
19
|
## 0.1.0 (2026-11-08)
|
|
8
20
|
|
|
9
21
|
The first public release.
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
版の番号は [セマンティック バージョニング](https://semver.org/lang/ja/) に従います。0.x の間は、互換の無い変更も minor の版 (0.2.0 など) で出すことがあります。
|
|
6
6
|
|
|
7
|
+
## 0.1.1 (2026-11-09)
|
|
8
|
+
|
|
9
|
+
第三者のソフトウェアと文書の表示を補った版。組版の動きと API は 0.1.0 と同じです。
|
|
10
|
+
|
|
11
|
+
- **第三者の表示** (`THIRD_PARTY_NOTICES.md`。配布物の `dist-lib`・`dist-cli`・`dist-browser` にも入る):
|
|
12
|
+
- W3C の文書から写した既定のスタイルシートの規則 (CSS Ruby 1 の付録 A.1、CSS 2.1 の付録 D) の著作権表示とライセンス (W3C Document License の本文を含む) を足した
|
|
13
|
+
- WebP の読み込みのコードの一部が libwebp から派生していることを明記した (libwebp の表示は 0.1.0 から載せていたもの)
|
|
14
|
+
- @pdf-lib/standard-fonts に含まれる Adobe の標準 14 書体の寸法 (AFM) の配布条件の本文を足した
|
|
15
|
+
- 依存パッケージを束ねる配布物の説明を直した (`dist-browser` は @xmldom/xmldom も束ね、`dist-lib` は束ねない)
|
|
16
|
+
- **README**: `LICENSE`・`NOTICE`・`THIRD_PARTY_NOTICES.md` が 4 つのビルドの出力すべてに入ることを書いた
|
|
17
|
+
- **文書**: 対応仕様説明書 (日本語版と英語版) の付録「出典」に、引用した W3C の仕様の版・著作権表示・ライセンスの本文を足した
|
|
18
|
+
|
|
7
19
|
## 0.1.0 (2026-11-08)
|
|
8
20
|
|
|
9
21
|
最初の公開版。
|
package/README.en.md
CHANGED
|
@@ -143,7 +143,7 @@ result.renderPage(canvas, 0); // draw page 1 on
|
|
|
143
143
|
|
|
144
144
|
```html
|
|
145
145
|
<script type="module">
|
|
146
|
-
import { typesetHtml } from 'https://cdn.jsdelivr.net/npm/kumiori@0.1.
|
|
146
|
+
import { typesetHtml } from 'https://cdn.jsdelivr.net/npm/kumiori@0.1.1/dist-browser/kumiori.js';
|
|
147
147
|
const result = await typesetHtml(html, { name: 'a.html' });
|
|
148
148
|
result.renderPage(document.querySelector('canvas'), 0);
|
|
149
149
|
</script>
|
|
@@ -238,7 +238,7 @@ The fonts used are embedded in the PDF. Check the license terms of each font wit
|
|
|
238
238
|
|
|
239
239
|
The code is under the [Apache License 2.0](LICENSE) (Copyright 2026 Northern Lights Co.; see [NOTICE](NOTICE)). The fonts for typesetting are not bundled in this repository (for the fonts and their licenses, see the "[Fonts](#fonts)" section).
|
|
240
240
|
|
|
241
|
-
The licenses and copyright notices of the third-party software Kumiori uses (pdf-lib, pako, utif, hyphen, etc.) are collected in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The output of `npm run build` and `npm run build:
|
|
241
|
+
The licenses and copyright notices of the third-party software Kumiori uses (pdf-lib, pako, utif, hyphen, etc.) are collected in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The output of `npm run build`, `npm run build:cli`, `npm run build:lib` and `npm run build:browser` (`dist/`, `dist-cli/`, `dist-lib/`, `dist-browser/`) also contains `LICENSE`, `NOTICE` and `THIRD_PARTY_NOTICES.md`.
|
|
242
242
|
|
|
243
243
|
## Relationship to other companies' products
|
|
244
244
|
|
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ result.renderPage(canvas, 0); // 1 ページ目
|
|
|
143
143
|
|
|
144
144
|
```html
|
|
145
145
|
<script type="module">
|
|
146
|
-
import { typesetHtml } from 'https://cdn.jsdelivr.net/npm/kumiori@0.1.
|
|
146
|
+
import { typesetHtml } from 'https://cdn.jsdelivr.net/npm/kumiori@0.1.1/dist-browser/kumiori.js';
|
|
147
147
|
const result = await typesetHtml(html, { name: 'a.html' });
|
|
148
148
|
result.renderPage(document.querySelector('canvas'), 0);
|
|
149
149
|
</script>
|
|
@@ -238,7 +238,7 @@ Node のコマンドは、取った書体を OS のキャッシュ (`~/.cache/ku
|
|
|
238
238
|
|
|
239
239
|
コードは [Apache License 2.0](LICENSE) (Copyright 2026 Northern Lights Co.。[NOTICE](NOTICE))。組版用の書体は、本リポジトリには同梱していません (書体とそのライセンスは「[フォント](#フォント)」の節)。
|
|
240
240
|
|
|
241
|
-
Kumiori が使う第三者のソフトウェア (pdf-lib・pako・utif・hyphen など) のライセンスと著作権表示は、[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) にまとめています。`npm run build
|
|
241
|
+
Kumiori が使う第三者のソフトウェア (pdf-lib・pako・utif・hyphen など) のライセンスと著作権表示は、[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) にまとめています。`npm run build`・`npm run build:cli`・`npm run build:lib`・`npm run build:browser` の出力 (`dist/`・`dist-cli/`・`dist-lib/`・`dist-browser/`) にも、`LICENSE`・`NOTICE`・`THIRD_PARTY_NOTICES.md` が入ります。
|
|
242
242
|
|
|
243
243
|
## 他社の製品との関係
|
|
244
244
|
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -7,7 +7,14 @@ Kumiori の配布物に含まれる、または Kumiori の実行に使われる
|
|
|
7
7
|
- 対象の版: このリポジトリの `package-lock.json` で入る版 (下の各節に版を書いています)
|
|
8
8
|
- この文書は、ライセンスの解釈や法的な判断を示すものではありません。
|
|
9
9
|
|
|
10
|
-
## 1. ブラウザ向けの配布物 (`
|
|
10
|
+
## 1. ブラウザ向けの配布物 (`dist/`・`dist-browser/`) に含まれるもの
|
|
11
|
+
|
|
12
|
+
次の 2 つのブラウザ向けの配布物は、この節のパッケージを束ねて含みます (2026-11-08 に、ビルドのソースマップで束ねられたパッケージを確かめました)。
|
|
13
|
+
|
|
14
|
+
- 画面 (`npm run build` の `dist/`。GitHub Pages に置くもの)
|
|
15
|
+
- ブラウザで単体で動くライブラリ (`npm run build:browser` の `dist-browser/`。npm の `kumiori/browser`)。この節のパッケージに加えて、下の 2 節の @xmldom/xmldom も束ねて含みます (XSL-FO を読むため)
|
|
16
|
+
|
|
17
|
+
ライブラリ (`npm run build:lib` の `dist-lib/`。npm の `kumiori`) は依存パッケージを束ねず、実行時に node_modules から読み込みます (下の 2 節と同じ)。
|
|
11
18
|
|
|
12
19
|
### pdf-lib 1.17.1
|
|
13
20
|
|
|
@@ -438,7 +445,20 @@ pako の LICENSE ファイル (上) は MIT の条文です。Zlib の条文は
|
|
|
438
445
|
### 1.3 @pdf-lib/standard-fonts に含まれる Adobe の AFM の Notice
|
|
439
446
|
|
|
440
447
|
@pdf-lib/standard-fonts は、14 の標準書体の寸法 (AFM) を圧縮したデータを持っています。データを展開したときの、各書体の `Notice` の文言をそのまま引用します。
|
|
441
|
-
|
|
448
|
+
このデータは、Adobe の 14 の AFM のファイルを JSON の形に変換して圧縮したもので、元の AFM のファイルそのものではありません。
|
|
449
|
+
|
|
450
|
+
元の AFM に添えられた Adobe の配布条件 (Core 14 AFM Files の ReadMe。`MustRead.html`) は、パッケージの中にはありません。下は、その本文です。
|
|
451
|
+
条件のとおり、この文書で AFM のファイルに添えて配布し、上の変換をここに記します。
|
|
452
|
+
|
|
453
|
+
- 取得元: https://raw.githubusercontent.com/apache/pdfbox/trunk/pdfbox/src/main/resources/org/apache/pdfbox/resources/afm/MustRead.html (Apache PDFBox が AFM のファイルと一緒に収めているもの。取得日 2026-11-08)
|
|
454
|
+
- HTML から本文の段落だけを取り出しました (語句は書き換えていません。白い字で書かれた段落の外の語は含めていません)。
|
|
455
|
+
|
|
456
|
+
```text
|
|
457
|
+
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files.
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
各書体の `Notice` の文言:
|
|
461
|
+
|
|
442
462
|
|
|
443
463
|
- Courier: `Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
444
464
|
- Courier-Bold: `Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
@@ -1001,9 +1021,10 @@ pdf-lib のパッケージには、Apache License 2.0 の本文は入ってい
|
|
|
1001
1021
|
limitations under the License.
|
|
1002
1022
|
```
|
|
1003
1023
|
|
|
1004
|
-
## 2. Node のコマンド (`dist-cli/cli.js`) を配布するときの依存
|
|
1024
|
+
## 2. Node のコマンド (`dist-cli/cli.js`) とライブラリ (`dist-lib/`) を配布するときの依存
|
|
1005
1025
|
|
|
1006
|
-
Node
|
|
1026
|
+
Node のコマンドとライブラリのビルドでは、次のパッケージはバンドルに入らず、実行時に node_modules から読み込まれます (上の 1 のパッケージも同じ)。npm の `kumiori` を入れると、これらも依存として一緒に入ります。
|
|
1027
|
+
このうち @xmldom/xmldom は、ブラウザで単体で動くライブラリ (`dist-browser/`) には束ねて含まれます (上の 1)。
|
|
1007
1028
|
|
|
1008
1029
|
### @xmldom/xmldom 0.9.12
|
|
1009
1030
|
|
|
@@ -1473,17 +1494,21 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
1473
1494
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1474
1495
|
```
|
|
1475
1496
|
|
|
1476
|
-
## 3. Kumiori
|
|
1497
|
+
## 3. Kumiori のコードが参照している文書と、派生元のソフトウェア (VP8・WebP)
|
|
1477
1498
|
|
|
1478
1499
|
Kumiori の `src/vp8.ts`・`src/vp8Tables.ts`・`src/webp.ts` (WebP の画像を読むコード) が、ファイルの中のコメントで参照している文書と、関連するライセンスの表示です。
|
|
1479
|
-
|
|
1500
|
+
|
|
1501
|
+
- `src/vp8.ts` の一部は libwebp から派生しています。WHT と 4×4 の逆 DCT の組み立て (libwebp の `src/dsp/dec.c` の `TransformWHT_C`・`TransformOne_C`)、YUV → RGB の係数 (`src/dsp/yuv.h` の `VP8YUVToR`・`VP8YUVToG`・`VP8YUVToB`)、色差の補間 (`src/dsp/upsampling.c` の `UPSAMPLE_FUNC`)、予測の向きの番号が、libwebp と同じ手順・同じ値です。2026-11-08 に、libwebp の main ブランチのソース (GitHub の写し https://github.com/webmproject/libwebp) と比べて確かめました。
|
|
1502
|
+
- そのため libwebp のライセンス (下の 3.4。BSD 3-Clause) に従い、`src/vp8.ts` の冒頭に libwebp の著作権表示と条文を載せています。配布物には、この文書で同じ表示を添えます。
|
|
1503
|
+
- `src/webp.ts` は RFC 9649 の手順で書いたものですが、画素の加算 (`addPixels`) と平均 (`avg2`) の 2 つの小さな関数は、libwebp の `VP8LAddPixels` (`src/dsp/lossless_common.h`) と `Average2` (`src/dsp/lossless.c`) と同じ書き方です。この 2 つも libwebp から派生したものとして扱い、`src/webp.ts` の冒頭で libwebp の表示 (`src/vp8.ts` の冒頭とこの文書) を指しています。
|
|
1504
|
+
- `src/vp8Tables.ts` の数表は RFC 6386 の表と同じ値です。RFC の表示 (下の 3.2・3.3) は、参照している文書の表示として載せています。
|
|
1480
1505
|
|
|
1481
1506
|
### 3.1 ファイルの中のコメント
|
|
1482
1507
|
|
|
1483
|
-
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)
|
|
1508
|
+
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)。」。6〜10 行目は libwebp から派生した部分の説明で、その後に libwebp の著作権表示と条文が続きます。
|
|
1484
1509
|
- `src/vp8Tables.ts` の冒頭 (2 行目): 「… VP8 (WebP の非可逆圧縮) の数表 (RFC 6386 の表と同じ値)。」
|
|
1485
|
-
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)
|
|
1486
|
-
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、
|
|
1510
|
+
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)。」。6〜8 行目は libwebp と同じ書き方の関数の説明です。
|
|
1511
|
+
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、424 行目 (「libwebp の TransformOne と同じ」)、455 行目 (フレームの外の値)、532 行目 (4×4 の予測)、695 行目 (YUV → RGBA)。94 行目は、予測の向きの番号を「libwebp の番号」としています。
|
|
1487
1512
|
|
|
1488
1513
|
### 3.2 RFC 6386 (VP8 Data Format and Decoding Guide) の著作権とライセンスの表示
|
|
1489
1514
|
|
|
@@ -1709,6 +1734,7 @@ The name and trademarks of copyright holders may NOT be used in advertising or p
|
|
|
1709
1734
|
## 5. Kumiori のコードに取り込んだ WHATWG の文書の CSS (HTML の既定のスタイルシート)
|
|
1710
1735
|
|
|
1711
1736
|
`src/cssCascade.ts` の `HTML_UA_CSS` の前半は、WHATWG の文書 HTML Living Standard の 15 章「Rendering」の CSS (15.3〜15.5) を取り込んだものです。組版に効かない規則は除き、文章で書かれた規則の一部を CSS で書き足しています。
|
|
1737
|
+
同じファイルの `QUIRKS_UA_CSS` (互換モードの文書の既定のスタイル) も、同じ 15 章の「In quirks mode」の規則 (15.3.3・15.3.7・15.3.8・15.3.10・15.4.2) を取り込んだものです。
|
|
1712
1738
|
|
|
1713
1739
|
- 文書の取得元: https://html.spec.whatwg.org/multipage/rendering.html (取得日 2026-11-04。Living Standard のため、版の名前はありません)
|
|
1714
1740
|
- 文書の著作権表示とライセンス (原文。取得元: https://html.spec.whatwg.org/multipage/acknowledgements.html 、取得日 2026-11-04): 「Copyright © WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License. To the extent portions of it are incorporated into source code, such portions in the source code are licensed under the BSD 3-Clause License instead.」。BSD 3-Clause License のリンク先は https://opensource.org/licenses/BSD-3-Clause
|
|
@@ -1803,3 +1829,45 @@ THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR
|
|
|
1803
1829
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
|
1804
1830
|
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.
|
|
1805
1831
|
```
|
|
1832
|
+
|
|
1833
|
+
## 8. Kumiori のコードに写した W3C の文書の CSS (CSS Ruby 1 の既定のスタイルシート)
|
|
1834
|
+
|
|
1835
|
+
`src/cssCascade.ts` の `HTML_UA_CSS` の後半にあるルビの規則 (rbc・rtc・rb の display、ruby・rb・rt・rbc・rtc の unicode-bidi、rtc・rt の font-variant-east-asian・text-justify・text-emphasis・white-space・line-height・font-size) は、W3C の文書 CSS Ruby Annotation Layout Module Level 1 の付録 A.1 (Default stylesheet) の規則を写したものです。台湾の注音の規則 (font-size: 30%) は、セレクタの並びの終わりに `,` があって無効な規則なので写していません。ruby・rp・rt の display は、HTML Living Standard の規則 (上の 5 節) で決まるので、ここでは写していません。
|
|
1836
|
+
|
|
1837
|
+
This software includes material copied from or derived from CSS Ruby Annotation Layout Module Level 1 (https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/). Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
|
|
1838
|
+
|
|
1839
|
+
- 文書の取得元: https://www.w3.org/TR/css-ruby-1/#default-stylesheet (2026-11-08 に取り直した文書の版は W3C Working Draft 31 December 2022、https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/)
|
|
1840
|
+
- 文書の著作権表示 (原文): 「Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and permissive document license rules apply.」。permissive document license のリンク先は https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document (https://www.w3.org/copyright/software-license-2015/ に転送される)
|
|
1841
|
+
- ライセンスの本文は、上の 7 節に写した Software and Document license - 2015 version と同じです。
|
|
1842
|
+
|
|
1843
|
+
## 9. Kumiori のコードに写した W3C の文書の CSS (CSS 2.1 の付録 D の既定のスタイルシート)
|
|
1844
|
+
|
|
1845
|
+
`src/htmlPrepare.ts` の `CSS21_DEFAULT_CSS` (`--style ah` の既定) は、W3C の文書 CSS 2.1 の付録 D「Default style sheet for HTML 4」の規則のうち、ブラウザ (Chrome) の既定と違うものを写したものです。ol・ul の字下げ (margin-left: 40px を padding-left: 2.5em に)、figure の左右の余白、sub・sup の line-height は、Kumiori が変えたり足したりしています (変えた点は `src/htmlPrepare.ts` のコメントに書いています)。
|
|
1846
|
+
|
|
1847
|
+
This software includes material copied from or derived from Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification, Appendix D. Default style sheet for HTML 4 (https://www.w3.org/TR/2011/REC-CSS2-20110607/sample.html). Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
|
|
1848
|
+
|
|
1849
|
+
- 文書の取得元: https://www.w3.org/TR/CSS2/sample.html (取得日 2026-11-05。2026-11-08 に取り直した文書の版は https://www.w3.org/TR/2011/REC-CSS2-20110607 )
|
|
1850
|
+
- 文書の状態 (原文): 「W3C Recommendation 07 June 2011, edited in place 12 April 2016 to point to new work, edited in place 07 December 2021 to correct markup.」
|
|
1851
|
+
- 文書の著作権表示 (原文。文書の表紙 https://www.w3.org/TR/CSS2/ にあるもの): 「Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.」。document use のリンク先は https://www.w3.org/Consortium/Legal/copyright-documents (https://www.w3.org/copyright/document-license-2023/ に転送される)
|
|
1852
|
+
- 下はそのライセンスの本文です。取得元: https://www.w3.org/copyright/document-license-2023/ (取得日 2026-11-08)。HTML から文字だけを取り出しました (語句は書き換えていません。見出しと段落の区切りは改行にしています。末尾の版の一覧と変更点の説明は含めていません)。
|
|
1853
|
+
|
|
1854
|
+
```text
|
|
1855
|
+
Document license - 2023 version
|
|
1856
|
+
Status: This document is in effect since 1 January 2023.
|
|
1857
|
+
Public documents on the W3C site are provided by the copyright holders under the following license.
|
|
1858
|
+
License
|
|
1859
|
+
By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
|
|
1860
|
+
Permission to copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
|
|
1861
|
+
A link or URL to the original W3C document.
|
|
1862
|
+
The pre-existing copyright notice of the original author, or if it doesn't exist, a notice (hypertext is preferred, but a textual representation is permitted) of the form: "Copyright © [$date-of-document] World Wide Web Consortium. https://www.w3.org/copyright/document-license-2023/"
|
|
1863
|
+
If it exists, the STATUS of the W3C document.
|
|
1864
|
+
When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
|
|
1865
|
+
No right to create modifications or derivatives of W3C documents is granted pursuant to this license, except as follows: To facilitate implementation of the technical specifications set forth in this document, anyone may prepare and distribute derivative works and portions of this document in software, in supporting materials accompanying software, and in documentation of software, PROVIDED that all such works include the notice below. HOWEVER, the publication of derivative works of this document for use as a technical specification is expressly prohibited.
|
|
1866
|
+
In addition, "Code Components" —Web IDL in sections clearly marked as Web IDL; and W3C-defined markup (HTML, CSS, etc.) and computer programming language code clearly marked as code examples— are licensed under the W3C Software License.
|
|
1867
|
+
The notice is:
|
|
1868
|
+
"Copyright © 2023 W3C®. This software or document includes material copied from or derived from [title and URI of the W3C document]."
|
|
1869
|
+
Disclaimers
|
|
1870
|
+
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
|
1871
|
+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
|
|
1872
|
+
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.
|
|
1873
|
+
```
|
|
@@ -7,7 +7,14 @@ Kumiori の配布物に含まれる、または Kumiori の実行に使われる
|
|
|
7
7
|
- 対象の版: このリポジトリの `package-lock.json` で入る版 (下の各節に版を書いています)
|
|
8
8
|
- この文書は、ライセンスの解釈や法的な判断を示すものではありません。
|
|
9
9
|
|
|
10
|
-
## 1. ブラウザ向けの配布物 (`
|
|
10
|
+
## 1. ブラウザ向けの配布物 (`dist/`・`dist-browser/`) に含まれるもの
|
|
11
|
+
|
|
12
|
+
次の 2 つのブラウザ向けの配布物は、この節のパッケージを束ねて含みます (2026-11-08 に、ビルドのソースマップで束ねられたパッケージを確かめました)。
|
|
13
|
+
|
|
14
|
+
- 画面 (`npm run build` の `dist/`。GitHub Pages に置くもの)
|
|
15
|
+
- ブラウザで単体で動くライブラリ (`npm run build:browser` の `dist-browser/`。npm の `kumiori/browser`)。この節のパッケージに加えて、下の 2 節の @xmldom/xmldom も束ねて含みます (XSL-FO を読むため)
|
|
16
|
+
|
|
17
|
+
ライブラリ (`npm run build:lib` の `dist-lib/`。npm の `kumiori`) は依存パッケージを束ねず、実行時に node_modules から読み込みます (下の 2 節と同じ)。
|
|
11
18
|
|
|
12
19
|
### pdf-lib 1.17.1
|
|
13
20
|
|
|
@@ -438,7 +445,20 @@ pako の LICENSE ファイル (上) は MIT の条文です。Zlib の条文は
|
|
|
438
445
|
### 1.3 @pdf-lib/standard-fonts に含まれる Adobe の AFM の Notice
|
|
439
446
|
|
|
440
447
|
@pdf-lib/standard-fonts は、14 の標準書体の寸法 (AFM) を圧縮したデータを持っています。データを展開したときの、各書体の `Notice` の文言をそのまま引用します。
|
|
441
|
-
|
|
448
|
+
このデータは、Adobe の 14 の AFM のファイルを JSON の形に変換して圧縮したもので、元の AFM のファイルそのものではありません。
|
|
449
|
+
|
|
450
|
+
元の AFM に添えられた Adobe の配布条件 (Core 14 AFM Files の ReadMe。`MustRead.html`) は、パッケージの中にはありません。下は、その本文です。
|
|
451
|
+
条件のとおり、この文書で AFM のファイルに添えて配布し、上の変換をここに記します。
|
|
452
|
+
|
|
453
|
+
- 取得元: https://raw.githubusercontent.com/apache/pdfbox/trunk/pdfbox/src/main/resources/org/apache/pdfbox/resources/afm/MustRead.html (Apache PDFBox が AFM のファイルと一緒に収めているもの。取得日 2026-11-08)
|
|
454
|
+
- HTML から本文の段落だけを取り出しました (語句は書き換えていません。白い字で書かれた段落の外の語は含めていません)。
|
|
455
|
+
|
|
456
|
+
```text
|
|
457
|
+
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files.
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
各書体の `Notice` の文言:
|
|
461
|
+
|
|
442
462
|
|
|
443
463
|
- Courier: `Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
444
464
|
- Courier-Bold: `Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
@@ -1001,9 +1021,10 @@ pdf-lib のパッケージには、Apache License 2.0 の本文は入ってい
|
|
|
1001
1021
|
limitations under the License.
|
|
1002
1022
|
```
|
|
1003
1023
|
|
|
1004
|
-
## 2. Node のコマンド (`dist-cli/cli.js`) を配布するときの依存
|
|
1024
|
+
## 2. Node のコマンド (`dist-cli/cli.js`) とライブラリ (`dist-lib/`) を配布するときの依存
|
|
1005
1025
|
|
|
1006
|
-
Node
|
|
1026
|
+
Node のコマンドとライブラリのビルドでは、次のパッケージはバンドルに入らず、実行時に node_modules から読み込まれます (上の 1 のパッケージも同じ)。npm の `kumiori` を入れると、これらも依存として一緒に入ります。
|
|
1027
|
+
このうち @xmldom/xmldom は、ブラウザで単体で動くライブラリ (`dist-browser/`) には束ねて含まれます (上の 1)。
|
|
1007
1028
|
|
|
1008
1029
|
### @xmldom/xmldom 0.9.12
|
|
1009
1030
|
|
|
@@ -1473,17 +1494,21 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
1473
1494
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1474
1495
|
```
|
|
1475
1496
|
|
|
1476
|
-
## 3. Kumiori
|
|
1497
|
+
## 3. Kumiori のコードが参照している文書と、派生元のソフトウェア (VP8・WebP)
|
|
1477
1498
|
|
|
1478
1499
|
Kumiori の `src/vp8.ts`・`src/vp8Tables.ts`・`src/webp.ts` (WebP の画像を読むコード) が、ファイルの中のコメントで参照している文書と、関連するライセンスの表示です。
|
|
1479
|
-
|
|
1500
|
+
|
|
1501
|
+
- `src/vp8.ts` の一部は libwebp から派生しています。WHT と 4×4 の逆 DCT の組み立て (libwebp の `src/dsp/dec.c` の `TransformWHT_C`・`TransformOne_C`)、YUV → RGB の係数 (`src/dsp/yuv.h` の `VP8YUVToR`・`VP8YUVToG`・`VP8YUVToB`)、色差の補間 (`src/dsp/upsampling.c` の `UPSAMPLE_FUNC`)、予測の向きの番号が、libwebp と同じ手順・同じ値です。2026-11-08 に、libwebp の main ブランチのソース (GitHub の写し https://github.com/webmproject/libwebp) と比べて確かめました。
|
|
1502
|
+
- そのため libwebp のライセンス (下の 3.4。BSD 3-Clause) に従い、`src/vp8.ts` の冒頭に libwebp の著作権表示と条文を載せています。配布物には、この文書で同じ表示を添えます。
|
|
1503
|
+
- `src/webp.ts` は RFC 9649 の手順で書いたものですが、画素の加算 (`addPixels`) と平均 (`avg2`) の 2 つの小さな関数は、libwebp の `VP8LAddPixels` (`src/dsp/lossless_common.h`) と `Average2` (`src/dsp/lossless.c`) と同じ書き方です。この 2 つも libwebp から派生したものとして扱い、`src/webp.ts` の冒頭で libwebp の表示 (`src/vp8.ts` の冒頭とこの文書) を指しています。
|
|
1504
|
+
- `src/vp8Tables.ts` の数表は RFC 6386 の表と同じ値です。RFC の表示 (下の 3.2・3.3) は、参照している文書の表示として載せています。
|
|
1480
1505
|
|
|
1481
1506
|
### 3.1 ファイルの中のコメント
|
|
1482
1507
|
|
|
1483
|
-
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)
|
|
1508
|
+
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)。」。6〜10 行目は libwebp から派生した部分の説明で、その後に libwebp の著作権表示と条文が続きます。
|
|
1484
1509
|
- `src/vp8Tables.ts` の冒頭 (2 行目): 「… VP8 (WebP の非可逆圧縮) の数表 (RFC 6386 の表と同じ値)。」
|
|
1485
|
-
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)
|
|
1486
|
-
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、
|
|
1510
|
+
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)。」。6〜8 行目は libwebp と同じ書き方の関数の説明です。
|
|
1511
|
+
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、424 行目 (「libwebp の TransformOne と同じ」)、455 行目 (フレームの外の値)、532 行目 (4×4 の予測)、695 行目 (YUV → RGBA)。94 行目は、予測の向きの番号を「libwebp の番号」としています。
|
|
1487
1512
|
|
|
1488
1513
|
### 3.2 RFC 6386 (VP8 Data Format and Decoding Guide) の著作権とライセンスの表示
|
|
1489
1514
|
|
|
@@ -1709,6 +1734,7 @@ The name and trademarks of copyright holders may NOT be used in advertising or p
|
|
|
1709
1734
|
## 5. Kumiori のコードに取り込んだ WHATWG の文書の CSS (HTML の既定のスタイルシート)
|
|
1710
1735
|
|
|
1711
1736
|
`src/cssCascade.ts` の `HTML_UA_CSS` の前半は、WHATWG の文書 HTML Living Standard の 15 章「Rendering」の CSS (15.3〜15.5) を取り込んだものです。組版に効かない規則は除き、文章で書かれた規則の一部を CSS で書き足しています。
|
|
1737
|
+
同じファイルの `QUIRKS_UA_CSS` (互換モードの文書の既定のスタイル) も、同じ 15 章の「In quirks mode」の規則 (15.3.3・15.3.7・15.3.8・15.3.10・15.4.2) を取り込んだものです。
|
|
1712
1738
|
|
|
1713
1739
|
- 文書の取得元: https://html.spec.whatwg.org/multipage/rendering.html (取得日 2026-11-04。Living Standard のため、版の名前はありません)
|
|
1714
1740
|
- 文書の著作権表示とライセンス (原文。取得元: https://html.spec.whatwg.org/multipage/acknowledgements.html 、取得日 2026-11-04): 「Copyright © WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License. To the extent portions of it are incorporated into source code, such portions in the source code are licensed under the BSD 3-Clause License instead.」。BSD 3-Clause License のリンク先は https://opensource.org/licenses/BSD-3-Clause
|
|
@@ -1803,3 +1829,45 @@ THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR
|
|
|
1803
1829
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
|
1804
1830
|
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.
|
|
1805
1831
|
```
|
|
1832
|
+
|
|
1833
|
+
## 8. Kumiori のコードに写した W3C の文書の CSS (CSS Ruby 1 の既定のスタイルシート)
|
|
1834
|
+
|
|
1835
|
+
`src/cssCascade.ts` の `HTML_UA_CSS` の後半にあるルビの規則 (rbc・rtc・rb の display、ruby・rb・rt・rbc・rtc の unicode-bidi、rtc・rt の font-variant-east-asian・text-justify・text-emphasis・white-space・line-height・font-size) は、W3C の文書 CSS Ruby Annotation Layout Module Level 1 の付録 A.1 (Default stylesheet) の規則を写したものです。台湾の注音の規則 (font-size: 30%) は、セレクタの並びの終わりに `,` があって無効な規則なので写していません。ruby・rp・rt の display は、HTML Living Standard の規則 (上の 5 節) で決まるので、ここでは写していません。
|
|
1836
|
+
|
|
1837
|
+
This software includes material copied from or derived from CSS Ruby Annotation Layout Module Level 1 (https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/). Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
|
|
1838
|
+
|
|
1839
|
+
- 文書の取得元: https://www.w3.org/TR/css-ruby-1/#default-stylesheet (2026-11-08 に取り直した文書の版は W3C Working Draft 31 December 2022、https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/)
|
|
1840
|
+
- 文書の著作権表示 (原文): 「Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and permissive document license rules apply.」。permissive document license のリンク先は https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document (https://www.w3.org/copyright/software-license-2015/ に転送される)
|
|
1841
|
+
- ライセンスの本文は、上の 7 節に写した Software and Document license - 2015 version と同じです。
|
|
1842
|
+
|
|
1843
|
+
## 9. Kumiori のコードに写した W3C の文書の CSS (CSS 2.1 の付録 D の既定のスタイルシート)
|
|
1844
|
+
|
|
1845
|
+
`src/htmlPrepare.ts` の `CSS21_DEFAULT_CSS` (`--style ah` の既定) は、W3C の文書 CSS 2.1 の付録 D「Default style sheet for HTML 4」の規則のうち、ブラウザ (Chrome) の既定と違うものを写したものです。ol・ul の字下げ (margin-left: 40px を padding-left: 2.5em に)、figure の左右の余白、sub・sup の line-height は、Kumiori が変えたり足したりしています (変えた点は `src/htmlPrepare.ts` のコメントに書いています)。
|
|
1846
|
+
|
|
1847
|
+
This software includes material copied from or derived from Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification, Appendix D. Default style sheet for HTML 4 (https://www.w3.org/TR/2011/REC-CSS2-20110607/sample.html). Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
|
|
1848
|
+
|
|
1849
|
+
- 文書の取得元: https://www.w3.org/TR/CSS2/sample.html (取得日 2026-11-05。2026-11-08 に取り直した文書の版は https://www.w3.org/TR/2011/REC-CSS2-20110607 )
|
|
1850
|
+
- 文書の状態 (原文): 「W3C Recommendation 07 June 2011, edited in place 12 April 2016 to point to new work, edited in place 07 December 2021 to correct markup.」
|
|
1851
|
+
- 文書の著作権表示 (原文。文書の表紙 https://www.w3.org/TR/CSS2/ にあるもの): 「Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.」。document use のリンク先は https://www.w3.org/Consortium/Legal/copyright-documents (https://www.w3.org/copyright/document-license-2023/ に転送される)
|
|
1852
|
+
- 下はそのライセンスの本文です。取得元: https://www.w3.org/copyright/document-license-2023/ (取得日 2026-11-08)。HTML から文字だけを取り出しました (語句は書き換えていません。見出しと段落の区切りは改行にしています。末尾の版の一覧と変更点の説明は含めていません)。
|
|
1853
|
+
|
|
1854
|
+
```text
|
|
1855
|
+
Document license - 2023 version
|
|
1856
|
+
Status: This document is in effect since 1 January 2023.
|
|
1857
|
+
Public documents on the W3C site are provided by the copyright holders under the following license.
|
|
1858
|
+
License
|
|
1859
|
+
By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
|
|
1860
|
+
Permission to copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
|
|
1861
|
+
A link or URL to the original W3C document.
|
|
1862
|
+
The pre-existing copyright notice of the original author, or if it doesn't exist, a notice (hypertext is preferred, but a textual representation is permitted) of the form: "Copyright © [$date-of-document] World Wide Web Consortium. https://www.w3.org/copyright/document-license-2023/"
|
|
1863
|
+
If it exists, the STATUS of the W3C document.
|
|
1864
|
+
When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
|
|
1865
|
+
No right to create modifications or derivatives of W3C documents is granted pursuant to this license, except as follows: To facilitate implementation of the technical specifications set forth in this document, anyone may prepare and distribute derivative works and portions of this document in software, in supporting materials accompanying software, and in documentation of software, PROVIDED that all such works include the notice below. HOWEVER, the publication of derivative works of this document for use as a technical specification is expressly prohibited.
|
|
1866
|
+
In addition, "Code Components" —Web IDL in sections clearly marked as Web IDL; and W3C-defined markup (HTML, CSS, etc.) and computer programming language code clearly marked as code examples— are licensed under the W3C Software License.
|
|
1867
|
+
The notice is:
|
|
1868
|
+
"Copyright © 2023 W3C®. This software or document includes material copied from or derived from [title and URI of the W3C document]."
|
|
1869
|
+
Disclaimers
|
|
1870
|
+
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
|
1871
|
+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
|
|
1872
|
+
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.
|
|
1873
|
+
```
|
|
@@ -7,7 +7,14 @@ Kumiori の配布物に含まれる、または Kumiori の実行に使われる
|
|
|
7
7
|
- 対象の版: このリポジトリの `package-lock.json` で入る版 (下の各節に版を書いています)
|
|
8
8
|
- この文書は、ライセンスの解釈や法的な判断を示すものではありません。
|
|
9
9
|
|
|
10
|
-
## 1. ブラウザ向けの配布物 (`
|
|
10
|
+
## 1. ブラウザ向けの配布物 (`dist/`・`dist-browser/`) に含まれるもの
|
|
11
|
+
|
|
12
|
+
次の 2 つのブラウザ向けの配布物は、この節のパッケージを束ねて含みます (2026-11-08 に、ビルドのソースマップで束ねられたパッケージを確かめました)。
|
|
13
|
+
|
|
14
|
+
- 画面 (`npm run build` の `dist/`。GitHub Pages に置くもの)
|
|
15
|
+
- ブラウザで単体で動くライブラリ (`npm run build:browser` の `dist-browser/`。npm の `kumiori/browser`)。この節のパッケージに加えて、下の 2 節の @xmldom/xmldom も束ねて含みます (XSL-FO を読むため)
|
|
16
|
+
|
|
17
|
+
ライブラリ (`npm run build:lib` の `dist-lib/`。npm の `kumiori`) は依存パッケージを束ねず、実行時に node_modules から読み込みます (下の 2 節と同じ)。
|
|
11
18
|
|
|
12
19
|
### pdf-lib 1.17.1
|
|
13
20
|
|
|
@@ -438,7 +445,20 @@ pako の LICENSE ファイル (上) は MIT の条文です。Zlib の条文は
|
|
|
438
445
|
### 1.3 @pdf-lib/standard-fonts に含まれる Adobe の AFM の Notice
|
|
439
446
|
|
|
440
447
|
@pdf-lib/standard-fonts は、14 の標準書体の寸法 (AFM) を圧縮したデータを持っています。データを展開したときの、各書体の `Notice` の文言をそのまま引用します。
|
|
441
|
-
|
|
448
|
+
このデータは、Adobe の 14 の AFM のファイルを JSON の形に変換して圧縮したもので、元の AFM のファイルそのものではありません。
|
|
449
|
+
|
|
450
|
+
元の AFM に添えられた Adobe の配布条件 (Core 14 AFM Files の ReadMe。`MustRead.html`) は、パッケージの中にはありません。下は、その本文です。
|
|
451
|
+
条件のとおり、この文書で AFM のファイルに添えて配布し、上の変換をここに記します。
|
|
452
|
+
|
|
453
|
+
- 取得元: https://raw.githubusercontent.com/apache/pdfbox/trunk/pdfbox/src/main/resources/org/apache/pdfbox/resources/afm/MustRead.html (Apache PDFBox が AFM のファイルと一緒に収めているもの。取得日 2026-11-08)
|
|
454
|
+
- HTML から本文の段落だけを取り出しました (語句は書き換えていません。白い字で書かれた段落の外の語は含めていません)。
|
|
455
|
+
|
|
456
|
+
```text
|
|
457
|
+
This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files.
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
各書体の `Notice` の文言:
|
|
461
|
+
|
|
442
462
|
|
|
443
463
|
- Courier: `Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
444
464
|
- Courier-Bold: `Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.`
|
|
@@ -1001,9 +1021,10 @@ pdf-lib のパッケージには、Apache License 2.0 の本文は入ってい
|
|
|
1001
1021
|
limitations under the License.
|
|
1002
1022
|
```
|
|
1003
1023
|
|
|
1004
|
-
## 2. Node のコマンド (`dist-cli/cli.js`) を配布するときの依存
|
|
1024
|
+
## 2. Node のコマンド (`dist-cli/cli.js`) とライブラリ (`dist-lib/`) を配布するときの依存
|
|
1005
1025
|
|
|
1006
|
-
Node
|
|
1026
|
+
Node のコマンドとライブラリのビルドでは、次のパッケージはバンドルに入らず、実行時に node_modules から読み込まれます (上の 1 のパッケージも同じ)。npm の `kumiori` を入れると、これらも依存として一緒に入ります。
|
|
1027
|
+
このうち @xmldom/xmldom は、ブラウザで単体で動くライブラリ (`dist-browser/`) には束ねて含まれます (上の 1)。
|
|
1007
1028
|
|
|
1008
1029
|
### @xmldom/xmldom 0.9.12
|
|
1009
1030
|
|
|
@@ -1473,17 +1494,21 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
1473
1494
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1474
1495
|
```
|
|
1475
1496
|
|
|
1476
|
-
## 3. Kumiori
|
|
1497
|
+
## 3. Kumiori のコードが参照している文書と、派生元のソフトウェア (VP8・WebP)
|
|
1477
1498
|
|
|
1478
1499
|
Kumiori の `src/vp8.ts`・`src/vp8Tables.ts`・`src/webp.ts` (WebP の画像を読むコード) が、ファイルの中のコメントで参照している文書と、関連するライセンスの表示です。
|
|
1479
|
-
|
|
1500
|
+
|
|
1501
|
+
- `src/vp8.ts` の一部は libwebp から派生しています。WHT と 4×4 の逆 DCT の組み立て (libwebp の `src/dsp/dec.c` の `TransformWHT_C`・`TransformOne_C`)、YUV → RGB の係数 (`src/dsp/yuv.h` の `VP8YUVToR`・`VP8YUVToG`・`VP8YUVToB`)、色差の補間 (`src/dsp/upsampling.c` の `UPSAMPLE_FUNC`)、予測の向きの番号が、libwebp と同じ手順・同じ値です。2026-11-08 に、libwebp の main ブランチのソース (GitHub の写し https://github.com/webmproject/libwebp) と比べて確かめました。
|
|
1502
|
+
- そのため libwebp のライセンス (下の 3.4。BSD 3-Clause) に従い、`src/vp8.ts` の冒頭に libwebp の著作権表示と条文を載せています。配布物には、この文書で同じ表示を添えます。
|
|
1503
|
+
- `src/webp.ts` は RFC 9649 の手順で書いたものですが、画素の加算 (`addPixels`) と平均 (`avg2`) の 2 つの小さな関数は、libwebp の `VP8LAddPixels` (`src/dsp/lossless_common.h`) と `Average2` (`src/dsp/lossless.c`) と同じ書き方です。この 2 つも libwebp から派生したものとして扱い、`src/webp.ts` の冒頭で libwebp の表示 (`src/vp8.ts` の冒頭とこの文書) を指しています。
|
|
1504
|
+
- `src/vp8Tables.ts` の数表は RFC 6386 の表と同じ値です。RFC の表示 (下の 3.2・3.3) は、参照している文書の表示として載せています。
|
|
1480
1505
|
|
|
1481
1506
|
### 3.1 ファイルの中のコメント
|
|
1482
1507
|
|
|
1483
|
-
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)
|
|
1508
|
+
- `src/vp8.ts` の冒頭 (2 行目): 「… RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)。」。6〜10 行目は libwebp から派生した部分の説明で、その後に libwebp の著作権表示と条文が続きます。
|
|
1484
1509
|
- `src/vp8Tables.ts` の冒頭 (2 行目): 「… VP8 (WebP の非可逆圧縮) の数表 (RFC 6386 の表と同じ値)。」
|
|
1485
|
-
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)
|
|
1486
|
-
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、
|
|
1510
|
+
- `src/webp.ts` の冒頭 (2 行目): 「… WebP の画素を読む (画像を Canvas に描けない環境 (Node) 用。RFC 9649)。」。6〜8 行目は libwebp と同じ書き方の関数の説明です。
|
|
1511
|
+
- `src/vp8.ts` の次のコメントは、libwebp と同じであることを述べています: 4 行目 (YUV → RGB)、424 行目 (「libwebp の TransformOne と同じ」)、455 行目 (フレームの外の値)、532 行目 (4×4 の予測)、695 行目 (YUV → RGBA)。94 行目は、予測の向きの番号を「libwebp の番号」としています。
|
|
1487
1512
|
|
|
1488
1513
|
### 3.2 RFC 6386 (VP8 Data Format and Decoding Guide) の著作権とライセンスの表示
|
|
1489
1514
|
|
|
@@ -1709,6 +1734,7 @@ The name and trademarks of copyright holders may NOT be used in advertising or p
|
|
|
1709
1734
|
## 5. Kumiori のコードに取り込んだ WHATWG の文書の CSS (HTML の既定のスタイルシート)
|
|
1710
1735
|
|
|
1711
1736
|
`src/cssCascade.ts` の `HTML_UA_CSS` の前半は、WHATWG の文書 HTML Living Standard の 15 章「Rendering」の CSS (15.3〜15.5) を取り込んだものです。組版に効かない規則は除き、文章で書かれた規則の一部を CSS で書き足しています。
|
|
1737
|
+
同じファイルの `QUIRKS_UA_CSS` (互換モードの文書の既定のスタイル) も、同じ 15 章の「In quirks mode」の規則 (15.3.3・15.3.7・15.3.8・15.3.10・15.4.2) を取り込んだものです。
|
|
1712
1738
|
|
|
1713
1739
|
- 文書の取得元: https://html.spec.whatwg.org/multipage/rendering.html (取得日 2026-11-04。Living Standard のため、版の名前はありません)
|
|
1714
1740
|
- 文書の著作権表示とライセンス (原文。取得元: https://html.spec.whatwg.org/multipage/acknowledgements.html 、取得日 2026-11-04): 「Copyright © WHATWG (Apple, Google, Mozilla, Microsoft). This work is licensed under a Creative Commons Attribution 4.0 International License. To the extent portions of it are incorporated into source code, such portions in the source code are licensed under the BSD 3-Clause License instead.」。BSD 3-Clause License のリンク先は https://opensource.org/licenses/BSD-3-Clause
|
|
@@ -1803,3 +1829,45 @@ THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR
|
|
|
1803
1829
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
|
1804
1830
|
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders.
|
|
1805
1831
|
```
|
|
1832
|
+
|
|
1833
|
+
## 8. Kumiori のコードに写した W3C の文書の CSS (CSS Ruby 1 の既定のスタイルシート)
|
|
1834
|
+
|
|
1835
|
+
`src/cssCascade.ts` の `HTML_UA_CSS` の後半にあるルビの規則 (rbc・rtc・rb の display、ruby・rb・rt・rbc・rtc の unicode-bidi、rtc・rt の font-variant-east-asian・text-justify・text-emphasis・white-space・line-height・font-size) は、W3C の文書 CSS Ruby Annotation Layout Module Level 1 の付録 A.1 (Default stylesheet) の規則を写したものです。台湾の注音の規則 (font-size: 30%) は、セレクタの並びの終わりに `,` があって無効な規則なので写していません。ruby・rp・rt の display は、HTML Living Standard の規則 (上の 5 節) で決まるので、ここでは写していません。
|
|
1836
|
+
|
|
1837
|
+
This software includes material copied from or derived from CSS Ruby Annotation Layout Module Level 1 (https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/). Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
|
|
1838
|
+
|
|
1839
|
+
- 文書の取得元: https://www.w3.org/TR/css-ruby-1/#default-stylesheet (2026-11-08 に取り直した文書の版は W3C Working Draft 31 December 2022、https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/)
|
|
1840
|
+
- 文書の著作権表示 (原文): 「Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang). W3C liability, trademark and permissive document license rules apply.」。permissive document license のリンク先は https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document (https://www.w3.org/copyright/software-license-2015/ に転送される)
|
|
1841
|
+
- ライセンスの本文は、上の 7 節に写した Software and Document license - 2015 version と同じです。
|
|
1842
|
+
|
|
1843
|
+
## 9. Kumiori のコードに写した W3C の文書の CSS (CSS 2.1 の付録 D の既定のスタイルシート)
|
|
1844
|
+
|
|
1845
|
+
`src/htmlPrepare.ts` の `CSS21_DEFAULT_CSS` (`--style ah` の既定) は、W3C の文書 CSS 2.1 の付録 D「Default style sheet for HTML 4」の規則のうち、ブラウザ (Chrome) の既定と違うものを写したものです。ol・ul の字下げ (margin-left: 40px を padding-left: 2.5em に)、figure の左右の余白、sub・sup の line-height は、Kumiori が変えたり足したりしています (変えた点は `src/htmlPrepare.ts` のコメントに書いています)。
|
|
1846
|
+
|
|
1847
|
+
This software includes material copied from or derived from Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification, Appendix D. Default style sheet for HTML 4 (https://www.w3.org/TR/2011/REC-CSS2-20110607/sample.html). Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
|
|
1848
|
+
|
|
1849
|
+
- 文書の取得元: https://www.w3.org/TR/CSS2/sample.html (取得日 2026-11-05。2026-11-08 に取り直した文書の版は https://www.w3.org/TR/2011/REC-CSS2-20110607 )
|
|
1850
|
+
- 文書の状態 (原文): 「W3C Recommendation 07 June 2011, edited in place 12 April 2016 to point to new work, edited in place 07 December 2021 to correct markup.」
|
|
1851
|
+
- 文書の著作権表示 (原文。文書の表紙 https://www.w3.org/TR/CSS2/ にあるもの): 「Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.」。document use のリンク先は https://www.w3.org/Consortium/Legal/copyright-documents (https://www.w3.org/copyright/document-license-2023/ に転送される)
|
|
1852
|
+
- 下はそのライセンスの本文です。取得元: https://www.w3.org/copyright/document-license-2023/ (取得日 2026-11-08)。HTML から文字だけを取り出しました (語句は書き換えていません。見出しと段落の区切りは改行にしています。末尾の版の一覧と変更点の説明は含めていません)。
|
|
1853
|
+
|
|
1854
|
+
```text
|
|
1855
|
+
Document license - 2023 version
|
|
1856
|
+
Status: This document is in effect since 1 January 2023.
|
|
1857
|
+
Public documents on the W3C site are provided by the copyright holders under the following license.
|
|
1858
|
+
License
|
|
1859
|
+
By using and/or copying this document, or the W3C document from which this statement is linked, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions:
|
|
1860
|
+
Permission to copy, and distribute the contents of this document, or the W3C document from which this statement is linked, in any medium for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the document, or portions thereof, that you use:
|
|
1861
|
+
A link or URL to the original W3C document.
|
|
1862
|
+
The pre-existing copyright notice of the original author, or if it doesn't exist, a notice (hypertext is preferred, but a textual representation is permitted) of the form: "Copyright © [$date-of-document] World Wide Web Consortium. https://www.w3.org/copyright/document-license-2023/"
|
|
1863
|
+
If it exists, the STATUS of the W3C document.
|
|
1864
|
+
When space permits, inclusion of the full text of this NOTICE should be provided. We request that authorship attribution be provided in any software, documents, or other items or products that you create pursuant to the implementation of the contents of this document, or any portion thereof.
|
|
1865
|
+
No right to create modifications or derivatives of W3C documents is granted pursuant to this license, except as follows: To facilitate implementation of the technical specifications set forth in this document, anyone may prepare and distribute derivative works and portions of this document in software, in supporting materials accompanying software, and in documentation of software, PROVIDED that all such works include the notice below. HOWEVER, the publication of derivative works of this document for use as a technical specification is expressly prohibited.
|
|
1866
|
+
In addition, "Code Components" —Web IDL in sections clearly marked as Web IDL; and W3C-defined markup (HTML, CSS, etc.) and computer programming language code clearly marked as code examples— are licensed under the W3C Software License.
|
|
1867
|
+
The notice is:
|
|
1868
|
+
"Copyright © 2023 W3C®. This software or document includes material copied from or derived from [title and URI of the W3C document]."
|
|
1869
|
+
Disclaimers
|
|
1870
|
+
THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
|
1871
|
+
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.
|
|
1872
|
+
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to this document or its contents without specific, written prior permission. Title to copyright in this document will at all times remain with copyright holders.
|
|
1873
|
+
```
|
package/dist-cli/cli.js
CHANGED
|
@@ -2020,6 +2020,12 @@ function pageNumberFormatOf(type) {
|
|
|
2020
2020
|
*
|
|
2021
2021
|
* 後半は、仕様に値の決まりの無い部分の既定 (Chrome の既定のうち組版に効くもの): フォームの部品の字の大きさ・書体・余白・背景、
|
|
2022
2022
|
* ルビの注釈の字の大きさなど。
|
|
2023
|
+
*
|
|
2024
|
+
* 後半のうちルビの規則 (rbc・rtc・rb と、rtc・rt の字の大きさなど) は、CSS Ruby 1 の付録 A.1 の既定のスタイルシートを写したもの
|
|
2025
|
+
* (https://www.w3.org/TR/css-ruby-1/#default-stylesheet 、取得した版は https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/ )。
|
|
2026
|
+
* This software includes material copied from or derived from CSS Ruby Annotation Layout Module Level 1 (https://www.w3.org/TR/2022/WD-css-ruby-1-20221231/).
|
|
2027
|
+
* Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
|
|
2028
|
+
* (ライセンスの本文は THIRD_PARTY_NOTICES.md の 8 節)
|
|
2023
2029
|
*/
|
|
2024
2030
|
var HTML_UA_CSS = `
|
|
2025
2031
|
/* 15.3.1 Hidden elements */
|
|
@@ -2193,7 +2199,10 @@ input, select, button { font-family: Arial; } textarea { font-family: monospace;
|
|
|
2193
2199
|
input[type="submit"], input[type="button"], input[type="reset"], button { padding: 1px 6px; white-space: pre; background-color: rgb(239, 239, 239); }
|
|
2194
2200
|
textarea { display: inline-block; }
|
|
2195
2201
|
`;
|
|
2196
|
-
/**
|
|
2202
|
+
/**
|
|
2203
|
+
* 互換モード (quirks mode) の文書の既定のスタイル (HTML Living Standard の 15 章の「In quirks mode」の規則。2026-11-04 取得)。
|
|
2204
|
+
* Copyright © WHATWG (Apple, Google, Mozilla, Microsoft)。ソースコードに取り込んだ部分は BSD 3-Clause License (THIRD_PARTY_NOTICES.md の 5 節)
|
|
2205
|
+
*/
|
|
2197
2206
|
var QUIRKS_UA_CSS = `
|
|
2198
2207
|
/* 15.3.3 */ form { margin-block-end: 1em; }
|
|
2199
2208
|
/* 15.3.7 */ li { list-style-position: inside; }
|
|
@@ -41018,6 +41027,42 @@ var BMODES_PROBA = Uint8Array.from([
|
|
|
41018
41027
|
* vp8 — VP8 (WebP の非可逆圧縮) のキーフレームを読み、RGBA にする (画像を Canvas に描けない環境 (Node) 用。RFC 6386)。
|
|
41019
41028
|
* - ブール符号・セグメント・係数の確率の更新・16×16 / 4×4 / 色差 8×8 の画面内予測・WHT と IDCT・ループフィルタ (簡易・通常)
|
|
41020
41029
|
* - YUV → RGB は libwebp と同じ (色差の補間 (fancy upsampling) と 14 ビットの係数)
|
|
41030
|
+
*
|
|
41031
|
+
* このファイルの一部は libwebp (https://chromium.googlesource.com/webm/libwebp) から派生している:
|
|
41032
|
+
* WHT と 4×4 の逆 DCT の組み立て (libwebp の src/dsp/dec.c の TransformWHT_C・TransformOne_C)、YUV → RGB の係数
|
|
41033
|
+
* (src/dsp/yuv.h の VP8YUVToR・VP8YUVToG・VP8YUVToB)、色差の補間 (src/dsp/upsampling.c の UPSAMPLE_FUNC)、予測の向きの番号。
|
|
41034
|
+
* 2026-11-08 に libwebp の main ブランチのソース (GitHub の写し https://github.com/webmproject/libwebp) と比べて確かめた。libwebp のライセンス (BSD 3-Clause) に従い、
|
|
41035
|
+
* 著作権表示と条文を下に書き換えずに載せる (libwebp の COPYING。PATENTS とあわせて THIRD_PARTY_NOTICES.md の 3 節):
|
|
41036
|
+
*
|
|
41037
|
+
* Copyright (c) 2010, Google Inc. All rights reserved.
|
|
41038
|
+
*
|
|
41039
|
+
* Redistribution and use in source and binary forms, with or without
|
|
41040
|
+
* modification, are permitted provided that the following conditions are
|
|
41041
|
+
* met:
|
|
41042
|
+
*
|
|
41043
|
+
* * Redistributions of source code must retain the above copyright
|
|
41044
|
+
* notice, this list of conditions and the following disclaimer.
|
|
41045
|
+
*
|
|
41046
|
+
* * Redistributions in binary form must reproduce the above copyright
|
|
41047
|
+
* notice, this list of conditions and the following disclaimer in
|
|
41048
|
+
* the documentation and/or other materials provided with the
|
|
41049
|
+
* distribution.
|
|
41050
|
+
*
|
|
41051
|
+
* * Neither the name of Google nor the names of its contributors may
|
|
41052
|
+
* be used to endorse or promote products derived from this software
|
|
41053
|
+
* without specific prior written permission.
|
|
41054
|
+
*
|
|
41055
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
41056
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
41057
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
41058
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
41059
|
+
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
41060
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
41061
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
41062
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
41063
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
41064
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
41065
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
41021
41066
|
*/
|
|
41022
41067
|
/** ブール符号 (RFC 6386 §7) */
|
|
41023
41068
|
var BoolDecoder = class {
|
|
@@ -59555,6 +59600,13 @@ body { margin: 0; }
|
|
|
59555
59600
|
* figure (付録 D には無い要素) の左右の余白は 0 にする (図は本文の幅いっぱいに置く。ブラウザの既定の左右 40px の余白は付けない)
|
|
59556
59601
|
* sub・sup は、付録 D に line-height の指定が無い (https://www.w3.org/TR/CSS2/sample.html 、2026-11-05 取得) ので、
|
|
59557
59602
|
* ブラウザの既定 (WHATWG 15.3.4 の line-height: normal) を打ち消して、親の line-height を受け継ぐ
|
|
59603
|
+
*
|
|
59604
|
+
* 付録 D の規則は、取得した文書 (W3C Recommendation 07 June 2011, edited in place 12 April 2016 to point to new work,
|
|
59605
|
+
* edited in place 07 December 2021 to correct markup) から写し、上のとおり一部を変えた。
|
|
59606
|
+
* This software includes material copied from or derived from Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification,
|
|
59607
|
+
* Appendix D. Default style sheet for HTML 4 (https://www.w3.org/TR/2011/REC-CSS2-20110607/sample.html).
|
|
59608
|
+
* Copyright © 2011 W3C® (MIT, ERCIM, Keio), All Rights Reserved.
|
|
59609
|
+
* (ライセンスの本文は THIRD_PARTY_NOTICES.md の 9 節)
|
|
59558
59610
|
*/
|
|
59559
59611
|
var CSS21_DEFAULT_CSS = `
|
|
59560
59612
|
h1 { font-size: 2em; margin: .67em 0; }
|