Yes, it is, .pot file is included.As it seems we're at the beginning of the creation (and maybe later adaptation of old scripts) of programs, written with bacon, for new versions of Wary, Quirky, etc., would it be possible to localize them now with a .mo file?
If possible of course.
BaCon - Bash-based Basic-to-C converter/compiler
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
bacon
Mon 15 Nov 2010, 12:32 esmourguit wrote:
- Attachments
-
- de.png
- German proxy-setup
- (33.25 KiB) Downloaded 1828 times
-
- proxy-setup.tar.gz
- proxy-setup
proxy-setup.bac
proxy-setup.pot - (39.68 KiB) Downloaded 585 times
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
I have created a PET for the Vim text editor, with color highlighting for BaCon:
http://bkhome.org/blog/?viewDetailed=02174
One of the great features of Vim is that it can convert code to color-highlighted-HTML, as I have reported here:
http://bkhome.org/blog/?viewDetailed=02173
http://bkhome.org/blog/?viewDetailed=02174
One of the great features of Vim is that it can convert code to color-highlighted-HTML, as I have reported here:
http://bkhome.org/blog/?viewDetailed=02173
[url]https://bkhome.org/news/[/url]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Thanks to help from Peter van Eerten and L18L, I was also able to get international language support working. It's real easy, and to show everyone else how easy it is I have written a HOWTO:
http://bkhome.org/bacon/international.htm
http://bkhome.org/bacon/international.htm
[url]https://bkhome.org/news/[/url]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Ok, I have updated the proxy-setup tool, with two improvements:
1. Peter's solution so that the layout of the window remains correct regardless of the type of screen, default GTK fonts, or XFT DPI value.
2. Peter's upgrade to BaCon that supports international languages.
I have attached an image of what it looks like on my screen. I would appreciate if you guys could try it and confirm that the layout remains correct on your screens.
1. Peter's solution so that the layout of the window remains correct regardless of the type of screen, default GTK fonts, or XFT DPI value.
2. Peter's upgrade to BaCon that supports international languages.
I have attached an image of what it looks like on my screen. I would appreciate if you guys could try it and confirm that the layout remains correct on your screens.
- Attachments
-
- proxy-setup.png
- Showing correct layout on my PC
- (6.42 KiB) Downloaded 1794 times
[url]https://bkhome.org/news/[/url]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
And attached is a tarball of my latest proxy-setup, along with the 'bacon' compiler and 'hug.bac' that I used.
Apart from testing the layout, if anyone who is interested in supporting internationalization, I have included 'proxy-setup.pot' -- you can use this to create a proxy-setup.mo file for your language/country -- send it to me and I will include it in Puppy -- in fact, it will be in Woof, so in all Woof-built puppies.
I have created a web page that shows how easy it is to create a .mo file from a .pot file:
http://bkhome.org/bacon/international.htm
Apart from testing the layout, if anyone who is interested in supporting internationalization, I have included 'proxy-setup.pot' -- you can use this to create a proxy-setup.mo file for your language/country -- send it to me and I will include it in Puppy -- in fact, it will be in Woof, so in all Woof-built puppies.
I have created a web page that shows how easy it is to create a .mo file from a .pot file:
http://bkhome.org/bacon/international.htm
[url]https://bkhome.org/news/[/url]
proxy-setup
Dear Barry,
The main screen looks perfect on my machine. The only little infelicity is in the closing message box, where the OK button abuts (pardon the pun) against the text above it. I changed the dimensions of the second message box to 400,120,0,1 and everything was fine.
With kind regards,
vovchik
The main screen looks perfect on my machine. The only little infelicity is in the closing message box, where the OK button abuts (pardon the pun) against the text above it. I changed the dimensions of the second message box to 400,120,0,1 and everything was fine.
With kind regards,
vovchik
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
proxy-setup
I had to increase the width of mainwin and label_hdrx by 40 to get my translation legible and had to change size of message box to:
yes_dlg1=MSGDIALOG(INTL("..."),500,150,0,1)
no_dlg1=MSGDIALOG(INTL("..."),500,120,0,1)
I have been varying 'global font size', too and here is how it is looking on my screen (1280x720) now.
7 posts back looks better
German po-file attached.
yes_dlg1=MSGDIALOG(INTL("..."),500,150,0,1)
no_dlg1=MSGDIALOG(INTL("..."),500,120,0,1)
I have been varying 'global font size', too and here is how it is looking on my screen (1280x720) now.
7 posts back looks better
German po-file attached.
- Attachments
-
- de-dpi_72.png
- dpi 72
- (41.45 KiB) Downloaded 1781 times
-
- de-dpi_60.png
- 60 dpi
- (29.95 KiB) Downloaded 1788 times
-
- de.po.gz
- de.po for proxy-setup
- (1.2 KiB) Downloaded 666 times
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
proxy-setup
is looking good so far with 96 dpi.
The input fields have to be moved to the right, of course.
And thanks for the statement
The input fields have to be moved to the right, of course.
And thanks for the statement
in your blogall programs will have international language support
- Attachments
-
- de-dpi_96.png
- german 96 dpi
- (59.45 KiB) Downloaded 681 times
BaCon and USB IO
Barry, Peter, Vovchik,
I have been following this thread with great interest, since I am a great puppy lover (since 2.17), but have never taken the step to do anything else than assembly language, a bit of bash, and (in the early days) basic.
Your joined effort to get BaCon working in Wary made me decide to drop Puppy 5 and install Wary 5.1.1 with success. Installed the devpack, and downloaded hug.bac. Using NicoEdit.
And I have been programming since, taking Barry's proxy program as a reference. I am impressed, and would like to use this configuration for my hobby (model railway automation). In this I need digital IO. One of the options for this is USB IO chips like the FTDI range (I own a few FT245BM modules).
But I have no clue on how to add the drivers for these USB chips to the BaCon environment. There is a Linux library (1.0.4) for Mandrake 9, but that would (probably) need re-compilation for Wary ????
http://www.ftdichip.com/Drivers/D2XX.htm
And even then, how can I access this library from BaCon ?? Do I use the EXEC command ?
Can someone help me ??
Volhout
I have been following this thread with great interest, since I am a great puppy lover (since 2.17), but have never taken the step to do anything else than assembly language, a bit of bash, and (in the early days) basic.
Your joined effort to get BaCon working in Wary made me decide to drop Puppy 5 and install Wary 5.1.1 with success. Installed the devpack, and downloaded hug.bac. Using NicoEdit.
And I have been programming since, taking Barry's proxy program as a reference. I am impressed, and would like to use this configuration for my hobby (model railway automation). In this I need digital IO. One of the options for this is USB IO chips like the FTDI range (I own a few FT245BM modules).
But I have no clue on how to add the drivers for these USB chips to the BaCon environment. There is a Linux library (1.0.4) for Mandrake 9, but that would (probably) need re-compilation for Wary ????
http://www.ftdichip.com/Drivers/D2XX.htm
And even then, how can I access this library from BaCon ?? Do I use the EXEC command ?
Can someone help me ??
Volhout
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
BaCon and USB IO
Dear Volhout
Best regards
I think bacon Troubleshouting area can and will help youCan someone help me ??
Best regards
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
The proxy-setup BaCon program saga continues!
Attached is the very latest. It also needs the very latest BaCon. My PET has /usr/lib/hug.so, which makes GUI applications smaller -- 'proxy-setup' has dropped from 115KB to 50KB.
Recently there have been significant refinements in internationalization and also refinements that enable us to create windows that always layout correctly regardless of DPI/screen/default-fonts.
The attached proxy-setup.bac demonstrates these recent advances. Peter is the guy who has done all of this. I have reported problems and Peter has responded immediately and fixed things.
Note that the attached tarball has a readme that explains a few more things.
My latest BaCon PET:
http://distro.ibiblio.org/quirky/pet_pa ... 110314.pet
Attached is the very latest. It also needs the very latest BaCon. My PET has /usr/lib/hug.so, which makes GUI applications smaller -- 'proxy-setup' has dropped from 115KB to 50KB.
Recently there have been significant refinements in internationalization and also refinements that enable us to create windows that always layout correctly regardless of DPI/screen/default-fonts.
The attached proxy-setup.bac demonstrates these recent advances. Peter is the guy who has done all of this. I have reported problems and Peter has responded immediately and fixed things.
Note that the attached tarball has a readme that explains a few more things.
My latest BaCon PET:
http://distro.ibiblio.org/quirky/pet_pa ... 110314.pet
[url]https://bkhome.org/news/[/url]
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
I have written a HOWTO that explains how to get good layout always in a window written with HUG:
http://bkhome.org/bacon/hug/layout.htm
It needs the latest BaCon, 1.0.22pre. I posted a PET here:
http://bkhome.org/blog/?viewDetailed=02182
If anyone has any thoughts how the layout HOWTO can be improved/extended, please let me know.
http://bkhome.org/bacon/hug/layout.htm
It needs the latest BaCon, 1.0.22pre. I posted a PET here:
http://bkhome.org/blog/?viewDetailed=02182
If anyone has any thoughts how the layout HOWTO can be improved/extended, please let me know.
[url]https://bkhome.org/news/[/url]
This may come in handy for a quick font size check
or a quick message or to test different fonts
it can be run in the terminal " as is"
many possibilities with markup
Joe
or a quick message or to test different fonts
it can be run in the terminal " as is"
many possibilities with markup
Joe
Code: Select all
pango-view \
--font="DejaVu Sans 12" \
--markup \
--text 'This is a DejaVu Sans 12
output on a X screen'
pango-view \
--font="DejaVu Sans 24" \
--markup \
--text 'DejaVu Sans 24
output on a X screen'
pango-view \
--font="DejaVu Sans 44" \
--markup \
--text 'This is a
DejaVu Sans 44
output
on a X screen'
- L18L
- Posts: 3479
- Joined: Sat 19 Jun 2010, 18:56
- Location: www.eussenheim.de/
BaCon proxy-setup
Edited
no idea why this was double posted.
sorry.
Edited again Tue 29 Mar 2011, 10:25
I have seen it on page 19, too.
Now it is not on page 19.
Confused,
but anyhow there have been 4 downloads until now.
Changes are commented in source and readme file.
no idea why this was double posted.
sorry.
Edited again Tue 29 Mar 2011, 10:25
I have seen it on page 19, too.
Now it is not on page 19.
Confused,
but anyhow there have been 4 downloads until now.
Changes are commented in source and readme file.
bsplash = bacon-based splash program
Dear Puppians,
Having seen the nice job that 01micko did with gtkdialog-splash, I decided to create a little splash program in bacon that can display animated gifs, jpgs and pngs, with a message in you choice of font and with window decorations or not. It also has a duration parameter, and the splash can be killed by clicking on the image. I have included a binary, test images, source, the latest HUG and a bash example program. Just unpack and click on the "bsp" script. It should work. For maximum compatibility, I compiled in Puppy 3.01. If you run bsplash without parameters in a terminal, you will get a help screen that explains all the flags and arguments. Also look at the bash script. If you look at the bacon source, you will see that I call two gdk functions to get the size of jpgs and pngs, but use the unix utility "file" for gifs. This is because the gdk routines do not deliver the right dimensions for a multi-image (i.e. animated) gif but "file" does.
With kind regards,
vovchik
UPDATE1: I updated the attachment and added the capability to display the following file types: bmp, jpg, jpeg, jpe, ico, png, icns, wmf, xpm, xbm, tiff, tif, ppm, pbm, pgm, pnm and pcx.
UPDATE2: I updated the attachment and added a placement parameter for the main window (i.e. -p "80,80"), so that the window will display at those x,y coordinates. I also hide the program from the taskbar when in non-decorated mode.
Having seen the nice job that 01micko did with gtkdialog-splash, I decided to create a little splash program in bacon that can display animated gifs, jpgs and pngs, with a message in you choice of font and with window decorations or not. It also has a duration parameter, and the splash can be killed by clicking on the image. I have included a binary, test images, source, the latest HUG and a bash example program. Just unpack and click on the "bsp" script. It should work. For maximum compatibility, I compiled in Puppy 3.01. If you run bsplash without parameters in a terminal, you will get a help screen that explains all the flags and arguments. Also look at the bash script. If you look at the bacon source, you will see that I call two gdk functions to get the size of jpgs and pngs, but use the unix utility "file" for gifs. This is because the gdk routines do not deliver the right dimensions for a multi-image (i.e. animated) gif but "file" does.
With kind regards,
vovchik
UPDATE1: I updated the attachment and added the capability to display the following file types: bmp, jpg, jpeg, jpe, ico, png, icns, wmf, xpm, xbm, tiff, tif, ppm, pbm, pgm, pnm and pcx.
UPDATE2: I updated the attachment and added a placement parameter for the main window (i.e. -p "80,80"), so that the window will display at those x,y coordinates. I also hide the program from the taskbar when in non-decorated mode.
bsplash = bacon-based splash program
vovchik ,
You've done again. This time making a big splash with animations and image variations.
Very nicely done.
Now for the following little item--
The pacing cat keeps nicely in it's window but the text does not -see below.
Everything else seems to purr along
Regards,
s
(This is at 1024x768 96dpi pup431)
You've done again. This time making a big splash with animations and image variations.
Very nicely done.
Now for the following little item--
The pacing cat keeps nicely in it's window but the text does not -see below.
Everything else seems to purr along
Regards,
s
(This is at 1024x768 96dpi pup431)
- Attachments
-
- bsplash.png
- (5.15 KiB) Downloaded 1714 times
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
bsplash
What about keyboard control?
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/
bsplash
Dear seaside and abushcrafter,
Thanks. Seaside, just edit the bit in bsp and add a font and size. It defaults to DejaVu Sans Bold 14, and I am sitting at a big monitor now. But just change the bash stuff in the invocation!
Abushcrafter: Yeah, I will have to put in some keyboard controls. Give me a few suggestions....
With kind regards,
vovchik
Thanks. Seaside, just edit the bit in bsp and add a font and size. It defaults to DejaVu Sans Bold 14, and I am sitting at a big monitor now. But just change the bash stuff in the invocation!
Abushcrafter: Yeah, I will have to put in some keyboard controls. Give me a few suggestions....
With kind regards,
vovchik
Last edited by vovchik on Tue 05 Apr 2011, 21:54, edited 1 time in total.