Browse Source

Fixed licenses and license headers.

master
Franco Masotti 4 months ago
parent
commit
d1d27185c3
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 108
      docs/copyright_license.rst
  2. 1
      md_toc/cmark/chunk_h.py
  3. 4
      md_toc/cmark/houdini_h.py
  4. 4
      md_toc/cmark/houdini_html_u_c.py
  5. 4
      md_toc/cmark/references_c.py
  6. 5
      md_toc/cmark/scanners_c.py
  7. 4
      md_toc/cmark/scanners_h.py
  8. 4
      md_toc/constants.py

108
docs/copyright_license.rst

@ -13,13 +13,23 @@ Scope
| Most of md-toc's API | all |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/api.py``
- ``./md_toc/cli.py``
- ``./md_toc/constants.py``
- ``./md_toc/exceptions.py``
- ``./md_toc/generic.py``
- ``./md_toc/__init__.py``
- ``./md_toc/tests/tests.py``
- ``./md_toc/tests/__init__.py``
Text
````
::
Copyright (C) 2017-2022 Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com)
md-toc is free software: you can redistribute it and/or modify
@ -46,15 +56,20 @@ Scope
| Applies to | Parsers |
+-----------------------------------------+-----------------------------------------------+
| Headers | ``redcarpet`` |
+-----------------------------------------+-----------------------------------------------+
| Anchor link types and behaviours | ``redcarpet`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/api.py``
Text
````
::
Copyright (c) 2009, Natacha Porté
Copyright (c) 2015, Vicent Marti
Copyright (c) 2018, Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com) (for md-toc only)
@ -89,12 +104,16 @@ Scope
| Anchor link types and behaviours | ``cmark``, ``github`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/api.py``
Text
````
::
Copyright (c) 2012 GitHub Inc. and Jerry Cheung
Copyright (c) 2018, Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com) (for md-toc only)
@ -129,15 +148,28 @@ Scope
+-----------------------------------------+-----------------------------------------------+
| Applies to | Parsers |
+-----------------------------------------+-----------------------------------------------+
| Most ``md_toc/cmark.py`` code | ``cmark``, ``github``, ``gitlab`` |
| Emphasis in anchor links | ``cmark``, ``github``, ``gitlab`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/constants.py``
- ``./md_toc/cmark/cmark_ctype_c.py``
- ``./md_toc/cmark/cmark_h.py``
- ``./md_toc/cmark/inlines_c.py``
- ``./md_toc/cmark/node_c.py``
- ``./md_toc/cmark/node_h.py``
- ``./md_toc/cmark/references_c.py``
- ``./md_toc/cmark/references_h.py``
- ``./md_toc/cmark/scanners_c.py``
- ``./md_toc/cmark/scanners_h.py``
Text
````
::
Copyright (c) 2014, John MacFarlane
Copyright (c) 2021-2022, Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com) (for md-toc only)
@ -176,15 +208,19 @@ Scope
+-----------------------------------------+-----------------------------------------------+
| Applies to | Parsers |
+-----------------------------------------+-----------------------------------------------+
| Emphasis | ``cmark``, ``github``, ``gitlab`` |
| Emphasis in anchor links | ``cmark``, ``github``, ``gitlab`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/cmark/utf8_c.py``
Text
````
::
utf8.c and utf8.c
are derived from utf8proc
@ -220,15 +256,21 @@ Scope
+-----------------------------------------+-----------------------------------------------+
| Applies to | Parsers |
+-----------------------------------------+-----------------------------------------------+
| Emphasis | ``cmark``, ``github``, ``gitlab`` |
| Emphasis in anchor links | ``cmark``, ``github``, ``gitlab`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/cmark/buffer_h.py``
- ``./md_toc/cmark/buffer_c.py``
- ``./md_toc/cmark/chunk_h.py``
Text
````
::
buffer.h, buffer.c, chunk.h
are derived from code (C) 2012 Github, Inc.
@ -251,3 +293,49 @@ Text
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
License F
---------
+-----------------------------------------+-----------------------------------------------+
| Applies to | Parsers |
+-----------------------------------------+-----------------------------------------------+
| Emphasis in anchor links | ``cmark``, ``github``, ``gitlab`` |
+-----------------------------------------+-----------------------------------------------+
Files
`````
- ``./md_toc/cmark/houdini_h.py``
- ``./md_toc/cmark/houdini_html_u.c``
Text
````
::
houdini.h, houdini_href_e.c, houdini_html_e.c, houdini_html_u.c
derive from https://github.com/vmg/houdini (with some modifications)
Copyright (C) 2012 Vicent Martí
Copyright (C) 2022, Franco Masotti (franco \D\o\T masotti {-A-T-} tutanota \D\o\T com) (for md-toc only)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

1
md_toc/cmark/chunk_h.py

@ -29,6 +29,7 @@ from .cmark_ctype_c import _cmark_cmark_isspace
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
# Returns 1 if c is a "whitespace" character as defined by the spec.
# int cmark_isspace(char c) { return cmark_ctype_class[(uint8_t)c] == 1; }
# The only defined whitespaces in the spec are Unicode whitespaces.

4
md_toc/cmark/houdini_h.py

@ -20,6 +20,10 @@
#
r"""A cmark implementation file."""
# License F applies to this file except for non derivative code:
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
def _cmark_HOUDINI_ESCAPED_SIZE(x: int) -> int:
return (x * 12) / 10

4
md_toc/cmark/houdini_html_u_c.py

@ -30,6 +30,10 @@ from .buffer_h import _cmarkCmarkStrbuf
from .houdini_h import _cmark_HOUDINI_UNESCAPED_SIZE
from .utf8_c import _cmark_cmark_utf8proc_encode_char
# License F applies to this file except for non derivative code:
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
# Recursive function of a binary search.
# 0.30.

4
md_toc/cmark/references_c.py

@ -32,6 +32,10 @@ from .cmark_h import _cmarkCmarkMem
from .references_h import _cmarkCmarkReference, _cmarkCmarkReferenceMap
from .utf8_c import _cmark_cmark_utf8proc_case_fold
# License C applies to this file except for non derivative code:
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
# normalize reference: collapse internal whitespace to single space,
# remove leading/trailing whitespace, case fold

5
md_toc/cmark/scanners_c.py

@ -26,6 +26,11 @@ import re
from ..constants import parser as md_parser
from .chunk_h import _cmarkCmarkChunk
# License C applies to this file except for non derivative code:
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
# These functions have been re-written to avoid GOTO jumps,
# also using the scanners.re source file.
# The original C source states:

4
md_toc/cmark/scanners_h.py

@ -23,6 +23,10 @@ r"""A cmark implementation file."""
from .chunk_h import _cmarkCmarkChunk
from .scanners_c import _cmark__scan_at
# License C applies to this file except for non derivative code:
# in that case the license header at the top of the file applies.
# See docs/copyright_license.rst
def _cmark_scan_spacechars(c: _cmarkCmarkChunk, n: int) -> int:
return _cmark__scan_at('_cmark__scan_spacechars', c, n)

4
md_toc/constants.py

@ -24,6 +24,10 @@ import copy
import html
import os
# License C applies to the cmark entities part.
# See docs/copyright_license.rst
common_defaults = dict()
common_defaults = {

Loading…
Cancel
Save