diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index c37e2ef8..888bf6d4 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -75,6 +75,10 @@ The Insert > Stickers gallery (issue #286). Each is a 128 x 128 SVG of plain sha | `assets/fonts/OFL-NotoSansDevanagari.txt` | The licence text above | Shipped with the font | SIL OFL 1.1 | | `assets/fonts/NotoSansCJKsc-Regular.otf` | Noto Sans CJK SC, Regular. 16 MB. Bundled so Chinese, Japanese and Korean draw on a machine with no such font installed (the SC build carries the Japanese and Korean glyphs too, with Simplified Chinese forms where the scripts share a character) | The Noto CJK project (`notofonts/noto-cjk`, `Sans/OTF/SimplifiedChinese`, commit `f8d157532fbfaeda587e826d4cd5b21a49186f7c`), taken from the suite's `craft-fonts` repository on 2026-10-18, whose manifest lists the same file and SHA-256 `2c76254f6fc379fddfce0a7e84fb5385bb135d3e399294f6eeb6680d0365b74b`. Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source' | **SIL Open Font License 1.1**, text in `assets/fonts/OFL-NotoSansCJKsc.txt`. Bundled unmodified | | `assets/fonts/OFL-NotoSansCJKsc.txt` | The licence text above | Shipped with the font | SIL OFL 1.1 | +| `assets/fonts/NotoSans.ttf` | Noto Sans, variable width and weight, Latin, Greek and Cyrillic. Bundled as the default body font for new pages, so text draws the same on a machine with no such font installed | The Noto Project, via the Google Fonts repository (`ofl/notosans`, file `NotoSans[wdth,wght].ttf`), downloaded 2026-11-29. SHA-256 `bfb7bb691513f12e734dc346c03a03f784912432d7e3fa8e56efcf906fe86b3d`. Copyright 2022 The Noto Project Authors | **SIL Open Font License 1.1**, text in `assets/fonts/OFL-NotoSans.txt`. Bundled unmodified; renamed only | +| `assets/fonts/OFL-NotoSans.txt` | The licence text above | Shipped with the font | SIL OFL 1.1 | +| `assets/fonts/NotoEmoji.ttf` | Noto Emoji, variable weight, the monochrome emoji face. Bundled so the library's monochrome symbols draw in one ink, beside the colour emoji | The Noto Project, via the Google Fonts repository (`ofl/notoemoji`, file `NotoEmoji[wght].ttf`), downloaded 2026-11-29. SHA-256 `de6c18832938afc99caf132b39d6a30a19bac7f2e812e28db2535b4608d27551`. Copyright 2013 Google LLC | **SIL Open Font License 1.1**, text in `assets/fonts/OFL-NotoEmoji.txt`. Bundled unmodified; renamed only | +| `assets/fonts/OFL-NotoEmoji.txt` | The licence text above | Shipped with the font | SIL OFL 1.1 | | `assets/fonts/katex/KaTeX_AMS-Regular.ttf` | KaTeX maths font, for drawing equations | The KaTeX project (Khan Academy and Design Science), unmodified, as packaged in the ratex-katex-fonts crate 0.1.15 | SIL OFL 1.1 | | `assets/fonts/katex/KaTeX_Caligraphic-Bold.ttf` | KaTeX maths font, for drawing equations | The KaTeX project (Khan Academy and Design Science), unmodified, as packaged in the ratex-katex-fonts crate 0.1.15 | SIL OFL 1.1 | | `assets/fonts/katex/KaTeX_Caligraphic-Regular.ttf` | KaTeX maths font, for drawing equations | The KaTeX project (Khan Academy and Design Science), unmodified, as packaged in the ratex-katex-fonts crate 0.1.15 | SIL OFL 1.1 | diff --git a/NOTICE b/NOTICE index a27052fd..8f0ccdaa 100644 --- a/NOTICE +++ b/NOTICE @@ -17,6 +17,8 @@ is, where it came from, its license status) is in ATTRIBUTION.md. Font License 1.1, Copyright 2022 The Noto Project Authors. Bundled unmodified so that Arabic, Hebrew and Devanagari have glyphs on a machine that has no such font installed; each licence text sits beside its font as assets/fonts/OFL-*.txt. +- Noto Emoji (assets/fonts/NotoEmoji.ttf) - SIL Open Font License 1.1, Copyright 2013 Google LLC. + Bundled unmodified, for the monochrome emoji symbols; the licence text is assets/fonts/OFL-NotoEmoji.txt. - The KaTeX maths fonts (assets/fonts/katex/) - SIL Open Font License 1.1, Copyright 2009-2010 Design Science, Inc. and 2014-2018 Khan Academy, with Reserved Font Names KaTeX_*. Bundled unmodified so equations draw in real maths fonts; the licence text is diff --git a/assets/fonts/NotoEmoji.ttf b/assets/fonts/NotoEmoji.ttf new file mode 100644 index 00000000..c2c26ab6 Binary files /dev/null and b/assets/fonts/NotoEmoji.ttf differ diff --git a/assets/fonts/NotoSans.ttf b/assets/fonts/NotoSans.ttf new file mode 100644 index 00000000..75575046 Binary files /dev/null and b/assets/fonts/NotoSans.ttf differ diff --git a/assets/fonts/OFL-NotoEmoji.txt b/assets/fonts/OFL-NotoEmoji.txt new file mode 100644 index 00000000..d09d3d0e --- /dev/null +++ b/assets/fonts/OFL-NotoEmoji.txt @@ -0,0 +1,93 @@ +Copyright 2013 Google LLC + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/OFL-NotoSans.txt b/assets/fonts/OFL-NotoSans.txt new file mode 100644 index 00000000..6843f318 --- /dev/null +++ b/assets/fonts/OFL-NotoSans.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/crates/formats/src/html.rs b/crates/formats/src/html.rs index 06fd0615..f3f3c822 100644 --- a/crates/formats/src/html.rs +++ b/crates/formats/src/html.rs @@ -608,7 +608,9 @@ impl Writer { } _ => "- ".to_string(), }; - self.out.push_str(&format!("{}{marker}", " ".repeat(depth))); + // A library style written on the item comes back as the comment the Markdown form uses (#543). + let style = attr(attrs, "data-list").map(|name| format!(" ")).unwrap_or_default(); + self.out.push_str(&format!("{}{marker}{style}", " ".repeat(depth))); } ("li", true) => { let trimmed = self.out.trim_end_matches([' ', '\t']).len(); @@ -767,12 +769,26 @@ impl Writer { // list item: "☐ buy milk" and "