[Bug 15449] HTML: finish formatted text support
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Oct 26 19:35:04 CEST 2011
https://bugs.freedesktop.org/show_bug.cgi?id=15449
--- Comment #3 from Nicole Borrelli <niya at isisview.org> 2011-10-26 17:35:04 UTC ---
<i>This isn't currently being worked on, but would be great to have; if anyone
reading this bug wants it to happen sooner, doing the research would be a great
help.</i>
I dove into libpurple a little and I've discovered the following tags are
supported:
a -- only "href" attribute
b -- converted to span style="font-weight: bold"
blockquote
body -- with "bgcolor=$BC" rewritten as [body][span style="background:$BC"]
bold -- converted to span style="font-weight: bold"
br
cite
div
em
font -- with "back=$BC", "color=$C", "face=$F", "size=$S" -- Only supports
{xx-small, small, medium, large, x-large, xx-large} with values 1, 2, 3, 4, 5,
6&7 mapped respectively to those, as span style="background:$BC; color:$C
font-family:$F; font-size:$S"
h1 through h6
hr -- Mapped automatically to "br"
html
i -- mapped to "em"
img -- with "src", "alt"
italic -- mapped to "em"
li
ol
p
pre
q
s -- converted to span style='text-decoration: line-through;'
script -- completely removed
span
strike -- converted to span style='text-decoration: line-through;'
strong -- converted to span style="font-weight: bold"
style -- completely removed
sub -- as span style='vertical-align:sub;'
sup -- as span style='vertical-align:super;'
td -- converted to a single tab
tr -- converted to '\n'
u -- converted to span style='text-decoration: underline;'
ul
underline -- converted to span style='text-decoration: underline;'
HTML comment is also supported.
Let me know if I can clarify anything here, or if I misunderstood what is
needed. The supported tags are most easily identified in the function
libpurple/util.c:purple_markup_html_to_xhtml
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list