diff --git a/DSFS/files/config.bmp b/DSFS/files/config.bmp deleted file mode 100644 index 1bc69f7..0000000 Binary files a/DSFS/files/config.bmp and /dev/null differ diff --git a/DSFS/files/config.gif b/DSFS/files/config.gif deleted file mode 100644 index 7203653..0000000 Binary files a/DSFS/files/config.gif and /dev/null differ diff --git a/DSFS/files/config.jpg b/DSFS/files/config.jpg deleted file mode 100644 index 8adbb28..0000000 Binary files a/DSFS/files/config.jpg and /dev/null differ diff --git a/DSFS/files/config.png b/DSFS/files/config.png deleted file mode 100644 index d52f805..0000000 Binary files a/DSFS/files/config.png and /dev/null differ diff --git a/files/config.bmp b/files/config.bmp deleted file mode 100644 index 1bc69f7..0000000 Binary files a/files/config.bmp and /dev/null differ diff --git a/files/config.gif b/files/config.gif deleted file mode 100644 index 7203653..0000000 Binary files a/files/config.gif and /dev/null differ diff --git a/files/config.jpg b/files/config.jpg deleted file mode 100644 index 8adbb28..0000000 Binary files a/files/config.jpg and /dev/null differ diff --git a/files/config.png b/files/config.png deleted file mode 100644 index d52f805..0000000 Binary files a/files/config.png and /dev/null differ diff --git a/tr.py b/tr.py new file mode 100755 index 0000000..782ecc8 --- /dev/null +++ b/tr.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python +# _*_ encoding: utf-8 _*_ + +import sys, os +import re + +lineNum = 0 +pos = 0 +startLine = 0; +startPos = 0; +prev = '' +flag = 0 +str = '' + +for line in open(sys.argv[1]).readlines(): + lineNum += 1 + pos = 0 + for c in line: + if c == '\"' and prev != '\\': + if flag == 0: + flag += 1 + startLine = lineNum + startPos = pos + elif flag == 1: + str += c + if re.search('[+s]*#', line) == None: + print "%d:%d - %d:%d %s" % (startLine, startPos, lineNum, pos, str) + str = '' + flag = 0 + if flag == 1: + str += c; + prev = c + pos += 1 +