Skip to content

Commit

Permalink
Miscellaneous small changes (#6)
Browse files Browse the repository at this point in the history
* Add hindi
* Update govarnam (no significant change)
* Show message on init
* Make ShortcutRecorder dependency as submodule for easier building
* Link to install instructions
  • Loading branch information
subins2000 authored Nov 14, 2021
1 parent 0abbc97 commit d428cce
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ Resources that helped in making IME on macOS (ordered by most important to the l

Download `VarnamIME.pkg` installer from Releases. Double click to open the installer. You might need to explicitly allow installer to run from security settings.

The installation instructions is same as LipikaIME's. See it here: https://github.com/ratreya/lipika-ime/wiki#installation

## Building

* Make sure XCode is installed
* Clone
* Clone and do `git submodule update --init`
* `cd Installation && ./build`
* Run the newly built `VarnamIME.pkg` installer

Expand Down
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[submodule "GoVarnam/govarnam"]
path = GoVarnam/govarnam
url = git@github.com:varnamproject/govarnam.git
url = https://github.com/varnamproject/govarnam.git
[submodule "GoVarnam/schemes"]
path = GoVarnam/schemes
url = https://github.com/varnamproject/schemes.git
[submodule "ShortcutRecorder"]
path = ShortcutRecorder
url = https://github.com/Kentzo/ShortcutRecorder.git
2 changes: 1 addition & 1 deletion GoVarnam/govarnam
Submodule govarnam updated 1 files
+8 −5 govarnam/learn.go
2 changes: 1 addition & 1 deletion GoVarnam/schemes
2 changes: 1 addition & 1 deletion GoVarnam/update_assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ def copyScheme(schemeID):
json.dump(packsInfo, f, ensure_ascii=False)

# For now just Malayalam, Kannada for govarnam-macOS
for schemeID in ["ml", "kn"]:
for schemeID in ["ml", "kn", "hi"]:
copyScheme(schemeID)
3 changes: 3 additions & 0 deletions Input Source/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
exit(0)
}
}
print("Initing...")

guard let connectionName = Bundle.main.infoDictionary?["InputMethodConnectionName"] as? String else {
fatalError("Unable to get Connection Name from Info dictionary!")
Expand All @@ -64,6 +65,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
// Use kIMKSingleRowSteppingCandidatePanel for horizontal
candidatesWindow = IMKCandidates(server: server, panelType: kIMKSingleColumnScrollingCandidatePanel)
candidatesWindow.setAttributes([IMKCandidatesSendServerKeyEventFirst: NSNumber(booleanLiteral: true)])

print("Inited")
}

func applicationWillTerminate(_ aNotification: Notification) {
Expand Down
4 changes: 2 additions & 2 deletions Installation/build
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ build_varnam_ime() {
}

build_shortcut_recorder() {
xcodebuild -project ../../ShortcutRecorder/ShortcutRecorder.xcodeproj -scheme "ShortcutRecorder.framework" -configuration Release clean build || exit 1
xcodebuild -project ../ShortcutRecorder/ShortcutRecorder.xcodeproj -scheme "ShortcutRecorder.framework" -configuration Release clean build || exit 1
rm -rf ../Application/ShortcutRecorder.framework
cp -R ../../ShortcutRecorder/build/Release/ShortcutRecorder.framework ../Application/ || exit 1
cp -R ../ShortcutRecorder/build/Release/ShortcutRecorder.framework ../Application/ || exit 1
}

build_varnam_app() {
Expand Down
1 change: 1 addition & 0 deletions ShortcutRecorder
Submodule ShortcutRecorder added at 07b065

0 comments on commit d428cce

Please sign in to comment.