git @ Cat's Eye Technologies T-Rext / da01ffd
Adopt an MIT license and clean up the license reference headers. Chris Pressey 1 year, 3 months ago
4 changed file(s) with 32 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
0 Copyright (c) 2024 Chris Pressey, Cat's Eye Technologies
1
2 Permission is hereby granted, free of charge, to any person obtaining a copy
3 of this software and associated documentation files (the "Software"), to deal
4 in the Software without restriction, including without limitation the rights
5 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
6 copies of the Software, and to permit persons to whom the Software is
7 furnished to do so, subject to the following conditions:
8
9 The above copyright notice and this permission notice shall be included in all
10 copies or substantial portions of the Software.
11
12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18 SOFTWARE.
0 <!--
1 Originally written by Chris Pressey, Cat's Eye Technologies.
2
3 SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain.
4 For more information, see the file Unlicense.txt in the LICENSES directory.
5
6 SPDX-License-Identifier: Unlicense
7 -->
8
90 T-Rext
101 ======
2
3 <!--
4 SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies
5 This file is distributed under an MIT license. For details, see LICENSES/ dir.
6 SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext
7 -->
118
129 T-Rext is a command-line filter that attempts to clean up spacing,
1310 punctuation, and capitalization in a text file. Its purpose is so that,
00 #!/usr/bin/env python3
11
2 # Originally written by Chris Pressey, Cat's Eye Technologies.
3 #
4 # SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain.
5 # For more information, see the file Unlicense.txt in the LICENSES directory.
6 #
7 # SPDX-License-Identifier: Unlicense
2 # SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies
3 # This file is distributed under an MIT license. For details, see LICENSES/ dir.
4 # SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext
85
96 """Usage: t-rext [OPTIONS] FILES
107
0 # Originally written by Chris Pressey, Cat's Eye Technologies.
1 #
2 # SPDX-FileCopyrightText: This is free and unencumbered software released into the public domain.
3 # For more information, see the file Unlicense.txt in the LICENSES directory.
4 #
5 # SPDX-License-Identifier: Unlicense
0 # SPDX-FileCopyrightText: (c) 2024 Chris Pressey, Cat's Eye Technologies
1 # This file is distributed under an MIT license. For details, see LICENSES/ dir.
2 # SPDX-License-Identifier: LicenseRef-MIT-X-T-Rext
63
74 # encoding: UTF-8
85
96 import re
107
118
12 class Processor(object):
9 class Processor(object):
1310 """An abstract base class that defines the protocol for Processor objects.
1411 """
1512