! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-notifyd: Fully support Pango text attribute markup
Status:
RESOLVED: WONTFIX
Severity:
enhancement
Product:
Xfce4-notifyd
Component:
general

Comments

Description Mathias Brodala 2009-04-17 13:09:18 CEST
After upgrading to Xfce 4.6 I was kind of required to switch from notification-daemon-xfce to xfce4-notifyd. The latter, however, does not seem to fully support the Pango text attribute markup.

In fact, only <i> and <u> seem to be supported which restricts formatting of notifications to a bare minimum.

Please consider to fully support Pango text attribute markup.
Comment 1 Mike Massonnet editbugs 2009-04-17 13:16:33 CEST
You builded with libsexy support?
Comment 2 Mathias Brodala 2009-04-17 13:21:45 CEST
(In reply to comment #1)
> You builded with libsexy support?

Yes, the package on Debian depends on libsexy and ldd confirms.
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-04-17 20:09:45 CEST
No, the spec does not specify anything beyond what's implemented (plus <img>, which I'm not sure I want to support).  See http://galago-project.org/specs/notification/0.9/x161.html
Comment 4 Mathias Brodala 2009-04-17 20:25:38 CEST
(In reply to comment #3)
> No, the spec does not specify anything beyond what's implemented (plus <img>,
> which I'm not sure I want to support).  See
> http://galago-project.org/specs/notification/0.9/x161.html

I see what you mean. I was talking about this spec:
http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html

Being able to manipulate fonts is quite useful and should be one goal to be supported IMHO. The dependency on Pango could be made optional just as libsexy is right now.
Comment 5 Brian J. Tarricone (not reading bugmail) 2009-04-17 20:38:38 CEST
I know what you were talking about.  But the notifications spec only specifies a few types of markup.  Applications shouldn't use anything but that, since they can't assume any conforming implementation will support it.  If you want more markup available, get it into the spec.
Comment 6 Mathias Brodala 2009-04-17 23:04:45 CEST
(In reply to comment #5)
> I know what you were talking about.  But the notifications spec only specifies
> a few types of markup.  Applications shouldn't use anything but that, since
> they can't assume any conforming implementation will support it.  If you want
> more markup available, get it into the spec.

There’s not much I can say to prove my POV except "I’d like to have it".

Could xfce4-notifyd at least support the markup for the summary too? ATM only the body supports markup, the summary just displays the tags as they were sent.
Comment 7 Brian J. Tarricone (not reading bugmail) 2009-04-18 00:12:56 CEST
No, the spec only says body text may contain markup.
Comment 8 Mike Massonnet editbugs 2009-04-18 07:29:56 CEST
It's better to be restrictive and be strict with the spec, otherwise you could one day switch to another notification daemon and be annoyed that your scripts using notification display ugly text.
Comment 9 Mathias Brodala 2009-04-18 18:30:41 CEST
(In reply to comment #7)
> No, the spec only says body text may contain markup.

I changed the code for me anyways.

(In reply to comment #8)
> It's better to be restrictive and be strict with the spec, otherwise you could
> one day switch to another notification daemon and be annoyed that your scripts
> using notification display ugly text.

I see where you’re going. I don’t actually need Pango markup that much but emphasizing the headline of notifications is a nice thing to have. Thus my modified request for having the summary also interpret markup.

Bug #5240

Reported by:
Mathias Brodala
Reported on: 2009-04-17
Last modified on: 2009-04-19

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Attachments

Additional information