testing: various changes
All checks were successful
Export / Explore-GitHub-Actions (push) Successful in 41s

This commit is contained in:
Tommy 2024-08-05 23:09:33 +02:00
parent 03dc1e311d
commit 90fa345862
Signed by: tommy
SSH key fingerprint: SHA256:1LWgQT3QPHIT29plS8jjXc3S1FcE/4oGvsx3Efxs6Uc
5 changed files with 66 additions and 9 deletions

4
.gitignore vendored
View file

@ -1,2 +1,4 @@
drafts/*
illustrations
illustrations
output
temp

View file

@ -15,15 +15,15 @@
:html t ;; 't' to enable export to a html website / 'nil' to disable
:gopher nil ;; 't' to enable export to a gopher website / 'nil' to disable
:gemini t ;; 't' to enable export to a gemini capsule / 'nil' to disable
:gemini nil ;; 't' to enable export to a gemini capsule / 'nil' to disable
:gemini-path "gemini://gemini.252.no" ;; absolute path of your gemini capsule
:gemini-index "index.gmi" ;; filename of index file
))
(converter :name :gemini :extension ".md" :command "./gemini.sh %OUT %IN")
;(converter :name :gemini :extension ".md" :command "./gemini.sh %OUT %IN")
(converter :name :markdown :extension ".md" :command "peg-markdown -t html -o %OUT data/%IN")
(converter :name :markdown2 :extension ".md" :command "./multimarkdown.sh %OUT %IN")
(converter :name :markdown2 :extension ".md" :command "multimarkdown -o %OUT data/%IN")
(converter :name :org-mode :extension ".org"
:command (concatenate 'string
"emacs data/%IN --batch --eval '(with-temp-buffer (org-mode) "

45
data/xmpp.md Normal file
View file

@ -0,0 +1,45 @@
With my recent announcement that I'll be ending my personal Matrix
service, there comes the added question: what now? For me it is a
walk down memory lane, to XMPP.
**Edit 2021 AUG 7:** As much as I enjoyed XMPP back around 2010,
the application ecosystem has changed a lot and there seems to be
less support for XMPP now. I'm sorry to report that OMEMO wasn't
what I expected it to be either, and the major drivers for XMPP,
to me, was being able to use Irssi or Weechat. That didn't work
out either and Profanity was disappointing. I'm leaving it with
that and the fact that you can now again reach me on Matrix.
[^xep]: A list of the XMPP Extensions (XEP) is maintained at the
[XMPP Extensions](https://xmpp.org/extensions/) website. There are currently 457
XEPs.
XMPP is a universal messaging standard which have been in active
use for a long time. The same way it is challenging to use with
different types of sub-standards, called XEPs, it is also a
wonderful way to work with the ecosystem and different
purpose-built clients.
While Matrix was starting to build this ecosystem but had problems
gaining momentum - especially for the CLI clients, XMPP has had a
wide variety of support for different clients. Personally I found
Profanity good.
For now I just wanted to share some details on how to get in touch
via Jabber/XMPP after we have exchanged an email introduction via
my [contact page](https://contact.252.no).
To get a JID (Jabber ID, [XMPP JID](https://datatracker.ietf.org/doc/html/rfc6122#section-2.1), you can register at
e.g. [jabber.no](https://www.jabber.no/registrer-konto/).
When you have registered an account, and if you do not want a
permanent presence on the network or do not want a desktop
messenger, you may login through [converse.js](https://conversejs.org).
[^xep-0384]: OMEMO, which is equivalent to Matrix encryption is
defined in [XEP-0384](https://xmpp.org/extensions/xep-0384.html). I am particularly fond of the threat
model described, the clarity of it. A recommended read.
If end to end encryption is required for the conversation, which
would make sense using third party XMPP servers - OMEMO can be
enabled in converse.js.

View file

@ -33,6 +33,16 @@
pkgs.asdf
pkgs.perl
pkgs.multimarkdown
# pkgs.writeShellScript "mm-sh" ''
# #!/bin/sh
# cat data/$2 |perl -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
# # perl -0pe 's/\[\^(.*?)\][^:]/\<label for\="\1" class\="margin-toggle"\>/gms'
# multimarkdown -t html -o $1 $1.tmp && cat $1 |
# perl -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
# perl -0pe 's/(\<blockquote\>.*?\<\/blockquote\>)/\<div class="epigraph"\>\n\1\n\<\/div\>/gms' |
# perl -0pe 's/(\<blockquote\>.*?)\n(.*?)(\<\/blockquote\>)/\1\<footer\>\2\<\/footer\>\3/gms' > $1.new && mv $1.new $1
# rm $1.tmp
# ''
];
phases = [ "unpackPhase" "installPhase" "cleanupPhase" ];

View file

@ -1,10 +1,10 @@
#!/bin/sh
cat data/$2 | perl -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
cat data/$2 | ${perl} -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\<span class="marginnote"\>\2\<\/span\>/gms' > $1.tmp
# perl -0pe 's/\[\^(.*?)\][^:]/\<label for\="\1" class\="margin-toggle"\>/gms'
multimarkdown -t html -o $1 $1.tmp && cat $1 |
perl -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
perl -0pe 's/(\<blockquote\>.*?\<\/blockquote\>)/\<div class="epigraph"\>\n\1\n\<\/div\>/gms' |
perl -0pe 's/(\<blockquote\>.*?)\n(.*?)(\<\/blockquote\>)/\1\<footer\>\2\<\/footer\>\3/gms' > $1.new && mv $1.new $1
${multimarkdown} -t html -o $1 $1.tmp && cat $1 |
${perl} -0pe 's/(\<h2|^)(.*?)(?=(\<h2)|\Z)/\n\<section\>\n\1\2\n<\/section\>\n/gms' |
${perl} -0pe 's/(\<blockquote\>.*?\<\/blockquote\>)/\<div class="epigraph"\>\n\1\n\<\/div\>/gms' |
${perl} -0pe 's/(\<blockquote\>.*?)\n(.*?)(\<\/blockquote\>)/\1\<footer\>\2\<\/footer\>\3/gms' > $1.new && mv $1.new $1
rm $1.tmp