shithub: sirjofri_de

Download patch

ref: 5bb784ee98ff75aeb87df7a3e79387ce9373ffb1
parent: 61b1e6162becfe30e85c304a9abf23c21eae9913
author: sirjofri <sirjofri@sirjofri.de>
date: Thu Jun 11 14:42:05 EDT 2020

switches blogging system to troff ms

--- a/changeblog/2020-01-10.ht
+++ b/changeblog/2020-01-10.ht
@@ -1,8 +1,29 @@
 <article>
 <header>
-<h2>Revived</h2>
+<h2>Revived
+</h2>
 </header>
-<p>I updated my website to Uberspace 7, but not only this: I changed the whole webpage to make it more nine-friendly.</p>
-<p>My whole webpage management system is completely 9 based. I use oridb's git9 implementation and plan9 tools, mk, sed, cat, …</p>
-<p>I also decided to change the main language of the website to English.</p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="line-height: 1.4em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
+<span style="font-size: 12pt"><b>Revived</b></span></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.42in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+<p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">I updated my website to Uberspace 7, but not only this: I changed the whole webpage to make it more nine-friendly.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">My whole webpage management system is completely 9 based. I use oridb&rsquo;s git9 implementation and plan9 tools, mk, sed, cat, …
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">I also decided to change the main language of the website to English.
+</span></p><p style="margin-top: 0; margin-bottom: 0.50in"></p>
+
 </article>
--- a/changeblog/2020-05-22.ht
+++ b/changeblog/2020-05-22.ht
@@ -1,10 +1,35 @@
 <article>
 <header>
-<h2>I use 9front</h2>
+<h2>I use 9front
+</h2>
 </header>
-<p>Today I want to share with you, that I use the plan9 distribution '9front' as my main computer.</p>
-<p>Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.</p>
-<p>For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.</p>
-<p>Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it's almost impossible to actually do things on the web.</p>
-<p>Anyways, let me tell you that I don't really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don't jump in your eye and want to kill you and there's catclock(1), our friendly companion.</p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="line-height: 1.4em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
+<span style="font-size: 12pt"><b>I use 9front</b></span></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.42in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+<p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Today I want to share with you, that I use the plan9 distribution &rsquo;9front&rsquo; as my main computer.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it&rsquo;s almost impossible to actually do things on the web.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Anyways, let me tell you that I don&rsquo;t really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don&rsquo;t jump in your eye and want to kill you and there&rsquo;s catclock(1), our friendly companion.
+</span></p><p style="margin-top: 0; margin-bottom: 0.50in"></p>
+
 </article>
