aboutsummaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el2
-rw-r--r--misc/editor-syntax-etc/emacs/sisu-spine-mode.el12
-rw-r--r--misc/editor-syntax-etc/vim/colors/def-sisu.vim6
-rw-r--r--misc/editor-syntax-etc/vim/colors/def.vim6
-rw-r--r--misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim2
-rw-r--r--misc/editor-syntax-etc/vim/colors/slate.vim4
-rw-r--r--misc/util/d/cgi/search/dub.sdl2
-rw-r--r--misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d62
-rwxr-xr-xmisc/util/rb/cgi/spine.search.cgi60
-rwxr-xr-xmisc/util/rb/tex/dr_tex.rb50
10 files changed, 150 insertions, 56 deletions
diff --git a/misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el b/misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el
index 80ff5b1..4cc6332 100644
--- a/misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el
+++ b/misc/editor-syntax-etc/emacs/sisu-spine-mode-autoloads.el
@@ -1,7 +1,7 @@
(add-to-list 'load-path (or (file-name-directory #$) (car load-path)))
(autoload 'sisu-spine-mode "sisu-spine-mode" "\
Major mode for editing SiSU (spine) markup files.
-SiSU (http://www.sisudoc.org/) document structuring, publishing
+SiSU (https://www.sisudoc.org/) document structuring, publishing
and search.
\(fn)" t nil)
diff --git a/misc/editor-syntax-etc/emacs/sisu-spine-mode.el b/misc/editor-syntax-etc/emacs/sisu-spine-mode.el
index 862662a..773fa5c 100644
--- a/misc/editor-syntax-etc/emacs/sisu-spine-mode.el
+++ b/misc/editor-syntax-etc/emacs/sisu-spine-mode.el
@@ -1,16 +1,16 @@
;;; sisu-spine-mode.el --- Major mode for SiSU (spine parser) markup text
-;; Copyright (C) 2011, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2011, 2021 Free Software Foundation, Inc.
;; Author: Ralph Amissah & Ambrose Kofi Laing
;; Maintainer: Ralph Amissah <ralph.amissah@gmail.com>
;; Keywords: text, syntax, processes, tools
;; Version: 8.0.0
-;; URL: http://www.sisudoc.org/
+;; URL: https://www.sisudoc.org/
;; originally looked at (based on) doc-mode, with kind permission of the author
;; Author: SUN, Tong <suntong001@users.sf.net>, (c)2001-6, all right reserved
;; Version: $Date: 2006/01/19 03:13:41 $ $Revision: 1.14 $
-;; Home URL: http://xpt.sourceforge.net/
+;; Home URL: https://xpt.sourceforge.net/
;; with contributions from Kevin Ryde and Stefan Monnier
;; This program is free software; you can redistribute it and/or modify
@@ -24,7 +24,7 @@
;; 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, see <http://www.gnu.org/licenses/>.
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;; Viva Software Libre!
;; Support the free software movement!
@@ -32,7 +32,7 @@
;;; Commentary:
-;; SiSU (http://www.sisudoc.org/) is a document structuring and
+;; SiSU (https://www.sisudoc.org/) is a document structuring and
;; publishing framework. This package provides an Emacs major mode
;; for SiSU markup, as used by the spine parser (in D) which has a different
;; header (based on yaml) from the original sisu parser (in Ruby) which has
@@ -455,7 +455,7 @@
(define-derived-mode sisu-spine-mode text-mode "SiSU"
"Major mode for editing SiSU files.
SiSU document structuring, publishing in multiple formats and search.
-URL `http://www.sisudoc.org/'"
+URL `https://www.sisudoc.org/'"
(modify-syntax-entry ?\' ".")
;;(flyspell-mode nil)
diff --git a/misc/editor-syntax-etc/vim/colors/def-sisu.vim b/misc/editor-syntax-etc/vim/colors/def-sisu.vim
index a55f752..ac3e0c3 100644
--- a/misc/editor-syntax-etc/vim/colors/def-sisu.vim
+++ b/misc/editor-syntax-etc/vim/colors/def-sisu.vim
@@ -2,7 +2,7 @@
" Name: def-sisu
" Maintainer: Ralph Amissah <ralph@amissah.com>
" Last Change: 2013-02-14
-" URL: <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/def-sisu.vim;hb=HEAD>
+" URL: <https://git.sisudoc.org/projects/?p=software/spine.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/def-sisu.vim;hb=HEAD>
" Note: primarily 16 color cterm improved by tweaking of .Xdefaults
" (with occasional other colors selected from 256 color palate)
" .Xdefaults tweaking to make identical to def (256) provided,
@@ -135,8 +135,8 @@ endif
:hi Error gui=bold guibg=#CC0000 guifg=#D3D3D3
" -------
"256 color .Xdefaults vim: cterm giu
-"<http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim>
-"<http://guns.github.com/xterm-color-table.vim/images/xterm-color-table-with-visible-rgb.png>
+"<https://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim>
+"<https://guns.github.com/xterm-color-table.vim/images/xterm-color-table-with-visible-rgb.png>
" -------
" 256 color .Xdefaults vim: cterm giu def
" -------
diff --git a/misc/editor-syntax-etc/vim/colors/def.vim b/misc/editor-syntax-etc/vim/colors/def.vim
index b0e599c..aca1975 100644
--- a/misc/editor-syntax-etc/vim/colors/def.vim
+++ b/misc/editor-syntax-etc/vim/colors/def.vim
@@ -2,7 +2,7 @@
" Name: def
" Maintainer: Ralph Amissah <ralph@amissah.com>
" Last Change: 2013-02-14
-" URL: <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/def.vim;hb=HEAD>
+" URL: <https://git.sisudoc.org/projects/?p=software/spine.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/def.vim;hb=HEAD>
" Note: primarily 16 color cterm improved by tweaking of .Xdefaults
" (with occasional other colors selected from 256 color palate)
" .Xdefaults tweaking to make identical to def (256) provided,
@@ -135,8 +135,8 @@ endif
:hi Error gui=bold guibg=#CC0000 guifg=#D3D3D3
" -------
"256 color .Xdefaults vim: cterm giu
-"<http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim>
-"<http://guns.github.com/xterm-color-table.vim/images/xterm-color-table-with-visible-rgb.png>
+"<https://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim>
+"<https://guns.github.com/xterm-color-table.vim/images/xterm-color-table-with-visible-rgb.png>
" -------
" 256 color .Xdefaults vim: cterm giu def
" -------
diff --git a/misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim b/misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim
index b2314a7..aae822d 100644
--- a/misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim
+++ b/misc/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim
@@ -2,7 +2,7 @@
" Name: frugal-cterm-sisu
" Maintainer: Ralph Amissah <ralph@amissah.com>
" Last Change: 2013-02-09
-" URL: <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim;hb=HEAD>
+" URL: <https://git.sisudoc.org/projects/?p=software/spine.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/frugal-cterm-sisu.vim;hb=HEAD>
" Note: 8 color cterm, related colorschemes 8 & sparse
:set background=dark
:hi clear
diff --git a/misc/editor-syntax-etc/vim/colors/slate.vim b/misc/editor-syntax-etc/vim/colors/slate.vim
index 9b5807d..4d741e8 100644
--- a/misc/editor-syntax-etc/vim/colors/slate.vim
+++ b/misc/editor-syntax-etc/vim/colors/slate.vim
@@ -2,10 +2,10 @@
" Name: Slate
" Maintainer: Ralph Amissah <ralph@amissah.com>
" Last Change: 2013-02-09
-" URL: <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim;hb=HEAD>
+" URL: <https://git.sisudoc.org/projects/?p=software/spine.git;a=blob;f=data/sisu/conf/editor-syntax-etc/vim/colors/slate.vim;hb=HEAD>
" Notes: cterm now uses frugal-sisu 8 colors for term
" (for gui originally looked at desert Hans Fugal <hans@fugal.net>
-" <http://hans.fugal.net/vim/colors/desert.vim> (April/May 2003))
+" <https://hans.fugal.net/vim/colors/desert.vim> (April/May 2003))
:set background=dark
:hi clear
if exists("syntax_on")
diff --git a/misc/util/d/cgi/search/dub.sdl b/misc/util/d/cgi/search/dub.sdl
index 8260eaa..30b076d 100644
--- a/misc/util/d/cgi/search/dub.sdl
+++ b/misc/util/d/cgi/search/dub.sdl
@@ -1,7 +1,7 @@
name "spine_search"
description "A minimal D application."
authors "ralph"
-copyright "Copyright © 2020, ralph"
+copyright "Copyright © 2021, ralph"
license "GPL-3.0+"
dependency "d2sqlite3" version="~>0.18.3"
dependency "arsd-official": "7.2.0"
diff --git a/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d b/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
index 1460643..987c319 100644
--- a/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
+++ b/misc/util/d/cgi/search/src/spine_cgi_sqlite_search.d
@@ -1,3 +1,53 @@
+/+
+- Name: Spine, Doc Reform [a part of]
+ - Description: documents, structuring, processing, publishing, search
+ - static content generator
+
+ - Author: Ralph Amissah
+ [ralph.amissah@gmail.com]
+
+ - Copyright: (C) 2015 - 2021 Ralph Amissah, All Rights
+ Reserved.
+
+ - License: AGPL 3 or later:
+
+ Spine (SiSU), a framework for document structuring, publishing and
+ search
+
+ Copyright (C) Ralph Amissah
+
+ This program is free software: you can redistribute it and/or modify it
+ under the terms of the GNU AFERO General Public License as published by the
+ Free Software Foundation, either version 3 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, see [https://www.gnu.org/licenses/].
+
+ If you have Internet connection, the latest version of the AGPL should be
+ available at these locations:
+ [https://www.fsf.org/licensing/licenses/agpl.html]
+ [https://www.gnu.org/licenses/agpl.html]
+
+ - Spine (by Doc Reform, related to SiSU) uses standard:
+ - docReform markup syntax
+ - standard SiSU markup syntax with modified headers and minor modifications
+ - docReform object numbering
+ - standard SiSU object citation numbering & system
+
+ - Hompages:
+ [https://www.doc_reform.org]
+ [https://www.sisudoc.org]
+
+ - Git
+ [https://git.sisudoc.org/projects/?p=software/spine.git;a=summary]
+
++/
/+ dub.sdl
name "spine search"
description "spine cgi search"
@@ -463,7 +513,7 @@ void cgi_function_intro(Cgi cgi) {
</title>
<meta name="sourcefile" content="SiSU.sst" />
<link rel="generator" href="sisudoc.org" />
- <link rel="shortcut icon" href="http://%s/image_sys/spine.ico" />
+ <link rel="shortcut icon" href="https://%s/image_sys/spine.ico" />
<style media = "all">
*{
padding : 0px;
@@ -529,10 +579,10 @@ void cgi_function_intro(Cgi cgi) {
<tr><td width="20%%">
<table summary="home button / home information" border="0" cellpadding="2" cellspacing="0">
<tr><td align="left">
- <br /><a href="http://sisudoc.org/" target="_top">
+ <br /><a href="https://sisudoc.org/" target="_top">
<b>SiSU</b>
</a>
- <br /><a href="http://git.sisudoc.org/" target="_top">
+ <br /><a href="https://git.sisudoc.org/" target="_top">
git
</a>
</td></tr>
@@ -851,7 +901,7 @@ LIMIT %s OFFSET %s
auto m = (row["date_published"].as!string).match(regex(r"^([0-9]{4})")); // breaks if row missing or no match?
cgi.write(
"<hr><a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ "toc.html"
@@ -870,7 +920,7 @@ LIMIT %s OFFSET %s
if (cv.results_type == "txt") {
cgi.write(
"<hr><a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string
@@ -883,7 +933,7 @@ LIMIT %s OFFSET %s
} else {
cgi.write(
"<a href=\""
- ~ "http://" ~ conf.http_host ~ "/"
+ ~ "https://" ~ conf.http_host ~ "/"
~ row["language_document_char"].as!string ~ "/html/"
~ row["src_filename_base"].as!string ~ "/"
~ row["seg_name"].as!string ~ ".html#" ~ row["ocn"].as!string
diff --git a/misc/util/rb/cgi/spine.search.cgi b/misc/util/rb/cgi/spine.search.cgi
index cfe9d73..ff2bfc2 100755
--- a/misc/util/rb/cgi/spine.search.cgi
+++ b/misc/util/rb/cgi/spine.search.cgi
@@ -2,8 +2,8 @@
=begin
* Name: SiSU information Structuring Universe
* Author: Ralph Amissah
- * http://www.jus.uio.no/sisu
- * http://www.jus.uio.no/sisu/SiSU/download
+ * https://sisudoc.org
+ * https://git.sisudoc.org
* Description: generates naive cgi search form for search of sisu database (sqlite)
* Name: SiSU generated sample cgi search form
@@ -32,13 +32,12 @@
more details.
You should have received a copy of the GNU General Public License along with
- this program. If not, see <http://www.gnu.org/licenses/>.
+ this program. If not, see <https://www.gnu.org/licenses/>.
If you have Internet connection, the latest version of the GPL should be
available at these locations:
- <http://www.fsf.org/licenses/gpl.html>
- <http://www.gnu.org/licenses/gpl.html>
- <http://www.jus.uio.no/sisu/gpl.fsf>
+ <https://www.fsf.org/licenses/gpl.html>
+ <https://www.gnu.org/licenses/gpl.html>
* SiSU uses:
* Standard SiSU markup syntax,
@@ -46,8 +45,7 @@
* Standard SiSU object citation numbering and system
* Hompages:
- <http://www.jus.uio.no/sisu>
- <http://www.sisudoc.org>
+ <https://www.sisudoc.org>
* Ralph Amissah
<ralph@amissah.com>
@@ -62,13 +60,13 @@ rescue LoadError
puts 'cgi, fcgi or sqlite3 NOT FOUND (LoadError)'
end
@stub_default = 'search'
-@image_src = "http://#{ENV['HTTP_HOST']}/image_sys"
-@hosturl_cgi = "http://#{ENV['HTTP_HOST']}#{ENV['PATH_INFO']}"
-@hosturl_files = "http://#{ENV['HTTP_HOST']}"
+@image_src = "https://#{ENV['HTTP_HOST']}/image_sys"
+@hosturl_cgi = "https://#{ENV['HTTP_HOST']}#{ENV['PATH_INFO']}"
+@hosturl_files = "https://#{ENV['HTTP_HOST']}"
@output_dir_structure_by = 'language'
@lingual = 'multi'
@db_name_prefix = 'spine.'
-@base = "http://#{ENV['HTTP_HOST']}#{ENV['PATH_INFO']}#{ENV['SCRIPT_NAME']}"
+@base = "https://#{ENV['HTTP_HOST']}#{ENV['PATH_INFO']}#{ENV['SCRIPT_NAME']}"
#Common TOP
@@offset = 0
@@canned_search_url = @base
@@ -95,8 +93,8 @@ class Form
<meta name="sourcefile" content="SiSU._sst" />
SiSU search form (sample): SiSU information Structuring Universe
</title>
- <link rel="generator" href="http://www.jus.uio.no/sisu" />
- <link rel="shortcut icon" href="http://#{ENV['HTTP_HOST']}/_sisu/image_sys/rb7.ico" />
+ <link rel="generator" href="https://sisudoc.org/" />
+ <link rel="shortcut icon" href="https://#{ENV['HTTP_HOST']}/_sisu/image_sys/rb7.ico" />
<link href="../_sisu/css/html.css" rel="stylesheet">
</head>
<body lang="en" xml:lang="en">
@@ -104,10 +102,10 @@ class Form
<tr><td width="20%">
<table summary="home button / home information" border="0" cellpadding="3" cellspacing="0">
<tr><td align="left">
- <br /><a href="http://sisudoc.org/" target="_top">
+ <br /><a href="https://sisudoc.org/" target="_top">
<b>SiSU</b>
</a>
- <br /><a href="http://git.sisudoc.org/" target="_top">
+ <br /><a href="https://git.sisudoc.org/" target="_top">
git
</a>
</td></tr>
@@ -488,10 +486,10 @@ def tail
<tr><td valign="top" width="10%">
<table summary="home button / home information" border="0" cellpadding="3" cellspacing="0">
<tr><td align="left">
- <br /><a href="http://sisudoc.org/" target="_top">
+ <br /><a href="https://sisudoc.org/" target="_top">
<b>SiSU</b>
</a>
- <br /><a href="http://git.sisudoc.org/" target="_top">
+ <br /><a href="https://git.sisudoc.org/" target="_top">
git
</a>
</td></tr>
@@ -503,22 +501,18 @@ def tail
Generated by
SiSU 6.3.1 2014-10-19 (2014w41/7)
<br />
- <a href="http://www.sisudoc.org" >
+ <a href="https://www.sisudoc.org" >
<b>SiSU</b></a> <sup>&copy;</sup> Ralph Amissah
1993, current 2014.
All Rights Reserved.
<br />
SiSU is software for document structuring, publishing and search,
<br />
- <a href="http://www.jus.uio.no/sisu" >
- www.jus.uio.no/sisu
- </a>
- and
- <a href="http://www.sisudoc.org" >
+ <a href="https://www.sisudoc.org" >
www.sisudoc.org
</a>
sources
- <a href="http://git.sisudoc.org" >
+ <a href="https://git.sisudoc.org" >
git.sisudoc.org
</a>
<br />
@@ -528,8 +522,8 @@ def tail
</a>
<br />
mailing list subscription
- <a href="http://lists.sisudoc.org/listinfo/sisu" >
- http://lists.sisudoc.org/listinfo/sisu
+ <a href="https://lists.sisudoc.org/listinfo/sisu" >
+ https://lists.sisudoc.org/listinfo/sisu
</a>
<br />
<a href="mailto:sisu@lists.sisudoc.org" >
@@ -550,27 +544,27 @@ def tail
<!-- widget way better -->
<tr><td valign="top" width="10%">
<p class="tiny_left"><font color="#666666" size="2">
- <a href="http://www.gnu.org/licenses/gpl.html">
+ <a href="https://www.gnu.org/licenses/gpl.html">
.:
</a>
</font></p>
</td><td valign="top" width="45%">
<p class="tiny_left"><font color="#666666" size="2">
SiSU is released under
- <a href="http://www.gnu.org/licenses/gpl.html">GPL&nbsp;v3</a>
+ <a href="https://www.gnu.org/licenses/gpl.html">GPL&nbsp;v3</a>
or later,
- <a href="http://www.gnu.org/licenses/gpl.html">
- http://www.gnu.org/licenses/gpl.html
+ <a href="https://www.gnu.org/licenses/gpl.html">
+ https://www.gnu.org/licenses/gpl.html
</a>
</font></p>
</td><td valign="top" width="45%">
<p class="tiny_left"><font color="#666666" size="2">
SiSU, developed using
- <a href="http://www.ruby-lang.org/en/">
+ <a href="https://www.ruby-lang.org/en/">
Ruby
</a>
on
- <a href="http://www.debian.org/">
+ <a href="https://www.debian.org/">
Debian/Gnu/Linux
</a>
software infrastructure,
diff --git a/misc/util/rb/tex/dr_tex.rb b/misc/util/rb/tex/dr_tex.rb
index 767742c..b71d8c1 100755
--- a/misc/util/rb/tex/dr_tex.rb
+++ b/misc/util/rb/tex/dr_tex.rb
@@ -1,4 +1,54 @@
#!/usr/bin/env ruby
+# /+
+# - Name: Spine, Doc Reform [a part of]
+# - Description: documents, structuring, processing, publishing, search
+# - static content generator
+#
+# - Author: Ralph Amissah
+# [ralph.amissah@gmail.com]
+#
+# - Copyright: (C) 2015 - 2021 Ralph Amissah, All Rights
+# Reserved.
+#
+# - License: AGPL 3 or later:
+#
+# Spine (SiSU), a framework for document structuring, publishing and
+# search
+#
+# Copyright (C) Ralph Amissah
+#
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU AFERO General Public License as published by the
+# Free Software Foundation, either version 3 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, see [https://www.gnu.org/licenses/].
+#
+# If you have Internet connection, the latest version of the AGPL should be
+# available at these locations:
+# [https://www.fsf.org/licensing/licenses/agpl.html]
+# [https://www.gnu.org/licenses/agpl.html]
+#
+# - Spine (by Doc Reform, related to SiSU) uses standard:
+# - docReform markup syntax
+# - standard SiSU markup syntax with modified headers and minor modifications
+# - docReform object numbering
+# - standard SiSU object citation numbering & system
+#
+# - Hompages:
+# [https://www.doc_reform.org]
+# [https://www.sisudoc.org]
+#
+# - Git
+# [https://git.sisudoc.org/projects/?p=software/spine.git;a=summary]
+#
+# +/
require 'fileutils'
pwd = Dir.pwd
argv,texfiles_with_path,flags=[],[],[]