|
@@ -1,4 +1,4 @@
|
|
|
-export LANG=zh_CN.UTF-8@cjknarrow
|
|
|
+export LC_ALL=zh_CN.UTF-8@cjknarrow
|
|
|
git config core.quotepath 0
|
|
|
# /usr/bin/find 策划脚本 -name '*.xml' | xargs sed -b -i \
|
|
|
git diff --name-only HEAD 策划脚本| grep '\.xml$'|grep -v -e 'items/Tc.xmld' -e 'monster/Monster.xmld'|xargs sed -b -i \
|
|
@@ -9,10 +9,16 @@ git diff --name-only HEAD 策划脚本| grep '\.xml$'|grep -v -e 'items/Tc.xm
|
|
|
-e '/^ *<\(Last\)*Author>/d' \
|
|
|
-e '/^ *<TopRowVisible/d' \
|
|
|
-e '/^ *<LastSaved/d' \
|
|
|
+ -e 's/Font html:Face="[^"]*"/Font/g' \
|
|
|
-e '/^ *<FirstVisibleSheet/d' \
|
|
|
-e '/^ *<LeftColumnVisible/d' \
|
|
|
-e '/<Panes>/,/<\/Panes>/d' \
|
|
|
+ -e '/<Styles>/,/<\/Styles>/d' \
|
|
|
+ -e '/<CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">/,/<\/CustomDocumentProperties>/d' \
|
|
|
+ -e '/<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">/,/<\/OfficeDocumentSettings>/d' \
|
|
|
+ -e '/<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">/,/<\/ExcelWorkbook>/d' \
|
|
|
-e '/<Table */,/>/s/ ss:StyleID="\w\+"//' \
|
|
|
+ -e '/<Table */,/>/s/ ss:ExpandedRowCount="[0-9]*"//' \
|
|
|
-e '/<Column .*\/>/d' \
|
|
|
-e '/<Column /,/\/>/d' \
|
|
|
-e '/<ConditionalFormatting xmlns/,/<\/ConditionalFormatting>/d' \
|
|
@@ -20,7 +26,8 @@ git diff --name-only HEAD 策划脚本| grep '\.xml$'|grep -v -e 'items/Tc.xm
|
|
|
-e '/^ *<Cell[ >].*<\/Cell>/s/ ss:StyleID="\w\+"//g' \
|
|
|
-e '/^ *<Cell .*[^C][^e][^l][^l]$/,/<\/Cell>/s/ ss:StyleID="\w\+"//g' \
|
|
|
-e '/^ *<Table /,/<\/Table>/s/ x:CharSet="[0-9]\+"//g' \
|
|
|
- -e '/^ *<Row /s/\( ss:StyleID=\)"\w\+"/\1"s1"/g' \
|
|
|
+ -e '/^ *<Row /s/\( ss:StyleID=\)"\w\+"//g' \
|
|
|
+ -e '/^ *<Row /s/\( ss:Height="[0-9]\+\(\.[0-9]\+\)*\)"//g' \
|
|
|
-e '/^ *<Split/d'
|
|
|
git diff --name-only HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
|
|
|
-e '/^ *<Window\(Height\|Width\|TopX\|TopY\)>/d'
|