Thread: [Bashburn-info] Values misaligned in config menus
Brought to you by:
bashburn
From: Anders L. <and...@gm...> - 2008-10-08 22:52:02
|
I've noticed that when I use the Swedish translation, the current settings in the config and advanced menu are not aligned evenly. In English and German it all looks right but not in Swedish. Anyone have a clue on why this is? -- Anders Lindén http://bashburn.dose.se |
From: Steven W. O. <st...@sy...> - 2008-10-09 01:24:38
|
On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: =>I've noticed that when I use the Swedish translation, the current settings =>in the config and advanced menu are not aligned evenly. In English and =>German it all looks right but not in Swedish. Anyone have a clue on why =>this is? I'm not sure why, but I see it too. I only see that the last four menu items are messaed up. The rest is ok. If I try this: #! /bin/bash bb_conf_menu_default=$'\205terstll' printf "%s\n" "$bb_conf_menu_default" It prints out something on two lines. So for starters, we should not be coding the line up with embedded control characters. We should be using the notation I describe above. As for why it displays this way... I suspect it has something to do wit hwhether the terminal emulator program we're using (each one of different) knows how to handle the characters we try to display. IOW, is the character that we want to see part of the character set that the program knows how to display? This is just a stab because the likelyhood is that Anders is correctly capable of displaying whatver that $'\205' really is. -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net |
From: Nick W. <ni...@uk...> - 2008-10-09 06:05:16
|
On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) "Steven W. Orr" <st...@sy...> wrote: > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > =>I've noticed that when I use the Swedish translation, the current > settings =>in the config and advanced menu are not aligned evenly. In > English and =>German it all looks right but not in Swedish. Anyone > have a clue on why =>this is? > > I'm not sure why, but I see it too. I only see that the last four > menu items are messaed up. The rest is ok. > > If I try this: > > #! /bin/bash > bb_conf_menu_default=$'\205terstll' > printf "%s\n" "$bb_conf_menu_default" > > It prints out something on two lines. > > So for starters, we should not be coding the line up with embedded > control characters. We should be using the notation I describe above. > > As for why it displays this way... I suspect it has something to do > wit hwhether the terminal emulator program we're using (each one of > different) knows how to handle the characters we try to display. IOW, > is the character that we want to see part of the character set that > the program knows how to display? This is just a stab because the > likelyhood is that Anders is correctly capable of displaying whatver > that $'\205' really is. Now, I don't see this at all in X using mrxvt terminal. All are lined up perfect. But if I go to virtual terminal Ctrl+Alt+F2 and try it, they are mis-aligned by a space. Nick -- Free Software Foundation Associate Member 5508 |
From: Nick W. <ni...@uk...> - 2008-10-09 06:33:26
|
On Thu, 9 Oct 2008 07:05:09 +0100 Nick Warne <ni...@uk...> wrote: > On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) > "Steven W. Orr" <st...@sy...> wrote: > > > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > > > =>I've noticed that when I use the Swedish translation, the current > > settings =>in the config and advanced menu are not aligned evenly. > > In English and =>German it all looks right but not in Swedish. > > Anyone have a clue on why =>this is? > > > > I'm not sure why, but I see it too. I only see that the last four > > menu items are messaed up. The rest is ok. > > > > If I try this: > > > > #! /bin/bash > > bb_conf_menu_default=$'\205terstll' > > printf "%s\n" "$bb_conf_menu_default" > > > > It prints out something on two lines. > > > > So for starters, we should not be coding the line up with embedded > > control characters. We should be using the notation I describe > > above. > > > > As for why it displays this way... I suspect it has something to do > > wit hwhether the terminal emulator program we're using (each one of > > different) knows how to handle the characters we try to display. > > IOW, is the character that we want to see part of the character set > > that the program knows how to display? This is just a stab because > > the likelyhood is that Anders is correctly capable of displaying > > whatver that $'\205' really is. > > Now, I don't see this at all in X using mrxvt terminal. All are lined > up perfect. But if I go to virtual terminal Ctrl+Alt+F2 and try it, > they are mis-aligned by a space. OK, in xterm I see what you mean. In the Swedish lang configure.lang: bb_conf_menu_default='_____terst____ll' bb_conf_menu_revert='_____ngra ____ndringar' (if you can't see the above try: http://svn.inf.sgsp.edu.pl/filedetails.php?rep=0&path=/bashburn/trunk/lang/Swedish/configure.lang&rev=0&sc=0 ) appear as: ^[[1;31m|-^[[37;40m 20) __^__terst____ll^[[1;31m ^[[1;31m|-^[[37;40m 21) __^__ngra ____ndringar^[[1;31m i.e. having ctrl ^ chars in there instead of that funny inverse question mark. Nick -- Free Software Foundation Associate Member 5508 |
From: Nick W. <ni...@uk...> - 2008-10-09 06:38:34
|
On Thu, 9 Oct 2008 07:33:15 +0100 Nick Warne <ni...@uk...> wrote: > On Thu, 9 Oct 2008 07:05:09 +0100 > Nick Warne <ni...@uk...> wrote: > > > On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) > > "Steven W. Orr" <st...@sy...> wrote: > > > > > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > > > > > =>I've noticed that when I use the Swedish translation, the > > > current settings =>in the config and advanced menu are not > > > aligned evenly. In English and =>German it all looks right but > > > not in Swedish. Anyone have a clue on why =>this is? > > > > > > I'm not sure why, but I see it too. I only see that the last four > > > menu items are messaed up. The rest is ok. > > > > > > If I try this: > > > > > > #! /bin/bash > > > bb_conf_menu_default=$'\205terstll' > > > printf "%s\n" "$bb_conf_menu_default" > > > > > > It prints out something on two lines. > > > > > > So for starters, we should not be coding the line up with embedded > > > control characters. We should be using the notation I describe > > > above. > > > > > > As for why it displays this way... I suspect it has something to > > > do wit hwhether the terminal emulator program we're using (each > > > one of different) knows how to handle the characters we try to > > > display. IOW, is the character that we want to see part of the > > > character set that the program knows how to display? This is just > > > a stab because the likelyhood is that Anders is correctly capable > > > of displaying whatver that $'\205' really is. > > > > Now, I don't see this at all in X using mrxvt terminal. All are > > lined up perfect. But if I go to virtual terminal Ctrl+Alt+F2 and > > try it, they are mis-aligned by a space. > > OK, in xterm I see what you mean. > > In the Swedish lang configure.lang: > > bb_conf_menu_default='_____terst____ll' > bb_conf_menu_revert='_____ngra ____ndringar' > > (if you can't see the above try: > http://svn.inf.sgsp.edu.pl/filedetails.php?rep=0&path=/bashburn/trunk/lang/Swedish/configure.lang&rev=0&sc=0 > ) > > appear as: > > ^[[1;31m|-^[[37;40m 20) __^__terst____ll^[[1;31m > ^[[1;31m|-^[[37;40m 21) __^__ngra ____ndringar^[[1;31m > > i.e. having ctrl ^ chars in there instead of that funny inverse > question mark. > > Nick Also, if I use 'strings' on configure.lang I see it also: bb_conf_menu_default='à terställ' bb_conf_menu_revert='à ngra ändringar' You get a line break at that funny ^ char. Nick -- Free Software Foundation Associate Member 5508 |
From: Steven W. O. <st...@sy...> - 2008-10-09 13:52:52
|
On Thursday, Oct 9th 2008 at 02:33 -0000, quoth Nick Warne: =>On Thu, 9 Oct 2008 07:05:09 +0100 =>Nick Warne <ni...@uk...> wrote: => =>> On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) =>> "Steven W. Orr" <st...@sy...> wrote: =>> =>> > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: =>> > =>> > =>I've noticed that when I use the Swedish translation, the current =>> > settings =>in the config and advanced menu are not aligned evenly. =>> > In English and =>German it all looks right but not in Swedish. =>> > Anyone have a clue on why =>this is? =>> > =>> > I'm not sure why, but I see it too. I only see that the last four =>> > menu items are messaed up. The rest is ok. =>> > =>> > If I try this: =>> > =>> > #! /bin/bash =>> > bb_conf_menu_default=$'\205terstll' =>> > printf "%s\n" "$bb_conf_menu_default" =>> > =>> > It prints out something on two lines. =>> > =>> > So for starters, we should not be coding the line up with embedded =>> > control characters. We should be using the notation I describe =>> > above. =>> > =>> > As for why it displays this way... I suspect it has something to do =>> > wit hwhether the terminal emulator program we're using (each one of =>> > different) knows how to handle the characters we try to display. =>> > IOW, is the character that we want to see part of the character set =>> > that the program knows how to display? This is just a stab because =>> > the likelyhood is that Anders is correctly capable of displaying =>> > whatver that $'\205' really is. =>> =>> Now, I don't see this at all in X using mrxvt terminal. All are lined =>> up perfect. But if I go to virtual terminal Ctrl+Alt+F2 and try it, =>> they are mis-aligned by a space. => =>OK, in xterm I see what you mean. => =>In the Swedish lang configure.lang: => =>bb_conf_menu_default='_____terst____ll' =>bb_conf_menu_revert='_____ngra ____ndringar' => =>(if you can't see the above try: =>http://svn.inf.sgsp.edu.pl/filedetails.php?rep=0&path=/bashburn/trunk/lang/Swedish/configure.lang&rev=0&sc=0 =>) => =>appear as: => =>^[[1;31m|-^[[37;40m 20) __^__terst____ll^[[1;31m =>^[[1;31m|-^[[37;40m 21) __^__ngra ____ndringar^[[1;31m => =>i.e. having ctrl ^ chars in there instead of that funny inverse question =>mark. => =>Nick I suspect that it's not the xterm or or mrxvt (not familiar with that one). When you start an xterm, you *can* specify the font. e.g., xterm -font -adobe-courier-bold-o-normal--14-100-100-100-m-90-iso8859-15 I'm guessing that the font that your terminal emulator is using doesn't have those characters in the font that it's running which are being mis-displayed. You can get a list of all of the fonts with xlsfonts. We really don't want to be using a proportional font, so one of the fixed fonts is probably more appropriate, e.g., xterm -font -screen-fixed-bold-r-normal--0-0-100-100-c-0-koi8-r -- steveo at syslang dot net TMMP1 http://frambors.syslang.net/ Do you have neighbors who are not frambors? Steven W. Orr |
From: Nick W. <ni...@uk...> - 2008-10-09 21:15:35
|
On Thu, 9 Oct 2008 09:52:38 -0400 (EDT) "Steven W. Orr" <st...@sy...> wrote: > On Thursday, Oct 9th 2008 at 02:33 -0000, quoth Nick Warne: > > =>On Thu, 9 Oct 2008 07:05:09 +0100 > =>Nick Warne <ni...@uk...> wrote: > => > =>> On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) > =>> "Steven W. Orr" <st...@sy...> wrote: > =>> > =>> > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > =>> > > =>> > =>I've noticed that when I use the Swedish translation, the > current =>> > settings =>in the config and advanced menu are not > aligned evenly. =>> > In English and =>German it all looks right but > not in Swedish. =>> > Anyone have a clue on why =>this is? > =>> > > =>> > I'm not sure why, but I see it too. I only see that the last > four =>> > menu items are messaed up. The rest is ok. > =>> > > =>> > If I try this: > =>> > > =>> > #! /bin/bash > =>> > bb_conf_menu_default=$'\205terstll' > =>> > printf "%s\n" "$bb_conf_menu_default" > =>> > > =>> > It prints out something on two lines. > =>> > > =>> > So for starters, we should not be coding the line up with > embedded =>> > control characters. We should be using the notation I > describe =>> > above. > =>> > > =>> > As for why it displays this way... I suspect it has something > to do =>> > wit hwhether the terminal emulator program we're using > (each one of =>> > different) knows how to handle the characters we > try to display. =>> > IOW, is the character that we want to see part > of the character set =>> > that the program knows how to display? > This is just a stab because =>> > the likelyhood is that Anders is > correctly capable of displaying =>> > whatver that $'\205' really is. > =>> > =>> Now, I don't see this at all in X using mrxvt terminal. All are > lined =>> up perfect. But if I go to virtual terminal Ctrl+Alt+F2 > and try it, =>> they are mis-aligned by a space. > => > =>OK, in xterm I see what you mean. > => > =>In the Swedish lang configure.lang: > => > =>bb_conf_menu_default='_____terst____ll' > =>bb_conf_menu_revert='_____ngra ____ndringar' > => > =>(if you can't see the above try: > =>http://svn.inf.sgsp.edu.pl/filedetails.php?rep=0&path=/bashburn/trunk/lang/Swedish/configure.lang&rev=0&sc=0 > =>) > => > =>appear as: > => > =>^[[1;31m|-^[[37;40m 20) __^__terst____ll^[[1;31m > =>^[[1;31m|-^[[37;40m 21) __^__ngra ____ndringar^[[1;31m > => > =>i.e. having ctrl ^ chars in there instead of that funny inverse > question =>mark. > => > =>Nick > > > > I suspect that it's not the xterm or or mrxvt (not familiar with that > one). When you start an xterm, you *can* specify the font. > > e.g., > > xterm -font > -adobe-courier-bold-o-normal--14-100-100-100-m-90-iso8859-15 > > I'm guessing that the font that your terminal emulator is using > doesn't have those characters in the font that it's running which are > being mis-displayed. > > You can get a list of all of the fonts with xlsfonts. We really don't > want to be using a proportional font, so one of the fixed fonts is > probably more appropriate, e.g., > Strange though Anders sees this too, with (I guess) a Swedish locale on the machine. Very strange. Nick -- Free Software Foundation Associate Member 5508 |
From: Steven W. O. <st...@sy...> - 2008-10-10 03:03:02
|
On Thursday, Oct 9th 2008 at 17:15 -0000, quoth Nick Warne: =>On Thu, 9 Oct 2008 09:52:38 -0400 (EDT) =>"Steven W. Orr" <st...@sy...> wrote: => =>> On Thursday, Oct 9th 2008 at 02:33 -0000, quoth Nick Warne: =>> =>> =>On Thu, 9 Oct 2008 07:05:09 +0100 =>> =>Nick Warne <ni...@uk...> wrote: =>> => =>> =>> On Wed, 8 Oct 2008 21:24:29 -0400 (EDT) =>> =>> "Steven W. Orr" <st...@sy...> wrote: =>> =>> =>> =>> > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: =>> =>> > =>> =>> > =>I've noticed that when I use the Swedish translation, the =>> current =>> > settings =>in the config and advanced menu are not =>> aligned evenly. =>> > In English and =>German it all looks right but =>> not in Swedish. =>> > Anyone have a clue on why =>this is? =>> =>> > =>> =>> > I'm not sure why, but I see it too. I only see that the last =>> four =>> > menu items are messaed up. The rest is ok. =>> =>> > =>> =>> > If I try this: =>> =>> > =>> =>> > #! /bin/bash =>> =>> > bb_conf_menu_default=$'\205terstll' =>> =>> > printf "%s\n" "$bb_conf_menu_default" =>> =>> > =>> =>> > It prints out something on two lines. =>> =>> > =>> =>> > So for starters, we should not be coding the line up with =>> embedded =>> > control characters. We should be using the notation I =>> describe =>> > above. =>> =>> > =>> =>> > As for why it displays this way... I suspect it has something =>> to do =>> > wit hwhether the terminal emulator program we're using =>> (each one of =>> > different) knows how to handle the characters we =>> try to display. =>> > IOW, is the character that we want to see part =>> of the character set =>> > that the program knows how to display? =>> This is just a stab because =>> > the likelyhood is that Anders is =>> correctly capable of displaying =>> > whatver that $'\205' really is. =>> =>> =>> =>> Now, I don't see this at all in X using mrxvt terminal. All are =>> lined =>> up perfect. But if I go to virtual terminal Ctrl+Alt+F2 =>> and try it, =>> they are mis-aligned by a space. =>> => =>> =>OK, in xterm I see what you mean. =>> => =>> =>In the Swedish lang configure.lang: =>> => =>> =>bb_conf_menu_default='_____terst____ll' =>> =>bb_conf_menu_revert='_____ngra ____ndringar' =>> => =>> =>(if you can't see the above try: =>> =>http://svn.inf.sgsp.edu.pl/filedetails.php?rep=0&path=/bashburn/trunk/lang/Swedish/configure.lang&rev=0&sc=0 =>> =>) =>> => =>> =>appear as: =>> => =>> =>^[[1;31m|-^[[37;40m 20) __^__terst____ll^[[1;31m =>> =>^[[1;31m|-^[[37;40m 21) __^__ngra ____ndringar^[[1;31m =>> => =>> =>i.e. having ctrl ^ chars in there instead of that funny inverse =>> question =>mark. =>> => =>> =>Nick =>> =>> =>> =>> I suspect that it's not the xterm or or mrxvt (not familiar with that =>> one). When you start an xterm, you *can* specify the font. =>> =>> e.g., =>> =>> xterm -font =>> -adobe-courier-bold-o-normal--14-100-100-100-m-90-iso8859-15 =>> =>> I'm guessing that the font that your terminal emulator is using =>> doesn't have those characters in the font that it's running which are =>> being mis-displayed. =>> =>> You can get a list of all of the fonts with xlsfonts. We really don't =>> want to be using a proportional font, so one of the fixed fonts is =>> probably more appropriate, e.g., =>> => =>Strange though Anders sees this too, with (I guess) a Swedish locale =>on the machine. => =>Very strange. Right. But what I'm saying is that it's not a locale problem. It's a font problem. Every character that gets displayed is called a glyph. A set of glyphs is a font. Not every glyph is represented inside any particular font. So, the question for AndErs is: Is the missing character being displayed on your terminal emulator correctly by something that is not bb? Can you get it to display by using either a shell echo or a printf? Can you get it to happen in a C program? -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net |
From: Anders L. <and...@gm...> - 2008-10-10 04:51:59
|
On Thursday 09 October 2008 03:24:29 Steven W. Orr wrote: > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > =>I've noticed that when I use the Swedish translation, the current > settings =>in the config and advanced menu are not aligned evenly. In > English and =>German it all looks right but not in Swedish. Anyone have a > clue on why =>this is? > > I'm not sure why, but I see it too. I only see that the last four menu > items are messaed up. The rest is ok. > > If I try this: > > #! /bin/bash > bb_conf_menu_default=$'\205terstll' > printf "%s\n" "$bb_conf_menu_default" > > It prints out something on two lines. > > So for starters, we should not be coding the line up with embedded control > characters. We should be using the notation I describe above. > > As for why it displays this way... I suspect it has something to do wit > hwhether the terminal emulator program we're using (each one of different) > knows how to handle the characters we try to display. IOW, is the > character that we want to see part of the character set that the program > knows how to display? This is just a stab because the likelyhood is that > Anders is correctly capable of displaying whatver that $'\205' really is. I ran that little test script and the output I get is different. In konsole i get "�terstll" on one line. That is, the "angstrom sign" is replaced with junk. In xterm I get two lines. The first being blank and the second saying "terstll" -- Anders Lindén http://bashburn.dose.se |
From: Nick W. <ni...@uk...> - 2008-10-10 10:31:02
|
On Fri, 10 Oct 2008 06:51:43 +0200 Anders Lindén <and...@gm...> wrote: > On Thursday 09 October 2008 03:24:29 Steven W. Orr wrote: > > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > > > =>I've noticed that when I use the Swedish translation, the current > > settings =>in the config and advanced menu are not aligned > evenly. In > > English and =>German it all looks right but not in Swedish. Anyone > have a > > clue on why =>this is? > > > > I'm not sure why, but I see it too. I only see that the last four > > menu items are messaed up. The rest is ok. > > > > If I try this: > > > > #! /bin/bash > > bb_conf_menu_default=$'\205terstll' > > printf "%s\n" "$bb_conf_menu_default" > > > > It prints out something on two lines. > > > > So for starters, we should not be coding the line up with embedded > control > > characters. We should be using the notation I describe above. > > > > As for why it displays this way... I suspect it has something to do > > wit hwhether the terminal emulator program we're using (each one of > different) > > knows how to handle the characters we try to display. IOW, is the > > character that we want to see part of the character set that the > program > > knows how to display? This is just a stab because the likelyhood is > that > > Anders is correctly capable of displaying whatver that $'\205' > > really > is. > > I ran that little test script and the output I get is different. In > konsole i get "�terstll" on one line. That is, the "angstrom sign" is > replaced with junk. > In xterm I get two lines. The first being blank and the second saying > "terstll" > This is strange. In lang/Swedish/configure.lang I see: bb_conf_menu_revert='Ã^Ångra ändringar' but if I remove the funny chars to: Ångra Ãndringar which, according to online tramslator means to 'undo changes', then the menu works OK. BTW, to change the line I have to cut 'n' paste the 'Å' otherwise the shell put the funny chars back. Also I see the funny '¤' always after the 'Ã', which is wrong, I guess. Nick -- Free Software Foundation Associate Member 5508 |
From: Nick W. <ni...@uk...> - 2008-10-10 10:43:15
|
On Fri, 10 Oct 2008 11:24:58 +0100 Nick Warne <ni...@uk...> wrote: > On Fri, 10 Oct 2008 06:51:43 +0200 > Anders Lindén <and...@gm...> wrote: > > > On Thursday 09 October 2008 03:24:29 Steven W. Orr wrote: > > > On Wednesday, Oct 8th 2008 at 18:51 -0000, quoth Anders Lind?n: > > > > > > =>I've noticed that when I use the Swedish translation, the > > > current settings =>in the config and advanced menu are not > > > aligned > > evenly. In > > > English and =>German it all looks right but not in Swedish. > > > Anyone > > have a > > > clue on why =>this is? > > > > > > I'm not sure why, but I see it too. I only see that the last four > > > menu items are messaed up. The rest is ok. > > > > > > If I try this: > > > > > > #! /bin/bash > > > bb_conf_menu_default=$'\205terstll' > > > printf "%s\n" "$bb_conf_menu_default" > > > > > > It prints out something on two lines. > > > > > > So for starters, we should not be coding the line up with > > > embedded > > control > > > characters. We should be using the notation I describe above. > > > > > > As for why it displays this way... I suspect it has something to > > > do wit hwhether the terminal emulator program we're using (each > > > one of > > different) > > > knows how to handle the characters we try to display. IOW, is the > > > character that we want to see part of the character set that the > > program > > > knows how to display? This is just a stab because the likelyhood > > > is > > that > > > Anders is correctly capable of displaying whatver that $'\205' > > > really > > is. > > > > I ran that little test script and the output I get is different. In > > konsole i get "�terstll" on one line. That is, the "angstrom sign" > > is replaced with junk. > > In xterm I get two lines. The first being blank and the second > > saying "terstll" > > > > This is strange. In lang/Swedish/configure.lang I see: > > bb_conf_menu_revert='Ã^Ångra ändringar' > > but if I remove the funny chars to: > > Ångra Ãndringar > > which, according to online tramslator means to 'undo changes', then > the menu works OK. > > BTW, to change the line I have to cut 'n' paste the 'Å' otherwise the > shell put the funny chars back. > > Also I see the funny '¤' always after the 'Ã', which is wrong, I > guess. OK, I uploaded the changes - I wonder if it it svn that mangles the stuff? Nick -- Free Software Foundation Associate Member 5508 |