[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gtypist] request
From: |
Felix Natter |
Subject: |
Re: [bug-gtypist] request |
Date: |
Thu, 18 Dec 2014 20:02:10 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.4 (gnu/linux) |
Mike Nagie <address@hidden> writes:
> Dear GNU Typist developers,
hello Mike,
> I would like to thank you what you have done. I tried to learn touch
> typing once or twice several years ago, but I failed. Now, thanks to
> your great software, I did learn, and I can use the whole keyboard
> without any peek.
This is great to hear! I also learned touch typing with GTypist :-)
> I'd like to ask you is there any way to insert own text without creating
> a new lesson? I'd like to practice with some longer texts.
> Like : gtypist own.txt and it would open the text in a speed test
> mode.
Currently this is not directly supported. Usually (see
/usr/bin/typefortune [1], which generates speed tests based on fortune
cookies) we generate .typ files like these using a small script.
Example output:
# temporary file created by typefortune
K:12:END
B: Mark Twain, "Pudd'nhead Wilson's Calendar"
I:fortune 1/1
S:The true Southern watermelon is a boon apart, and not to be mentioned with
:commoner things. It is chief of the world's luxuries, king by the grace of
God
:over all the fruits of the earth. When one has tasted it, he knows what the
:angels eat. It was not a Southern watermelon that Eve took; we know it
because
:she repented.
B: Practice complete
T:
:
:
: Congratulations: you successfully completed the 1 fortune lessons !
*:END
X:
Of course you only need the S: part, and you can also do this manually:
foo.txt:
bla bla blub
=>
foo.typ:
S:bla bla blub
=>
gtypist foo.typ
Writing a script should be easy (but you might need to take care of word
wrapping and split the text in S: stanzas if it exceeds ~22 lines). Can
you do that in your favorite (scripting) language? (if not then I'll
code it for you on the weekend - please provide sample .txt files)
[1]
http://git.savannah.gnu.org/gitweb/?p=gtypist.git;a=blob;f=typefortune;h=e295bc3783af5a2534e364d62dc2a65fad9cad06;hb=HEAD
Cheers and Best Regards,
--
Felix Natter