<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>yunglee-中文 Scilab 開發</title>
<link>http://blog.roodo.com/yunglee/archives/cat_377151.html</link>
<description></description>
<language>zh-tw</language>
<generator>Roodo Blog System</generator>
<copyright>All Rights Reserved</copyright>
<atom:link href="http://blog.roodo.com/yunglee/archives/cat_377151.xml" rel="self" type="application/rss+xml" />
<item>
	<title>Linux Scilab 中文關鍵障礙排除程序</title>
	<description><![CDATA[
			
這是開發 Linux 版之
 ADE 中文 Scilab
關鍵技術，藉由網路擴散出去，希望有更多開發者不再為這些雜學所困。


 ADE 中文 Scilab
Linux 版預定 11, 12 月 間公佈。



Scilab 中文化之步調無法與官方版一致，這是必然的現象；中文問題只能靠使用中文的開發族群解決。因此 
Linux 上之中文版決定採用 
Scilab-GTK
一方面是考慮到中文開發人力不足，只能以 C/C++ 作為主要開發語言，另一方面則是準備將 Scilab 與中文桌面系統結合進行準備。


將 locale 設定為  zh_TW.UTF8 (環境參數 LANG=zh_TW.UTF8) 後，將
 Scilab-GTK
下載後在 Fedora 6 上編譯後發現以下中文處理問題：

  Scilab 之 console 視窗上無法啟動中文輸入
        解決方案：
       必須使用 GTK2 以及選用 vte  終端機視窗程式庫，請參考
 中文 Scilab 所需之GKT2 軟體環境       
 
  Scilab 編輯器 (SciPad) 無法輸入中文
        解決方案：
 TCL/TK 及 Scipad 之中文問題
       
 
   中文字串螢幕輸入、輸出 
      解決方案：
      使用 GTK 時，沒有這個問題 （但在 Windows 環境必須修改程式）
      
   
   中文字串檔案輸入、輸出 
      解決方案：
      使用 GTK 時，沒有這個問題 （但在 Windows 環境必須修改程式）
      
   
  繪圖指令（如 plot2d ) 中無法顯現中文標示 
        解決方案：
 GTK 繪出中文問題        
 
  scicos 文字方塊中(Edit/palettes/other) 無法顯示中文
        解決方案：
GTK 繪出中文問題  
      
 
  選單中文化


        解決方案：
                
            主選單  修改次目錄 routine\gtksci 中之檔案 menus.c 內容之函數 sci_window_initial_menu
           
            圖形選單  修改次目錄 routine\gtksci 中之檔案 menus.c 內容之函數 graphic_initial_menu
            
          
 
        
 
 Scilab 增加中文語言選項
        可能解決方案：
       參考 Windows Mingw 版之 ADE 中文 Scilab之程式碼剪貼到 Linux 版
       
 









再測試 locale Big5


Consol 可輸入中文, 不需更動
SciPad 可輸入中文, 不需更動
繪圖指令(plot2d 等) 無法輸出中文標示, 但&nbsp; Scicos 之 text&nbsp;&nbsp; 方塊 （位於 Edit\palette\other ）可接受中文解決方案：繪出字串前先判斷是否為 utf8 碼, 否則先由 locale 轉 utf8 , 參考 GTK 繪出中文問題

中文選單正常, 不需更動





		]]>
	</description>
	<content:encoded><![CDATA[
			<p>
這是開發 Linux 版之
 <a http://science.openfoundry.org/ade/scilab/>ADE 中文 Scilab</a>
關鍵技術，藉由網路擴散出去，希望有更多開發者不再為這些雜學所困。
</p>
<p>
 <a http://science.openfoundry.org/ade/scilab/>ADE 中文 Scilab</a>
Linux 版預定 11, 12 月 間公佈。
</p>

<p>
Scilab 中文化之步調無法與官方版一致，這是必然的現象；中文問題只能靠使用中文的開發族群解決。因此 
Linux 上之中文版決定採用 
<a href="http://cermics.enpc.fr/~jpc/scilab/site/Scilab-Gtk/Scilab-Gtk/index.htm">Scilab-GTK</a>
一方面是考慮到中文開發人力不足，只能以 C/C++ 作為主要開發語言，另一方面則是準備將 Scilab 與中文桌面系統結合進行準備。
</p>

將 locale 設定為  zh_TW.UTF8 (環境參數 LANG=zh_TW.UTF8) 後，將
 <a href="http://cermics.enpc.fr/~jpc/scilab/site/Scilab-Gtk/Scilab-Gtk/index.htm">Scilab-GTK</a>
下載後在 Fedora 6 上編譯後發現以下中文處理問題：
<ol>
  <li>Scilab 之 console 視窗上無法啟動中文輸入
        <p><font color="#800080">解決方案：</font>
       必須使用 GTK2 以及選用 vte  終端機視窗程式庫，請參考
 <a href="http://blog.roodo.com/yunglee/archives/3489429.html">中文 Scilab 所需之GKT2 軟體環境</a>       </p>
 </li>
  <li>Scilab 編輯器 (SciPad) 無法輸入中文
        <p><font color="#800080">解決方案：</font>
 <a href="http://blog.roodo.com/yunglee/archives/3495861.html">TCL/TK 及 Scipad 之中文問題</a>
       </p>
 </li>
   <li>中文字串螢幕輸入、輸出 
      <p><font color="#800080">解決方案：</font>
      使用 GTK 時，沒有這個問題 （但在 Windows 環境必須修改程式）
      </p>
   </li>
   <li>中文字串檔案輸入、輸出 
      <p><font color="#800080">解決方案：</font>
      使用 GTK 時，沒有這個問題 （但在 Windows 環境必須修改程式）
      </p>
   </li>
  <li>繪圖指令（如 plot2d ) 中無法顯現中文標示 
        <p><font color="#800080">解決方案：</font>
 <a href="http://blog.roodo.com/yunglee/archives/3536603.html">GTK 繪出中文問題</a>        </p>
 </li>
  <li>scicos 文字方塊中(Edit/palettes/other) 無法顯示中文
        <p><font color="#800080">解決方案：</font>
<a href="http://blog.roodo.com/yunglee/archives/3536603.html">GTK 繪出中文問題</a>  
      </p>
 </li>
  <li>選單中文化


        <p><font color="#800080">解決方案：</font>
          <ol>      
           <li> <font color="#800080">主選單</font><br />  修改次目錄 routine\gtksci 中之檔案 menus.c 內容之函數 sci_window_initial_menu
           </li>
           <li> <font color="#800080">圖形選單</font><br />  修改次目錄 routine\gtksci 中之檔案 menus.c 內容之函數 graphic_initial_menu
           </li> 
          </ol>
 
        </p>
 </li>
 <li>Scilab 增加中文語言選項
        <p><font color="#800080">可能解決方案：</font>
       參考 Windows Mingw 版之 <a http://science.openfoundry.org/ade/scilab/>ADE 中文 Scilab</a>之程式碼剪貼到 Linux 版
       </p>
 </li>
</ol>

</p>

</p>



<p>
再測試 locale Big5</p>

<ol>
<li>Consol 可輸入中文, 不需更動<br /></li>
<li>SciPad 可輸入中文, 不需更動<br /></li>
<li>繪圖指令(plot2d 等) 無法輸出中文標示, 但&nbsp; Scicos 之 text&nbsp;&nbsp; 方塊 （位於 Edit\palette\other ）可接受中文<br /><font color="#800080">解決方案</font>：繪出字串前先判斷是否為 utf8 碼, 否則先由 locale 轉 utf8 , 參考 <a href="http://blog.roodo.com/yunglee/archives/3536603.html">GTK 繪出中文問題</a>
</li>
<li>中文選單正常, 不需更動</li>
</ol>




		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3617615.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3617615.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Fri, 06 Jul 2007 21:47:35 +0800</pubDate>
</item>
<item>
	<title>Scilab 中之 BIG5 , UTF8 中文</title>
	<description><![CDATA[
			中文碼在  VTE, TCL, GTK , Scilab 中流竄轉換, 似乎使用 UTF8 碼, 程式開發較容易，但 BIG5 使用者太多, 無法放棄. 

目前只剩下一部分內部之 BIG5-> UTF8 未加入應該是在 pango_draw_text 中檢查字串判斷是否為 UTF8 如果不是, 則將他轉碼  （也許由 lang 環境參數決定如何轉碼） (2007/07/03)


可能參考
Character Set Conversion

gboolean     is_utf8       g_get_charset      (G_CONST_RETURN char **charset);
     charset : 	return location for character set name
Returns : 	TRUE if the returned charset is UTF-8

    if(!  g_get_charset  (&charset)   g_locale_to_utf8(string) 

http://203.64.187.41/gtk/GTK-Lesson-4.html
#define BIG5(s) g_locale_to_utf8(s, strlen(s),NULL, NULL, NULL)

以 g_utf8_validate() 檢查是否為 UTF8 有效字串 ( Text Handling in GTK+ 2.0)


		]]>
	</description>
	<content:encoded><![CDATA[
			中文碼在  VTE, TCL, GTK , Scilab 中流竄轉換, 似乎使用 UTF8 碼, 程式開發較容易，但 BIG5 使用者太多, 無法放棄. <br />
<br />
目前只剩下一部分內部之 BIG5-> UTF8 未加入應該是在 pango_draw_text 中檢查字串判斷是否為 UTF8 如果不是, 則將他轉碼  （也許由 lang 環境參數決定如何轉碼） (2007/07/03)<br />
<br />
<br />
可能參考<br />
<a href="http://developer.gnome.org/doc/API/2.2/glib/glib-Character-Set-Conversion.html" >Character Set Conversion</a><br />
<br />
gboolean     is_utf8       g_get_charset      (G_CONST_RETURN char **charset);<br />
     charset : 	return location for character set name<br />
Returns : 	TRUE if the returned charset is UTF-8<br />
<br />
    if(!  g_get_charset  (&charset)   g_locale_to_utf8(string) <br />
<br />
<a href="http://203.64.187.41/gtk/GTK-Lesson-4.html" >http://203.64.187.41/gtk/GTK-Lesson-4.html</a><br />
#define BIG5(s) g_locale_to_utf8(s, strlen(s),NULL, NULL, NULL)<br />
<br />
<a href="http://developer.gnome.org/dotplan/porting/ar01s10.html">以 g_utf8_validate() 檢查是否為 UTF8 有效字串 ( Text Handling in GTK+ 2.0)</a><br />
<br />

		<a class="acontinues" href="http://blog.roodo.com/yunglee/archives/3573949.html">(繼續閱讀...)</a>
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3573949.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3573949.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Wed, 04 Jul 2007 00:33:43 +0800</pubDate>
</item>
<item>
	<title>Scilab 中文測試範例</title>
	<description><![CDATA[
			Scilab 中文測試範例&nbsp; ：&nbsp;&nbsp; LANG=zh_TW.UTF8 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test 1-7 成功(2007/07/03)&nbsp;&nbsp;&nbsp; LANG=zh_TW.BIG5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test2 失敗&nbsp;&nbsp;&nbsp; ,其餘失敗 (2007/07/03)////Test1. 註解輸入測試////Test2. 繪圖中文標示//x=[0:0.1:2*%pi]&#39;;plot2d(x,sin(x),leg=&quot;正弦 sin(x)&quot;)////Test3. 中文&nbsp; write//write(%io(2),&#39;中文 write&#39;)////Test4.. 中文&nbsp; Print//a=rand(3,3);p=poly([1,2,3],&#39;s&#39;);l=list(1,&#39;中文 Print&#39;,[1 2 3]);print(%io(2),a,p,l)&nbsp;&nbsp;// Test 5 中文檔案輸出b=%pi;[fd,err]=mopen(&#39;chTestBig5.txt&#39;,&#39;w&#39;);mfprintf(fd,&#39;%s %f&#39;,&#39;中文檔案輸出入測試&#39;,b); mclose(fd);//Test 6 中文檔案輸入  [fd,err]=mopen(&#39;chTestBig5.txt&#39;,&#39;r&#39;);[n,c,d]=mfscanf(fd,&#39;%s %f&#39;) ; mclose(fd);// Test 7 Scicos&nbsp; text block 中 輸入中文 &nbsp;
		]]>
	</description>
	<content:encoded><![CDATA[
			<p><font color="#0000ff">Scilab 中文測試範例&nbsp; ：</font></p><p>&nbsp;&nbsp; LANG=zh_TW.UTF8<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test 1-7 成功<font color="#0000ff">(2007/07/03)</font><br />&nbsp;<br />&nbsp;&nbsp; LANG=zh_TW.BIG5<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Test2 失敗&nbsp;&nbsp;&nbsp; ,其餘失敗 <font color="#0000ff">(2007/07/03)</font><br /><br />//<br />//Test1. 註解輸入測試<br />//<br />//Test2. 繪圖中文標示<br />//<br />x=[0:0.1:2*%pi]&#39;;<br />plot2d(x,sin(x),leg=&quot;正弦 sin(x)&quot;)<br />//<br />//Test3. 中文&nbsp; write<br />//<br />write(%io(2),&#39;中文 write&#39;)<br /><br />//<br />//Test4.. 中文&nbsp; Print<br />//<br />a=rand(3,3);p=poly([1,2,3],&#39;s&#39;);l=list(1,&#39;中文 Print&#39;,[1 2 3]);<br />print(%io(2),a,p,l)<br />&nbsp;&nbsp;<br />// Test 5 中文檔案輸出<br />b=%pi;<br />[fd,err]=mopen(&#39;chTestBig5.txt&#39;,&#39;w&#39;);<br />mfprintf(fd,&#39;%s %f&#39;,&#39;中文檔案輸出入測試&#39;,b); mclose(fd);<br /><br />//Test 6 中文檔案輸入  <br />[fd,err]=mopen(&#39;chTestBig5.txt&#39;,&#39;r&#39;);<br />[n,c,d]=mfscanf(fd,&#39;%s %f&#39;) ; mclose(fd);</p><p>// Test 7 Scicos&nbsp; text block 中 輸入中文 &nbsp;</p>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3524817.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3524817.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Mon, 25 Jun 2007 01:26:38 +0800</pubDate>
</item>
<item>
	<title>待進行之工作</title>
	<description><![CDATA[
			
    中文選單 
     編輯器 SciPad 輸入中文 
     write , print 可輸出中文字串 
    繪圖可標示中文 
    Scicos 方塊圖可加中文標示 
 whatis.htm 檔轉格式 , (寫一 Perl 程序自動轉換）
 TCLHelp 自動產生 Big5 charset （參考 Windows 版修改）



----------------------------------------------------------------'

新段落


 ADE 中文 Scilab
 Scilab-GTK
超連結


粗體       斜體    下線      刪除  


   藍色
   紅色 
   藍紫
   朱黃



  編號 1
  編號 2 



  條列 a
  條列 b



 文章靠左  

文章   
 
文章置中

文章
 

 文章靠右

文章 
 



  縮排縮排縮排縮排縮排縮排縮排縮排
  排縮排縮排縮排排縮排 





		]]>
	</description>
	<content:encoded><![CDATA[
			<ol><br />
  <li>  <strike>中文選單</strike> </li><br />
  <li> <strike>  編輯器 SciPad 輸入中文</strike> </li><br />
  <li> <strike>  write , print 可輸出中文字串</strike> </li><br />
 <li> <strike>  繪圖可標示中文</strike> </li><br />
 <li> <strike>  Scicos 方塊圖可加中文標示</strike> </li><br />
 <li>whatis.htm 檔轉格式 , (寫一 Perl 程序自動轉換）</li><br />
 <li>TCLHelp 自動產生 Big5 charset （參考 Windows 版修改）</li><br />
</ol><br />
<br />
<br />
----------------------------------------------------------------'<br />
<p><br />
新段落<br />
</p><br />
<br />
 <a http://science.openfoundry.org/ade/scilab/>ADE 中文 Scilab</a><br />
 <a href="http://cermics.enpc.fr/~jpc/scilab/site/Scilab-Gtk/Scilab-Gtk/index.htm">Scilab-GTK</a><br />
<a href="http://abc/def.html">超連結</a><br />
</p><br />
<p><br />
<strong>粗體</strong>      <em> 斜體</em>    <u>下線</u>      <strike>刪除</strike>  <br />
</p><br />
<p><br />
   <font color="#0000ff">藍色</font><br />
   <font color="#ff0000">紅色 </font><br />
   <font color="#800080">藍紫</font><br />
   <font color="#ff6600">朱黃</font><br />
</p><br />
<br />
<ol><br />
  <li>編號 1<br /></li><br />
  <li>編號 2 <br /></li><br />
</ol><br />
<br />
<ul><br />
  <li>條列 a</li><br />
  <li>條列 b</li><br />
</ul><br />
<br />
<br />
<p align="left"> 文章靠左  <br />
<br />
文章 </p>  <br />
 <p align="center"><br />
文章置中<br />
<br />
文章<br />
 </p><br />
<br />
<p align="right"> 文章靠右<br />
<br />
文章 <br />
 </p><br />
<br />
<br />
<blockquote><br />
  <p>縮排縮排縮排縮排縮排縮排縮排縮排</p><br />
  <p>排縮排縮排縮排排縮排 </p><br />
</blockquote><br />
<br />
<br />
<br />

		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3524805.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3524805.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Sun, 24 Jun 2007 21:00:52 +0800</pubDate>
</item>
<item>
	<title>Scilab 架構(Fortran,C 函數）</title>
	<description><![CDATA[
			Scilab 之核心為 次目錄  routines 內之 Fortran 和 C 之程式庫。這裡先將內部之次目錄依照功能先分類，日後可能選擇性的編譯其中一部分.。另外 Scilab 5 採用 Java , 與 GTK 走向不同，有必要了解那些可以繼續沿用。那些必須放棄。


Scilab 語言解譯器

 system       解譯器
 system2     矩陣結構
 fileio           檔案系統 

通用介面

  console      終端通用介面
  os_specific  與作業系統相關動態連結通用函數
  graphics     圖形通用介面
  intersci     sci 和 C 之資料介面
  interf       數值函數介面
  tclsci       TCL/TK 與 Scilab 之界面
  dld          動態連結 (Unix Only)
  menusX:      Scilab 通用 menus 內涵
              GTK , Windows , X-Windows  三個具體設計
 
圖形介面 ：
  gtksci:    gtk 和 sci 之介面
  gzvt2:    圖形 console

數學環境
  int: 基本數學運算
  arpack
  lapack : 線性代數程式庫
  blas
  calelm       基礎數學函數，特殊函數
  dcd: 累積分佈
  integ: 及常微分
  maxplus : 線性代數
  optim: 最佳化
  default: 使用者設定函數之內定函數
  qsort: 重排
  randlib: 亂數產生
  sparse: 稀疏矩陣

 control: 控制
 slicos : 控制
 signal: 訊號處理



不易分類 ：
 windools: Windows 上特定函數
 gd :  圖形程式庫


不再使用的部份 ：
  f2c :  fortran 轉 C
  X11: 
  xsci: 
  wsci: 
  gtk1:



		]]>
	</description>
	<content:encoded><![CDATA[
			Scilab 之核心為 次目錄  routines 內之 Fortran 和 C 之程式庫。這裡先將內部之次目錄依照功能先分類，日後可能選擇性的編譯其中一部分.。另外 Scilab 5 採用 Java , 與 GTK 走向不同，有必要了解那些可以繼續沿用。那些必須放棄。<br />
<br />
<br />
Scilab 語言解譯器<br />
<br />
 system       解譯器<br />
 system2     矩陣結構<br />
 fileio           檔案系統 <br />
<br />
通用介面<br />
<br />
  console      終端通用介面<br />
  os_specific  與作業系統相關動態連結通用函數<br />
  graphics     圖形通用介面<br />
  intersci     sci 和 C 之資料介面<br />
  interf       數值函數介面<br />
  tclsci       TCL/TK 與 Scilab 之界面<br />
  dld          動態連結 (Unix Only)<br />
  menusX:      Scilab 通用 menus 內涵<br />
              GTK , Windows , X-Windows  三個具體設計<br />
 <br />
圖形介面 ：<br />
  gtksci:    gtk 和 sci 之介面<br />
  gzvt2:    圖形 console<br />
<br />
數學環境<br />
  int: 基本數學運算<br />
  arpack<br />
  lapack : 線性代數程式庫<br />
  blas<br />
  calelm       基礎數學函數，特殊函數<br />
  dcd: 累積分佈<br />
  integ: 及常微分<br />
  maxplus : 線性代數<br />
  optim: 最佳化<br />
  default: 使用者設定函數之內定函數<br />
  qsort: 重排<br />
  randlib: 亂數產生<br />
  sparse: 稀疏矩陣<br />
<br />
 control: 控制<br />
 slicos : 控制<br />
 signal: 訊號處理<br />
<br />
<br />
<br />
不易分類 ：<br />
 windools: Windows 上特定函數<br />
 gd :  圖形程式庫<br />
<br />
<br />
不再使用的部份 ：<br />
  f2c :  fortran 轉 C<br />
  X11: <br />
  xsci: <br />
  wsci: <br />
  gtk1:<br />
<br />
<br />

		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3522433.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3522433.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Sun, 24 Jun 2007 15:31:42 +0800</pubDate>
</item>
<item>
	<title>TCL/TK 及 Scipad 之中文問題</title>
	<description><![CDATA[
			ADE 中文 Scilab&nbsp; 在 Linux 版使用 ScilabGTK 為基礎，並且使用 TCL/TK 8.5a 版但還是有中文輸入輸出問題 （與 Scilab 無關）。 &nbsp;安裝 TCL/TK 8.5a 後， 編輯器 SciPad 還是無法輸入中文 （不顯現） （ 位於 &quot;tcl/scipadsources/commonbindings.tcl&quot; 指令 &nbsp; &nbsp; &nbsp; bind Text &lt;KeyPress&gt; &nbsp;{if {{%A} != {{}}} {puttext %W %A}}  要改為&nbsp; &nbsp; &nbsp; &nbsp; bind Text &lt;KeyPress&gt; &nbsp;{ puttext %W %A} 中文才能顯示。   已回報 Scilab 討論群&nbsp;選擇文字之後再按 &lt;CTL+C&gt; 會清空選擇範圍位於 &quot;tcl/scipadsources/inputtext.tcl&quot; 指令&nbsp;&nbsp;&nbsp; if {[gettaselind $w single] != &quot;&quot;} {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $w delete sel.first sel.last&nbsp;&nbsp;&nbsp; }要刪除。
		]]>
	</description>
	<content:encoded><![CDATA[
			<p><a href="http://science.openfoundry.org/ade/scilab/">ADE 中文 Scilab&nbsp; </a>在 Linux 版使用 <a href="http://cermics.enpc.fr/~jpc/scilab/site/Scilab-Gtk/Scilab-Gtk/index.htm">ScilabGTK</a> 為基礎，並且使用 TCL/TK 8.5a 版但還是有中文輸入輸出問題 （與 Scilab 無關）。 </p><p>&nbsp;</p><ol><li>安裝 TCL/TK 8.5a 後， 編輯器 SciPad 還是無法輸入中文 （不顯現） <br /><blockquote>（ 位於 &quot;tcl/scipadsources/commonbindings.tcl&quot; 指令<br /></blockquote><blockquote> &nbsp; &nbsp; &nbsp; bind Text &lt;KeyPress&gt; &nbsp;{if {{%A} != {{}}} {puttext %W %A}} <br /> 要改為</blockquote><blockquote>&nbsp; &nbsp; &nbsp; &nbsp; bind Text &lt;KeyPress&gt; &nbsp;{ puttext %W %A} </blockquote><blockquote>中文才能顯示。</blockquote>   <blockquote>已回報<a href="http://groups.google.com/group/comp.soft-sys.math.scilab/browse_thread/thread/3bd08f2cc8a6ce38/0f42b4fe255a47f9#0f42b4fe255a47f9"> Scilab 討論群&nbsp;</a></blockquote></li><li>選擇文字之後再按 &lt;CTL+C&gt; 會清空選擇範圍<br />位於 &quot;tcl/scipadsources/inputtext.tcl&quot; 指令<blockquote>&nbsp;&nbsp;&nbsp; if {[gettaselind $w single] != &quot;&quot;} {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $w delete sel.first sel.last<br />&nbsp;&nbsp;&nbsp; }<br /></blockquote>要刪除。</li></ol>
		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3495861.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3495861.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Tue, 19 Jun 2007 19:36:58 +0800</pubDate>
</item>
<item>
	<title>中文 Scilab 所需之GKT2 軟體環境</title>
	<description><![CDATA[
			在 Linux 上建立 中文 Scilab 須要的 GTK 軟體還境較嚴格，必須系統比必須已有 glib,pango, cairo,gtk+2, libgtkhtml,vte 程式庫 否則必須下載軟體自行編譯
 
 
----------------------------------------------------------------------
CPPFLAGS="-I/usr/local/include"
LDFLAGS="-L/usr/local/lib"
LD_LIBRARY_PATH="/usr/local/lib" 
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH

cd dependencies
tar xvfz glib-2.12.12.tar.gz
 cd glib-2*
./configure
make
make install
cd ..

tar xvfz pango-1.16.4.tar.gz
cd pango-1.16.4
./configure
make
make install
cd ..


tar xvfz cairo-1.2.6.tar.gz
cd cairo-1.2.6
./configure
make install
cd ..
cd ..

tar tar xvfz gtk+-2.10.13.tar.gz
cd gtk+-2*
./configure
make
make install
cd ..

tar tar xvfz libgtkhtml-2.11.0.tar.gz
cd libgtkhtml-2.11.0
./configure
make
make install
cd ..


tar tar xvfz vte-0.16.5.tar.gz
cd vte-0.16.5
./configure
make
make install
cd ..

		]]>
	</description>
	<content:encoded><![CDATA[
			在 Linux 上建立 中文 Scilab 須要的 GTK 軟體還境較嚴格，必須系統比必須已有 glib,pango, cairo,gtk+2, libgtkhtml,vte 程式庫 否則必須下載軟體自行編譯<br />
 <br />
 <br />
----------------------------------------------------------------------<br />
CPPFLAGS="-I/usr/local/include"<br />
LDFLAGS="-L/usr/local/lib"<br />
LD_LIBRARY_PATH="/usr/local/lib" <br />
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"<br />
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH LD_LIBRARY_PATH<br />
<br />
cd dependencies<br />
tar xvfz glib-2.12.12.tar.gz<br />
 cd glib-2*<br />
./configure<br />
make<br />
make install<br />
cd ..<br />
<br />
tar xvfz pango-1.16.4.tar.gz<br />
cd pango-1.16.4<br />
./configure<br />
make<br />
make install<br />
cd ..<br />
<br />
<br />
tar xvfz cairo-1.2.6.tar.gz<br />
cd cairo-1.2.6<br />
./configure<br />
make install<br />
cd ..<br />
cd ..<br />
<br />
tar tar xvfz gtk+-2.10.13.tar.gz<br />
cd gtk+-2*<br />
./configure<br />
make<br />
make install<br />
cd ..<br />
<br />
tar tar xvfz libgtkhtml-2.11.0.tar.gz<br />
cd libgtkhtml-2.11.0<br />
./configure<br />
make<br />
make install<br />
cd ..<br />
<br />
<br />
tar tar xvfz vte-0.16.5.tar.gz<br />
cd vte-0.16.5<br />
./configure<br />
make<br />
make install<br />
cd ..<br />

		
		]]>
	</content:encoded>
	<link>http://blog.roodo.com/yunglee/archives/3489429.html</link>
	<guid>http://blog.roodo.com/yunglee/archives/3489429.html</guid>
	<category>中文 Scilab 開發</category>
	<pubDate>Mon, 18 Jun 2007 17:04:29 +0800</pubDate>
</item>
</channel>
</rss>