Hi Hazen,

Hazen Babcock wrote:
> Hello,
>
> I've just added a new X Windows driver that uses Cairo for rendering  
> and Pango for text. It still has some rough edges, but it should work  
> for most of the examples. I promise to clean it up over the next few  
> weeks.
>   
nice!
> Does anyone know how to put the character ">" or "<" into the content  
> (as opposed to the tags) of a Pango markup string?
>   
I found this

"If you create pango markup on the fly you have to be careful to replace 
the characters that are special to the markup language: "<", ">", "&". 
The Python library function cgi.escape() can do these basic conversions."

here:

http://www.pygtk.org/pygtk2tutorial/sec-CellRenderers.html

It doesn't say how to escape, but here:

http://scentric.net/tutorial/sec-treeview-col-utf8-pango.html

it says "&" should be escaped with &amp; so I would guess:

replace "&" with "&amp;"
repace "<" with "&lt;"
replace ">" with "&gt;"

(according to 
http://www.webreference.com/html/reference/character/isolat1.html#HEAD-1)

Regards,
Werner

> best,
> -Hazen
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Plplot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to