def _set_symbols(self, file_name, configure):
        """
        Load the symbols with configuration.

        :param file_name: The file path of symbol configuration.
        :type file_name: str
        :param configure: The configuration of HaTeMiLe.
        :type configure: hatemile.util.configure.Configure
        """

        self.symbols = []
        if file_name is None:
            file_name = os.path.join(os.path.dirname(os.path.dirname(
                os.path.dirname(os.path.realpath(__file__))
            )), 'symbols.xml')
        xmldoc = minidom.parse(file_name)
        symbols_xml = xmldoc.getElementsByTagName(
            'symbols'
        )[0].getElementsByTagName('symbol')
        for symbol_xml in symbols_xml:
            self.symbols.append({
                'symbol': symbol_xml.attributes['symbol'].value,
                'description': configure.get_parameter(
                    symbol_xml.attributes['description'].value
                )
            })
def _set_symbols ( self , file_name , configure ) : self . symbols = [ ] if file_name is None : file_name = os . path . join ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) , 'symbols.xml' ) xmldoc = minidom . parse ( file_name ) symbols_xml = xmldoc . getElementsByTagName ( 'symbols' ) [ 0 ] . getElementsByTagName ( 'symbol' ) for symbol_xml in symbols_xml : self . symbols . append ( { 'symbol' : symbol_xml . attributes [ 'symbol' ] . value , 'description' : configure . get_parameter ( symbol_xml . attributes [ 'description' ] . value ) } )
Load the symbols with configuration.

        :param file_name: The file path of symbol configuration.
        :type file_name: str
        :param configure: The configuration of HaTeMiLe.
        :type configure: hatemile.util.configure.Configure