kupcad 0.1.10-aarch64-linux-gnu

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.
Files changed (29) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +661 -0
  3. data/README.md +98 -0
  4. data/lib/kupcad/native/THIRD_PARTY_NOTICES.md +29 -0
  5. data/lib/kupcad/native/libkupcad.so +0 -0
  6. data/lib/kupcad/native/licenses/AllertaStencil-OFL.txt +93 -0
  7. data/lib/kupcad/native/licenses/NotoSymbols-OFL.txt +98 -0
  8. data/lib/kupcad/native/licenses/RobotoSerif-OFL.txt +93 -0
  9. data/lib/kupcad/native/licenses/draco/LICENSE +252 -0
  10. data/lib/kupcad/native/licenses/eigen/LICENSE +373 -0
  11. data/lib/kupcad/native/licenses/eigen/LICENSES/Apache-2.0.txt +203 -0
  12. data/lib/kupcad/native/licenses/eigen/LICENSES/BSD-3-Clause-Open-MPI.txt +34 -0
  13. data/lib/kupcad/native/licenses/eigen/LICENSES/BSD-3-Clause.txt +26 -0
  14. data/lib/kupcad/native/licenses/eigen/LICENSES/LicenseRef-MINPACK.txt +51 -0
  15. data/lib/kupcad/native/licenses/eigen/LICENSES/MPL-2.0.txt +373 -0
  16. data/lib/kupcad/native/licenses/harfbuzz/COPYING +42 -0
  17. data/lib/kupcad/native/licenses/harfbuzz/ms-use/COPYING +21 -0
  18. data/lib/kupcad/native/licenses/lsp-kit-MIT.txt +21 -0
  19. data/lib/kupcad/native/licenses/manifold/LICENSE +201 -0
  20. data/lib/kupcad/native/licenses/onetbb/LICENSE.txt +201 -0
  21. data/lib/kupcad/native/licenses/onetbb/third-party-programs.txt +198 -0
  22. data/lib/kupcad/native/licenses/sheenbidi/LICENSE +202 -0
  23. data/lib/kupcad/native/licenses/tatfi/LICENSE +373 -0
  24. data/lib/kupcad/native/licenses/zig-MIT.txt +21 -0
  25. data/lib/kupcad/native.rb +77 -0
  26. data/lib/kupcad/version.rb +6 -0
  27. data/lib/kupcad.rb +199 -0
  28. data/sig/kupcad.rbs +61 -0
  29. metadata +90 -0
