Giter Site home page Giter Site logo

Comments (4)

hsieh123 avatar hsieh123 commented on July 23, 2024 1

謝謝你,我找了一個下午,為了將新鍵盤layout加到你說的鍵盤型式選單(應是fragment_dialog_keyboard),但始終找不到怎麼加入自定義的lime_colemak.xml到db的keyboard table裡,所以在getKeyboardObj()的時候cursor會找不到我自己定義的keyboard 而出錯(因為根本沒加入)。 我最後放棄(還有更重要的事等著我做),用最下流的方法:把lime.xml內容直接替換成lime_colemak.xml!還是謝謝你的建議啊!

最後附上colemak layout,有興趣的人可以下載後改名為lime.xml,放到LimeStudio/app/src/main/res/xml/ , 記得在APP設定內把數字列英文鍵盤取消(因為我只有畫4行的)
lime_colemak.txt

from sweetlime.

plateaukao avatar plateaukao commented on July 23, 2024

@hsieh123
看起來還蠻有趣的。我其實也沒有開發 input method 的經驗,所以只是東改改西改改。
對於不同鍵盤的 layout,我找了一下,它們都設定在 LimeStudio/app/src/main/res/xml/ 下面,你可以先參考怎麼樣依照這些檔案生成 colemak 型式所需要的 layout;

然後再找一下這些 layout xml 被指定的地方,加上你新增的 layout 選項。
可能的地方會是 kobj.getEngkb() 或是找找 getKeyboardXMLID 被呼叫的地方。

from sweetlime.

plateaukao avatar plateaukao commented on July 23, 2024

當你利用匯入字根表,新增輸入法後,在萊姆輸入法 app 的畫面,可以點左上角的 三,點選你的無蝦米輸入法;它會跳出新的畫面讓你可以選擇你要的鍵盤型式。如果上面你有成功加入新鍵盤 layout 的話,就可以利用這方式去切換成 colemak layout。

from sweetlime.

plateaukao avatar plateaukao commented on July 23, 2024

原來是在 db 啊~ 那可能要用 tool 去修改一下 db :D
之後我有時間的話,再把你這個鍵盤 layout 也放進去囉,感謝~

from sweetlime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.