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 Thu 24 Apr 2014, 01:57
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
BaCon - Bash-based Basic-to-C converter/compiler
Post new topic   Reply to topic View previous topic :: View next topic
Page 21 of 36 [526 Posts]   Goto page: Previous 1, 2, 3, ..., 19, 20, 21, 22, 23, ..., 34, 35, 36 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 13 Apr 2011, 07:30    Post subject: welcome1stboot
Subject description: accomodate the non-English text
 

Quote:
tweak the text widget dimensions to accomodate the non-English text, let me know about that too

Code:

REM welcome window, first boot of Puppy.
REM (c) Copyright Barry Kauler 2011, bkhome.org
REM License GPL v3 (/usr/share/doc/legal)
REM 110412 first release.
REM 110413 tweak text widget dimensions and menu2.png to accomodate the non-English

Several changes had to be made



Note, menu2.png is localized, location in po file.
Code:
'image_tray=IMAGE("/usr/share/doc/menu2.png",150,90)
image_tray=IMAGE(INTL$("/usr/share/doc/menu2.png"),150,90)
ATTACH(mainwin,image_tray,10,325)


in de.po:
Code:

#: welcome1stboot.bac.c:442
msgid "/usr/share/doc/menu2.png"
msgstr "/usr/share/doc/help/de/menu2.png"

This is the location used in quickset wary multilingual

complete welcome1boot-20110413 incl. German translation attached

Edit
Now I see at the image another change of dimensions is needed:
Code:

'label_setup=MARK(INTL$("Setup your pup"),180,24)
label_setup=MARK(INTL$("Setup your pup"),280,24)


EDIT
Thanks for downloading...
please use next version 20110414 (3 posts down) Smile
welcome1stboot-20110413.tar.gz
Description  welcome1boot-20110413 incl. German translation
gz

 Download 
Filename  welcome1stboot-20110413.tar.gz 
Filesize  26.82 KB 
Downloaded  419 Time(s) 

Last edited by L18L on Wed 13 Apr 2011, 16:11; edited 1 time in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 13 Apr 2011, 10:14    Post subject: getting smaller binaries  

Dear Barry & Co.,

I do not always enjoy UPX'd binaries (I generally un-UPX them as a matter of habit), but I can see the logic in this in order to keep everything manageably small for Puppy. What I think would be great is an optimizing routine at compile/link time. I remember writing gtk apps, simple ones in C, and they were 4-6k! Smile That is nice. If we could get that kind of binary terseness in Bacon, it would be fabulous, because the BaCon binaries would be the size of gtkdialog scripts but run very fast! The non-GTK BaCon progs are already pretty small, but some kind of optimization would also help there. I do not know whether it possible, but if it is, Peter will put his mind to it and pleasantly surprise us all!

With kind regards,
vovchik

PS. I recalled why UPX's binaries bothered me. You cannot see the dependencies with ldd!
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Wed 13 Apr 2011, 14:28    Post subject: dimensions for russian  

