Support and General Use > Theming and Appearance Customization
[App] Rockbox Font Convertor [Windows]
iwantanimac:
Hm... for sheer simplicity i really prefer to have a single user input over drag and drop, but maybe we can have two versions... i don't personally like that way of doing it... but i guess if people want it we can do it.
That being said... hmm...
Maybe it can detect if %1 is an integer - font size, and, if it is, convers with that size, and if not, prompts, waits ten seconds, or accepts the input, and converts... I'm sure it would be possible. We've done something similar before... Let me have a look...
As for the GUI i can make it in VB in about an hour, but it'll be ugly, slow and cumbersome, so i won't. I need something lightweight and preferably integrated like C, C++ or something, and I'm not even sure if ill try.
bascule:
--- Quote from: iwantanimac on February 28, 2007, 07:08:08 AM ---Hm... for sheer simplicity i really prefer to have a single user input over drag and drop,
--- End quote ---
Oh well, my mistake in assuming you were very keen for drag and drop to work :(
How is command line typing simpler than drag and drop plus:
Enter required font size: _
In order to do what the application is designed for?
The two approaches (command line vs d'n'd) are mutually incompatible in this instance, because with d'n'd the parameters %1, %2 etc. are set to the filepaths of the dropped files. There is no way to pass in a single number as well.
iwantanimac:
but i'm sure there must be a way - this is what i was thinking of:
--- Quote from: bascule ---For my batch file, I used:
--- Quote ---if %2 LEQ a (goto 2-CaseSizeSet) else (goto 2-CaseNoSize)
--- End quote ---
which returns TRUE if %2 is a numeric value, because all numbers are mathematically less than the alphabetic character 'a'.
--- End quote ---
We could somehow use that... it'd be complex... but it might just work your way and my way...
As for drag 'n' drop, I was keen for it, but then i decided i liked the ability to set the font size without editing the batch file - and i don't want to have the parogram wait for input - it should be (For me) straight from command to output, but i can appreciate that the new PC/Rockbox/DOS user would prefer to have the drag 'n' drop as well as the font sizing... so a hybrid must be possible.
EDIT: I really wish i had more time for this...
bascule:
OK, I'll leave it with you...
iwantanimac:
Okay here's what i've hacked together in about 5 minutes.. it probably doesn't work, but it's how i'd expect it to work. I've commented on pretty much everything - so if you see something I've done wrong, feel free to correct me - It's based on bascule's latest one and i've added some code to check if a font size is set - na i think i did it wrong - if a font size is set it won't do multiple fonts... if i'm right... oh well il upload anyway so you get an idea of how i'm trying to do this (If it even helps)
THIS IS NOT A RELEASE - It's a very badly coded Beta.
[attachment deleted by admin, too old]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version