<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Speedreading on rooiratel</title><link>https://rooiratel.red/tags/speedreading/</link><description>Stephan Snyman's personal website</description><language>en-gb</language><generator>Hugo</generator><atom:link href="https://rooiratel.red/tags/speedreading/index.xml" rel="self" type="application/rss+xml"/><item><title>Reading "fost" at no cost</title><link>https://rooiratel.red/posts/speedread/</link><pubDate>Sun, 29 Jan 2023 18:44:41 +0200</pubDate><guid isPermaLink="true">https://rooiratel.red/posts/speedread/</guid><description>Do you, like me, have too much long-form text to read on your computer and not enough time to read it all? The solution is easier than you think.
There are speed-reading “apps” that can help you to read text in a website at a much faster pace than you would normally do. If I am not mistaken, Spritz was the original one. I don’t use my cellphone much, so an app is useless to me, and Spritz’s solution for PCs is a browser plugin. Maybe it would work for you, but I just don’t like its interface.</description><content:encoded><![CDATA[<p>Do you, like me, have too much long-form text to read on your computer and not enough time to read it all? The solution is easier than you think.</p>
<p>There are speed-reading &ldquo;apps&rdquo; that can help you to read text in a website at a much faster pace than you would normally do. If I am not mistaken, <a href="https://spritz.com/">Spritz</a> was the original one. I don&rsquo;t use my cellphone much, so an app is useless to me, and Spritz&rsquo;s solution for PCs is a browser plugin. Maybe it would work for you, but I just don&rsquo;t like its interface.</p>
<p>I decided to look for alternatives. I needed something that would help me speed-read any text on my PC and do it in a way that didn&rsquo;t irritate me or get in my way ‒ and ideally, it would be something open source as well. I stumbled upon some CLI programs which met my requirements, but how was I going to easily input random text into these without having to put in much effort on my side? I know I sound lazy now, but if I&rsquo;m trying to improve my productivity, then giving myself a bunch of extra work isn&rsquo;t going to help.</p>
<p>The solution was dead simple, and when I realised it I couldn&rsquo;t believe that I hadn&rsquo;t seen something like this before. Just use the clipboard! I&rsquo;ll write a small wrapper script to feed the current content of the clipboard into the speed-reading program, and with a single command I can speed read any text on my computer.</p>
<p>The CLI script I settled on was <a href="https://github.com/pasky/speedread/blob/master/speedread">this simple but elegant Perl script</a>. There&rsquo;s been one commit since 2016, so I&rsquo;ve kept a fork for just in case.</p>
<p>Save this Perl script on your PC as <code>~/bin/speedread</code>.</p>
<p>Now for the wrapper script. Create <code>~/bin/fost</code> with the following contents:</p>
<pre tabindex="0"><code>#!/usr/bin/env bash

# Uncomment the line that is relevant to your display manager:

## xorg:
# content=$(xclip -o)
## wayland:
# content=$(wl-paste -p)

countdown=&#34;10 9 8 7 6 5 4 3 2 1&#34;; combi=&#34;$countdown $content&#34;; echo $combi | speedread -w 300
</code></pre><p>I&rsquo;ve added a countdown ‒ feel free to remove it. The -w 300 flag sets the default reading speed in wpm.</p>
<p>Now give both these scripts execution privileges.</p>
<p>Now you can select any text on your PC, type <code>fost</code> into a terminal, and you are speed reading through whatever you want. And it&rsquo;s all with open source code too!</p>
]]></content:encoded></item></channel></rss>