Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ua.FadeWorks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,12 @@ function koko_da(subs,sel)
if not res.word then
matches=re.find(text,"[\\w[:punct:]][\\s\\\\*]*")
len=#matches
if fadin>=40 then ko=round(fadin/(len-1))/10 else ko=fadin end
if fadin>=40 then ko=round(fadin/len)/10 else ko=fadin end
text=re.sub(text,"([\\w[:punct:]])","{\\\\ko"..ko.."}\\1")
else --word
matches=re.find(text,"[\\w[:punct:]]+[\\s\\\\*]*")
len=#matches
if fadin>=40 then ko=round(fadin/(len-1)/10) else ko=fadin end
if fadin>=40 then ko=round(fadin/len/10) else ko=fadin end
text=re.sub(text,"([\\w[:punct:]]+)","{\\\\ko"..ko.."}\\1")
end

Expand Down