(self, file_path: Path)
| 126 | |
| 127 | class LaTexReader(Reader): |
| 128 | def parse(self, file_path: Path) -> str: |
| 129 | logger.info(f"Reading LaTex file from {file_path}.") |
| 130 | with open(file_path, "r") as f: |
| 131 | data = f.read() |
| 132 | text = LatexNodes2Text().latex_to_text(data) |
| 133 | return text |
| 134 | |
| 135 | |
| 136 | class AudioReader(Reader): |