Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 22 Aug 2017, 22:45
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
SVG/PNG Fancy Text and Logo Generator
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 8 [106 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 2618
Location: South Australia

PostPosted: Sat 03 Jun 2017, 20:43    Post subject:  

@vovchik, just tried compiling your 3rd June version in Fatdog64-710 like:

bacon txt2svg.bac

and I get the following error:

Code:
# bacon txt2svg.bac
Converting 'txt2svg.bac'... 4221
Syntax error: could not parse line 4221 in file 'txt2svg.bac': "APPEND CONCAT__b2c__string_var( DUMP_GUI__b2c__string_var(1) , NL__b2c__string_var ) TO filelog__b2c__string_var"
#

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
misko_2083


Joined: 08 Nov 2016
Posts: 15

PostPosted: Sat 03 Jun 2017, 23:27    Post subject:  

smokey01 wrote:
@vovchik, just tried compiling your 3rd June version in Fatdog64-710 like:

bacon txt2svg.bac

and I get the following error:

Code:
# bacon txt2svg.bac
Converting 'txt2svg.bac'... 4221
Syntax error: could not parse line 4221 in file 'txt2svg.bac': "APPEND CONCAT__b2c__string_var( DUMP_GUI__b2c__string_var(1) , NL__b2c__string_var ) TO filelog__b2c__string_var"
#

Cheers


@smokey, it's compiling on Debian Jessie 64bit.
I paste the hug.bac in ~/Downloads/tahr-32-bit-txt2svg/
http://www.basic-converter.org/hug.bac
Then, I use next
Code:
/usr/local/bin/bacon.sh -o -Os -o -fdata-sections -o -ffunction-sections -o -Wl,--gc-sections  ~/Downloads/tahr-32-bit-txt2svg/src/txt2svg.bac


Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 897

PostPosted: Sun 04 Jun 2017, 01:40    Post subject:  

@smokey01, for compiling in Fatdog64-710 you need two things: latest hug.bac (see misko_2083's link, and put it in /usr/share/bacon/libs/); update the bacon compiler (bacon-3.5.4-x86_64-1 from gslapt).
_________________
Fatdog64-710|+Packages|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2618
Location: South Australia

PostPosted: Sun 04 Jun 2017, 02:32    Post subject:  

Thanks step & misko_2083,

I had compiled this before but I had built my own bacon but hadn't installed it. I ran it from the bacon compile directory.

The hug.bac file is not seen in the /usr/share/bacon/libs directory.

Looking at the txt2svg script, hug.bac is being call at ../hug.bac, one level up.

When I changed the txt2svg line from:

Code:
INCLUDE "../hug.bac", WINDOW, BUTTON, HSLIDER, COMBO, EDIT, SPIN, \
   HSEPARATOR, VSEPARATOR, IMAGE, TEXT, GRAB$, GET, SETPROPERTY, \
   FONT, SYNC, TOGGLE, ATTACH, DISPLAY, SCREENSIZE, HUGLIB$, CHECK, \
   HUGOPTIONS, MARK, ENTRY, SHOW, HIDE, CALLBACK, INIT, SET, QUIT, \
   ENABLE, DISABLE, LIST
INIT


to

Code:
INCLUDE "hug.bac", WINDOW, BUTTON, HSLIDER, COMBO, EDIT, SPIN, \
   HSEPARATOR, VSEPARATOR, IMAGE, TEXT, GRAB$, GET, SETPROPERTY, \
   FONT, SYNC, TOGGLE, ATTACH, DISPLAY, SCREENSIZE, HUGLIB$, CHECK, \
   HUGOPTIONS, MARK, ENTRY, SHOW, HIDE, CALLBACK, INIT, SET, QUIT, \
   ENABLE, DISABLE, LIST
INIT


or move the hug.bac file one level up, then it worked.

I had this same problem last time.

I think it would make sense to add the full path to the hug.bac file like:
Code:
INCLUDE "/usr/share/bacon/libs/hug.bac",

at line 84.

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1433
Location: Ukraine

PostPosted: Sun 04 Jun 2017, 06:49    Post subject:  

@ smokey01, step & misko_2083: Thanks, guys, for compiling and testing. The reason I put HUG one level up (which is obvious from the INCLUDE ../) is that I have lots of Bacon projects and create directories for each one. As HUG is in a directory above, I use that one copy for all of them. The reason I do not put it in /usr/share/lib/bacon is that, whicle that may be a convention for some, it isn't for me. I keep all sorts of INCLUDES in the ../ dev dir for any project (canvas includes, gdk includes, gtk includes, motif includes, my own widgets, curses, fltk wrappers etc.). As I have posted at least 800 programs on the BaCon forum, I have a lot of projects and have a need for that type of organization and do not wish to use a system directory "/usr" for source code that is not meant to be universal. And I noticed that misko_2083 is using bacon.sh. While this can be done, using the compiled version (bacon binary) is some 20x faster, and I have to compile and test 20 or 30x a day. I would recommend using the compiled version simply for speed, although the bash version works fine. Have fun, guys, and post your fancy text creations. Smile If you have ideas regarding filters or patterns, let me know. In future, I think it would be good to include some rotate and skew spinboxes, but that would require modifying the GUI a bit. I am thinking...
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2618
Location: South Australia

PostPosted: Sun 04 Jun 2017, 08:14    Post subject:  

@vovchik, what happened to UserColor?

Or am I going blind? Apparently I am because I eventually found it. The list probably needs to be alphabetised a little better. Maybe it should be first on the list then Transparent.
UserColor.png
 Description   How do I select colours?
 Filesize   72.17 KB
 Viewed   288 Time(s)

UserColor.png


_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
step

Joined: 04 May 2012
Posts: 897

PostPosted: Mon 05 Jun 2017, 01:08    Post subject:  

@smokey01,
you're right, of course, I build txt2svg with an automated Fatdog64 pkgbuild script that doctors the path to hug.bac, but I had forgotten about that.
Code:

sed -i 's#../hug.bac#/usr/share/bacon/libs/hug.bac#' src/txt2svg.bac
...

_________________
Fatdog64-710|+Packages|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1433
Location: Ukraine

PostPosted: Mon 05 Jun 2017, 15:02    Post subject:  

@ all: UPDATED 5 June (evening) More patterns, some of them useful and nice. Smile
vovchik_20170605_22h35m57s_droid_sans-223-motion.png
 Description   
 Filesize   166.69 KB
 Viewed   185 Time(s)

vovchik_20170605_22h35m57s_droid_sans-223-motion.png

vovchik_20170605_18h17m10s_droid_sans-56-none.png
 Description   
 Filesize   14.43 KB
 Viewed   199 Time(s)

vovchik_20170605_18h17m10s_droid_sans-56-none.png

Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 897

PostPosted: Tue 06 Jun 2017, 06:57    Post subject:  

@vovchik,

thank you for the new update. When I run it from a terminal window:

(txt2svg:1780): librsvg-WARNING **: SourceA1pha not found

It it really A1pha or should it be Alpha with an L?

About usability, would you please consider a by-column combo-box lay-out for the sorted lists of filters and fonts instead of the current by-row lay-out? My eyes automatically move top-to-bottom rather than left-to-right when I click a combo-box down-arrow. So the by-row lay-out looks unsorted to me - it takes me longer to find what I'm looking for. It was acceptable when the combo-box contained just a few filters, but now with 72 filters it's time for me to ask. Thank you.

_________________
Fatdog64-710|+Packages|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
souleau


Joined: 23 Oct 2016
Posts: 88

PostPosted: Tue 06 Jun 2017, 07:36    Post subject:  

I feel a bit guilty requesting this, because it will be a challenge to incorporate this in the GUI, but is there perhaps any possibility to implement pattern and filter scaling?

I realize you're probably not jumping at the thought of adding 3 more parameter fields, so I would totally understand if this idea went to the backburner.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2618
Location: South Australia

PostPosted: Tue 06 Jun 2017, 10:09    Post subject: root_20170606_23h31m05s_comic_sans_ms-195-wetpaint
Subject description: This is a lot of fun
 

This is a lot of fun.
root_20170606_23h31m05s_comic_sans_ms-195-wetpaint.png
 Description   
 Filesize   154.45 KB
 Viewed   137 Time(s)

root_20170606_23h31m05s_comic_sans_ms-195-wetpaint.png


_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1433
Location: Ukraine

PostPosted: Wed 07 Jun 2017, 14:05    Post subject:  

@ all: thanks for testing and feedback. I am working on a few enhancements involving rotation and skewing axes. My code seems to be working, but I am still trying to figure out some things regarding autoscaling and x and y origins after transforms. It may take a while to finesse these features (after which I will post), but here are some examples.
vovchik_20170607_19h58m21s_droid_sans-177-solidify.png
 Description   
 Filesize   129.76 KB
 Viewed   76 Time(s)

vovchik_20170607_19h58m21s_droid_sans-177-solidify.png

vovchik_20170607_19h22m11s_droid_sans-83-pointlighting.png
 Description   
 Filesize   108.56 KB
 Viewed   80 Time(s)

vovchik_20170607_19h22m11s_droid_sans-83-pointlighting.png

vovchik_20170607_19h52m07s_droid_sans-138-metallic.png
 Description   
 Filesize   34.87 KB
 Viewed   80 Time(s)

vovchik_20170607_19h52m07s_droid_sans-138-metallic.png

Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10663
Location: Gatineau (Qc), Canada

PostPosted: Wed 07 Jun 2017, 15:48    Post subject:  

What? Rotations?

Geez, vovchik, you have too much imagination !!! Laughing Wink

But keep going, man, keep going !!! Smile

BFN.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1433
Location: Ukraine

PostPosted: Wed 07 Jun 2017, 17:28    Post subject:  

@ smokey01 and musher0: Thanks guys.

@ all: am now posting a preliminary version with rotation and skewing on the X and Y axes. Still working out autosizing and placement, but it works in principle. Also attached is my template for the attached pic.
usergui.txt.tar.gz
Description 
gz

 Download 
Filename  usergui.txt.tar.gz 
Filesize  328 Bytes 
Downloaded  22 Time(s) 
vovchik_20170607_23h21m03s_droid_sans-136-gummibearshadow.png
 Description   
 Filesize   87.03 KB
 Viewed   58 Time(s)

vovchik_20170607_23h21m03s_droid_sans-136-gummibearshadow.png

Back to top
View user's profile Send private message 
step

Joined: 04 May 2012
Posts: 897

PostPosted: Wed 07 Jun 2017, 17:36    Post subject:  

Great! So the background gradient is rotated with the foreground object.
edit: No, not always at least; replacing Xblur with ColorStripeThin shows horizontal lines as background behind the rotated text.

_________________
Fatdog64-710|+Packages|Findnrun|+forum|gtkmenuplus
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 8 [106 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1080s ][ Queries: 14 (0.0083s) ][ GZIP on ]