Lines Matching refs:inputfile
33 def extract_topic(self, list, inputfile): argument
37 …re_sdf_line(id=elem.getAttribute("id").strip(), text=elem.childNodes[0].data, inputfile=inputfile))
40 def extract_title(self, list, inputfile): argument
44 …(id=elem.getAttribute("id").strip(), text=elem.getAttribute("title").strip(), inputfile=inputfile))
51 …obj = self.prepare_sdf_line(inputfile=inputfilename, lang=lang, id=elem.getAttribute("id").strip())
58 …obj = self.prepare_sdf_line(inputfile=inputfilename, lang=lang, id=elem.getAttribute("id").strip())
115 def extract_file(self, inputfile): argument
117 dom = self.parse_file(inputfile)
118 sdf_data.extend(self.extract_topic(dom.getElementsByTagName("topic"), inputfile))
119 sdf_data.extend(self.extract_title(dom.getElementsByTagName("help_section"), inputfile))
120 sdf_data.extend(self.extract_title(dom.getElementsByTagName("node"), inputfile))
123 def prepare_sdf_line(self, inputfile="", lang="" , id="" , text=""): argument
126 …turn SdfEntity(project=self._options.project_name, source_file=self.get_filename_string(inputfile),