mirror of
https://github.com/TriM-Organization/Linglun-Converter.git
synced 2024-11-25 00:25:26 +08:00
update 2023/3/15 document/pre-library update/bug fixed
This commit is contained in:
parent
2f6ae9ce46
commit
9da71afb89
@ -99,9 +99,12 @@
|
|||||||
```bash
|
```bash
|
||||||
# 首先换源
|
# 首先换源
|
||||||
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
|
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
|
||||||
# 然后安装
|
# 然后安装(依次执行下面的指令)
|
||||||
pip install mido
|
pip install mido
|
||||||
pip install brotli
|
pip install brotli
|
||||||
|
pip install Musicreater
|
||||||
|
pip install TrimLog
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
```
|
```
|
||||||
|
|
||||||
- 如果出现以下情况,真是死了鬼的,我们要来再搞个设置:
|
- 如果出现以下情况,真是死了鬼的,我们要来再搞个设置:
|
||||||
@ -121,6 +124,7 @@
|
|||||||
pip install brotli
|
pip install brotli
|
||||||
pip install Musicreater
|
pip install Musicreater
|
||||||
pip install TrimLog
|
pip install TrimLog
|
||||||
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
```
|
```
|
||||||
|
|
||||||
安装成功后您可能会见到类似下图的提示:
|
安装成功后您可能会见到类似下图的提示:
|
||||||
|
@ -85,14 +85,14 @@ languages = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Lang():
|
|
||||||
|
|
||||||
def __init__(self, lang: str = "ZH-CN", debug:bool = False) -> None:
|
class Lang:
|
||||||
|
def __init__(self, lang: str = "ZH-CN", debug: bool = False) -> None:
|
||||||
self.local = lang
|
self.local = lang
|
||||||
self.debug = debug
|
self.debug = debug
|
||||||
|
|
||||||
|
|
||||||
def __load_language(self, language_file_name: str):
|
def __load_language(self, language_file_name: str):
|
||||||
|
global logger
|
||||||
with open(language_file_name, "r", encoding="utf-8") as languageFile:
|
with open(language_file_name, "r", encoding="utf-8") as languageFile:
|
||||||
_text = {}
|
_text = {}
|
||||||
for line in languageFile:
|
for line in languageFile:
|
||||||
@ -123,9 +123,11 @@ class Lang():
|
|||||||
# 这个函数是不被加载的
|
# 这个函数是不被加载的
|
||||||
def passbt():
|
def passbt():
|
||||||
|
|
||||||
from utils.io import logger, requests
|
from utils.io import logger
|
||||||
|
try:
|
||||||
|
from utils.io import requests
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
def __loadLanguage(languageFilename: str):
|
def __loadLanguage(languageFilename: str):
|
||||||
with open(languageFilename, "r", encoding="utf-8") as languageFile:
|
with open(languageFilename, "r", encoding="utf-8") as languageFile:
|
||||||
|
@ -21,14 +21,14 @@ import os
|
|||||||
import random
|
import random
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
print("小贴:不妨试试Mid-BDX转换网页:在线的多功能Midi转换器")
|
|
||||||
print("https://dislink.github.io/midi2bdx/")
|
|
||||||
|
|
||||||
import Musicreater
|
import Musicreater
|
||||||
|
|
||||||
from utils.io import *
|
from utils.io import *
|
||||||
from languages.lang import languages
|
from languages.lang import languages
|
||||||
|
|
||||||
|
print("小贴:不妨试试Mid-BDX转换网页:在线的多功能Midi转换器")
|
||||||
|
print("https://dislink.github.io/midi2bdx/")
|
||||||
|
|
||||||
MainConsole.print(
|
MainConsole.print(
|
||||||
"[#121110 on #F0F2F4] ",
|
"[#121110 on #F0F2F4] ",
|
||||||
style="#121110 on #F0F2F4",
|
style="#121110 on #F0F2F4",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Brotli>=1.0.9
|
Brotli>=1.0.9
|
||||||
mido>=1.2.10
|
mido>=1.2.10
|
||||||
rich>=10.9.0
|
rich>=10.9.0
|
||||||
Musicreater>=0.1.0
|
Musicreater>=0.3.2
|
||||||
TrimLog>=0.1.0
|
TrimLog>=0.7.2
|
||||||
|
@ -5,10 +5,12 @@ import urllib.error
|
|||||||
import TrimLog
|
import TrimLog
|
||||||
from TrimLog import Console, object_constants
|
from TrimLog import Console, object_constants
|
||||||
|
|
||||||
|
is_logging: bool = True
|
||||||
|
|
||||||
MainConsole = Console()
|
MainConsole = Console()
|
||||||
osc = object_constants.ObjectStateConstant()
|
osc = object_constants.ObjectStateConstant()
|
||||||
logger = TrimLog.Logger(
|
logger = TrimLog.Logger(
|
||||||
is_logging=True,
|
is_logging=is_logging,
|
||||||
printing=not osc.isRelease,
|
printing=not osc.isRelease,
|
||||||
in_suffix=".llc",
|
in_suffix=".llc",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user