mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
rm
This commit is contained in:
parent
aefe963bd7
commit
8ed385ed5c
@ -1340,17 +1340,20 @@ class dialog_setting_game_internal(QWidget):
|
||||
_dict["postprocessconfig"].pop(post)
|
||||
|
||||
def __privatetextproc_btn1(self):
|
||||
__viss = [
|
||||
postprocessconfig[_internal]["name"] for _internal in postprocessconfig
|
||||
]
|
||||
|
||||
def __callback(d):
|
||||
__ = list(postprocessconfig.keys())[d["k"]]
|
||||
__viss = []
|
||||
_internal = []
|
||||
for xx in postprocessconfig:
|
||||
__list = savehook_new_data[self.__privatetextproc_gameuid][
|
||||
"save_text_process_info"
|
||||
]["rank"]
|
||||
if __ in __list:
|
||||
return
|
||||
if xx in __list:
|
||||
continue
|
||||
__viss.append(postprocessconfig[xx]["name"])
|
||||
_internal.append(xx)
|
||||
|
||||
def __callback(_internal, d):
|
||||
__ = _internal[d["k"]]
|
||||
__list.insert(0, __)
|
||||
self.__checkaddnewmethod(0, __)
|
||||
|
||||
@ -1369,7 +1372,7 @@ class dialog_setting_game_internal(QWidget):
|
||||
},
|
||||
{
|
||||
"type": "okcancel",
|
||||
"callback": functools.partial(__callback, __d),
|
||||
"callback": functools.partial(__callback, _internal, __d),
|
||||
},
|
||||
],
|
||||
)
|
||||
|
@ -427,7 +427,7 @@ if ocrerrorfix == {}:
|
||||
ocrerrorfix = postprocessconfig["_100"]
|
||||
else:
|
||||
ocrerrorfix = ocrerrorfixdefault
|
||||
syncconfig(postprocessconfig, defaultpost, True, 3)
|
||||
syncconfig(postprocessconfig, defaultpost, deep=3)
|
||||
|
||||
|
||||
if needcast:
|
||||
|
@ -2,7 +2,13 @@ import re, codecs, inspect
|
||||
from traceback import print_exc
|
||||
from collections import Counter
|
||||
import gobject
|
||||
from myutils.utils import checkchaos, checkmd5reloadmodule, LRUCache, getlangsrc, parsemayberegexreplace
|
||||
from myutils.utils import (
|
||||
checkchaos,
|
||||
checkmd5reloadmodule,
|
||||
LRUCache,
|
||||
getlangsrc,
|
||||
parsemayberegexreplace,
|
||||
)
|
||||
from myutils.config import (
|
||||
postprocessconfig,
|
||||
globalconfig,
|
||||
@ -362,11 +368,11 @@ def POSTSOLVE(line):
|
||||
"_6EX": _6_fEX,
|
||||
"_91": _91_f,
|
||||
"_92": _92_f,
|
||||
"_7": _7_f,
|
||||
"_8": _8_f,
|
||||
"_7": _7_f, # depracated
|
||||
"_8": _8_f, # depracated
|
||||
"_13": _13_f,
|
||||
"_13EX": _13_fEX,
|
||||
"_7_zhuanyi": _7_zhuanyi_f,
|
||||
"_7_zhuanyi": _7_zhuanyi_f, # depracated
|
||||
"_remove_non_shiftjis_char": _remove_non_shiftjis_char,
|
||||
"_remove_control": _remove_control,
|
||||
"_remove_chaos": _remove_chaos,
|
||||
|
@ -162,27 +162,6 @@
|
||||
"use": false,
|
||||
"name": "过滤英文字母"
|
||||
},
|
||||
"_7": {
|
||||
"use": true,
|
||||
"name": "!_不推荐使用_简单字符串替换_!",
|
||||
"args": {
|
||||
"替换内容": {}
|
||||
}
|
||||
},
|
||||
"_7_zhuanyi": {
|
||||
"use": true,
|
||||
"name": "!_不推荐使用_转义字符串替换_!",
|
||||
"args": {
|
||||
"替换内容": {}
|
||||
}
|
||||
},
|
||||
"_8": {
|
||||
"use": false,
|
||||
"name": "!_不推荐使用_正则表达式替换_!",
|
||||
"args": {
|
||||
"替换内容": {}
|
||||
}
|
||||
},
|
||||
"_10": {
|
||||
"use": false,
|
||||
"name": "去除重复行_ABCDBCDCDD->ABCD"
|
||||
|
Loading…
x
Reference in New Issue
Block a user