Adds NewsFax to iOS.

This commit is contained in:
Stuart Breckenridge committed 2022-02-05 07:03:20 +08:00
1 parent 67ace23e23
commit 129c6ae1cd
5 files changed
+814

No files matched your search

+4
View File
@@ -852,6 +852,7 @@
D5F4EDB720074D6500B9E363 /* WebFeed+Scriptability.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5F4EDB620074D6500B9E363 /* WebFeed+Scriptability.swift */; };
D5F4EDB920074D7C00B9E363 /* Folder+Scriptability.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5F4EDB820074D7C00B9E363 /* Folder+Scriptability.swift */; };
DD82AB0A231003F6002269DF /* SharingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD82AB09231003F6002269DF /* SharingTests.swift */; };
DFD6AACC27ADE80900463FAD /* NewsFax.nnwtheme in Resources */ = {isa = PBXBuildFile; fileRef = DFD6AACB27ADE80900463FAD /* NewsFax.nnwtheme */; };
FF3ABF13232599810074C542 /* ArticleSorterTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF3ABF09232599450074C542 /* ArticleSorterTests.swift */; };
FF3ABF1523259DDB0074C542 /* ArticleSorter.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF3ABF1423259DDB0074C542 /* ArticleSorter.swift */; };
FF3ABF162325AF5D0074C542 /* ArticleSorter.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF3ABF1423259DDB0074C542 /* ArticleSorter.swift */; };
@@ -1590,6 +1591,7 @@
D5F4EDB620074D6500B9E363 /* WebFeed+Scriptability.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "WebFeed+Scriptability.swift"; sourceTree = "<group>"; };
D5F4EDB820074D7C00B9E363 /* Folder+Scriptability.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Folder+Scriptability.swift"; sourceTree = "<group>"; };
DD82AB09231003F6002269DF /* SharingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SharingTests.swift; sourceTree = "<group>"; };
DFD6AACB27ADE80900463FAD /* NewsFax.nnwtheme */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = NewsFax.nnwtheme; sourceTree = "<group>"; };
FF3ABF09232599450074C542 /* ArticleSorterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArticleSorterTests.swift; sourceTree = "<group>"; };
FF3ABF1423259DDB0074C542 /* ArticleSorter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ArticleSorter.swift; sourceTree = "<group>"; };
FFD43E372340F320009E5CA3 /* MarkAsReadAlertController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarkAsReadAlertController.swift; sourceTree = "<group>"; };
@@ -1848,6 +1850,7 @@
511D43CE231FA51100FB1562 /* Resources */ = {
isa = PBXGroup;
children = (
DFD6AACB27ADE80900463FAD /* NewsFax.nnwtheme */,
51DEE81126FB9233006DAA56 /* Appanoose.nnwtheme */,
51077C5727A86D16000C71DB /* Hyperlegible.nnwtheme */,
51DEE81726FBFF84006DAA56 /* Promenade.nnwtheme */,
@@ -3443,6 +3446,7 @@
49F40DF92335B71000552BF4 /* newsfoot.js in Resources */,
512392C024E33A3C00F11704 /* RedditAdd.storyboard in Resources */,
51F85BEF2272520B00C787DC /* Thanks.rtf in Resources */,
DFD6AACC27ADE80900463FAD /* NewsFax.nnwtheme in Resources */,
51CE1C0923621EDA005548FC /* RefreshProgressView.xib in Resources */,
84C9FC9D2262A1A900D921D6 /* Assets.xcassets in Resources */,
514219582353C28900E07E2C /* main_ios.js in Resources */,
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Name</key>
<string>NewsFax</string>
<key>ThemeIdentifier</key>
<string>com.mynameisstuart.themes.newsfax</string>
<key>CreatorHomePage</key>
<string>https://mynameisstuart.com/</string>
<key>CreatorName</key>
<string>Stuart Breckenridge</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist>
@@ -0,0 +1,19 @@
The NewsFax themes uses the ModeSeven font throughout, which is available as Freeware.
Find out more [here](https://www.fontspace.com/modeseven-font-f2369).
ModeSeven is based on the bitmap font in Teletext televisions,
1980s-vintage Videotext terminals (such as the Prestel system used in
the UK), and the BBC Micro computer. (The name derives from the BBC
Micro screen mode which used the teletext character generator.)
This font looks "natural" at a size of 20 pixels, or any multiple thereof.
However, it has been hinted as to scale as well as an ex-bitmap font
can be expected to.
This font was created by hand with Fontographer 4.1.2 on a Macintosh.
The character definitions were worked out from a bitmap version of the
Teletext font created by James Fidell, and included in xbeeb (a BBC
Micro emulator for UNIX/X11). The spacing of the original has been
preserved, which is why many character shapes are aligned to the right
of their cells.
@@ -0,0 +1,685 @@
/* Custom Fonts */
@font-face {
font-family: 'ModeSeven';
src: url(data:font/truetype;charset=utf-8;base64,d09GRgABAAAAACnIAA8AAAAAZhAABAABAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAprAAAABoAAAAcPkijD0dERUYAACmQAAAAHAAAAB4AJwBuT1MvMgAAAcQAAABCAAAAVoJ6UQtjbWFwAAACRAAAAMYAAAFqdOuD7WN2dCAAAANoAAAAPgAAAD5gHP51ZnBnbQAAAwwAAAAUAAAAFIMzwk9nbHlmAAAEfAAAIuQAAFxksVlFU2hlYWQAAAFYAAAAMAAAADbFgExbaGhlYQAAAYgAAAAcAAAAJAV6AZVobXR4AAACCAAAADsAAADYH0AY52xvY2EAAAOoAAAA0gAAANLe3MeMbWF4cAAAAaQAAAAgAAAAIAExAaVuYW1lAAAnYAAAAXsAAALTsorwF3Bvc3QAACjcAAAAsgAAAPZRyg66cHJlcAAAAyAAAABFAAAAZo7oOXJ4nGNgZGBgAOLexW/M4vltvjLIM78AijBs/NXSj6D/WzBFMCsAuRwMTCBRAG5lDDh4nGNgZGBgVvhvwcDAFMHAACYZGVABCwA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0F55CzLNMF5BDO4zZqNsgvaxM5TtrRFIQ+YZAxAj5SjLhRPhneYIWKMcpIxMNQCBI77zcgFfvGGjLine truncated
font-weight: normal;
font-style: normal;
}
body {
margin-left: auto;
margin-right: auto;
background: black;
word-wrap: break-word;
max-width: 44em;
color: white;
}
.feedHeader {
margin: auto;
text-align: center;
}
.feedHeader img {
margin: auto;
display: block;
padding-top: 1em;
padding-bottom: 1em;
}
th.newsfax {
color: yellow;
width: 22.5%;
}
.svg-inline--fa {
height: 1em;
width: 1em;
vertical-align: middle;
}
a {
text-decoration: none;
font-weight: bolder;
}
a:hover {
text-decoration: underline;
}
.feedlink {
font-weight: bold;
}
.headerTable {
width: 100%;
height: 68px;
}
.newsfax-footer {
padding-top: 40px;
}
.newsfax-footer-cell-red a {
color: red;
}
.newsfax-footer-cell-green a {
color: green;
}
.newsfax-footer-cell-yellow a {
color: yellow;
}
.newsfax-footer-cell-blue a {
color: cornflowerblue;
}
pre {
padding: 5px;
color: white;
}
.systemMessage {
position: absolute;
top: 45%;
left: 50%;
transform: translateX(-55%) translateY(-50%);
-webkit-user-select: none;
cursor: default;
}
:root {
--header-table-border-color: rgba(0, 0, 0, 0.1);
--header-color: rgba(0, 0, 0, 0.3);
--body-code-color: lightgray;
--system-message-color: #cbcbcb;
--feedlink-color: rgba(0, 182, 255, 0.6);
--article-title-color: #fff;
--article-date-color: rgba(0, 0, 0, 0.3);
--table-cell-border-color: lightgray;
}
body .headerTable {
border-bottom: 1px solid var(--header-table-border-color);
color: var(--header-color);
}
body .header {
color: var(--header-color);
}
body .header a:link, .header a:visited {
color: var(--header-color);
}
body code, body pre {
color: var(--body-code-color);
}
body > .systemMessage {
color: var(--system-message-color);
}
.feedlink a:link, .feedlink a:visited {
color: var(--feedlink-color);
}
.avatar img {
border-: 4px;
display: none;
}
.feedIcon {
border-radius: 4px;
display: none;
}
.rightAlign {
text-align: end;
}
.leftAlign {
text-align: start;
}
.articleTitle a:link, .articleTitle a:visited, .articleTitle h1 {
color: var(--article-title-color);
margin-top: 26px;
padding-bottom: 12px;
padding-top: 10px;
text-align: center;
text-transform: uppercase;
margin: auto;
font-family: ModeSeven, ui-serif;
}
.articleDateline {
color: rgba(124, 124, 124, 1);
margin-bottom: 5px;
text-align: center;
padding-top: 1em;
}
.articleDateline a:link, .articleDateline a:visited {
color: rgba(166, 166, 166, 1);
font-weight: normal;
padding-top: 1em;
text-align: center;
}
.articleDatelineTitle {
color: rgba(124, 124, 124, 1);
margin-bottom: 5px;
font-weight: normal;
}
.articleDatelineTitle a:link, .articleDatelineTitle a:visited {
color: var(--article-title-color);
}
.externalLink {
margin-bottom: 5px;
font-style: italic;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
}
.articleBody {
margin-top: 20px;
line-height: 1.6em;
}
h1 {
line-height: 1.15em;
font-weight: bold;
padding-bottom: 0;
margin-bottom: 5px;
}
pre {
max-width: 100%;
margin: 0;
overflow: auto;
overflow-y: hidden;
word-wrap: normal;
word-break: normal;
}
pre {
line-height: 1.4286em;
}
code, pre {
font-family: 'ModeSeven', SF Mono, Menlo, "Courier New", Courier, monospace;
font-size: 0.95em;
-webkit-hyphens: none;
}
pre code {
letter-spacing: -.027em;
font-size: 0.9375em;
}
.nnw-overflow {
overflow-x: auto;
}
/*
Instead of the last-child bits, border-collapse: collapse
could have been used. However, then the inter-cell borders
overlap the table border, which looks bad.
*/
.nnw-overflow table {
margin-bottom: 1px;
border-spacing: 0;
border: 1px solid var(--secondary-accent-color);
font-size: inherit;
}
.nnw-overflow table table {
margin-bottom: 0;
border: none;
}
.nnw-overflow td, .nnw-overflow th {
-webkit-hyphens: none;
word-break: normal;
border: 1px solid var(--table-cell-border-color);
border-top: none;
border-left: none;
padding: 5px;
}
.nnw-overflow tr :matches(td, th):last-child {
border-right: none;
}
.nnw-overflow :matches(thead, tbody, tfoot):last-child > tr:last-child :matches(td, th) {
border-bottom: none;
}
.nnw-overflow td pre {
border: none;
padding: 0;
}
.nnw-overflow table[border="0"] {
border-width: 0;
}
img, figure, video, div, object {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}
iframe {
max-width: 100%;
margin: 0 auto;
}
iframe.nnw-constrained {
max-height: 50vw;
}
figure {
margin-bottom: 1em;
margin-top: 1em;
}
figcaption {
font-size: 14px;
line-height: 1.3em;
}
sup {
vertical-align: top;
position: relative;
bottom: 0.2rem;
}
sub {
vertical-align: bottom;
position: relative;
top: 0.2rem;
}
hr {
border: none;
background-color: var(--table-cell-border-color);
height: 1px;
margin-top: 1em;
}
.iframeWrap {
position: relative;
display: block;
padding-top: 56.25%;
}
.iframeWrap iframe {
position: absolute;
top: 0;
left: 0;
height: 100% !important;
width: 100% !important;
}
/* @media (prefers-color-scheme: light) {
blockquote {
background: color(srgb 0.947 0.947 0.947);
border-radius: 4px;
margin: 1.5em 0;
padding: 1rem;
color: color(srgb 0.383 0.383 0.383);
font-size: 0.95rem;
}
pre {
background: color(srgb 0.947 0.947 0.947);
}
p code {
background: color(srgb 0.947 0.947 0.947);
padding: 0.2em;
border-radius: 4px;
}
} */
blockquote {
background: rgba(49, 49, 49, 1);
margin: 1.5em 0;
padding: 1em;
color: rgba(195, 195, 195, 1);
font-size: 0.95rem;
}
pre {
background: rgba(49, 49, 49, 1);
color: white;
}
p code {
background: rgba(49, 49, 49, 1);
padding: 0.2em;
border-radius: 4px;
color: white;
}
blockquote > blockquote {
padding-left: 1em;
padding-top: 0em;
padding-bottom: 0em;
font-style: italic;
}
blockquote > *:first-child {
margin-block-start: 0px;
}
blockquote > *:last-child {
margin-block-end: 0px;
}
/* Feed Specific */
.feedbin--article-wrap {
border-top: 1px solid var(--header-table-border-color);
}
/* Hide the external link at the bottom of Daring Fireball posts */
.x-netnewswire-hide {
display: none;
}
/* see removeWpSmiley; this rule is kept in case a wp-smiley is encountered without alt text */
.wp-smiley {
height: 1em;
max-height: 1em;
}
/* Twitter */
.twitterAvatar {
vertical-align: middle;
border-radius: 4px;
height: 1.7em;
width: 1.7em;
}
.twitterUsername {
line-height: 1.2;
margin-left: 4px;
display: inline-block;
vertical-align: middle;
}
.twitterScreenName {
font-size: 66%;
}
.twitterTimestamp {
font-size: 66%;
}
/*Block ads and junk*/
iframe[src*="feedads"],
iframe[src*="doubleclick"],
iframe[src*="plusone.google"] {
display: none !important;
}
a[href*=".ads."],
a[href*="feedads"],
a[href*="doubleclick"],
a[href*="//ads."],
a[href*="api.tweetmeme"],
a[href*="delicious.com/post?"],
a[href*="digg.com/submit?"],
a[href*="google.com/bookmarks/mark?"],
a[href*="posterous.com/share?"],
a[href*="tumblr.com/share?"],
a[href*="linkedin.com/shareArticle?"],
a[href*="facebook.com/share.php?"],
a[href*="http://twitter.com/home?"],
a[href*="addtoany.com/share_save"] {
display: none !important;
}
img[src*=".ads."],
img[src*="//ads."],
img[src*="doubleclick"],
img[src*="feedads"],
img[src*="feedburner"],
img[src*="feedblitz"],
img[src*="share-buttons"] {
display: none !important;
}
/* Newsfoot specific styles. Structural styles come first, theme styles second */
.newsfoot-footnote-container {
position: relative;
display: inline-block;
z-index: 9999;
}
.newsfoot-footnote-popover {
position: absolute;
display: block;
padding: 0em 1em;
margin: 1em;
top: 0.75em;
max-width: none;
border-radius: 0.3em;
box-sizing: border-box;
}
.newsfoot-footnote-popover {
left: calc(-1 * (50vw - 1em));
right: calc(-1 * (50vw - 1em));
}
.newsfoot-footnote-popover-arrow {
content: '';
display: block;
width: 1em;
position: absolute;
top: -0.5em;
left: calc(50% - 0.5em);
height: 1em !important;
transform: rotate(45deg);
z-index:0;
}
.newsfoot-footnote-popover-inner {
border-radius: calc(0.3em - 1px);
padding: 1em;
position: relative;
z-index: 1;
}
.newsfoot-footnote-popover-inner :first-child {
margin-top: 0;
}
.newsfoot-footnote-popover-inner :last-child {
margin-bottom: 0;
}
.newsfoot-footnote-popover .reversefootnote,
.newsfoot-footnote-popover .footnoteBackLink,
.newsfoot-footnote-popover .footnote-return,
.newsfoot-footnote-popover a[href*='#fn'] {
display: none;
}
sup[id^='fn'] {
vertical-align: baseline;
}
a.footnote {
display: inline-block;
text-decoration: none;
padding: 0.05em 0.75em;
border-radius: 1em;
min-width: 1em;
text-align: center;
font-size: 0.8em;
line-height: 1em;
position:relative;
top: -0.1em;
}
/* light / default */
.newsfoot-footnote-popover {
background: #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.25);
color: black;
padding: 1px;
}
.newsfoot-footnote-popover-arrow {
background: #fafafa;
border: 1px solid #ccc;
}
.newsfoot-footnote-popover-inner {
background: #fafafa;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
/* dark */
@media screen and (prefers-color-scheme: dark) {
.newsfoot-footnote-popover {
background: #444;
color: rgb(224, 224, 224);
}
.newsfoot-footnote-popover-arrow {
background: #242424;
border: 1px solid #444;
}
.newsfoot-footnote-popover-inner {
background: #242424;
}
body a.footnote,
body a.footnote:visited,
.newsfoot-footnote-popover + a.footnote:hover {
background: #aaa;
color: white;
transition: background-color 200ms ease-out;
}
a.footnote:hover,
.newsfoot-footnote-popover + a.footnote {
background: #666;
transition: background-color 200ms ease-out;
}
}
/* iOS Specific */
@supports (-webkit-touch-callout: none) {
body {
margin-top: 3px;
margin-bottom: 20px;
padding-left: 20px;
padding-right: 20px;
font-family: 'ModeSeven', -apple-system;
}
:root {
--primary-accent-color:rgba(110, 227, 231, 1);
--secondary-accent-color: rgba(110, 227, 231, 1);
--block-quote-border-color: rgba(94, 158, 244, 0.75);
--header-table-border-color: rgba(255, 255, 255, 0.2);
}
body a, body a:visited, body a * {
color: var(--secondary-accent-color);
}
body .header {
font: -apple-system-body;
font-size: [[font-size]]px;
}
body .header a:link, body .header a:visited {
color: var(--primary-accent-color);
}
.avatar img {
border-radius: 4px;
}
.nnw-overflow table {
border: none;
}
.activityIndicatorWrap {
position: relative;
}
.activityIndicator {
z-index: 1;
width: 64px;
height: 64px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
}
/* macOS Specific */
@supports not (-webkit-touch-callout: none) {
body {
margin-top: 20px;
margin-bottom: 64px;
padding-left: 48px;
padding-right: 48px;
font-family: 'ModeSeven', -apple-system;
}
.smallText {
font-size: 14px;
}
.mediumText {
font-size: 16px;
}
.largeText {
font-size: 18px;
}
.xlargeText {
font-size: 20px;
}
.xxlargeText {
font-size: 22px;
}
:root {
--accent-color: rgba(110, 227, 231, 1);
--block-quote-border-color: rgba(94, 158, 244, .50);
--header-table-border-color: rgba(255, 255, 255, 0.1);
}
body a, body a:visited, body a * {
color: var(--accent-color);
}
.nnw-overflow table {
//border: 1px solid var(--accent-color);
}
}
@@ -0,0 +1,90 @@
<!-- Template Variables
title: The title of the article
preferred_link: The best link to associate with the article for linking out.
external_link_label: A localized label for the external link.
external_link_stripped: The external link minus the scheme. Useful for displaying the external link.
external_link: The external link of the article if there is one provided by the author.
feed_link_title: The name of the feed associated with this article.
feed_link: The URL of the feed associated with this article.
byline: HTML that combines all the authors and links to them if available.
avatar_src: The image source URL for the feed icon / avatar.
dateline_style: Either "articleDateline" or "articleDatelineTitle" depending on if the title was populated or not.
datetime_long: Long version of a combined publish date and time.
datetime_medium: Medium length version of a combined publish date and time.
datetime_short: Short version of a combined publish date and time.
date_long: Long version of the publish date.
date_medium: Medium version of the publish date.
date_short: Long version of the publish date.
time_long: Long version of the publish time.
time_medium: Medium version of the publish time.
time_short: Long version of the publish time.
text_size_class: The size class that the user has selected in Preferences for article text.
body: The body of the article.
-->
<div class="feedHeader">
<table width="100%">
<tr>
<th class="newsfax" align="left">NEWSFAX</th>
<th class="newsfax-page" align="left"></th>
<th></th>
<th align="right">[[datetime_short]]</th>
</tr>
</table>
<div class="articleTitle">
<h1><a href="[[preferred_link]]">[[title]]</a></h1>
</div>
<div><a href="[[feed_link]]">[[feed_link_title]]</a></div>
<div>[[byline]]</div>
</div>
<hr />
<article>
<div id="bodyContainer" class="articleBody [[text_size_class]]">[[body]]</div>
<div class="externalLink"><a href="[[external_link]]">[[external_link]]</a></div>
<table class="newsfax-footer" width="100%">
<tr>
<th class="newsfax-footer-cell-red"><a href="https://duckduckgo.com/?q=news&t=h_&iar=news&ia=news">Headlines</a></th>
<th class="newsfax-footer-cell-green"><a href="https://duckduckgo.com/?q=sports+news&t=h_&ia=web">Sport</a></th>
<th class="newsfax-footer-cell-yellow"><a href="https://duckduckgo.com/?q=local+tv&t=h_&ia=places">TV<a></th>
<th class="newsfax-footer-cell-blue"><a href="[[feed_link]]">Website</a></th>
</tr>
</table>
</article>
<script type="text/javascript">
/* Generate a random Newsfax page number */
function getRandomIntInclusive(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1) + min); //The maximum is inclusive and the minimum is inclusive
}
let random = getRandomIntInclusive(100, 999);
let newsFaxElement = document.body.getElementsByClassName('newsfax-page')[0];
newsFaxElement.innerHTML = "P" + random;
/*
The arrow-circle-right SVG is provided by Font Awesome under the Creative Commons Attribution 4.0 International License.
For more details view the license here: https://fontawesome.com/license
*/
let externalLinkElement = document.body.getElementsByClassName('externalLink')[0].querySelectorAll('a')[0];
if (externalLinkElement.innerText != '') {
let host = externalLinkElement.hostname;
externalLinkElement.innerHTML = host + " " + '->';
}
</script>