L18L's version wasn't good enough for russian. So my dimensions are (Barry's version):
line - dimensions
41 - 664,514
83 - 84,16
86 - 568,165
88 - 250,24
101 - 430,16
107 - 280,24
124 - 280.24
140 - 84,16
143 - 570,489
welcome1stboot_ru.png
 Description   screenshot
 Filesize   73.93 KB
 Viewed   617 Time(s)

welcome1stboot_ru.png

ru.po.gz
Description  russian po-file
gz

 Download 
Filename  ru.po.gz 
Filesize  2.88 KB 
Downloaded  456 Time(s) 
welcome1stboot.bac.gz
Description  dimensions changed for russian
gz

 Download 
Filename  welcome1stboot.bac.gz 
Filesize  2.61 KB 
Downloaded  455 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Wed 13 Apr 2011, 15:56    Post subject: welcome1stboot
Subject description: for English, German, Russian and others with lines for "connect" and "help" <= 4 lines ...
 

label_ic_body : 3 lines in en, ru but 4 lines in de
label_help_body: 3 lines in en, de but 4 lines in ru

New: each has 4 lines (see REM in .bac)


welcome1stboot-20110414.tar.gz
Description 
gz

 Download 
Filename  welcome1stboot-20110414.tar.gz 
Filesize  21.63 KB 
Downloaded  398 Time(s) 
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Wed 13 Apr 2011, 17:32    Post subject: welcome1stboot  

L18L, your script is almost OK, but I had to change some parameters:
line 44 - 664,534 - making whole window a little wider
line 92 - 568,165 - word 'Connect' a bit to the right
line 112 - 430,16 - line was cut off in the end
line 121 - 220,24 - 'Сохранение сессии' - one letter was missing
line 166 - 570,509 - moving word 'setup' a bit to the right to be in the middle of sign.
And I guess it's OK.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 13 Apr 2011, 20:05    Post subject:  

L18L and rodin.s,
Thanks very much.

Note however, your dimensions are a bit messed up, as you are not using the very latest BaCon and HUG. That is, my PETs dated 20110414.

This means that the lines with "xalign" and "yalign" PROPERTY are being ignored. -- or so it seems.

Anyway, I am taking your latest source code and fixing it.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 13 Apr 2011, 23:51    Post subject:  

Oh, you also need the latest hug_imports.bac, which is also in my latest PET.

rodin.s, would you kindly post the 'menu2.png' for Russian? The English one is /usr/share/doc/menu2.png.

I have got it working nicely, correctly laid out for en, de and ru. If anyone else wants to create a country translation, probably this thread is not the best place to do it. I'll announce it on my blog and people can respond there.

I don't want to tweak the dimensions anymore. Any future translations, they can edit the text to fit.

Thanks guys for the help.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Thu 14 Apr 2011, 14:04    Post subject: menu2.png for russian  

Here's menu2.png for russian.
Sav_session.png
 Description   "Saving session" in Russian should be like this.
 Filesize   2.44 KB
 Viewed   1699 Time(s)

Sav_session.png

menu2.png
 Description   
 Filesize   4.68 KB
 Viewed   1694 Time(s)

menu2.png

Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Thu 14 Apr 2011, 19:32    Post subject:  

rodin.s,
Thanks for the menu2.png, I have put it into Woof.

The latest welcome1stboot.bac (that I used for the fr translation) has not been posted here. It has a couple of slightly longer label widgets.

This is what your ru translation looks like now:
welcome1stboot-ru.png
 Description   
 Filesize   24.09 KB
 Viewed   647 Time(s)

welcome1stboot-ru.png


_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Fri 15 Apr 2011, 06:37    Post subject: welcome1stboot  

Looks good.
Back to top
View user's profile Send private message 
lstandish


Joined: 06 Jun 2008
Posts: 126

PostPosted: Sun 17 Apr 2011, 13:28    Post subject: multiple tabs with bacon?  

Wow, this bacon stuff is cool!

I need to rewrite my snap2 backup utility (GUI frontend to rsync), since it is gtkdialog-based and gtkdialog is no longer supported in Debian Linux. I am looking at bacon/hug for that.

To help port snap2 from gtkdialog to bacon, I would really like to see the source code for a bacon app that uses multiple tabs. I think this is possible using the "notebook" widget.

Does anyone know of a bacon-coded app (with source code available) that uses multiple tabs?
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 28 Apr 2011, 16:43    Post subject: sfsget
Subject description: my 1st BK script converted to BaCon
 

Too tired to write, so here an excerpt of README

Code:
Suggestions how to improve the code are very welcome
   for example I could not make any use of CALLBACKX
   or how to let the message "please wait, probing..." display immediately

CHANGES:

- font can be changed in translation.
  So I am hoping we avoid difficulties with longer texts.

- destination
  Partitions are displayed in 2 columns if more than 5 partitions exist
  Partitions smaller than 17 MB, I use them just for grub, are disabled.

- shinobar's sfs_load (on-the-fly) launched if installed

Sorry, no picture (would not be much different from original)

Edited 2011-05-05
Thanks for downloading
New version see next post
sfsget-20110429.tar.gz
Description  BaConized version of Barry's sfsget
gz

 Download 
Filename  sfsget-20110429.tar.gz 
Filesize  39.56 KB 
Downloaded  376 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Thu 05 May 2011, 15:19    Post subject: sfsget
Subject description: progress learning BaCon
 

next version 1.02

no more yaf-splash
the simple solution was using SYNC

destination dialog
seems to have some blank lines of text. But in other translations which need longer text there are no blank lines. I have used the new PROPERTY.

sfsget-20110505.tar.gz
Description  version 1.02
gz

 Download 
Filename  sfsget-20110505.tar.gz 
Filesize  38.86 KB 
Downloaded  424 Time(s) 
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2478
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Sun 29 May 2011, 11:24    Post subject: BaCon - Bash-based basic to C converter/compiler
Subject description: gxlat - Desktop Google Translator redux
 

Vovchiks's gxlat now available converted to BaCon and internationalized using GNU/gettext , see
http://www.murga-linux.com/puppy/viewtopic.php?t=56869&start=31
Back to top
View user's profile Send private message 
rodin.s

Joined: 22 Sep 2010
Posts: 338
Location: Ukraine

PostPosted: Wed 08 Jun 2011, 05:16    Post subject: welcome1stboot_ru  

I have found some mistakes in welcome1stboot_ru translation. So here's corrected version.
welcome1stboot.tar.gz
Description 
gz

 Download 
Filename  welcome1stboot.tar.gz 
Filesize  3.64 KB 
Downloaded  337 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 21 of 36 [526 Posts]   Goto page: Previous 1, 2, 3, ..., 19, 20, 21, 22, 23, ..., 34, 35, 36 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.0879s ][ Queries: 13 (0.0138s) ][ GZIP on ]