[Ttssh2-commit] [8286] Unicode版lngファイル生成スクリプト追加

scmno****@osdn***** scmno****@osdn*****
2019年 10月 10日 (木) 23:46:29 JST


Revision: 8286
          https://osdn.net/projects/ttssh2/scm/svn/commits/8286
Author:   zmatsuo
Date:     2019-10-10 23:46:29 +0900 (Thu, 10 Oct 2019)
Log Message:
-----------
Unicode版lngファイル生成スクリプト追加

- とりあえず簡単に utf-16le の lngファイルを生成するため追加
- bash convert.sh と実行すると utf16le/ にutf-16le(Unicode)版lngファイルが生成される
- lang/ にこのlngファイルを置く

Added Paths:
-----------
    branches/unicode_buf/installer/release/lang/convert.sh

-------------- next part --------------
Added: branches/unicode_buf/installer/release/lang/convert.sh
===================================================================
--- branches/unicode_buf/installer/release/lang/convert.sh	                        (rev 0)
+++ branches/unicode_buf/installer/release/lang/convert.sh	2019-10-10 14:46:29 UTC (rev 8286)
@@ -0,0 +1,44 @@
+# ansi -> utf-8
+mkdir utf8
+echo -ne '\xEF\xBB\xBF' > utf8/default.lng
+iconv -c -t utf-8 -f CP1252 default.lng >> utf8/default.lng
+echo -ne '\xEF\xBB\xBF' > utf8/english.lng
+iconv -c -t utf-8 -f CP1252 english.lng >> utf8/english.lng
+echo -ne '\xEF\xBB\xBF' > utf8/French.lng
+iconv -c -t utf-8 -f CP1252 French.lng >> utf8/French.lng
+echo -ne '\xEF\xBB\xBF' > utf8/German.lng
+iconv -c -t utf-8 -f CP1252 German.lng >> utf8/German.lng
+echo -ne '\xEF\xBB\xBF' > utf8/Japanese.lng
+iconv -c -t utf-8 -f CP932  Japanese.lng >> utf8/Japanese.lng
+echo -ne '\xEF\xBB\xBF' > utf8/Korean.lng
+iconv -c -t utf-8 -f CP949  Korean.lng >> utf8/Korean.lng
+echo -ne '\xEF\xBB\xBF' > utf8/Russian.lng
+iconv -c -t utf-8 -f windows-1251  Russian.lng >> utf8/Russian.lng
+echo -ne '\xEF\xBB\xBF' > "utf8/Simplified Chinese.lng"
+iconv -c -t utf-8 -f CP936  "Simplified Chinese.lng" >> "utf8/Simplified Chinese.lng"
+echo -ne '\xEF\xBB\xBF' > "utf8/Traditional Chinese.lng"
+iconv -c -t utf-8 -f CP950  "Traditional Chinese.lng" >> "utf8/Traditional Chinese.lng"
+
+# utf-8 -> ansi
+mkdir ansi
+iconv -c -f utf-8 -t CP1252 utf8/default.lng > ansi/default.lng
+iconv -c -f utf-8 -t CP1252 utf8/english.lng > ansi/english.lng
+iconv -c -f utf-8 -t CP1252 utf8/French.lng > ansi/French.lng
+iconv -c -f utf-8 -t CP1252 utf8/German.lng > ansi/German.lng
+iconv -c -f utf-8 -t CP932  utf8/Japanese.lng > ansi/Japanese.lng
+iconv -c -f utf-8 -t CP949  utf8/Korean.lng > ansi/Korean.lng
+iconv -c -f utf-8 -t windows-1251  utf8/Russian.lng  > ansi/Russian.lng
+iconv -c -f utf-8 -t CP936  "utf8/Simplified Chinese.lng" > "ansi/Simplified Chinese.lng"
+iconv -c -f utf-8 -t CP950  "utf8/Traditional Chinese.lng" > "ansi/Traditional Chinese.lng"
+
+# utf-8 -> utf-16le
+mkdir utf16le
+iconv -c -f utf-8 -t utf-16le utf8/default.lng > utf16le/default.lng
+iconv -c -f utf-8 -t utf-16le utf8/english.lng > utf16le/english.lng
+iconv -c -f utf-8 -t utf-16le utf8/French.lng > utf16le/French.lng
+iconv -c -f utf-8 -t utf-16le utf8/German.lng > utf16le/German.lng
+iconv -c -f utf-8 -t utf-16le utf8/Japanese.lng > utf16le/Japanese.lng
+iconv -c -f utf-8 -t utf-16le utf8/Korean.lng > utf16le/Korean.lng
+iconv -c -f utf-8 -t utf-16le utf8/Russian.lng  > utf16le/Russian.lng
+iconv -c -f utf-8 -t utf-16le "utf8/Simplified Chinese.lng" > "utf16le/Simplified Chinese.lng"
+iconv -c -f utf-8 -t utf-16le "utf8/Traditional Chinese.lng" > "utf16le/Traditional Chinese.lng"


Ttssh2-commit メーリングリストの案内