# Path: PyDvi/Tools/Logging.py
# def print_card(text, **kwargs):
# 
#     """ Print the string *text* formated by :meth:`format_card`.  The remaining keyword arguments
#     *kwargs* are passed to :meth:`format_card`.
#     """
#     
#     print format_card(text, **kwargs)
# 
# Path: PyDvi/Tools/TexCommentedFile.py
# class TexCommentedFile(file):
# 
#     """ This class permits to iterate over lines of a text file and to skip commented line by '%'.
#     """
# 
#     ##############################################
# 
#     def __init__(self, filename):
# 
#         super(TexCommentedFile, self).__init__(filename, mode='r')
# 
#     ##############################################
# 
#     def __iter__(self):
# 
#         while True:
#             line = self.readline()
#             if not line:
#                 raise StopIteration()
#             comment_start_index = line.find('%')
#             if comment_start_index != -1:
#                 line = line[:comment_start_index]
#             line = line.strip()
#             if line:
#                 yield line
# 
#     ##############################################
# 
#     def concatenate_lines(self):
# 
#         """ Concatenate the lines and return the corresponding string. """
# 
#         return ''.join(self)


from ..Tools.Logging import print_card
from ..Tools.TexCommentedFile import TexCommentedFile

        for word in line.split('/'):
            word = word.strip()
            if word:
                self._glyph_indexes.append(word)

    ##############################################

    def to_name(self, i):

        """ Return the symbolic name corresponding to the glyph index *i*. """

        return self._glyph_indexes[i]

    ##############################################

    def to_index(self, name):

        """ Return the glyph index corresponding to the symbolic name. """

        return self._glyph_names[name]

    ##############################################

    def print_summary(self):

        message = 'Encoding %s:\n\n' % (self.name)
        for i in xrange(len(self)):
            message += '| %3i | %s\n' % (i, self.to_name(i))


# Path: PyDvi/Tools/Logging.py
# def print_card(text, **kwargs):
# 
#     """ Print the string *text* formated by :meth:`format_card`.  The remaining keyword arguments
#     *kwargs* are passed to :meth:`format_card`.
#     """
#     
#     print format_card(text, **kwargs)
# 
# Path: PyDvi/Tools/TexCommentedFile.py
# class TexCommentedFile(file):
# 
#     """ This class permits to iterate over lines of a text file and to skip commented line by '%'.
#     """
# 
#     ##############################################
# 
#     def __init__(self, filename):
# 
#         super(TexCommentedFile, self).__init__(filename, mode='r')
# 
#     ##############################################
# 
#     def __iter__(self):
# 
#         while True:
#             line = self.readline()
#             if not line:
#                 raise StopIteration()
#             comment_start_index = line.find('%')
#             if comment_start_index != -1:
#                 line = line[:comment_start_index]
#             line = line.strip()
#             if line:
#                 yield line
# 
#     ##############################################
# 
#     def concatenate_lines(self):
# 
#         """ Concatenate the lines and return the corresponding string. """
# 
#         return ''.join(self)


# Path: PyDvi/Font/Encoding.py
from ..Tools.Logging import print_card
from ..Tools.TexCommentedFile import TexCommentedFile


        for word in line.split('/'):
            word = word.strip()
            if word:
                self._glyph_indexes.append(word)

    ##############################################

    def to_name(self, i):

        """ Return the symbolic name corresponding to the glyph index *i*. """

        return self._glyph_indexes[i]

    ##############################################

    def to_index(self, name):

        """ Return the glyph index corresponding to the symbolic name. """

        return self._glyph_names[name]

    ##############################################

    def print_summary(self):

        message = 'Encoding %s:\n\n' % (self.name)
        for i in xrange(len(self)):
            message += '| %3i | %s\n' % (i, self.to_name(i))


        print_card(message)