From b9d29a8ab88e6ef2af9b314ae683d527fa2bc65a Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 1 Aug 2023 14:13:44 -0400 Subject: [PATCH] script for generating HTML for LP ogg files --- index-generator.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 index-generator.py diff --git a/index-generator.py b/index-generator.py new file mode 100755 index 0000000..0cd867b --- /dev/null +++ b/index-generator.py @@ -0,0 +1,39 @@ +#! /usr/bin/python + +# Copyright (C) 2023 Andrew Engelbrecht +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +# converts a csv with speech / speaker info into HTML formatted links that +# point to audio recordings + +import csv +import re + +licenses = { + "https://creativecommons.org/licenses/by/4.0/": "CC BY 4.0", + "https://creativecommons.org/licenses/by-sa/4.0/": "CC BY-SA 4.0", + "https://www.gnu.org/licenses/fdl-1.3.en.html": "GFDL 1.3" } + +print('') + -- 2.25.1