Browse Source

add some new keywords

and be clear about the intention of the capsule.
Not everybody might get the sarcasm right away.
master
René Wagner 4 months ago
parent
commit
f87db6d90d
  1. 40
      index.pl

40
index.pl

@ -34,13 +34,15 @@ our %RC = (
'CERT_NOT_VALID', 62
);
if (!defined($ENV{'SERVER_PROTOCOL'}) || $ENV{'SERVER_PROTOCOL'} ne 'GEMINI')
{
if (!defined($ENV{'SERVER_PROTOCOL'}) || $ENV{'SERVER_PROTOCOL'} ne 'GEMINI') {
write_response('CGI_ERROR', '', undef);
}
my $query = lc(uri_unescape($ENV{'QUERY_STRING'}));
if ($ENV{'PATH_INFO'} ne '') {
write_response('NOT_FOUND', 'File not found', undef);
}
my $query = lc(uri_unescape($ENV{'QUERY_STRING'}));
if ($query eq '') {
write_response('INPUT', 'Which feature do you most urgently need in gemini?', undef);
}
@ -60,43 +62,41 @@ sub create_response
when (/faq.*/) {
push @body, '=> https://src.clttr.info/rwa/gmnifaq Soon.';
}
when (/metadata.*/) {
push @body, ('SEO-again? Maybe a good idea to get all the big ad corps into gemini and make it widespread.', '', '=> https://people.well.com/user/doctorow/metacrap.htm Here are some arguments why metadata probably won\'t work well in large scale.');
}
when (/favicon.*/) {
push @body, '🤦';
}
when (/web.*/) {
push @body, 'It\'s meant to replace the web, not support it!';
push @body, 'We want to escape the web, not support it!';
}
when (/escaping/) {
push @body, 'Never.';
push @body, ('', '', '', '');
push @body, 'Seriously.';
push @body, ('Never.', '', '', '', 'Seriously.');
}
when (/.*length.*/) {
push @body, 'Why should we?';
push @body, ('', '');
push @body, 'So: Never.';
push @body, ('Why should we?', '', '', 'So: Never.');
}
when (/head.*/) {
push @body, 'It already does, just look at the question you asked me!';
}
when (/ital.*/) {
when (/itali.*/) {
push @body, 'Although considered essential for "serious writing" by some, gemini will most likely never support special markup for italics.';
}
when (/feed.*/) {
push @body, '=> gemini://gemini.circumlunar.space/docs/companion/subscription.gmi Do it the easy way.';
}
when (/tabl.*/) {
when (/table.*/) {
push @body, 'Seriously?';
}
default {
push @body, ('I don\'t understand what you mean. Anyway the answer is:', 'Most probably never.');
push @body, ('I don\'t exactly understand what you mean. Anyway the answer is:', 'Most probably never.');
}
}
push @body, ('', '', '', '');
push @body, '=> . check another feature';
push @body, '';
push @body, '=> gemini://gemini.circumlunar.space/docs/specification.gmi gemini is (almost) perfect the way it is now. See the spec for details.';
push @body, '';
push @body, '=> https://src.clttr.info/rwa/willgemini.support Open an issue or a PR for additional stuff.';
push @body, ('', '', '', '=> . check another "feature"', '');
push @body, ('This capsule is a sarcastic response to the various "proposals" of new features that pop up on the mailing list again and again. It has absolutely no authority about the gemini protocol and just reflects the very personal opinion of its author.', '', 'gemini is fine the way it is now, just stop trying to push every idea you have in your head into it and create content.', '=> gemini://gemini.circumlunar.space/docs/specification.gmi See the spec for more details what is already there to be creative.');
push @body, ('', '=> https://src.clttr.info/rwa/willgemini.support Open an issue or a PR for additional stuff.');
return @body;
}

Loading…
Cancel
Save