Ubuntu 시스템 sublime 3 중국어 입력
본문 이 완전히 복 제 된 위의 문장
Ubuntu sublime 3 설치 및 중국어 입력 문제 해결
설치
우선 원본 추가:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
그리고 업데이트:
sudo apt-get update
그리고 설치:
sudo apt-get install sublime-text-installer
2 중국어 입력 문제 해결
우선 필요 한 패 키 지 를 설치 합 니 다.
sudo apt-get install build-essential libgtk2.0-dev
그리고 sublime 라 는 이름 을 만 듭 니 다.imfix. c 의 c 파일, 내용 은 다음 과 같 습 니 다.
#include <gtk/gtkimcontext.h>
void gtk_im_context_set_client_window(GtkIMContext *context, GdkWindow *window)
{
GtkIMContextClass *klass;
g_return_if_fail(GTK_IS_IM_CONTEXT(context));
klass = GTK_IM_CONTEXT_GET_CLASS(context);
if (klass->set_client_window)
klass->set_client_window(context, window);
g_object_set_data(G_OBJECT(context), "window",window);
if(!GDK_IS_WINDOW(window))
return;
int width = gdk_window_get_width(window);
int height = gdk_window_get_height(window);
if(width != 0 && height != 0)
gtk_im_context_focus_in(context);
}
그리고 컴 파일:
gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC
그리고 libsublime - imfix. so 를 sublime 로 복사 합 니 다.텍스트 가 있 는 폴 더:
sudo mv libsublime-imfix.so /opt/sublime_text/
수정 / usr / bin / suble 파일:
sudo vim /usr/bin/subl
내용 은 다음 과 같다.
LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text "$@"
그리고 디 렉 터 리 / usr / share / applications / 에 들 어가 서 파일 sublime - text. desktop 을 수정 합 니 다.
sudo vim /usr/share/applications/sublime-text.deskto
Exec = / opt / sublimetext/sublime_text% F 변경:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text %F"
Exec = / opt / sublimetext/sublime_text – n 변경:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text -n"
Exec = / opt / sublimetext/sublime_text –command new_file 변경:
Exec=bash -c "LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so exec /opt/sublime_text/sublime_text --command new_file"
같은 장 / opt / ublimetext 경로 의 sublimetext. desktop 은 같은 방식 으로 수정 합 니 다.
3 등 폭 글꼴 설정
기본 설정 메뉴 Settings - User: {
“font_face”: “Courier New”, “font_size”: 14.0
}
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Ubuntu 22.04에 캐디 설치 - HostnExtra이 기사에서는 Ubuntu 22.04에 Caddy를 설치하는 방법을 설명합니다. 이 문서는 설치 프로세스를 안내하고 웹 사이트를 호스팅합니다. Caddy 웹 서버는 Go로 작성된 오픈 소스 웹 서버입니다. Ubunt...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.