Skip to content

Commit

Permalink
Optimize special mode's output
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhua0518 authored Jun 25, 2023
1 parent 8adb200 commit 465073c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion SiglusEngine/ssDumper.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def main(argv):
for i,line in enumerate(lines):
isText=0
isAt=False
isName=False
start=0
for n,char in enumerate(line):
if char=='/':
Expand Down Expand Up @@ -199,7 +200,18 @@ def main(argv):
elif unicodedata.east_asian_width(char)!='Na':
if not isText and not isAt:
isText=1
start=n
if char=='【':
start=n+1
isName=True
else:
isText=1
start=n
isName=False
elif isText==1 and not isAt and isName and char=='】':
isName=False
isText=0
indexs.append(softIndex(i,start,n-1))
texts.append(line[start:n])
elif isText==1:
isText=0
indexs.append(softIndex(i,start,n-1))
Expand Down

0 comments on commit 465073c

Please sign in to comment.