1
0

m4ify phones/

This commit is contained in:
dtb 2022-08-31 13:19:16 -04:00
parent 4433dad4f3
commit 5c794ca17b
9 changed files with 95 additions and 85 deletions

View File

@ -1,6 +1,9 @@
.POSIX:
generate: index.html css/index.html home/index.html
MAKE = make
RM = rm -f
generate: index.html css/index.html home/index.html phones/index.html
index.html: \
index.m4 \
@ -21,12 +24,15 @@ zelda.m4
m4 index.m4 >index.html
css/index.html: head.m4 css/index.m4
make -C css
$(MAKE) -C css
home/index.html: head.m4 home/index.m4
make -C home
$(MAKE) -C home
phones/index.html: head.m4 html.m4 phones/index.m4
$(MAKE) -C phones
clean:
rm index.html css/index.html home/index.html
$(RM) index.html css/index.html home/index.html phones/index.html
.PHONY: generate clean

View File

@ -1,6 +1,7 @@
define(`_PAGE', `css/')dnl
define(`_TITLE', `trinity.moe/css/')dnl
define(`_DESCRIPTION', `trinity.moe css')dnl
define(`_STYLE', `')
define(`csspage', `<INPUT ID="$1" NAME="css" TYPE="radio" VALUE="/css/$1.css" />
<LABEL FOR="$1">/css/$1.css</LABEL>
<BR />')dnl

View File

@ -9,6 +9,6 @@
<META CONTENT="img/trinnow.bmp" NAME="og:image" />
<META CONTENT="noindex" NAME="googlebot" /> <!-- FUCK GOOGLE -->
<META CONTENT="interest-cohort=()" HTTP-EQUIV="Permissions-Policy" /> <!-- FUCK GOOGLE -->
<STYLE></STYLE>
<STYLE>_STYLE</STYLE>
<TITLE>_TITLE</TITLE>
</HEAD>

View File

@ -1,6 +1,7 @@
define(`_TITLE', `home')dnl
define(`_DESCRIPTION', `browser home page')dnl
define(`_PAGE', `home/')dnl
define(`_STYLE', `')
<!DOCTYPE html>
<HTML lang="en">
include(`../head.m4')dnl

4
homepage/html.m4 Normal file
View File

@ -0,0 +1,4 @@
define(`td', `<TD>$1</TD>')
define(`th', `<TH>$1</TH>')
define(`tr', `<TR>$1</TR>')
define(`_BAR', `<HR ALIGN="left" SIZE="1" WIDTH="25%" />')

View File

@ -1,6 +1,7 @@
define(`_PAGE', `')dnl
define(`_TITLE', `trinity dot moe')dnl
define(`_DESCRIPTION', `trinity`'s personal website')dnl
define(`_STYLE', `')
<!DOCTYPE html>
<HTML lang="en-US">
include(`head.m4')dnl

2
homepage/phones/Makefile Normal file
View File

@ -0,0 +1,2 @@
index.html: ../head.m4 ../html.m4 index.m4
m4 index.m4 >index.html

View File

@ -1,80 +0,0 @@
<!DOCTYPE html>
<HTML LANG="en">
<HEAD>
<LINK HREF="http://www.trinity.moe/phones" REL="canonical" />
<LINK HREF="https://raw.githubusercontent.com/devenblake/homepage/main/favicon.ico" REL="shortcut icon" TYPE="image/x-icon" />
<LINK HREF="css/blank.css" ID="styling" REL="stylesheet" />
<META CHARSET="UTF-8" />
<META CONTENT="noindex" NAME="googlebot" /> <!-- FUCK GOOGLE -->
<META CONTENT="interest-cohort=()" HTTP-EQUIV="Permissions-Policy" /> <!-- FUCK GOOGLE -->
<META NAME="viewport" CONTENT="width=device-width, initial-scale=1" />
<STYLE>
.bad{ background-color: red; color: white; }
.good{ background-color: green; color: white; }
table, td, th{ border: 1px solid; border-collapse: collapse; }
</STYLE>
<TITLE>phones</TITLE>
</HEAD>
<BODY>
<P><A HREF="/">~ Return to the rest of the site</A></P>
<SCRIPT SRC="js/cookies.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT SRC="js/sheets.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT>
<H1>phones</H1>
<H3>updated 2022-08-30</H3>
<HR ALIGN="left" SIZE="1" WIDTH="25%" />
<TABLE> <!-- This looks awful in HTML because there are too many columns and the class=whatever stuff adds even more length. Open in lynx if stuck in a buffer. -->
<TR><TH>Phone</TH><TH>Battery</TH><TH>Charging jack</TH><TH>Codecs</TH><TH>Firmware</TH><TH>Headphone jack</TH><TH>Keyboard</TH><TH>OS</TH><TH>SD</TH><TH>WLAN</TH></TR>
<TR><TD>Samsung SCH-R390</TD><TD CLASS="good">Good</TD><TD CLASS="bad">Micro USB-B, no OTG</TD><TD CLASS="bad">No FLAC, no Vorbis, no VP8</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">3.5mm</TD><TD CLASS="good">Hardware</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">Micro</TD><TD CLASS="bad">No</TD></TR>
<TR><TD>LG UN280</TD><TD CLASS="good">Decent</TD><TD CLASS="bad">Micro USB-B, no OTG</TD><TD CLASS="bad">No FLAC, no Vorbis, no VP8</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">3.5mm</TD><TD CLASS="good">Hardware</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">Micro</TD><TD CLASS="bad">No</TD></TR>
<TR><TD>iPhone SE (2016)</TD><TD CLASS="bad">Dismal</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="bad">No FLAC, no Vorbis, no VP8</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">3.5mm</TD><TD CLASS="bad">Software</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="bad">None</TD><TD CLASS="good">Yes</TD></TR>
<TR><TD>Unihertz Titan</TD><TD CLASS="good">Excellent</TD><TD CLASS="good">USB-C PD</TD><TD CLASS="good">Configurable</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">3.5mm</TD><TD CLASS="good">Hardware</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="good">Micro</TD><TD CLASS="good">Yes</TD></TR>
<TR><TD>Pinephone</TD><TD CLASS="good">Upgradeable</TD><TD CLASS="good">USB-C PD</TD><TD CLASS="good">Configurable</TD><TD CLASS="good">Changeable</TD><TD CLASS="good">3.5mm</TD><TD CLASS="good">Software or hardware</TD><TD CLASS="good">Open</TD><TD CLASS="good">Micro</TD><TD CLASS="good">Yes</TD></TR>
<TR><TD>Punkt MP-02</TD><TD CLASS="good">Excellent</TD><TD CLASS="bad">USB-C but no PD</TD><TD CLASS="bad">No FLAC, no Vorbis, no VP8</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="bad">over USB-C</TD><TD CLASS="good">Hardware</TD><TD CLASS="bad">Proprietary</TD><TD CLASS="bad">None</TD><TD CLASS="good">Yes</TD></TR>
</TABLE>
<H2>Samsung SCH-R390</H2>
<P>
Also known as the Freeform 4.
I used this extensively and enjoyed it at the time.
</P>
<H2>Samsung SCH-R480</H2>
<P>
Also known as the FreeForm 5.
No significant changes from the FreeForm 4 beyond aesthetics.
</P>
<H2>LG UN280</H2>
<P>
Also known as the Freedom II.
I used this extensively and enjoyed it at the time.
</P>
<H2>iPhone SE (2016)</H2>
<P>
I used this extensively and despise it.
</P>
<H2>Unihertz Titan</H2>
<P>
I used this extensively and despise it.
Bad hardware keyboard (no dollar sign).
Vendor unlawfully non-compliant with GPL 2 licensing on Linux, for this reason I would avoid this phone like the plague.
</P>
<H2>Pine64 Pinephone</H2>
<P>
I love this phone a lot.
Hardware keyboard available as an extension; hardware keyboard also adds a second battery, tripling the battery life of the phone.
Firmware is proprietary by default but the vendor allows using free firmware.
</P>
<H2>Punkt MP-02</H2>
<P>
Sucks.
</P>
</BODY>
</HTML>

75
homepage/phones/index.m4 Normal file
View File

@ -0,0 +1,75 @@
<!DOCTYPE html>
<HTML LANG="en">
define(`_TITLE', `phones')dnl
define(`_DESCRIPTION', `phones')dnl
define(`_PAGE', `phones/')dnl
define(`_STYLE',`.bad{ background-color: red; color: white; }
.good{ background-color: green; color: white; }
table, td, th{ border: 1px solid; border-collapse: collapse; }')dnl
include(`../head.m4')dnl
define(`good', `<TD CLASS="g`'ood">$1</TD>')dnl
define(`bad', `<TD CLASS="b`'ad">$1</TD>')dnl
include(`../html.m4')dnl
<BODY>
<P><A HREF="/">~ Return to the rest of the site</A></P>
<SCRIPT SRC="js/cookies.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT SRC="js/sheets.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT>
<H1>phones</H1>
<H3>updated 2022-08-30</H3>
_BAR
<TABLE> <!-- This looks awful in HTML because there are too many columns and the class=whatever stuff adds even more length. Open in lynx if stuck in a buffer. -->
<TR> th(`Phone') th(`Battery') th(`Charging jack') th(`Codecs') th(`Firmware') th(`Headphone jack') th(`Keyboard') th(`OS') th(`SD') th(`WLAN')</TR>
<TR>td(`Samsung SCH-R390') good(`Good') bad(`Micro USB-B, no OTG') bad(`No FLAC, no Vorbis, no VP8') bad(`Proprietary') good(`3.5mm') good(`Hardware') bad(`Proprietary') good(`Micro') bad(`No')</TR>
<TR> td(`LG UN280') good(`Decent') bad(`Micro USB-B, no OTG') bad(`No FLAC, no Vorbis, no VP8') bad(`Proprietary') good(`3.5mm') good(`Hardware') bad(`Proprietary') good(`Micro') bad(`No')</TR>
<TR>td(`iPhone SE (2016)') bad(`Dismal') bad(`Proprietary') bad(`No FLAC, no Vorbis, no VP8') bad(`Proprietary') good(`3.5mm') bad(`Software') bad(`Proprietary') bad(`None') good(`Yes')</TR>
<TR> td(`Unihertz Titan') good(`Excellent') good(`USB-C PD') good(`Configurable') bad(`Proprietary') good(`3.5mm') good(`Hardware') bad(`Proprietary') good(`Micro') good(`Yes')</TR>
<TR> td(`Pinephone') good(`Upgradeable') good(`USB-C PD') good(`Configurable') good(`Changeable') good(`3.5mm') good(`Software or hardware') good(`Open') good(`Micro') good(`Yes')</TR>
<TR> td(`Punkt MP-02') good(`Excellent') bad(`USB-C but no PD') bad(`No FLAC, no Vorbis, no VP8') bad(`Proprietary') bad(`over USB-C') good(`Hardware') bad(`Proprietary') bad(`None') good(`Yes')</TR>
</TABLE>
<H2>Samsung SCH-R390</H2>
<P>
Also known as the Freeform 4.
I used this extensively and enjoyed it at the time.
</P>
<H2>Samsung SCH-R480</H2>
<P>
Also known as the FreeForm 5.
No significant changes from the FreeForm 4 beyond aesthetics.
</P>
<H2>LG UN280</H2>
<P>
Also known as the Freedom II.
I used this extensively and enjoyed it at the time.
</P>
<H2>iPhone SE (2016)</H2>
<P>
I used this extensively and despise it.
</P>
<H2>Unihertz Titan</H2>
<P>
I used this extensively and despise it.
Bad hardware keyboard (no dollar sign).
Vendor unlawfully non-compliant with GPL 2 licensing on Linux, for this reason I would avoid this phone like the plague.
</P>
<H2>Pine64 Pinephone</H2>
<P>
I love this phone a lot.
Hardware keyboard available as an extension; hardware keyboard also adds a second battery, tripling the battery life of the phone.
Firmware is proprietary by default but the vendor allows using free firmware.
</P>
<H2>Punkt MP-02</H2>
<P>
Sucks.
</P>
</BODY>
</HTML>