Does this help:
Code: Select all
SETENVIRON "BACONARGS", ARGUMENT$
myvar$ = EXEC$("set")
PRINT myvar$
vovchik
Code: Select all
SETENVIRON "BACONARGS", ARGUMENT$
myvar$ = EXEC$("set")
PRINT myvar$
Code: Select all
SYSTEM CONCAT$(" what to do in bash here , copy_this$ ")
Code: Select all
SYSTEM CONCAT$("echo ", copy_this$ ,">" ," /tmp/first-argument.txt")
Code: Select all
SYSTEM CONCAT$("basename ", copy_this$ ,">" ," /tmp/basename-first-argument.txt")
SYSTEM CONCAT$("basename ", arg$[1] ,">" ," /tmp/basename-first-argument-using-arg1.txt")
Code: Select all
'--- using bash commands to get basename to be read in BaCon
Cmd$ = CONCAT$(" basename " , arg$[1])
Opt$ = EXEC$(Cmd$)
PRINT "********"
PRINT "basename of arg1 ", Opt$
PRINT "********"
' call this arg-find1.bac
TRAP LOCAL
SPLIT ARGUMENT$ BY " " TO arg$ SIZE dim
'--- thanks to vovchick for this gem
'--- send out to env the arguments used to run the program
'--- make the env availabe to BaCon
PRINT "==============env====================================="
SETENVIRON "BACONARGS", ARGUMENT$
myvar$ = EXEC$("set")
PRINT myvar$
PRINT "==============end====================================="
'--- use one of the env strings from bash in BaCon
Cmd$ = CONCAT$("echo ", "$BASH_VERSION")
Opt$ = EXEC$(Cmd$)
PRINT "this is the bash version " , Opt$
In point of fact, it cannot - at the moment. So, thank you for demonstrating to me that yet another unholy perversion of PNG format does indeed exist in the wild and providing a test example in the form of your "image2.png". I'll add support for such files in the next version.vovchik wrote:I am certain that mtpaint can do that type of thing well - I just don't know how.
I don't know much about mtPaint, but I just dragged the two images onto the canvas and saved. (vovchik's looks better, though )wjaguar wrote:In point of fact, it cannot - at the moment. So, thank you for demonstrating to me that yet another unholy perversion of PNG format does indeed exist in the wild and providing a test example in the form of your "image2.png". I'll add support for such files in the next version.vovchik wrote:I am certain that mtpaint can do that type of thing well - I just don't know how.
Thanks. There is no HUG - just straight calls to gtk/gdk, which makes the code more efficient and smaller. The down side of ths approach is that it looks almost like C, but that's OK if it gets the job done. I think I am finally ready to modify Picona, since I already have routines worked out for scaling and overlay. It's now a matter of reviewing my old Picona code and making the changes. It will be a small, single binary in the end, which is what I am after, and will run on any Linux/Unix with GTK installed. I just have to sit down and do it.getting a test run example going with just BaCon and HUG
In my demo, in creating the final image, the 3D image is not on top but on the bottom, and the clear orb is on top - the overlay. The reason that the 3D is visible is because of the alpha transparency in the orb. That's why it looks better - apart from the scaling issue. Moreover, the merged image canvas (background) in the new image is transparent. I am fairly certain that wjaguar will include this capability in a new version of mtpaint, so we just have to wait a bit.I just dragged the two images onto the canvas
Yeah, I cheated and filled in the hole with paint for image3wjaguar wrote:Precisely. And it is because mtPaint cannot properly read in "image2.png", which uses a palette with partial transparency (the first such image I've ever seen).jpeps wrote:I just dragged the two images onto the canvas and saved. (vovchik's looks better, though )
Converted the image2.png to a jpg first so it was more workable.vovchik wrote: In my demo, in creating the final image, the 3D image is not on top but on the bottom, and the clear orb is on top - the overlay. The reason that the 3D is visible is because of the alpha transparency in the orb. That's why it looks better
Code: Select all
" directive preserves the structure a bit by converting tabs into single spaces but, alas, has no color. BB code does not seem to allow for the best of both worlds, unfortunately, so it is either colors for keywords and no structure or structure and no colored keywords. I have tried all sorts of combinations to get something working in a BB sandbox [url]http://www.bbcode.org/playground.php[/url] and have failed. Any ideas or workarounds?
With kind regards,
vovchik
but the "" solution seems to have its own problems. While the color coding is great, "" eliminates all leading white space, so far as I can tell, which means all structural indentation disappears.Any ideas or workarounds?
well ,yes there are quite a few solutions
we have user side solutions and server side solutions
since I can only do what a user can do that limits my options
but there is a java script code reader plug in for PhpBB that does color code but it doesnt allow for BaCon
code but all the work with bacon2bb will help simplify things converting the plugin to display color for BaCon
and HUG keywords
but then it would be easier to just take a screeny with mtpaint of the geany code
since we now have BaCon and Hug highlighting for that
I was trying to get SciTE to do Bacon and HUG keywords that would allow you to export to html
then a link could be made this does work for bash code though
somewhere in all of this a solution will be found that is simple light and doesnt fry any brain cells
getting it to work completely
I can make a bb html converter like this example but a link would be still be needed to point to the code
uploaded somewhere
seems the best of both words for forum viewing of color
http://www.bbcode-to-html.com/
one quick example
http://www.puppy2.org/slaxer/bacon2bb.html
a big file example
http://www.puppy2.org/slaxer/hug-colored.html
*remember that we are adding an option to something not built in to the original phpBB code
so from that point we just have workarounds
Joe