拆分五笔字库,提高导入到google拼音的速度
由于在将五笔86版字库导入到Google拼音时很慢,所以将wubi.dis文件用此脚本分隔成1500行每个的单个文件。
@Echo OFF
Color 0A
Pushd %CD%
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
Set tmpFileName=
Set /A eachFileLines=1500
Set /A curLine=0
Set /A fileSerialNo=1
Set tmpFileName=wubi_1.dis
For /F "tokens=*" %%i in (wubi_.dis) Do (
Set /A curLine=!curLine!+1
Set /A tmpFileLines=!fileSerialNo!*%eachFileLines%
IF !curLine!==!tmpFileLines! (
Set /A fileSerialNo=!fileSerialNo!+1
Set tmpFileName=wubi_!fileSerialNo!.dis
)
Echo %%i>>wubi_!fileSerialNo!.dis
)
Color 0A
Pushd %CD%
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
Set tmpFileName=
Set /A eachFileLines=1500
Set /A curLine=0
Set /A fileSerialNo=1
Set tmpFileName=wubi_1.dis
For /F "tokens=*" %%i in (wubi_.dis) Do (
Set /A curLine=!curLine!+1
Set /A tmpFileLines=!fileSerialNo!*%eachFileLines%
IF !curLine!==!tmpFileLines! (
Set /A fileSerialNo=!fileSerialNo!+1
Set tmpFileName=wubi_!fileSerialNo!.dis
)
Echo %%i>>wubi_!fileSerialNo!.dis
)