TextInterface — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# TextInterface

class `abjad.text.interface.` `TextInterface`(client)

  Bases: `abjad.core.interface._Interface`, `abjad.core.grobhandler._GrobHandler`, `abjad.spanner.receptor._SpannerReceptor`

  Handle LilyPond TextScript grob. Receive Abjad Text spanner.

  The Abjad `TextInterface` handles the LilyPond TextScript grob.

      abjad> t = Staff(construct.scale(4))
      abjad> t[0].markup.up.append(r'\italic { Lento }')
      abjad> t.text.staff_padding = 6
      \new Staff \with {
         \override TextScript #'staff-padding = #6
      } {
         c'8 ^ \markup { \italic { Lento } }
         d'8
         e'8
         f'8
      }

  `chain`
    Return tuple of all leaves in spanner, if spanned; otherwise return 1-tuple of client.
  `count`
    Return number of spanners attaching to client.
  `first`
    True when client is first in spanner, otherwise False.
  `last`
    True when client is last in spanner, otherwise False.
  `only`
    True when client is only leaf in spanner, otherwise False.
  `parented`
    True when spanner attached to any component in parentage of client, including client, otherwise False.
  `position`
    Return zero-indexed position of client in spanner.
  `spanned`
    True when client is spanned.
  `spanner`
    Return first spanner attaching to client.
  `spanner_in_parentage`
    Return first spanner attaching to parentage of client.
  `spanners`
    Return all spanners attaching to client.
  `unspan`()
    Remove all spanners attaching to client.

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »