maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] qtbigtext- large text viewer (https://talk.maemo.org/showthread.php?t=86793)

wolke 2012-09-12 01:07

[Announce] qtbigtext- large text viewer
 
an app to display text as large as possible, with all the text fitting.
https://github.com/teleshoes/qtbigte.../qtbigtext.png

1) install deb
2) edit MyDocs/qtbigtext.txt {perhaps with redak}
3) run qtbigtext app launcher

it will show whats in the file in the largest possible font {that it all fits in}

OR run it in a terminal and see stdin or commandline args in the largest font possible.

{the deb is n9-specific, but the script will work anywhere you have pyside, like n900, laptop, etc.}

QTBigText Download

config file is at ~/.config/qtbigtext.conf

https://github.com/teleshoes/qtbigtext

the use cases i have in mind are:
1) talking to my deaf grandmother while she holds the phone and i type on my laptop over ssh
2) showing the bus driver my confirmation code

bundles inconsolata {a very pretty monospace typeface that is not mine or affiliated with me at all} and defaults to it.

to use in a terminal:
python /opt/qtbigtext/qtbigtext.py the text you wanna display
or
cat file | python /opt/bigtext/qtbigtext.py
or
python /opt/bigtext/qtbigtext.py
{shows ~/MyDocs/qtbigtext.txt}

python /opt/qtbigtext/qtbigtext.py there
https://github.com/teleshoes/qtbigte...e-n9-there.png

python /opt/qtbigtext/qtbigtext.py The quick brown fox jumped over the lazy dog.
https://raw.github.com/teleshoes/qtb...e-n9-quick.png
v0.4
+add command line args to override config settings
+add command line arg to bigtext to read from STDIN
+add optional visual separator for manual line breaks
+fix font calculation to be consistent to tenths of a point
+fix bug where rapid invokations of bigtext failed to start it
+re-try the previous font point size when setting text with dbus

v0.3.3
+fix leftover artifacts between runs

v0.3.2
+/usr/bin/bigtext script, python3 and python2 compatibilty

v0.2
+flopjoke's icon, new config options: wordWrap and textFile

v0.1
+config file for bg/fg color, typeface, min/max font point, and forcing height/width of text print space

v0.0.5
+green on black
{v0.0.5.1 is white on black, because the proper way to customize colors is to totally have another application version for them}

v0.0.4
+fail with a nice error if input is too big
+fixed bug where some text would be cut off

v0.0.3
+desktop launcher is included and shows MyDocs/qtbigtext.txt
+Inconsolata is bundled now

v0.0.2
+wordwrap

v0.0.1
+font calculations and basic display

to donate if you like it: paypal to elliot.wolk@gmail.com

wolke 2012-09-12 02:44

Re: large text viewer
 
this guy knows what im talking about, but i hate his soln

http://www.qtforum.org/article/32092...xt-length.html

wolke 2012-09-12 02:55

Re: large text viewer
 
im going to bundle inconsolata with this, and use that since it has a predictable height and width

wolke 2012-09-12 20:05

Re: large text viewer
 
mostly done, heres the code.
i need to add wordwrap, which is quite tricky.

it has a max font point size of 600 and a min of 4, and it binary searches for an optimal font, so it works with any monospace font.

edit: heres the url of the latest script, instead of an outdated code block
https://raw.github.com/teleshoes/qtb...c/qtbigtext.py

wolke 2012-09-12 22:05

Re: [Announce] qtbigtext alpha- large text viewer
 
named the project qtbigtext, posted a deb for it, posted an inconsolata deb, and added some screenshots to the OP.

doesnt have wordwrap yet.

wolke 2012-09-14 00:45

Re: [Announce] qtbigtext alpha- large text viewer
 
0.0.2 wordwrap

wolke 2012-09-14 00:53

Re: [Announce] qtbigtext alpha- large text viewer
 
TODO:
1) {DONE} add a non-terminal way to use it. i could add an interactive gui, but there are already decent text editors out there, i personally dont give a **** about a gui, and i have no idea if anyone will find this app as useful as ive found it so far.

SO, ill check for a file in MyDocs called 'qtbigtext.txt', and use that if it exists {and no commandline args are present and stdin is not a pipe}.

