Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
khumnath committed Nov 26, 2023
1 parent 3e3696d commit 2e5e589
Show file tree
Hide file tree
Showing 15 changed files with 38,490 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*~
build*/
.*
!.git*
.git/
tags
astyle.sh
cscope.*
scripts*/
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.8)

project(fcitx5-table-lekhika VERSION 1.0.0)

find_package(ECM 1.0 REQUIRED)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

include(FeatureSummary)
include(GNUInstallDirs)
include(ECMUninstallTarget)

find_package(Gettext REQUIRED)
find_package(LibIMETable REQUIRED)
find_package(Fcitx5Core REQUIRED)

add_subdirectory(icons)
add_subdirectory(tables)

feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
3 changes: 3 additions & 0 deletions Messages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

gen_pot appdata:desktop fcitx5-table-lekhika po .
29 changes: 29 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
fcitx5-table-lekhika => nepali input method for fcitx

##Description
==============
Lekhika (https://khumnath.com.np/posts/lekhika) table for fcitx

##How to install
==============
mkdir build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr

### feature
==============

- [x] basic nepali typing
- [x] improved suggestion words
- [ ] remove unneeded words
- [ ] add more dictionary
- [ ] and more to do as i experiment :smile:

### problems
==============

some autocorrect words may disturb typing i am still improving.

### contribution
==============

contributions are welcome. dictionary and other improvements can be made as find difficulties when typing.
11 changes: 11 additions & 0 deletions icons/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set(ICON48
fcitx5-lekhika.png)

install(FILES
${ICON48}
DESTINATION share/icons/hicolor/48x48/apps)

foreach(icon ${ICON48})
string(REPLACE "fcitx5-" "" icon_new ${icon})
install(FILES ${icon} RENAME ${icon_new} DESTINATION share/fcitx/imicon)
endforeach()
Binary file added icons/fcitx5-lekhika.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added po/CMakeLists.txt
Empty file.
3 changes: 3 additions & 0 deletions po/LINGUAS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ne
hi
en
21 changes: 21 additions & 0 deletions po/en.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Weng Xuetian <[email protected]>, 2013.
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-26 09:10-0800\n"
"PO-Revision-Date: 2013-04-29 22:49-0400\n"
"Last-Translator: khumnath <[email protected]>\n"
"Language-Team: Fcitx Dev <[email protected]>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Lokalize 1.5\n"

#: tables/lekhika.conf.in:4
msgid "lekhika"
msgstr "Lekhika"
20 changes: 20 additions & 0 deletions po/fcitx5-table-lekhika.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the fcitx5-table-lekhika package.
#
msgid ""
msgstr ""
"Project-Id-Version: fcitx5-table-lekhika\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-26 09:13+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: LANG\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: tables/lekhika.conf.in:4
msgid "lekhika"
msgstr ""
22 changes: 22 additions & 0 deletions po/hi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Weng Xuetian <[email protected]>, 2013.
# khumnath <[email protected]>, 2023.
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-26 09:10-0800\n"
"PO-Revision-Date: 2013-04-29 22:49-0400\n"
"Last-Translator: khumnath <[email protected]>\n"
"Language-Team: Fcitx Dev <[email protected]>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Lokalize 1.5\n"

#: tables/lekhika.conf.in:4
msgid "lekhika"
msgstr "लेखिका"
22 changes: 22 additions & 0 deletions po/ne.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Weng Xuetian <[email protected]>, 2013.
# khumnath <[email protected]>, 2023.
msgid ""
msgstr ""
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2023-11-26 09:10-0800\n"
"PO-Revision-Date: 2013-04-29 22:49-0400\n"
"Last-Translator: khumnath <[email protected]>\n"
"Language-Team: Fcitx Dev <[email protected]>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Lokalize 1.5\n"

#: tables/lekhika.conf.in:4
msgid "lekhika"
msgstr "लेखिका"
20 changes: 20 additions & 0 deletions tables/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
set(TABLE_NAME
lekhika
)

set(MB_FILE)
set(CONF_FILE)

foreach(table ${TABLE_NAME})
fcitx5_translate_desktop_file("${table}.conf.in" "${table}.conf")
add_custom_command(OUTPUT "${table}.main.dict"
DEPENDS "${table}.txt"
COMMAND LibIME::tabledict ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${table}.txt"
"${CMAKE_CURRENT_BINARY_DIR}/${table}.main.dict")
set(MB_FILE ${MB_FILE} "${CMAKE_CURRENT_BINARY_DIR}/${table}.main.dict")
set(CONF_FILE ${CONF_FILE} "${CMAKE_CURRENT_BINARY_DIR}/${table}.conf")
endforeach()
add_custom_target(table_data ALL DEPENDS ${MB_FILE})

install(FILES ${CONF_FILE} DESTINATION "${FCITX_INSTALL_PKGDATADIR}/inputmethod")
install(FILES ${MB_FILE} DESTINATION "${FCITX_INSTALL_PKGDATADIR}/table")
26 changes: 26 additions & 0 deletions tables/lekhika.conf.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[InputMethod]
Name=लेखिका- nepali input fcitx5 table
Icon=fcitx5-lekhika
Label=lekhika
LangCode=ne
Addon=table
Configurable=True

[Table]
IconName=lekhika-ne
File=table/lekhika.main.dict
OrderPolicy=No
AutoSelect=True
AutoSelectLength=-1
NoMatchAutoSelectLength=1
Learning=False
ExactMatch=False
UseAlternativePageKey=True
FirstCandidateAsPreedit=True
CommitInvalidSegment=True

[Table/PrevPage]
0=Page_Up

[Table/NextPage]
0=Page_Down
Loading

0 comments on commit 2e5e589

Please sign in to comment.