File: text.rst

package info (click to toggle)
svgpp 1.3.0%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,548 kB
  • sloc: cpp: 30,523; makefile: 165; python: 73; xml: 48; sh: 36
file content (19 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.. _text_section:

Character Data
====================

Character data content of elements, that supports it according to SVG Specification 
(**text**, **desc**, **title**, **style** etc), is passed to the user code by the
*Text Events Policy*.

::

  struct text_events_policy_concept
  {
    template<class Range>
    static void set_text(Context & context, Range const & text);
  };

It is not guaranteed that sequential blocks of text will be joined together. 
``set_text`` is called for each TEXT or CDATA node returned by XML parser.