@file-viewer/renderer-typst 3.1.2 → 3.2.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.en.md +3 -49
- package/README.md +3 -49
- package/assets/LICENSE-seahash-4.1.0 +23 -0
- package/assets/NATIVE_THIRD_PARTY_LICENSES.json +10974 -0
- package/assets/fonts/LICENSE.LPPL-1.3c.txt +416 -0
- package/assets/fonts/LICENSE.typst-assets.txt +176 -0
- package/assets/fonts/NOTICE.typst-assets.txt +447 -0
- package/assets/fonts/README.md +9 -0
- package/dist/sanitize.js +0 -3
- package/dist/typst.js +0 -2
- package/package.json +42 -16
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
Licenses for third party components bundled by this project can be found below.
|
|
2
|
+
|
|
3
|
+
================================================================================
|
|
4
|
+
The SIL Open Font License Version 1.1 applies to:
|
|
5
|
+
|
|
6
|
+
* Libertinus Serif fonts in files/fonts/LibertinusSerif-*.otf
|
|
7
|
+
Copyright © 2012-2024 The Libertinus Project Authors,
|
|
8
|
+
with Reserved Font Name "Linux Libertine", "Biolinum", "STIX Fonts".
|
|
9
|
+
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
12
|
+
-----------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
PREAMBLE
|
|
15
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
16
|
+
development of collaborative font projects, to support the font creation
|
|
17
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
18
|
+
open framework in which fonts may be shared and improved in partnership
|
|
19
|
+
with others.
|
|
20
|
+
|
|
21
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
22
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
23
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
24
|
+
redistributed and/or sold with any software provided that any reserved
|
|
25
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
26
|
+
however, cannot be released under any other type of license. The
|
|
27
|
+
requirement for fonts to remain under this license does not apply
|
|
28
|
+
to any document created using the fonts or their derivatives.
|
|
29
|
+
|
|
30
|
+
DEFINITIONS
|
|
31
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
32
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
33
|
+
include source files, build scripts and documentation.
|
|
34
|
+
|
|
35
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
36
|
+
copyright statement(s).
|
|
37
|
+
|
|
38
|
+
"Original Version" refers to the collection of Font Software components as
|
|
39
|
+
distributed by the Copyright Holder(s).
|
|
40
|
+
|
|
41
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
42
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
43
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
44
|
+
new environment.
|
|
45
|
+
|
|
46
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
47
|
+
writer or other person who contributed to the Font Software.
|
|
48
|
+
|
|
49
|
+
PERMISSION & CONDITIONS
|
|
50
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
51
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
52
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
53
|
+
Software, subject to the following conditions:
|
|
54
|
+
|
|
55
|
+
1) Neither the Font Software nor any of its individual components,
|
|
56
|
+
in Original or Modified Versions, may be sold by itself.
|
|
57
|
+
|
|
58
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
59
|
+
redistributed and/or sold with any software, provided that each copy
|
|
60
|
+
contains the above copyright notice and this license. These can be
|
|
61
|
+
included either as stand-alone text files, human-readable headers or
|
|
62
|
+
in the appropriate machine-readable metadata fields within text or
|
|
63
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
64
|
+
|
|
65
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
66
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
67
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
68
|
+
presented to the users.
|
|
69
|
+
|
|
70
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
71
|
+
Software shall not be used to promote, endorse or advertise any
|
|
72
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
73
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
74
|
+
permission.
|
|
75
|
+
|
|
76
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
77
|
+
must be distributed entirely under this license, and must not be
|
|
78
|
+
distributed under any other license. The requirement for fonts to
|
|
79
|
+
remain under this license does not apply to any document created
|
|
80
|
+
using the Font Software.
|
|
81
|
+
|
|
82
|
+
TERMINATION
|
|
83
|
+
This license becomes null and void if any of the above conditions are
|
|
84
|
+
not met.
|
|
85
|
+
|
|
86
|
+
DISCLAIMER
|
|
87
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
88
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
89
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
90
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
91
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
92
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
93
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
94
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
95
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
96
|
+
================================================================================
|
|
97
|
+
|
|
98
|
+
================================================================================
|
|
99
|
+
The GUST Font License Version 1.0 applies to:
|
|
100
|
+
|
|
101
|
+
* NewComputerModern fonts in files/fonts/NewCM*.otf
|
|
102
|
+
|
|
103
|
+
% This is version 1.0, dated 22 June 2009, of the GUST Font License.
|
|
104
|
+
% (GUST is the Polish TeX Users Group, http://www.gust.org.pl)
|
|
105
|
+
%
|
|
106
|
+
% For the most recent version of this license see
|
|
107
|
+
% http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt
|
|
108
|
+
% or
|
|
109
|
+
% http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt
|
|
110
|
+
%
|
|
111
|
+
% This work may be distributed and/or modified under the conditions
|
|
112
|
+
% of the LaTeX Project Public License, either version 1.3c of this
|
|
113
|
+
% license or (at your option) any later version.
|
|
114
|
+
%
|
|
115
|
+
% Please also observe the following clause:
|
|
116
|
+
% 1) it is requested, but not legally required, that derived works be
|
|
117
|
+
% distributed only after changing the names of the fonts comprising this
|
|
118
|
+
% work and given in an accompanying "manifest", and that the
|
|
119
|
+
% files comprising the Work, as listed in the manifest, also be given
|
|
120
|
+
% new names. Any exceptions to this request are also given in the
|
|
121
|
+
% manifest.
|
|
122
|
+
%
|
|
123
|
+
% We recommend the manifest be given in a separate file named
|
|
124
|
+
% MANIFEST-<fontid>.txt, where <fontid> is some unique identification
|
|
125
|
+
% of the font family. If a separate "readme" file accompanies the Work,
|
|
126
|
+
% we recommend a name of the form README-<fontid>.txt.
|
|
127
|
+
%
|
|
128
|
+
% The latest version of the LaTeX Project Public License is in
|
|
129
|
+
% http://www.latex-project.org/lppl.txt and version 1.3c or later
|
|
130
|
+
% is part of all distributions of LaTeX version 2006/05/20 or later.
|
|
131
|
+
================================================================================
|
|
132
|
+
|
|
133
|
+
================================================================================
|
|
134
|
+
The terms below apply to:
|
|
135
|
+
|
|
136
|
+
* DejaVu fonts in files/fonts/DejaVu*.ttf
|
|
137
|
+
(https://github.com/dejavu-fonts/dejavu-fonts)
|
|
138
|
+
|
|
139
|
+
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
|
140
|
+
Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Bitstream Vera Fonts Copyright
|
|
144
|
+
------------------------------
|
|
145
|
+
|
|
146
|
+
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
|
|
147
|
+
a trademark of Bitstream, Inc.
|
|
148
|
+
|
|
149
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
150
|
+
of the fonts accompanying this license ("Fonts") and associated
|
|
151
|
+
documentation files (the "Font Software"), to reproduce and distribute the
|
|
152
|
+
Font Software, including without limitation the rights to use, copy, merge,
|
|
153
|
+
publish, distribute, and/or sell copies of the Font Software, and to permit
|
|
154
|
+
persons to whom the Font Software is furnished to do so, subject to the
|
|
155
|
+
following conditions:
|
|
156
|
+
|
|
157
|
+
The above copyright and trademark notices and this permission notice shall
|
|
158
|
+
be included in all copies of one or more of the Font Software typefaces.
|
|
159
|
+
|
|
160
|
+
The Font Software may be modified, altered, or added to, and in particular
|
|
161
|
+
the designs of glyphs or characters in the Fonts may be modified and
|
|
162
|
+
additional glyphs or characters may be added to the Fonts, only if the fonts
|
|
163
|
+
are renamed to names not containing either the words "Bitstream" or the word
|
|
164
|
+
"Vera".
|
|
165
|
+
|
|
166
|
+
This License becomes null and void to the extent applicable to Fonts or Font
|
|
167
|
+
Software that has been modified and is distributed under the "Bitstream
|
|
168
|
+
Vera" names.
|
|
169
|
+
|
|
170
|
+
The Font Software may be sold as part of a larger software package but no
|
|
171
|
+
copy of one or more of the Font Software typefaces may be sold by itself.
|
|
172
|
+
|
|
173
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
174
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
|
175
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
|
176
|
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
|
177
|
+
FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
|
178
|
+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
|
179
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
|
180
|
+
THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
|
|
181
|
+
FONT SOFTWARE.
|
|
182
|
+
|
|
183
|
+
Except as contained in this notice, the names of Gnome, the Gnome
|
|
184
|
+
Foundation, and Bitstream Inc., shall not be used in advertising or
|
|
185
|
+
otherwise to promote the sale, use or other dealings in this Font Software
|
|
186
|
+
without prior written authorization from the Gnome Foundation or Bitstream
|
|
187
|
+
Inc., respectively. For further information, contact: fonts at gnome dot
|
|
188
|
+
org.
|
|
189
|
+
|
|
190
|
+
Arev Fonts Copyright
|
|
191
|
+
------------------------------
|
|
192
|
+
|
|
193
|
+
Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
|
|
194
|
+
|
|
195
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
196
|
+
a copy of the fonts accompanying this license ("Fonts") and
|
|
197
|
+
associated documentation files (the "Font Software"), to reproduce
|
|
198
|
+
and distribute the modifications to the Bitstream Vera Font Software,
|
|
199
|
+
including without limitation the rights to use, copy, merge, publish,
|
|
200
|
+
distribute, and/or sell copies of the Font Software, and to permit
|
|
201
|
+
persons to whom the Font Software is furnished to do so, subject to
|
|
202
|
+
the following conditions:
|
|
203
|
+
|
|
204
|
+
The above copyright and trademark notices and this permission notice
|
|
205
|
+
shall be included in all copies of one or more of the Font Software
|
|
206
|
+
typefaces.
|
|
207
|
+
|
|
208
|
+
The Font Software may be modified, altered, or added to, and in
|
|
209
|
+
particular the designs of glyphs or characters in the Fonts may be
|
|
210
|
+
modified and additional glyphs or characters may be added to the
|
|
211
|
+
Fonts, only if the fonts are renamed to names not containing either
|
|
212
|
+
the words "Tavmjong Bah" or the word "Arev".
|
|
213
|
+
|
|
214
|
+
This License becomes null and void to the extent applicable to Fonts
|
|
215
|
+
or Font Software that has been modified and is distributed under the
|
|
216
|
+
"Tavmjong Bah Arev" names.
|
|
217
|
+
|
|
218
|
+
The Font Software may be sold as part of a larger software package but
|
|
219
|
+
no copy of one or more of the Font Software typefaces may be sold by
|
|
220
|
+
itself.
|
|
221
|
+
|
|
222
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
223
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
224
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
225
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
|
|
226
|
+
TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
227
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
228
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
229
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
230
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
231
|
+
|
|
232
|
+
Except as contained in this notice, the name of Tavmjong Bah shall not
|
|
233
|
+
be used in advertising or otherwise to promote the sale, use or other
|
|
234
|
+
dealings in this Font Software without prior written authorization
|
|
235
|
+
from Tavmjong Bah. For further information, contact: tavmjong @ free
|
|
236
|
+
. fr.
|
|
237
|
+
|
|
238
|
+
TeX Gyre DJV Math
|
|
239
|
+
-----------------
|
|
240
|
+
Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
|
|
241
|
+
|
|
242
|
+
Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
|
|
243
|
+
(on behalf of TeX users groups) are in public domain.
|
|
244
|
+
|
|
245
|
+
Letters imported from Euler Fraktur from AMSfonts are (c) American
|
|
246
|
+
Mathematical Society (see below).
|
|
247
|
+
Bitstream Vera Fonts Copyright
|
|
248
|
+
Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
|
|
249
|
+
is a trademark of Bitstream, Inc.
|
|
250
|
+
|
|
251
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
252
|
+
of the fonts accompanying this license (“Fonts”) and associated
|
|
253
|
+
documentation
|
|
254
|
+
files (the “Font Software”), to reproduce and distribute the Font Software,
|
|
255
|
+
including without limitation the rights to use, copy, merge, publish,
|
|
256
|
+
distribute,
|
|
257
|
+
and/or sell copies of the Font Software, and to permit persons to whom
|
|
258
|
+
the Font Software is furnished to do so, subject to the following
|
|
259
|
+
conditions:
|
|
260
|
+
|
|
261
|
+
The above copyright and trademark notices and this permission notice
|
|
262
|
+
shall be
|
|
263
|
+
included in all copies of one or more of the Font Software typefaces.
|
|
264
|
+
|
|
265
|
+
The Font Software may be modified, altered, or added to, and in particular
|
|
266
|
+
the designs of glyphs or characters in the Fonts may be modified and
|
|
267
|
+
additional
|
|
268
|
+
glyphs or characters may be added to the Fonts, only if the fonts are
|
|
269
|
+
renamed
|
|
270
|
+
to names not containing either the words “Bitstream” or the word “Vera”.
|
|
271
|
+
|
|
272
|
+
This License becomes null and void to the extent applicable to Fonts or
|
|
273
|
+
Font Software
|
|
274
|
+
that has been modified and is distributed under the “Bitstream Vera”
|
|
275
|
+
names.
|
|
276
|
+
|
|
277
|
+
The Font Software may be sold as part of a larger software package but
|
|
278
|
+
no copy
|
|
279
|
+
of one or more of the Font Software typefaces may be sold by itself.
|
|
280
|
+
|
|
281
|
+
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
282
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
|
283
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
|
284
|
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
|
|
285
|
+
FOUNDATION
|
|
286
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
|
|
287
|
+
SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
|
|
288
|
+
ACTION
|
|
289
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR
|
|
290
|
+
INABILITY TO USE
|
|
291
|
+
THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
292
|
+
Except as contained in this notice, the names of GNOME, the GNOME
|
|
293
|
+
Foundation,
|
|
294
|
+
and Bitstream Inc., shall not be used in advertising or otherwise to promote
|
|
295
|
+
the sale, use or other dealings in this Font Software without prior written
|
|
296
|
+
authorization from the GNOME Foundation or Bitstream Inc., respectively.
|
|
297
|
+
For further information, contact: fonts at gnome dot org.
|
|
298
|
+
|
|
299
|
+
AMSFonts (v. 2.2) copyright
|
|
300
|
+
|
|
301
|
+
The PostScript Type 1 implementation of the AMSFonts produced by and
|
|
302
|
+
previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
|
|
303
|
+
available for general use. This has been accomplished through the
|
|
304
|
+
cooperation
|
|
305
|
+
of a consortium of scientific publishers with Blue Sky Research and Y&Y.
|
|
306
|
+
Members of this consortium include:
|
|
307
|
+
|
|
308
|
+
Elsevier Science IBM Corporation Society for Industrial and Applied
|
|
309
|
+
Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
|
|
310
|
+
|
|
311
|
+
In order to assure the authenticity of these fonts, copyright will be
|
|
312
|
+
held by
|
|
313
|
+
the American Mathematical Society. This is not meant to restrict in any way
|
|
314
|
+
the legitimate use of the fonts, such as (but not limited to) electronic
|
|
315
|
+
distribution of documents containing these fonts, inclusion of these fonts
|
|
316
|
+
into other public domain or commercial font collections or computer
|
|
317
|
+
applications, use of the outline data to create derivative fonts and/or
|
|
318
|
+
faces, etc. However, the AMS does require that the AMS copyright notice be
|
|
319
|
+
removed from any derivative versions of the fonts which have been altered in
|
|
320
|
+
any way. In addition, to ensure the fidelity of TeX documents using Computer
|
|
321
|
+
Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
|
|
322
|
+
has requested that any alterations which yield different font metrics be
|
|
323
|
+
given a different name.
|
|
324
|
+
|
|
325
|
+
$Id$
|
|
326
|
+
================================================================================
|
|
327
|
+
|
|
328
|
+
================================================================================
|
|
329
|
+
The Creative Commons Zero v1.0 Universal License applies to:
|
|
330
|
+
* The ICC profiles found in `files/icc/*-v4.icc` and
|
|
331
|
+
|
|
332
|
+
CC0 1.0 Universal
|
|
333
|
+
|
|
334
|
+
Statement of Purpose
|
|
335
|
+
|
|
336
|
+
The laws of most jurisdictions throughout the world automatically confer
|
|
337
|
+
exclusive Copyright and Related Rights (defined below) upon the creator and
|
|
338
|
+
subsequent owner(s) (each and all, an "owner") of an original work of
|
|
339
|
+
authorship and/or a database (each, a "Work").
|
|
340
|
+
|
|
341
|
+
Certain owners wish to permanently relinquish those rights to a Work for the
|
|
342
|
+
purpose of contributing to a commons of creative, cultural and scientific
|
|
343
|
+
works ("Commons") that the public can reliably and without fear of later
|
|
344
|
+
claims of infringement build upon, modify, incorporate in other works, reuse
|
|
345
|
+
and redistribute as freely as possible in any form whatsoever and for any
|
|
346
|
+
purposes, including without limitation commercial purposes. These owners may
|
|
347
|
+
contribute to the Commons to promote the ideal of a free culture and the
|
|
348
|
+
further production of creative, cultural and scientific works, or to gain
|
|
349
|
+
reputation or greater distribution for their Work in part through the use and
|
|
350
|
+
efforts of others.
|
|
351
|
+
|
|
352
|
+
For these and/or other purposes and motivations, and without any expectation
|
|
353
|
+
of additional consideration or compensation, the person associating CC0 with a
|
|
354
|
+
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
|
|
355
|
+
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
|
|
356
|
+
and publicly distribute the Work under its terms, with knowledge of his or her
|
|
357
|
+
Copyright and Related Rights in the Work and the meaning and intended legal
|
|
358
|
+
effect of CC0 on those rights.
|
|
359
|
+
|
|
360
|
+
1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
361
|
+
protected by copyright and related or neighboring rights ("Copyright and
|
|
362
|
+
Related Rights"). Copyright and Related Rights include, but are not limited
|
|
363
|
+
to, the following:
|
|
364
|
+
|
|
365
|
+
i. the right to reproduce, adapt, distribute, perform, display, communicate,
|
|
366
|
+
and translate a Work;
|
|
367
|
+
|
|
368
|
+
ii. moral rights retained by the original author(s) and/or performer(s);
|
|
369
|
+
|
|
370
|
+
iii. publicity and privacy rights pertaining to a person's image or likeness
|
|
371
|
+
depicted in a Work;
|
|
372
|
+
|
|
373
|
+
iv. rights protecting against unfair competition in regards to a Work,
|
|
374
|
+
subject to the limitations in paragraph 4(a), below;
|
|
375
|
+
|
|
376
|
+
v. rights protecting the extraction, dissemination, use and reuse of data in
|
|
377
|
+
a Work;
|
|
378
|
+
|
|
379
|
+
vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
380
|
+
European Parliament and of the Council of 11 March 1996 on the legal
|
|
381
|
+
protection of databases, and under any national implementation thereof,
|
|
382
|
+
including any amended or successor version of such directive); and
|
|
383
|
+
|
|
384
|
+
vii. other similar, equivalent or corresponding rights throughout the world
|
|
385
|
+
based on applicable law or treaty, and any national implementations thereof.
|
|
386
|
+
|
|
387
|
+
2. Waiver. To the greatest extent permitted by, but not in contravention of,
|
|
388
|
+
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
|
|
389
|
+
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
|
|
390
|
+
and Related Rights and associated claims and causes of action, whether now
|
|
391
|
+
known or unknown (including existing as well as future claims and causes of
|
|
392
|
+
action), in the Work (i) in all territories worldwide, (ii) for the maximum
|
|
393
|
+
duration provided by applicable law or treaty (including future time
|
|
394
|
+
extensions), (iii) in any current or future medium and for any number of
|
|
395
|
+
copies, and (iv) for any purpose whatsoever, including without limitation
|
|
396
|
+
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
|
|
397
|
+
the Waiver for the benefit of each member of the public at large and to the
|
|
398
|
+
detriment of Affirmer's heirs and successors, fully intending that such Waiver
|
|
399
|
+
shall not be subject to revocation, rescission, cancellation, termination, or
|
|
400
|
+
any other legal or equitable action to disrupt the quiet enjoyment of the Work
|
|
401
|
+
by the public as contemplated by Affirmer's express Statement of Purpose.
|
|
402
|
+
|
|
403
|
+
3. Public License Fallback. Should any part of the Waiver for any reason be
|
|
404
|
+
judged legally invalid or ineffective under applicable law, then the Waiver
|
|
405
|
+
shall be preserved to the maximum extent permitted taking into account
|
|
406
|
+
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
|
|
407
|
+
is so judged Affirmer hereby grants to each affected person a royalty-free,
|
|
408
|
+
non transferable, non sublicensable, non exclusive, irrevocable and
|
|
409
|
+
unconditional license to exercise Affirmer's Copyright and Related Rights in
|
|
410
|
+
the Work (i) in all territories worldwide, (ii) for the maximum duration
|
|
411
|
+
provided by applicable law or treaty (including future time extensions), (iii)
|
|
412
|
+
in any current or future medium and for any number of copies, and (iv) for any
|
|
413
|
+
purpose whatsoever, including without limitation commercial, advertising or
|
|
414
|
+
promotional purposes (the "License"). The License shall be deemed effective as
|
|
415
|
+
of the date CC0 was applied by Affirmer to the Work. Should any part of the
|
|
416
|
+
License for any reason be judged legally invalid or ineffective under
|
|
417
|
+
applicable law, such partial invalidity or ineffectiveness shall not
|
|
418
|
+
invalidate the remainder of the License, and in such case Affirmer hereby
|
|
419
|
+
affirms that he or she will not (i) exercise any of his or her remaining
|
|
420
|
+
Copyright and Related Rights in the Work or (ii) assert any associated claims
|
|
421
|
+
and causes of action with respect to the Work, in either case contrary to
|
|
422
|
+
Affirmer's express Statement of Purpose.
|
|
423
|
+
|
|
424
|
+
4. Limitations and Disclaimers.
|
|
425
|
+
|
|
426
|
+
a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
427
|
+
surrendered, licensed or otherwise affected by this document.
|
|
428
|
+
|
|
429
|
+
b. Affirmer offers the Work as-is and makes no representations or warranties
|
|
430
|
+
of any kind concerning the Work, express, implied, statutory or otherwise,
|
|
431
|
+
including without limitation warranties of title, merchantability, fitness
|
|
432
|
+
for a particular purpose, non infringement, or the absence of latent or
|
|
433
|
+
other defects, accuracy, or the present or absence of errors, whether or not
|
|
434
|
+
discoverable, all to the greatest extent permissible under applicable law.
|
|
435
|
+
|
|
436
|
+
c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
437
|
+
that may apply to the Work or any use thereof, including without limitation
|
|
438
|
+
any person's Copyright and Related Rights in the Work. Further, Affirmer
|
|
439
|
+
disclaims responsibility for obtaining any necessary consents, permissions
|
|
440
|
+
or other rights required for any use of the Work.
|
|
441
|
+
|
|
442
|
+
d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
443
|
+
party to this document and has no duty or obligation with respect to this
|
|
444
|
+
CC0 or use of the Work.
|
|
445
|
+
|
|
446
|
+
For more information, please see
|
|
447
|
+
http://creativecommons.org/publicdomain/zero/1.0/
|
package/assets/fonts/README.md
CHANGED
|
@@ -4,4 +4,13 @@ This directory vendors the default `text` font assets used by `@myriaddreamin/ty
|
|
|
4
4
|
|
|
5
5
|
Source: `typst-assets@v0.13.1`, `files/fonts/`
|
|
6
6
|
|
|
7
|
+
The 17 font files are unmodified copies from
|
|
8
|
+
https://github.com/typst/typst-assets/tree/ad8080d46d42fca909562572cfa14a86f00eb945/files/fonts.
|
|
9
|
+
The complete upstream attribution and font grants are retained in
|
|
10
|
+
`NOTICE.typst-assets.txt`, together with `LICENSE.typst-assets.txt` and the
|
|
11
|
+
complete `LICENSE.LPPL-1.3c.txt` referenced by the NewComputerModern GUST grant.
|
|
12
|
+
Libertinus uses SIL OFL 1.1; NewComputerModern uses the GUST grant incorporating
|
|
13
|
+
LPPL 1.3c or later; DejaVu retains its Bitstream and Arev notices. These font
|
|
14
|
+
terms remain applicable when the fonts are copied into viewer asset packages.
|
|
15
|
+
|
|
7
16
|
The files are copied into `wasm/typst/fonts/` by File Viewer asset tooling so Typst previews do not fetch fonts from public CDNs at runtime. Keep the filenames stable because `typst.ts` resolves them by name.
|
package/dist/sanitize.js
CHANGED
|
@@ -97,8 +97,5 @@ export const sanitizeTypstSvgDocument = (root) => {
|
|
|
97
97
|
style.remove();
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
// Typst output may contain navigation links, but embedded resources must be
|
|
101
|
-
// self-contained. The shared SVG gate removes relative/remote image loads
|
|
102
|
-
// while retaining safe anchors, fragments, blobs, and raster data URLs.
|
|
103
100
|
sanitizeFileViewerSvgResources(root);
|
|
104
101
|
};
|
package/dist/typst.js
CHANGED
|
@@ -99,8 +99,6 @@ const configureTypstEngine = (compilerWasmUrl, rendererWasmUrl, fontAssetsUrl) =
|
|
|
99
99
|
if (typstEngineConfigKey === configKey) {
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
|
-
// typst.ts otherwise installs public registry/font fetchers. File Viewer keeps
|
|
103
|
-
// Typst deterministic for enterprise/offline deployments by pinning both.
|
|
104
102
|
$typst.use(TypstSnippet.withAccessModel(new MemoryAccessModel()), TypstSnippet.preloadFontAssets({
|
|
105
103
|
assets: ['text'],
|
|
106
104
|
assetUrlPrefix: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@file-viewer/renderer-typst",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Standalone Typst renderer plugin for File Viewer powered by browser WASM.",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/flyfish-dev/file-viewer.git"
|
|
28
|
-
"directory": "packages/renderers/typst"
|
|
27
|
+
"url": "git+https://github.com/flyfish-dev/file-viewer.git"
|
|
29
28
|
},
|
|
30
29
|
"homepage": "https://doc.file-viewer.app/guide/on-demand-renderers",
|
|
31
30
|
"bugs": {
|
|
@@ -44,27 +43,54 @@
|
|
|
44
43
|
"import": "./dist/index.js",
|
|
45
44
|
"default": "./dist/index.js"
|
|
46
45
|
},
|
|
47
|
-
"./package.json": "./package.json"
|
|
46
|
+
"./package.json": "./package.json",
|
|
47
|
+
"./native-third-party-licenses": "./assets/NATIVE_THIRD_PARTY_LICENSES.json"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
|
-
"assets",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
50
|
+
"assets/fonts/DejaVuSansMono-Bold.ttf",
|
|
51
|
+
"assets/fonts/DejaVuSansMono-BoldOblique.ttf",
|
|
52
|
+
"assets/fonts/DejaVuSansMono-Oblique.ttf",
|
|
53
|
+
"assets/fonts/DejaVuSansMono.ttf",
|
|
54
|
+
"assets/fonts/LibertinusSerif-Bold.otf",
|
|
55
|
+
"assets/fonts/LibertinusSerif-BoldItalic.otf",
|
|
56
|
+
"assets/fonts/LibertinusSerif-Italic.otf",
|
|
57
|
+
"assets/fonts/LibertinusSerif-Regular.otf",
|
|
58
|
+
"assets/fonts/LibertinusSerif-Semibold.otf",
|
|
59
|
+
"assets/fonts/LibertinusSerif-SemiboldItalic.otf",
|
|
60
|
+
"assets/fonts/LICENSE.LPPL-1.3c.txt",
|
|
61
|
+
"assets/fonts/LICENSE.typst-assets.txt",
|
|
62
|
+
"assets/fonts/NewCM10-Bold.otf",
|
|
63
|
+
"assets/fonts/NewCM10-BoldItalic.otf",
|
|
64
|
+
"assets/fonts/NewCM10-Italic.otf",
|
|
65
|
+
"assets/fonts/NewCM10-Regular.otf",
|
|
66
|
+
"assets/fonts/NewCMMath-Bold.otf",
|
|
67
|
+
"assets/fonts/NewCMMath-Book.otf",
|
|
68
|
+
"assets/fonts/NewCMMath-Regular.otf",
|
|
69
|
+
"assets/fonts/NOTICE.typst-assets.txt",
|
|
70
|
+
"assets/fonts/README.md",
|
|
71
|
+
"assets/LICENSE-seahash-4.1.0",
|
|
72
|
+
"assets/NATIVE_THIRD_PARTY_LICENSES.json",
|
|
73
|
+
"dist/index.d.ts",
|
|
74
|
+
"dist/index.js",
|
|
75
|
+
"dist/sanitize.d.ts",
|
|
76
|
+
"dist/sanitize.js",
|
|
77
|
+
"dist/typst.d.ts",
|
|
78
|
+
"dist/typst.js",
|
|
79
|
+
"LICENSE",
|
|
53
80
|
"README.en.md",
|
|
54
|
-
"
|
|
81
|
+
"README.md"
|
|
55
82
|
],
|
|
56
83
|
"dependencies": {
|
|
57
|
-
"@file-viewer/core": "3.1
|
|
84
|
+
"@file-viewer/core": "3.2.1",
|
|
58
85
|
"@myriaddreamin/typst-ts-renderer": "0.7.0",
|
|
59
86
|
"@myriaddreamin/typst-ts-web-compiler": "0.7.0",
|
|
60
87
|
"@myriaddreamin/typst.ts": "0.7.0"
|
|
61
88
|
},
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"typescript": "^6.0.3"
|
|
64
|
-
},
|
|
65
89
|
"license": "Apache-2.0",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
90
|
+
"fileViewer": {
|
|
91
|
+
"distribution": {
|
|
92
|
+
"schemaVersion": 1,
|
|
93
|
+
"mode": "runtime-only"
|
|
94
|
+
}
|
|
69
95
|
}
|
|
70
|
-
}
|
|
96
|
+
}
|