Skip to content

Commit 0414d35

Browse files
committed
refactored to add settings and added new transliteration rules
1 parent d3ce6d9 commit 0414d35

File tree

9 files changed

+760
-554
lines changed

9 files changed

+760
-554
lines changed

CMakeLists.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ install(
5252

5353
# Install input method descriptor
5454
install(
55-
FILES config/fcitx5lekhika.inputmethod.intry.desc
55+
FILES config/fcitx5lekhika.conf
5656
DESTINATION "${FCITX_INSTALL_PKGDATADIR}/inputmethod"
57-
RENAME fcitx5lekhika.conf
5857
)
5958

6059
# Install runtime data files
@@ -68,3 +67,15 @@ install(
6867
# Add icons subdirectory for additional resources
6968
add_subdirectory(icons)
7069
install(CODE "message(STATUS \"Icons installing\")")
70+
71+
# Add configuration files for uninstall target
72+
configure_file(
73+
"${CMAKE_SOURCE_DIR}/cmake_uninstall.cmake.in"
74+
"${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
75+
IMMEDIATE @ONLY
76+
)
77+
78+
add_custom_target(uninstall
79+
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake"
80+
)
81+

bump_version.sh

100644100755
File mode changed.

cmake_uninstall.cmake.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
2+
message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
3+
endif()
4+
5+
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
6+
string(REGEX REPLACE "\n" ";" files "${files}")
7+
8+
foreach(file ${files})
9+
message(STATUS "Uninstalling ${file}")
10+
if(EXISTS "${file}")
11+
file(REMOVE "${file}")
12+
else()
13+
message(STATUS "File ${file} does not exist.")
14+
endif()
15+
endforeach()

config/fcitx5lekhika.addon.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Comment=Nepali input method based on transliteration
55
Category=InputMethod
66
Library=fcitx5lekhika
77
Type=SharedLibrary
8-
Configurable=False
8+
Configurable=True
99
Enabled=True

config/fcitx5lekhika.inputmethod.intry.desc renamed to config/fcitx5lekhika.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ LangCode=ne
55
Addon=fcitx5lekhika
66
Icon=lekhika
77
label=लेखिका
8-
Configurable=False
8+
Configurable=True
99

data/mapping.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,3 @@
105105
"xa" = "क्ष"
106106
"qa" = ""
107107
"za" = ""
108-
"ncha" = "ञ्च"
109-
"nTa" = "ण्ट"
110-
"nDa" = "ण्ड"

0 commit comments

Comments
 (0)