Skip to content

Commit

Permalink
Merge branch 'build_opencc_data' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed May 18, 2015
2 parents 2930ff9 + 532c92d commit 62fba4f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 63 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ReleaseHant/
/output/*.ime
/output/*.txt
/output/data/essay.txt
/output/data/opencc/
/output/data/*.yaml
/output/expansion/*.yaml
/output/archives
Expand Down
15 changes: 15 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
setlocal

if exist env.bat call env.bat

set work=%cd%
Expand Down Expand Up @@ -40,6 +42,9 @@ if %build_boost% == 1 (

if %build_rime% == 1 (
cd %work%\librime
if not exist librime\thirdparty\lib\opencc.lib (
call build.bat thirdparty
)
call build.bat
cd %work%
rem copy /Y librime\thirdparty\lib\*.lib lib\
Expand Down Expand Up @@ -96,6 +101,7 @@ copy %work%\brise\symbols.yaml output\data\
copy %work%\brise\preset\*.yaml output\data\
copy %work%\brise\supplement\*.yaml output\data\
copy %work%\brise\extra\*.yaml output\expansion\
call :build_opencc_data
exit /b

:build_essay
Expand All @@ -107,6 +113,15 @@ call make_essay.bat
cd %work%
exit /b

:build_opencc_data
if not exist %work%\librime\thirdparty\data\opencc\TSCharacters.ocd (
cd %work%\librime
call build.bat thirdparty
)
cd %work%
if not exist output\data\opencc mkdir output\data\opencc
copy %work%\librime\thirdparty\data\opencc\*.* output\data\opencc\

:error
echo error building weasel...

Expand Down
2 changes: 1 addition & 1 deletion librime
Submodule librime updated 269 files
23 changes: 0 additions & 23 deletions output/data/opencc/to_tw_variants.txt

This file was deleted.

Binary file removed output/data/opencc/trad_to_simp_characters.ocd
Binary file not shown.
Binary file removed output/data/opencc/trad_to_simp_phrases.ocd
Binary file not shown.
20 changes: 0 additions & 20 deletions output/data/opencc/zht2zhs.ini

This file was deleted.

19 changes: 0 additions & 19 deletions output/data/opencc/zht2zhtw_v.ini

This file was deleted.

0 comments on commit 62fba4f

Please sign in to comment.