def __print_pattern_help(self): # FIXME: Force some order print(console.formatText("ID3 Tags:", b=True)) self.__print_complex_pattern_help(TagPattern) print(os.linesep) print(console.formatText("Functions:", b=True)) self.__print_complex_pattern_help(FunctionPattern) print(os.linesep) print(console.formatText("Special characters:", b=True)) print(console.formatText("\tescape seq. character")) for i in range(len(TextPattern.SPECIAL_CHARACTERS)): print(("\t\\%s" + (" " * 12) + "%s") % (TextPattern.SPECIAL_CHARACTERS[i], TextPattern.SPECIAL_CHARACTERS_DESCRIPTIONS[i]))
def _get_output_for(self, audio_file): text = self._parameter_value("text", audio_file) bold = self._parameter_bool("bold", audio_file) color_name = self._parameter_value("color", audio_file) return console.formatText(text, b=bold, c=self.__color(color_name))