Пример #1
0
 def _get_format_specification(self):
     from abjad import system
     return system.FormatSpecification(
         client=self,
         repr_text=type(self).__name__,
         storage_format_text=type(self).__name__,
     )
Пример #2
0
 def _get_format_specification(self):
     return system.FormatSpecification(
         client=self,
         storage_format_args_values=[self.template],
         storage_format_is_indented=False,
         storage_format_kwargs_names=[],
     )
 def _get_format_specification(self):
     agent = system.StorageFormatManager(self)
     names = agent.signature_keyword_names
     if self.original_start_offset == self.start_offset:
         names.remove('original_start_offset')
     if self.original_stop_offset == self.stop_offset:
         names.remove('original_stop_offset')
     return system.FormatSpecification(
         storage_format_kwargs_names=names,
         )
Пример #4
0
 def _get_format_specification(self):
     from abjad import system
     return system.FormatSpecification(
         self,
         repr_is_bracketed=True,
         repr_is_indented=False,
         storage_format_is_bracketed=True,
         storage_format_is_indented=False,
         storage_format_args_values=[],
         storage_format_kwargs_names=[],
         )
Пример #5
0
 def _get_format_specification(self):
     return system.FormatSpecification(
         client=self,
         repr_is_indented=False,
         storage_format_args_values=[
             self.numerator,
             self.denominator,
             ],
         storage_format_is_indented=False,
         storage_format_kwargs_names=[],
         )
Пример #6
0
 def format_specification(self):
     from abjad import system
     if self._format_specification is None:
         if (
             not isinstance(self._client, type) and
             hasattr(self._client, '_get_format_specification')
             ):
             self._format_specification = \
                 self._client._get_format_specification()
         else:
             self._format_specification = system.FormatSpecification(
                 self._client)
     return self._format_specification