初步支持txt翻译

This commit is contained in:
xunbu
2025-05-28 21:02:43 +08:00
parent f06026dba1
commit 66621fae50
2 changed files with 74 additions and 69 deletions

View File

@@ -15,6 +15,8 @@ class Document:
self.path=path
self.filename=path.name
self.filebytes=path.read_bytes()
self.suffix=Path(self.filename).suffix
self.stem=Path(self.filename).stem
class Converter(Protocol):
#转换为markdown