-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from SUSYUSTC/dev
Dev
- Loading branch information
Showing
6 changed files
with
58 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
__version__ = "2.1.2" | ||
__version__ = "2.1.3" | ||
__author__ = "Jiace Sun" | ||
|
||
import os | ||
ROOT = os.path.dirname(os.path.abspath(__file__)) | ||
from . import config | ||
from . import translate | ||
from . import tencent | ||
from . import fix_encoding | ||
from . import encoding | ||
from . import process_latex | ||
from . import process_text | ||
from . import translate_tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import chardet | ||
|
||
|
||
def get_file_encoding(filename): | ||
with open(filename, "rb") as f: | ||
data = f.read() | ||
result = chardet.detect(data) | ||
current_encoding = result["encoding"] | ||
return current_encoding |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters