bug-gtypist
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gtypist] new lesson


From: Felix Natter
Subject: Re: [bug-gtypist] new lesson
Date: Thu, 02 Jul 2015 19:36:44 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.4 (gnu/linux)

geoffroy tremblay <address@hidden> writes:

hello Aaron, hello Geoffroy,

current we do not have any plans for adding these lessons, but I
encourage you to write your own lessons, the file format is very simple.

You can also use this python script which generates a typ file from
a plain text input file (but it does not account for lines longer than
your terminal, encodings and other things):

------------------------
#!/usr/bin/python3

import sys

txtfile = sys.argv[1]
f = open(txtfile, 'r')
firstLine = True
for line in f:
    if (firstLine):
        print('S:{}'.format(line), end="")
    else:
        print(' :{}'.format(line), end="")
    firstLine = False
------------------------

If you have any questions, post here.

Cheers and Best Regards,
-- 
Felix Natter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]