data/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # KupCAD for Ruby
2
+
3
+ Builds the model of a [KupCAD](https://kupcad.org) script, with its parameters, as STL, 3MF,
4
+ glTF, OBJ, STEP, SVG or DXF, and formats, lints and reads the parameters of scripts. It runs
5
+ libkupcad, the KupCAD core as a C library, in your process: nothing to install besides the gem.
6
+
7
+ ```sh
8
+ gem install kupcad
9
+ ```
10
+
11
+ ```ruby
12
+ require 'kupcad'
13
+
14
+ source = File.read('bracket.kup')
15
+ model = Kupcad.build(source, format: :stl, params: { width: 60, label: 'A' })
16
+ File.binwrite('bracket.stl', model.data)
17
+ puts model.report.output # what the script printed
18
+ model.report.warnings.each { |w| warn "#{w.line}: #{w.message}" }
19
+ ```
20
+
21
+ ## What it does
22
+
23
+ - `Kupcad.build(source, format:, params:, files:, memory_limit:, timeout:, draco:)` runs the
24
+ script and returns a `Kupcad::Model`: its `data` (binary) in the `format` (one of
25
+ `Kupcad::FORMATS`, the library's: `:stl`, `:"3mf"`, `:glb`, `:gltf`, `:obj`, `:step`, `:svg`,
26
+ `:dxf`), and the run's `report`, what the script printed and the `Kupcad::RunWarning`s it
27
+ warned of, where.
28
+ - `params:` the parameters' values by name, as `kupcad build -p` takes them:
29
+ `{ width: 60, thread: :m4, holes: [[5, 5], [35, 5]] }`. Values are checked against each
30
+ parameter's rules.
31
+ - `files:` the files the script imports, by their path from its folder, each a String, text
32
+ or binary: `{ 'lib/gears.kup' => File.read('lib/gears.kup'), 'parts/base.stl' =>
33
+ File.binread(...) }`. A script reads no other file, and its exports (`export_stl`) write
34
+ nothing.
35
+ - `memory_limit:` the most memory, in bytes, the script may hold: its values and its
36
+ geometry graph, not the kernel's meshes; no limit by default.
37
+ - `timeout:` the most time, in seconds, the build may take, to the millisecond; no limit by
38
+ default (or `Float::INFINITY`). A script that never ends otherwise holds its thread for
39
+ good: a native call can't be interrupted, by `Timeout` or by Ctrl-C, which are raised once
40
+ it returns.
41
+ - `draco: true` compresses a GLB's or a glTF's meshes.
42
+ - `Kupcad.format(source)`: the source as `kupcad fmt` formats it.
43
+ - `Kupcad.check(source)`: what `kupcad check` finds, an Array of `Kupcad::Finding` (severity,
44
+ rule, message, where, and the fix if there is one). Syntax errors are findings here.
45
+ - `Kupcad.params(source)`: the parameters the script declares and its metadata, the schema
46
+ `kupcad doc` prints, to build a form from.
47
+ - `Kupcad.library_version`: the version of libkupcad loaded.
48
+
49
+ A source, and a file's path, is read in the encoding the String says it is in (a binary or
50
+ US-ASCII one as UTF-8, which is what libkupcad reads); a file's content is passed as its bytes.
51
+
52
+ ## Errors
53
+
54
+ - `Kupcad::ScriptError` (a `Kupcad::Error`) when the script doesn't parse or compile, raises,
55
+ runs past its `timeout` or `memory_limit`, or leaves no model. A value one of its parameters
56
+ refuses is one too: the script raises `ValueError` at the `param` that refuses it. The
57
+ message says where and why (`"2:5: Invalid expression ..."`, `"RuntimeError: Plate too
58
+ thin"`), and its `report` holds what the script printed until then.
59
+ - `ArgumentError` for a format that isn't one, a limit that isn't positive, parameter values
60
+ JSON can't hold (NaN), or values that aren't by name (an Array).
61
+ - `TypeError` for a source, or a file's content, that isn't a String (a `Pathname`: read it).
62
+ - `NoMemoryError` when the process itself runs out of memory, and `Kupcad::Error` itself when
63
+ libkupcad fails on its own, a bug of KupCAD's.
64
+
65
+ ## Threads and processes
66
+
67
+ A build releases the GVL while it runs, so other threads go on, and builds on several threads
68
+ run at once: libkupcad's calls share nothing. A process may fork between builds (Puma's or
69
+ Unicorn's `preload_app`), whatever threads built before: the last build to end ends the worker
70
+ threads the builds started, and each process starts its own; but not while a build runs on
71
+ another thread. The core runs in your process, so a bug it stops on stops the process too.
72
+ To run scripts you don't trust, or keep a crash away from a web server, run the
73
+ [`kupcad` CLI](https://docs.kupcad.org/reference/tooling/cli/) as a process of its own.
74
+
75
+ ## Platforms
76
+
77
+ Each platform gem carries its libkupcad: Linux (x86_64, aarch64; glibc 2.28 or later), macOS
78
+ (arm64, x86_64) and Windows (x64, aarch64), with `THIRD_PARTY_NOTICES.md` and the license texts
79
+ of what it is built from beside it, in `lib/kupcad/native/`. Elsewhere (musl, BSD), build
80
+ libkupcad with `zig build lib` in the kupcad repository's `core/`, install the gem from
81
+ `bindings/ruby/` (`gem build kupcad.gemspec && gem install kupcad-*.gem`, a gem without the
82
+ library) and point `KUPCAD_LIBRARY` at the library.
83
+
84
+ ## Development
85
+
86
+ In the kupcad repository:
87
+
88
+ ```sh
89
+ (cd core && zig build lib -Doptimize=safe) # core/zig-out/lib/libkupcad.*
90
+ cd bindings/ruby
91
+ bundle install
92
+ bundle exec rake # specs, RuboCop, RBS
93
+ ```
94
+
95
+ The specs load the checkout's library (`KUPCAD_LIBRARY` names another). `rake native:gem
96
+ PLATFORM=arm64-darwin LIBRARY=path/libkupcad.dylib` packs a platform gem around a library built
97
+ for it, as the release does, with the notices `core/scripts/collect-licenses.sh <the library's
98
+ folder>` (run from the repository root) puts beside it.
@@ -0,0 +1,29 @@
1
+ # Third-party notices
2
+
3
+ The `kupcad` binary, and libkupcad (the core as a C library, which the Ruby gem and the Python
4
+ wheels carry), are KupCAD's own code (`LICENSE`) built together with the software and fonts
5
+ below. Each is used under its own license, whose text is in the `licenses` folder beside this
6
+ file in a release archive, a gem or a wheel, at the path given (in the repository: under
7
+ `core/vendor/` and `core/licenses/`).
8
+
9
+ | Component | Used for | License | Copyright | License text |
10
+ |---|---|---|---|---|
11
+ | [Manifold](https://github.com/elalish/manifold) | the mesh geometry kernel | Apache-2.0 | The Manifold Authors | `licenses/manifold/LICENSE` |
12
+ | [oneTBB](https://github.com/oneapi-src/oneTBB) | parallel geometry (not in the WebAssembly build) | Apache-2.0; its third-party parts as listed | Intel Corporation | `licenses/onetbb/LICENSE.txt`, `licenses/onetbb/third-party-programs.txt` |
13
+ | [Draco](https://github.com/google/draco) | glTF mesh compression | Apache-2.0 | The Draco Authors | `licenses/draco/LICENSE` |
14
+ | [Eigen](https://gitlab.com/libeigen/eigen) | linear algebra in the B-Rep engine | MPL-2.0 (a few files under the licenses listed) | Eigen's authors | `licenses/eigen/LICENSE`, `licenses/eigen/LICENSES/` |
15
+ | [SQLite](https://sqlite.org) | the package cache | public domain | none | none needed |
16
+ | [tatfi](https://git.sr.ht/~asibahi/tatfi) | reading the fonts | MPL-2.0 | tatfi's authors | `licenses/tatfi/LICENSE` |
17
+ | [HarfBuzz](https://github.com/harfbuzz/harfbuzz) | shaping text: kerning, ligatures, joining forms and marks | MIT ("Old MIT"); its Universal Shaping Engine tables from Microsoft's data, MIT | HarfBuzz's authors; Microsoft Corporation | `licenses/harfbuzz/COPYING`, `licenses/harfbuzz/ms-use/COPYING` |
18
+ | [SheenBidi](https://github.com/Tehreer/SheenBidi) | the direction of text: right-to-left and mixed lines | Apache-2.0 | Muhammad Tayyab Akram | `licenses/sheenbidi/LICENSE` |
19
+ | [lsp-kit](https://github.com/zigtools/lsp-kit) | the language server's protocol types | MIT | zig-lsp-codegen contributors | `licenses/lsp-kit-MIT.txt` |
20
+ | [Zig standard library](https://ziglang.org) | compiled into the binary | MIT | Zig contributors | `licenses/zig-MIT.txt` |
21
+ | Roboto (Regular and Bold), Roboto Mono | the `sans`, `sans-bold` and `mono` text fonts | Apache-2.0 | Google Inc. | `licenses/draco/LICENSE` (the same Apache License 2.0) |
22
+ | Roboto Serif | the `serif` text font | OFL-1.1 | The Roboto Serif Project Authors | `licenses/RobotoSerif-OFL.txt` |
23
+ | Allerta Stencil | the `stencil` text font | OFL-1.1, Reserved Font Name Allerta | Matt McInerney | `licenses/AllertaStencil-OFL.txt` |
24
+ | KupCAD Symbols, a subset of Noto Sans Math, Noto Sans Symbols and Noto Sans Symbols 2 | the symbols `text()` draws when a text's font lacks them | OFL-1.1 | The Noto Project Authors | `licenses/NotoSymbols-OFL.txt` |
25
+
26
+ KupCAD's copy of tatfi differs from upstream in the files `core/vendor/tatfi/VENDORED.md`
27
+ lists; as MPL-2.0 asks, their source is in the KupCAD repository, under `core/vendor/tatfi`.
28
+ The C++ runtime (libc++, libc++abi, libunwind) and compiler-rt come with Zig under the
29
+ Apache License 2.0 with LLVM Exceptions, which asks for no notice in a binary.
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2009, Matt McInerney <matt@pixelspread.com> with Reserved Font Name Allerta.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,98 @@
1
+ Copyright 2022 The Noto Project Authors (https://github.com/notofonts/math)
2
+ Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
3
+
4
+ KupCAD Symbols (src/core/fonts/KupCADSymbols-Regular.ttf) is a subset of Noto Sans Math,
5
+ Noto Sans Symbols and Noto Sans Symbols 2, made by scripts/make-symbol-font.py.
6
+
7
+
8
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
9
+ This license is copied below, and is also available with a FAQ at:
10
+ https://openfontlicense.org
11
+
12
+
13
+ -----------------------------------------------------------
14
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
15
+ -----------------------------------------------------------
16
+
17
+ PREAMBLE
18
+ The goals of the Open Font License (OFL) are to stimulate worldwide
19
+ development of collaborative font projects, to support the font creation
20
+ efforts of academic and linguistic communities, and to provide a free and
21
+ open framework in which fonts may be shared and improved in partnership
22
+ with others.
23
+
24
+ The OFL allows the licensed fonts to be used, studied, modified and
25
+ redistributed freely as long as they are not sold by themselves. The
26
+ fonts, including any derivative works, can be bundled, embedded,
27
+ redistributed and/or sold with any software provided that any reserved
28
+ names are not used by derivative works. The fonts and derivatives,
29
+ however, cannot be released under any other type of license. The
30
+ requirement for fonts to remain under this license does not apply
31
+ to any document created using the fonts or their derivatives.
32
+
33
+ DEFINITIONS
34
+ "Font Software" refers to the set of files released by the Copyright
35
+ Holder(s) under this license and clearly marked as such. This may
36
+ include source files, build scripts and documentation.
37
+
38
+ "Reserved Font Name" refers to any names specified as such after the
39
+ copyright statement(s).
40
+
41
+ "Original Version" refers to the collection of Font Software components as
42
+ distributed by the Copyright Holder(s).
43
+
44
+ "Modified Version" refers to any derivative made by adding to, deleting,
45
+ or substituting -- in part or in whole -- any of the components of the
46
+ Original Version, by changing formats or by porting the Font Software to a
47
+ new environment.
48
+
49
+ "Author" refers to any designer, engineer, programmer, technical
50
+ writer or other person who contributed to the Font Software.
51
+
52
+ PERMISSION & CONDITIONS
53
+ Permission is hereby granted, free of charge, to any person obtaining
54
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
55
+ redistribute, and sell modified and unmodified copies of the Font
56
+ Software, subject to the following conditions:
57
+
58
+ 1) Neither the Font Software nor any of its individual components,
59
+ in Original or Modified Versions, may be sold by itself.
60
+
61
+ 2) Original or Modified Versions of the Font Software may be bundled,
62
+ redistributed and/or sold with any software, provided that each copy
63
+ contains the above copyright notice and this license. These can be
64
+ included either as stand-alone text files, human-readable headers or
65
+ in the appropriate machine-readable metadata fields within text or
66
+ binary files as long as those fields can be easily viewed by the user.
67
+
68
+ 3) No Modified Version of the Font Software may use the Reserved Font
69
+ Name(s) unless explicit written permission is granted by the corresponding
70
+ Copyright Holder. This restriction only applies to the primary font name as
71
+ presented to the users.
72
+
73
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
74
+ Software shall not be used to promote, endorse or advertise any
75
+ Modified Version, except to acknowledge the contribution(s) of the
76
+ Copyright Holder(s) and the Author(s) or with their explicit written
77
+ permission.
78
+
79
+ 5) The Font Software, modified or unmodified, in part or in whole,
80
+ must be distributed entirely under this license, and must not be
81
+ distributed under any other license. The requirement for fonts to
82
+ remain under this license does not apply to any document created
83
+ using the Font Software.
84
+
85
+ TERMINATION
86
+ This license becomes null and void if any of the above conditions are
87
+ not met.
88
+
89
+ DISCLAIMER
90
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
91
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
92
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
93
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
94
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
95
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
96
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
97
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
98
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Roboto Serif 20pt Project Authors (https://github.com/googlefonts/RobotoSerif)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,252 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
202
+
203
+ --------------------------------------------------------------------------------
204
+ Files: docs/assets/js/ASCIIMathML.js
205
+
206
+ Copyright (c) 2014 Peter Jipsen and other ASCIIMathML.js contributors
207
+
208
+ Permission is hereby granted, free of charge, to any person obtaining a copy
209
+ of this software and associated documentation files (the "Software"), to deal
210
+ in the Software without restriction, including without limitation the rights
211
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
+ copies of the Software, and to permit persons to whom the Software is
213
+ furnished to do so, subject to the following conditions:
214
+
215
+ The above copyright notice and this permission notice shall be included in
216
+ all copies or substantial portions of the Software.
217
+
218
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
224
+ THE SOFTWARE.
225
+
226
+ --------------------------------------------------------------------------------
227
+ Files: docs/assets/css/pygments/*
228
+
229
+ This is free and unencumbered software released into the public domain.
230
+
231
+ Anyone is free to copy, modify, publish, use, compile, sell, or
232
+ distribute this software, either in source code form or as a compiled
233
+ binary, for any purpose, commercial or non-commercial, and by any
234
+ means.
235
+
236
+ In jurisdictions that recognize copyright laws, the author or authors
237
+ of this software dedicate any and all copyright interest in the
238
+ software to the public domain. We make this dedication for the benefit
239
+ of the public at large and to the detriment of our heirs and
240
+ successors. We intend this dedication to be an overt act of
241
+ relinquishment in perpetuity of all present and future rights to this
242
+ software under copyright law.
243
+
244
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
245
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
246
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
247
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
248
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
249
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
250
+ OTHER DEALINGS IN THE SOFTWARE.
251
+
252
+ For more information, please refer to <http://unlicense.org>