if anyone DOES want an app like this, lemme know if you would find it sufficient to edit the file in, say, redak, and click the text viewer icon.

2) {DONE} bundle inconsolata with it. SIL's open font license vaguely hints at this being perfectly fine, but i need to look at it closely. {anyone can help me with that?}

3) add a config file for forcing the screen geometry, setting the typeface, and changing the bg/fg color.

wolke 2012-09-14 08:04

Re: [Announce] qtbigtext- large text viewer
 
ok, im done. this app works perfectly well for me. no config, maybe someday.

wolke 2012-09-20 16:14

Re: [Announce] qtbigtext- large text viewer
 
BUG: if the input is sufficiently large that it wont fit on the screen even at the minimum font point size, it crashes.

wolke 2012-09-29 02:30

Re: [Announce] qtbigtext- large text viewer
 
BUG: text will get cut off for some inputs

wolke 2012-09-29 02:31

Re: [Announce] qtbigtext- large text viewer
 
0.0.4 fixed:
-BUG: if the input is sufficiently large that it wont fit on the screen even at the minimum font point size, it crashes.
-BUG: text will get cut off for some inputs

thedead1440 2012-09-29 03:29

Re: [Announce] qtbigtext- large text viewer
 
http://db.tt/aW2FDxAV

wolke 2012-09-29 04:19

Re: [Announce] qtbigtext- large text viewer
 
HAH, lololol

thedead1440 2012-09-29 04:23

Re: [Announce] qtbigtext- large text viewer
 
Haha, I'm thinking of using these kind of images to post on TMO when replying to people like Lumiaman; inadvertently you've done a good anti-troll mechanism :p

wolke 2012-09-29 04:24

Re: [Announce] qtbigtext- large text viewer
 
oh god, use it for Good not Evil

wolke 2012-09-29 04:25

Re: [Announce] qtbigtext- large text viewer
 
hey you think i should set a default color? ye olde green on black perhaps?

thedead1440 2012-09-29 04:26

Re: [Announce] qtbigtext- large text viewer
 
Yup i think green on black would be nice


Edit: On second thought can we have white text on a black background? The black can then be seamless with the n9's design hence the text would stand-out...Of course only if its convenient for you!

Thanks :D

wolke 2012-09-29 04:47

Re: [Announce] qtbigtext- large text viewer
 
done. i of course have no idea if they work on the n9, as i dont own one.

thedead1440 2012-09-29 04:54

Re: [Announce] qtbigtext- large text viewer
 
http://db.tt/JcjpNyKL

guillermorojaz 2012-09-29 05:38

Re: [Announce] qtbigtext- large text viewer
 
2 Attachment(s)
http://db.tt/cli6fzf6

thedead1440 2012-09-29 07:06

Re: [Announce] qtbigtext- large text viewer
 
I absolutely s*ck at designing...

Done a preliminary icon till someone else does an acceptable one:

http://apps.javispedro.com/nit/hicg/...331e2_icon.png

wolke 2012-09-29 12:29

Re: [Announce] qtbigtext- large text viewer
 
so obviously i should make a config where you can specify the fontface, min/max fontpt, and bg/fg color.

BUT until then, what should the default one be? blue/green/white on black

thedead1440 2012-09-29 12:33

Re: [Announce] qtbigtext- large text viewer
 
I vote for white on black! :D

IMO its the best-looking...

guillermorojaz 2012-09-29 22:37

Re: [Announce] qtbigtext- large text viewer
 
I vote for the blue with black background. ;)

wolke 2012-09-29 22:38

Re: [Announce] qtbigtext- large text viewer
 
im gonna go ahead and cast my vote of green on black.
isnt democracy great?

wolke 2012-09-29 22:40

Re: [Announce] qtbigtext- large text viewer
 
oh hey, thedead1440

is that icon for qtbigtext? if it is, i appreciate the icon submission, buuut i dont get it.

thedead1440 2012-09-30 02:38

Re: [Announce] qtbigtext- large text viewer
 
Haha the W stands for wolke :p

I'll do one more maybe like: "w->W" to indicate the big text...

Pls, somebody do a better icon, I really am **** at it :D


Edit: sent a pm to flopjoke for the icon...He'll do a million times better job :D