--- a/changeblog/mkblog
+++ b/changeblog/mkblog
@@ -1,10 +1,9 @@
 #!/bin/rc
 
 cat <<EOF > `{date -i}^.ht
-<article>
-<header>
-<h2>$*</h2>
-</header>
-<p></p>
-</article>
+.HTML <title>
+.TL
+<title>
+.LP
+<content>
 EOF
--- a/mkfile
+++ b/mkfile
@@ -1,30 +1,61 @@
-PATHS=`{ls *.ht */*.ht | sed -e 's/\.ht$//g' | grep -v 'index'}
+PATHS=`{ls *.ht | sed -e 's/\.ht$//g' | grep -v 'index' | grep -v 'changeblog/';ls changeblog/*.ms | sed -e 's/\.ms$//g'}
+BLOG=`{ls changeblog/*.ms | sed -e 's/\.ms$/.ht/g'}
 OBJECTS=`{echo 'pub/'^$PATHS^'/index.html'}
 
 nl='
 '
 
+build:QV: changeblog.ht $OBJECTS pub/index.html
+	echo 'Build complete'
+
 prepare:QV: changeblog.ht
 	echo 'Prepare complete'
 	mk build
 
-build:QV: $OBJECTS pub/index.html
-	echo 'Build complete'
+pub/changeblog/changeblog.pdf:Q: `{ls changeblog/*.ms}
+	{
+		echo '.TL
+	sirjofri.de changeblog'
+		for(i in $prereq){
+			echo '.PP
+	.PP
+	.B'
+			echo `{echo $i | sed 's:changeblog/::g;s:\.ms$::g'}^:
+			echo .R
+			cat $i
+		}
+	} | troff -ms | lp -dstdout | ps2pdf > $target
+	echo '√ '^$target^' created'
 
-changeblog.ht:QV:
+changeblog/%.ht:Q: changeblog/%.ms
+	{
+		title=`"{
+			sed -n '/\.HTML/s/\.HTML //p' changeblog/$stem.ms
+		}
+		echo '<article>
+	<header>
+	<h2>'^$title^'</h2>
+	</header>'
+		htmlroff -ms changeblog/$stem.ms
+		echo '</article>'
+	} > $target
+	echo '√ '^$target^' prepared'
+
+changeblog.ht:Q: $BLOG
 	echo '<section>
 	<header>
 	<h2>all articles</h2>
 	</header>
+	<a href="changeblog.pdf">Download pdf</a><br>
 	<ul>' > $target
-	obs=`{ls changeblog/*.ht | sed -e 's/\.ht$//g' -e 's:changeblog/::g'}
+	obs=`{ls changeblog/*.ms | sed -e 's/\.ms$//g' -e 's:changeblog/::g'}
 	for(OB in $obs){
-		OBN=`"{sed -n '/h2/s:</?h2>::gp' changeblog/^$OB^.ht | tr -d $nl}
+		OBN=`"{sed -n '/^\.HTML /s:\.HTML::p' changeblog/^$OB^.ms | tr -d $nl}
 		echo '<li><a href="/changeblog/'^$OB^'/">'$OB': '$OBN'</a></li>' >> $target
 	}
 	echo '</ul>
 	</section>' >> $target
-	echo '√ '$target' prepared'
+	echo '√ '^$target^' prepared'
 
 pub/index.html:QV: head.htf index.ht foot.htf
 	if(! test -d pub)
--- a/pub/changeblog/2020-01-10/index.html
+++ b/pub/changeblog/2020-01-10/index.html
@@ -25,11 +25,32 @@
 <main>
 <article>
 <header>
-<h2>Revived</h2>
+<h2>Revived
+</h2>
 </header>
-<p>I updated my website to Uberspace 7, but not only this: I changed the whole webpage to make it more nine-friendly.</p>
-<p>My whole webpage management system is completely 9 based. I use oridb's git9 implementation and plan9 tools, mk, sed, cat, …</p>
-<p>I also decided to change the main language of the website to English.</p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="line-height: 1.4em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
+<span style="font-size: 12pt"><b>Revived</b></span></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.42in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+<p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">I updated my website to Uberspace 7, but not only this: I changed the whole webpage to make it more nine-friendly.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">My whole webpage management system is completely 9 based. I use oridb&rsquo;s git9 implementation and plan9 tools, mk, sed, cat, …
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">I also decided to change the main language of the website to English.
+</span></p><p style="margin-top: 0; margin-bottom: 0.50in"></p>
+
 </article>
 </main>
 <hr>
--- a/pub/changeblog/2020-05-22/index.html
+++ b/pub/changeblog/2020-05-22/index.html
@@ -25,13 +25,38 @@
 <main>
 <article>
 <header>
-<h2>I use 9front</h2>
+<h2>I use 9front
+</h2>
 </header>
-<p>Today I want to share with you, that I use the plan9 distribution '9front' as my main computer.</p>
-<p>Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.</p>
-<p>For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.</p>
-<p>Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it's almost impossible to actually do things on the web.</p>
-<p>Anyways, let me tell you that I don't really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don't jump in your eye and want to kill you and there's catclock(1), our friendly companion.</p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="line-height: 1.4em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;">
+<span style="font-size: 12pt"><b>I use 9front</b></span></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+
+<p style="margin-top: 0; margin-bottom: 0.42in"></p>
+<p style="margin-top: 0; margin-bottom: 0.21in"></p>
+<p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="margin-top: 0; margin-bottom: 0.50in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Today I want to share with you, that I use the plan9 distribution &rsquo;9front&rsquo; as my main computer.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Of course there are things that are almost impossible to do there, for example: all gamedev related stuff. This is of course an issue, because I am a game developer. I still have my windows machine with relevant tools, so I can still fiddle around with those complex things.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">For gaming I also use my windows machine or some game console. Yes, there are a few games on plan9 systems.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Also most online services use javascript and heavy styling of webpages, so I also use a modern computer with a modern browser. Mothra is fine for doing basic research stuff, but in 2020 it&rsquo;s almost impossible to actually do things on the web.
+</span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p>
+<p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;">
+<span style="font-size: 10pt">Anyways, let me tell you that I don&rsquo;t really miss anything on plan9. I can write documents, check my email stuff, chat with people, and step by step it becomes more usable. The community is helpful and provides more applications. The system runs stable, the user interface is consistent and good to look at. Colors don&rsquo;t jump in your eye and want to kill you and there&rsquo;s catclock(1), our friendly companion.
+</span></p><p style="margin-top: 0; margin-bottom: 0.50in"></p>
+
 </article>
 </main>
 <hr>
--- a/pub/changeblog/index.html
+++ b/pub/changeblog/index.html
@@ -27,9 +27,10 @@
 <header>
 <h2>all articles</h2>
 </header>
+<a href="changeblog.pdf">Download pdf</a><br>
 <ul>
-<li><a href="/changeblog/2020-01-10/">2020-01-10: Revived</a></li>
-<li><a href="/changeblog/2020-05-22/">2020-05-22: I use 9front</a></li>
+<li><a href="/changeblog/2020-01-10/">2020-01-10:  Revived</a></li>
+<li><a href="/changeblog/2020-05-22/">2020-05-22:  I use 9front</a></li>
 </ul>
 </section>
 </main>