Re: [pygtk] Greek letter delta using Pango markup?

2006-08-27 Thread Preben Randhol
On Thu, 24 Aug 2006 21:37:34 +0200
Preben Randhol <[EMAIL PROTECTED]> wrote:

> On Tue, 15 Aug 2006 13:22:46 -0500
> [EMAIL PROTECTED] wrote:
 
> > I chose "Arial" because that's what displayed in Character Map when
> > I right-moused over the character of interest.
> 
> Do that. Use UTF-8.

Opps I meant:

Don't do that. Don't force the font to be Arial only.
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-24 Thread Preben Randhol
On Tue, 15 Aug 2006 13:22:46 -0500
[EMAIL PROTECTED] wrote:


> End of Session ?t
> End of Session ?t
> End of Session ?t
> End of Session ?t
> 
> I chose "Arial" because that's what displayed in Character Map when I
> right-moused over the character of interest.

Do that. Use UTF-8.

Preben
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-24 Thread Preben Randhol
On Tue, 15 Aug 2006 08:46:39 -0500
[EMAIL PROTECTED] wrote:

> How (if at all) do I display a Greek capital letter delta in a label
> using Pango markup (or any other means)?  This is via Glade v.2.  I'm
> using a US keyboard.  I'm pretty sure I can figure out how to do it
> from Python code, but since it's a static label I see no reason to
> pollute my application with such stuff.

Run in a terminal:

setxkbmap -option grp:rwin_switch,grp:alt_shift_toggle,grp_led:scroll\
 us,el

Press Alt+shift to switch to Greek keyboard and the clikc Alt+shift to
go back to us.

Preben
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-15 Thread skip

>> That worked, sort of.  I can drag and drop the character into the
>> label, however all it displays (in both Glade and the application) is
>> a box with the Unicode code point for the character:
>> 
>> 0 3
>> 9 4

Tony> That means the character is not present in the font being used.
Tony> Try a different font.  Try the font you want in the Character Map.

I'm sorry to be so dense, but nothing I've tried so far seems to work.  I
set "Use Markup" to "Yes" and tried a number of different Pango markup
incantations:

End of Session ?t
End of Session ?t
End of Session ?t
End of Session ?t

I chose "Arial" because that's what displayed in Character Map when I
right-moused over the character of interest.  None of the variants I tried
resulted in a Greek Capital Letter Delta.  I tried "sans" when none of the
"Arial" attempts worked.  The markup seems to be working.  I don't see any
s in the live display.  It's just not setting the font.  If I give an
invalid attribute name (e.g. ...) the invalid Pango markup
is displayed.

I saw no other way to describe font information to Glade.  I was working
from this documentation of the Pango Markup Language:


http://www.moeraki.com/pygtkreference/pygtk2reference/pango-markup-language.html

though the reference page at

http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html

seems to document the same attributes.

Skip
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-15 Thread Tony Nelson
At 10:54 AM -0500 8/15/06, [EMAIL PROTECTED] wrote:
>Brian> From a gnome desktop, Acessories=>Charachter Map, select greek,
>Brian> then drag and drop the character into the label field of the
>Brian> widget propeties dialog.
>
>That worked, sort of.  I can drag and drop the character into the label,
>however all it displays (in both Glade and the application) is a box with
>the Unicode code point for the character:
>
>0 3
>9 4
>
>arranged as shown.  This is true even if I run Glade with LC_CTYPE set to
>utf8.  I also tried entering the decimal entity reference "Δ".  It
>still displayed the boxed Unicode value.

That means the character is not present in the font being used.  Try a
different font.  Try the font you want in the Character Map.

TonyN.:'   
  '  
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-15 Thread skip

Brian> From a gnome desktop, Acessories=>Charachter Map, select greek,
Brian> then drag and drop the character into the label field of the
Brian> widget propeties dialog.

That worked, sort of.  I can drag and drop the character into the label,
however all it displays (in both Glade and the application) is a box with
the Unicode code point for the character:

0 3
9 4

arranged as shown.  This is true even if I run Glade with LC_CTYPE set to
utf8.  I also tried entering the decimal entity reference "Δ".  It
still displayed the boxed Unicode value.

Thx,

Skip

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Greek letter delta using Pango markup?

2006-08-15 Thread Brian
On Tue, 2006-15-08 at 08:46 -0500, [EMAIL PROTECTED] wrote:
> How (if at all) do I display a Greek capital letter delta in a label using
> Pango markup (or any other means)?  This is via Glade v.2.  I'm using a US
> keyboard.  I'm pretty sure I can figure out how to do it from Python code,
> but since it's a static label I see no reason to pollute my application with
> such stuff.
> 
> Thanks,
> 

>From a gnome desktop, Acessories=>Charachter Map, select greek, then
drag and drop the character into the label field of the widget propeties
dialog.
-- 
Brian <[EMAIL PROTECTED]>

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/