<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gcin &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/gcin/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Thu, 14 Mar 2024 01:38:33 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</title>
		<link>https://blog.richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/</link>
					<comments>https://blog.richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 05 Apr 2019 15:43:23 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gcin]]></category>
		<category><![CDATA[gtk]]></category>
		<category><![CDATA[hime]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[PyCharm]]></category>
		<category><![CDATA[中文輸入]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=3980</guid>

					<description><![CDATA[<p>這個故事有點長，先講結論好了， hime 似乎會影響某些 GTK 程式運作 我常用的是 Kubuntu 的 D [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/">Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>這個故事有點長，先講結論好了， hime 似乎會影響某些 GTK 程式運作</p>



<span id="more-3980"></span>



<p>我常用的是 Kubuntu 的 Desktop （題外話，最近有些 KDE 18.04 似乎memory leak 的問題，好像沒人修）<br />之前要在 Kubuntu 18.04 裝個中文輸入法，反正試了 gcin/fcitx/hime 等等，但是怎麼裝都裝不起來，因為跑 im-config 都沒有反應，後來不知道怎麼弄的，只有 hime 會動，因為會動還不知道原因就算了，就放在那邊</p>



<p>最近因為有寫 python 程式，有用 pycharm-community 一陣子<br />上個月的事，好像 pycharm-community 不知道是不是更新了什麼套件，然後突然就無法正確的顯示在螢幕上，如果這邊講不能啟動不太正確，因為是有啟動的<br />試過重灌，拿關鍵字餵狗，或是 Download .gz 下來直接執行都找不到問題<br /><br />百般無奈可是還是要寫 python 程式，所以就裝了另一套 Kubuntu 18.10 再裝 pycharm 就正常了</p>



<p>今天因為要用中文查點東西，覺得切來切去有點麻煩，就在 Kubuntu 18.10 下裝了 hime ，pycharm 它又不會顯示了</p>



<p>這下犯人就很明顯了，所以丟了關鍵字餵狗，就有得到正確的訊息，犯人就是 hime ，移除 hime 就好了(ref. <a href="https://www.ptt.cc/bbs/Linux/M.1540316842.A.0E8.html" target="_blank" rel="noopener">Re: [問題] Ubuntu有的程式點開啟/另存會卡住</a>)</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>GLib-GObject-WARNING **: cannot register existing type &#8216;GtkIMContext&#8217; GLib-CRITICAL **: g_once_init_leave: assertion &#8216;result != 0&#8217; failed GLib-GObject-CRITICAL **: g_type_register_dynamic: assertion &#8216;parent_type &gt; 0&#8217; failed GLib-GObject-CRITICAL **: g_object_new_with_properties: assertion &#8216;G_TYPE_IS_OBJECT (object_type)&#8217; failed </p>
</blockquote>



<p>至於安裝了 gcin 之後再 im-config 設定 gcin 為輸入法就正常了，我也不知道怎麼一回事</p>



<p> gcin 預設是沒有我自己改的 dayi4 + 3 碼好用，所以在每個人都要有一個順手的 dayi 碼表格外，我使用自己建的<br />可以到 github 下載我用的 <a href="https://github.com/richliu/PIME/blob/bde95c3b171911bafbed24f144daa80954f409c1/python/cinbase/cin/dayi4.cin" target="_blank" rel="noopener">dayi4.cin</a>，下載完之後放到 /usr/share/gcin/table</p>



<pre class="wp-block-preformatted">cd /usr/share/gcin/table
wget https://raw.githubusercontent.com/richliu/PIME/bde95c3b171911bafbed24f144daa80954f409c1/python/cinbase/cin/dayi4.cin</pre>



<p>然後將以下這二行對調，對調完如下</p>



<pre class="wp-block-preformatted">%ename DaYi3:en;大易三码:zh_CN;大易三碼:zh; 
%cname 大易三碼</pre>



<p>移除以下這一部份，這是 OXIM 的設定，gcin 不能用 (ref. <a href="https://hyperrate.com/thread.php?tid=27625" target="_blank" rel="noopener">提供可在 gcin 使用下的大易輸入法【四碼加三碼】總共13053字！</a>)</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p> %setting begin<br />        AutoCompose &#8220;Yes&#8221;<br />        AutoUpChar &#8220;Yes&#8221;<br />        AutoFullUp &#8220;Yes&#8221;<br />        SpaceAutoUp &#8220;No&#8221;<br />        SelectKeyShift &#8220;Yes&#8221;<br />        SpaceIgnore &#8220;Yes&#8221;<br />        SpaceReset &#8220;Yes&#8221;<br />        WildEnable &#8220;Yes&#8221;<br />        EndKey &#8220;No&#8221;<br />        DisableSelectList &#8220;None&#8221;<br />%setting end </p>
</blockquote>



<p>然後再執行</p>



<pre class="wp-block-preformatted">gcin2tab dayi4.cin
mv dayi4.gtab dayi3.gtab</pre>



<p>重新啟動 gcin 後，就可以在 gcin 底下用大易三碼的版本<br /><br />至於 KDE 下程式不吃中文<s>和常常不能顯示拆碼視窗就算了</s><br />我在 Linux 下沒有很常用這個功能<br /><br />目前碰到只有 telegram 不支援中文</p>



<h4 class="wp-block-heading">KDE 安裝 gcin</h4>



<p>請用 gcin 官網的方式設定[ref:<a aria-label="Ubuntu 20.04/18.04/16.04/ 安裝最新的 gcin 中文輸入的完整步驟 (opens in a new tab)" href="https://hyperrate.com/thread.php?tid=28044" target="_blank" rel="noreferrer noopener">Ubuntu 20.04/18.04/16.04/ 安裝最新的 gcin 中文輸入的完整步驟</a>]</p>



<pre class="wp-block-preformatted">如果是用 Xfce or KDE，需要執行&amp;設定 gcin-tools→外觀設定→面板狀態→GTK雙圖示</pre>



<p>這樣至少可以顯示拆碼視窗</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/">Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2019/04/05/3980/kubuntu%e5%9f%b7%e8%a1%8cgtk-%e7%a8%8b%e5%bc%8f%e7%9a%84%e6%80%aa%e5%95%8f%e9%a1%8cgcin%e6%94%b9dayi%e4%b8%89%e7%a2%bc%e8%a1%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
