{"id":60,"date":"2014-01-16T23:04:38","date_gmt":"2014-01-16T14:04:38","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=60"},"modified":"2014-03-21T18:04:29","modified_gmt":"2014-03-21T09:04:29","slug":"sublime-text-%e3%82%92ubuntu%e3%81%a7%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82fcitx%e3%81%a7%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%85%a5%e5%8a%9b%e3%82%92%e5%8f%af%e8%83%bd%e3%81%ab%ef%bc%88","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=60","title":{"rendered":"Sublime Text \u3092Ubuntu\u3067\u4f7f\u3063\u3066\u307f\u305f\u3002Fcitx\u3067\u65e5\u672c\u8a9e\u5165\u529b\u3092\u53ef\u80fd\u306b\uff08\u7c21\u6613\u5bfe\u5fdc\uff09 debian\/Mint\u3067\u3082OK"},"content":{"rendered":"<p>\u8a71\u984c\u306eSublime Text\u3002\u3084\u3063\u3068\u4f7f\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002<br \/>\n\u4f7f\u3063\u3066\u307f\u305f\u306f\u3044\u3044\u304c\u3001\u65e5\u672c\u8a9e\u5165\u529b\u51fa\u6765\u306d\u30fc\u3058\u3083\u306d\u3047\u30fc\u304b\uff01\uff01 \u3068\u3044\u3046\u65b9\u306b Fcitx \u65e5\u672c\u8a9e\u5165\u529b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u8ffd\u8a18\uff09<br \/>\ndebian\/Mint \u3067\u3082\u540c\u3058\u65b9\u6cd5\u3067\u65e5\u672c\u8a9e\u5165\u529b\u304c\u53ef\u80fd\u3067\u3057\u305f\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089Ubuntu\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<p><a href=\"http:\/\/www.sublimetext.com\/3\">http:\/\/www.sublimetext.com\/3<\/a><\/p>\n<p>[bash]<br \/>\n$ sudo dpkg -i ~\/Downloads\/sublime-text_build-3059_amd64.deb<\/p>\n<p>[\/bash]<\/p>\n<p>\u521d\u671f\u8a2d\u5b9a\u3084\u3001\u30e1\u30cb\u30e5\u30fc\u306e\u65e5\u672c\u8a9e\u5316\u306f\u3042\u3061\u3053\u3061\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\n\u4eca\u56de\u306fFcitx\u3092\u5229\u7528\u3057\u305f\u65e5\u672c\u8a9e\u5165\u529b\u3092\u53ef\u80fd\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3059\u308b\u3002<\/p>\n<h3>\u65e5\u672c\u8a9e\u5165\u529b\u306e\u305f\u3081\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30b3\u30f3\u30d1\u30a4\u30eb<\/h3>\n<p>\u306a\u304b\u306a\u304b\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u304c\u306a\u304f\u3001\u4e2d\u56fd\u8a9e\u306e\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u5185\u5bb9\u3092<br \/>\n\u771f\u4f3c\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u5b8c\u74a7\u3067\u306f\u306a\u3044\u304c\u3001\u65e5\u672c\u8a9e\u5165\u529b\u304c\u53ef\u80fd\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u30fb\u300csublime_imfix.c\u300d\u3067\u30b0\u30b0\u3063\u3066<br \/>\nsublime_imfix.c \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/p>\n<p>\u30fb\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n<p>[bash]<br \/>\n$ gcc -shared -o libsublime-imfix.so sublime_imfix.c  `pkg-config &#8211;libs &#8211;cflags gtk+-2.0` -fPIC <\/p>\n<p>[\/bash]<\/p>\n<h4>\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f<\/h4>\n<p>\u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u591a\u5206\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ sudo apt-get install build-essential libgtk2.0-dev<br \/>\n[\/bash]<\/p>\n<h3>\u8d77\u52d5\u30d5\u30a1\u30a4\u30eb\u306e\u8abf\u6574<\/h3>\n<p>[bash]<br \/>\n$ sudo cp libsublime-imfix.so \/opt\/sublime_text\/<\/p>\n<p>$ nano \/usr\/bin\/subl<br \/>\n[\/bash]<\/p>\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u8ffd\u8a18<br \/>\n[diff mark=&#8221;2&#8243;]<br \/>\n#!\/bin\/sh<br \/>\n+ export LD_PRELOAD=\/opt\/sublime_text\/libsublime-imfix.so<br \/>\nexec \/opt\/sublime_text\/sublime_text &#8220;$@&#8221;<br \/>\n[\/diff]<\/p>\n<p>\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u8d77\u52d5\u3057\u305f\u6642\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046<\/p>\n<p>[bash]<br \/>\nsudo nano \/usr\/share\/applications\/sublime_text.desktop<br \/>\n[\/bash]<\/p>\n<p>\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u8abf\u6574<br \/>\n[diff]<br \/>\n[Desktop Entry]<br \/>\nVersion=1.0<br \/>\nType=Application<br \/>\nName=Sublime Text<br \/>\nGenericName=Text Editor<br \/>\nComment=Sophisticated text editor for code, markup and prose<br \/>\n-Exec=\/opt\/sublime_text\/sublime_text %F<br \/>\n+Exec=\/usr\/bin\/subl %F<br \/>\nTerminal=false<br \/>\nMimeType=text\/plain;<br \/>\nIcon=sublime-text<br \/>\nCategories=TextEditor;Development;<br \/>\nStartupNotify=true<br \/>\nActions=Window;Document;<\/p>\n<p>[Desktop Action Window]<br \/>\nName=New Window<br \/>\nExec=\/opt\/sublime_text\/sublime_text -n<br \/>\nOnlyShowIn=Unity;<\/p>\n<p>[\/diff]<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u3053\u308c\u3067\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u5165\u529b\u306f\u51fa\u6765\u306a\u3044\u304c\u3001IME\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001Sublime\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5de6\u4e0b\u8fba\u308a\u306bFcitx\u306e\u5909\u63db\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/sublime.png\"><img decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/sublime.png\" alt=\"sublime\" width=\"500\" class=\"alignnone size-medium wp-image-61\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/sublime.png 744w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/01\/sublime-300x265.png 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8a71\u984c\u306eSublime Text\u3002\u3084\u3063\u3068\u4f7f\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3002 \u4f7f\u3063\u3066\u307f\u305f\u306f\u3044\u3044\u304c\u3001\u65e5\u672c\u8a9e\u5165\u529b\u51fa\u6765\u306d\u30fc\u3058\u3083\u306d\u3047\u30fc\u304b\uff01\uff01 \u3068\u3044\u3046\u65b9\u306b Fcitx \u65e5\u672c\u8a9e\u5165\u529b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u8ffd\u8a18\uff09 debian\/Mint \u3067\u3082\u540c\u3058\u65b9\u6cd5\u3067\u65e5\u672c\u8a9e\u5165\u529b\u304c\u53ef\u80fd\u3067\u3057\u305f\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089Ubuntu\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 http:\/\/www.sublimetext.com\/3 [bash] $ sudo dpkg -i ~\/Downloads\/sublime-text_build-3059_amd64.deb [\/bash] \u521d\u671f\u8a2d\u5b9a\u3084\u3001\u30e1\u30cb\u30e5\u30fc\u306e\u65e5\u672c\u8a9e\u5316\u306f\u3042\u3061\u3053\u3061\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001 \u4eca\u56de\u306fFcitx\u3092\u5229\u7528\u3057\u305f\u65e5\u672c\u8a9e\u5165\u529b\u3092\u53ef\u80fd\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3059\u308b\u3002 \u65e5\u672c\u8a9e\u5165\u529b\u306e\u305f\u3081\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30fb\u30b3\u30f3\u30d1\u30a4\u30eb \u306a\u304b\u306a\u304b\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u304c\u306a\u304f\u3001\u4e2d\u56fd\u8a9e\u306e\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u5185\u5bb9\u3092 \u771f\u4f3c\u3057\u3066\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u5b8c\u74a7\u3067\u306f\u306a\u3044\u304c\u3001\u65e5\u672c\u8a9e\u5165\u529b\u304c\u53ef\u80fd\u306b\u306a\u3063\u305f\u3002 \u30fb\u300csublime_imfix.c\u300d\u3067\u30b0\u30b0\u3063\u3066 sublime_imfix.c \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 \u30fb\u30b3\u30f3\u30d1\u30a4\u30eb [bash] $ gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config &#8211;libs &#8211;cflags gtk+-2.0` -fPIC [\/bash] \u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f \u4ee5\u4e0b\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u591a\u5206\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 [bash] $ sudo apt-get install build-essential libgtk2.0-dev [\/bash] \u8d77\u52d5\u30d5\u30a1\u30a4\u30eb\u306e\u8abf\u6574 [bash] $ sudo cp libsublime-imfix.so \/opt\/sublime_text\/ $ nano \/usr\/bin\/subl [\/bash] \u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u8ffd\u8a18 [diff mark=&#8221;2&#8243;] #!\/bin\/sh + export LD_PRELOAD=\/opt\/sublime_text\/libsublime-imfix.so exec \/opt\/sublime_text\/sublime_text &#8220;$@&#8221; [\/diff] \u30e1\u30cb\u30e5\u30fc\u304b\u3089\u8d77\u52d5\u3057\u305f\u6642\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046 [bash] sudo nano \/usr\/share\/applications\/sublime_text.desktop [\/bash] \u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u8abf\u6574 [diff] [Desktop Entry] Version=1.0 Type=Application Name=Sublime Text GenericName=Text Editor Comment=Sophisticated text editor for code, markup and prose -Exec=\/opt\/sublime_text\/sublime_text %F +Exec=\/usr\/bin\/subl %F Terminal=false MimeType=text\/plain; Icon=sublime-text Categories=TextEditor;Development; StartupNotify=true Actions=Window;Document; [Desktop Action Window] Name=New Window Exec=\/opt\/sublime_text\/sublime_text -n OnlyShowIn=Unity; [\/diff] \u52d5\u4f5c\u78ba\u8a8d \u3053\u308c\u3067\u3001\u30a4\u30f3\u30e9\u30a4\u30f3\u5165\u529b\u306f\u51fa\u6765\u306a\u3044\u304c\u3001IME\u3092\u8d77\u52d5\u3059\u308b\u3068\u3001Sublime\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5de6\u4e0b\u8fba\u308a\u306bFcitx\u306e\u5909\u63db\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":402,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[30,29,19],"class_list":{"0":"post-60","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-3","8":"tag-fcitx","9":"tag-sublime","10":"tag-ubuntu"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=60"}],"version-history":[{"count":12,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":614,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/60\/revisions\/614"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/402"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}