ezkur / yad

Automatically exported from code.google.com/p/yad
GNU General Public License v3.0
0 stars 0 forks source link

Pango markup language does not work in text inside list #169

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1)What steps will reproduce the problem?

Run this script

text="<span font_weight='bold' foreground='red'>Lorem ipsum</span>And enjoy 
yad!"
yad --list --column "":TEXT "$text"

2)What is the expected output? What do you see instead?
Lorem ipsum in red bold in the same way of all text handled with yad.

See for example:

yad --text "$text"

Instead of it I see the markup language unchanged in the window.

3)What version of the product are you using? On what operating system?

The last yad from ppa and I have seen that the problem persist building the 
code fro subversion repository

Original issue reported on code.google.com by pilolli....@gmail.com on 9 May 2013 at 5:31

GoogleCodeExporter commented 8 years ago
markup doesn't work for lists or text entries. instead, for list you may use 
special types of columns, named @fore@, @back@ and @font@

for example

yad --list --column="text" --column="@fore@" "red text" "#ff0000" "black text" 
"#000000"

shows an list dialog with two rows of text in different colors

for text-info there is no way now to tag a part of text. i'm working on markup 
parser for this dialog, but this job still is on very early stage

Original comment by ananasik on 10 May 2013 at 5:07

GoogleCodeExporter commented 8 years ago
Thanks for the reply. I am trying now to use the suggested method to make a red 
column
but I am not able to do it:

yad --list --column="text" --column="@fore@" "red text" "#ff0000" 
--column="text2" "text2"

With this I expect that text2 is black and then all is red.

yad --list --column="text" --column="@fore@" "red text" "#ff0000" 
--column="text2" --column="@fore@" "text2" "#0000ff"

With this I expect the first column red and the second blue but it apperas all 
blue.

Seems that the foreground option change all the line. Is it a bug or the right 
behaviour.

Are there some way to have different columns with different fonts and colurs?

Original comment by pilolli....@gmail.com on 10 May 2013 at 12:17