From a1f4357d98d072761fe085197de53e01da46f2fc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 5 Sep 2011 10:11:28 -0400 Subject: Mention GMarkup and character entities As requested in bug 403499. --- docs/pango_markup.sgml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/pango_markup.sgml b/docs/pango_markup.sgml index 0460ccbe..68d2901b 100644 --- a/docs/pango_markup.sgml +++ b/docs/pango_markup.sgml @@ -29,7 +29,7 @@ position. The solution is to include the text attributes in the string to be translated. Pango provides this feature with a small markup language. You can parse a marked-up string into the string text plus a -PangoAttrList using the function +PangoAttrList using the function pango_parse_markup(). @@ -38,6 +38,12 @@ A simple example of a marked-up string might be: "<span foreground="blue" size="x-large">Blue text</span> is <i>cool</i>!" + +Pango uses #GMarkup to parse this language, which means that XML features +such as numeric character entities such as &#169; for © can +be used too. + + The root tag of a marked-up document is <markup>, but pango_parse_markup() allows you to @@ -50,8 +56,8 @@ tags. <span> has the following attributes: fontSince 1.21 font_desc -A font description string, such as "Sans Italic 12". See -pango_font_description_from_string() +A font description string, such as "Sans Italic 12". See +pango_font_description_from_string() for a description of the format of the string representation . Note that any other span attributes will override this description. So if you have "Sans Italic" and also a style="normal" attribute, you will get Sans normal, -- cgit v1.2.1