wolke 2012-09-30 07:19

Re: [Announce] qtbigtext- large text viewer
 
lol, i should have figured that out.
someday, ill learn to make squircles.

for now, ill stick with my shitty:
O
/ ABC

thedead1440 2012-09-30 07:25

Re: [Announce] qtbigtext- large text viewer
 
I simply took a W in paint, save it as a bitmap and converted to .svg via this

Then ran the result into this tool and got that :p

wolke 2012-09-30 08:33

Re: [Announce] qtbigtext- large text viewer
 
ok i made a reasonable version with a config. white on black is the default color, you change it in ~/.config/qtbigtext.conf

flopjoke 2012-09-30 10:37

Re: [Announce] qtbigtext- large text viewer
 
Did someone want an icon designed? :)

Well, I came up with something.. check it out:

http://flickcabin.com/files/2029_sma...igtext_256.png

And of course, the 80x80 version of it so you can use it in the homescreen:

http://flickcabin.com/files/2030_i3ghv/qtbigtext_80.png

aaand the 64x64 version:

http://flickcabin.com/files/2031_zfwzm/qtbigtext_64.png

and the 10x10 version.. for fun :D

http://flickcabin.com/files/2032_h14pi/qtbigtext_10.png

What do you think?

wolke 2012-09-30 17:42

Re: [Announce] qtbigtext- large text viewer
 
wow, thanks for the icon! its totally awesome!
i think its cooler than the app.

just to make sure; i can distribute this with my gpl'd app, right?
can you perhaps license it cc-by-sa? {ill add a contributors file to the deb}

flopjoke 2012-09-30 18:12

Re: [Announce] qtbigtext- large text viewer
 
^ haha, nah.. your app idea is cooler. How do I license it cc-by-sa? By adding this sticker? -->http://i.creativecommons.org/l/by-sa/2.0/88x31.png

But sure, use the icon, distribute it, eat it.. it's all yours :)

Except the 10x10 version. That's licensed to me :P

wolke 2012-09-30 18:28

Re: [Announce] qtbigtext- large text viewer
 
Quote:

Originally Posted by flopjoke (Post 1274450)
Except the 10x10 version. That's licensed to me :P

i will be very careful not to include it in my packaging...LOL

Quote:

Originally Posted by flopjoke (Post 1274450)
How do I license it cc-by-sa? By adding this sticker?

stickers are nice, but in the future, really all you have to do is say it somewhere.

Copyright 2012 Your Name. Licensed under the CC-BY-SA v3.0.

{then everyone else can change it and use it, as long as they say you made it first and let other people change it and use it.}

great, thanks again for this!

flopjoke 2012-09-30 18:43

Re: [Announce] qtbigtext- large text viewer
 
Alright, I got it.

EVERYONE LISTEN!

I hereby proclaim that this icon of qtbigtext, is designed by me, flopjoke, CEO of AKstudios, and I give Mr. wolke full access to have sex with it as it's licensed under the CC-BY-SA v3.0.

© 2012 AKstudios.


^ I hope that's enough? =D

wolke 2012-09-30 18:47

Re: [Announce] qtbigtext- large text viewer
 
lololololololol

just the initial 'yes' was enough for me, but its good to know that if i and the magnifying glass become more than friends, the happy couple will have your blessing.

flopjoke 2012-09-30 20:45

Re: [Announce] qtbigtext- large text viewer
 
LOL I get to name the magnified wolke baby!

wolke 2012-09-30 20:46

Re: [Announce] qtbigtext- large text viewer
 
sure thing

thedead1440 2012-09-30 20:56

Re: [Announce] qtbigtext- large text viewer
 
flopjoke, you shouldn't have given the license to wolke... Simply retain it till he uses it then sue him for patent infringement :p

flopjoke 2012-09-30 21:02

Re: [Announce] qtbigtext- large text viewer
 
Quote:

Originally Posted by thedead1440 (Post 1274499)
flopjoke, you shouldn't have given the license to wolke... Simply retain it till he uses it then sue him for patent infringement :p

that's ok, I kept the license for his child, the 10x10 version. He can't touch his baby without my permission. This way, it's more fun xD


All times are GMT. The time now is 12:57.

vBulletin® Version 3.8.8