I'm really busy at work at the moment (boring web development ), and I haven't felt like coding much at home. So I'm not going to make much progress on this for a while yet.
for a long while i was struggling with shell scripting ... linebreaks are a bit of a brick wall ... sure you can concat lines, but it starts getting confusing and messy
then i presented the problem to a friend of mine and he whipped up a python script to strip out single linebreak characters and leave double linebreak characters alone. perfect to format eBooks to use w/ this text reader or gamepark's default!
Code:
MAGIC = "\23\45\56\35"
s = open("klf.txt").read()
s = s.replace('\n\n', MAGIC)
s = s.replace('\n', ' ')
s = s.replace(MAGIC, '\n\n')
print s
edit: on my kubuntu linux desktop this python script only works if the source text file has unix style line endings ... dos line ends will cause spaces to be inserted at the start of every line!
I generally like serif fonts when sub-pixel AA is on, although I'm starting to think sub-pixel doesn't actually look very good on the gp2x screen (mk2 at least, never seen the older one) there seems to be too much separation between the pixels, making the AA less effective and colour fringing more apparent.
i'm just having a look at this prog now - i like it, but i'm having the same issue with the B button not working and therefore getting stuck in the text file. any ideas why?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.