This commit is contained in:
2025-07-17 19:56:22 -06:00
commit 66f8f46e69
20 changed files with 3433 additions and 0 deletions

26
tables/CMakeLists.txt Normal file
View File

@@ -0,0 +1,26 @@
set(TABLE_NAMES
sydmath/sydmath
)
set(MB_FILES)
set(CONF_FILES)
foreach(table ${TABLE_NAMES})
get_filename_component(table_name "${table}" NAME)
fcitx5_translate_desktop_file("${table}.conf.in" "${table_name}.conf")
set(mb_file "${CMAKE_CURRENT_BINARY_DIR}/${table_name}.main.dict")
set(conf_file "${CMAKE_CURRENT_BINARY_DIR}/${table_name}.conf")
add_custom_command(OUTPUT "${table_name}.main.dict"
DEPENDS "${table}.txt"
COMMAND LibIME::tabledict ARGS "${CMAKE_CURRENT_SOURCE_DIR}/${table}.txt"
"${CMAKE_CURRENT_BINARY_DIR}/${table_name}.main.dict")
set(MB_FILES ${MB_FILES} "${mb_file}")
set(CONF_FILES ${CONF_FILES} "${conf_file}")
endforeach()
add_custom_target(table_data ALL DEPENDS ${MB_FILES})
install(FILES ${CONF_FILES} DESTINATION "${FCITX_INSTALL_PKGDATADIR}/inputmethod")
install(FILES ${MB_FILES} DESTINATION "${FCITX_INSTALL_PKGDATADIR}/table")

View File

@@ -0,0 +1,37 @@
[InputMethod]
Name=Sydmath
Icon=fcitx_latex
LangCode=*
Addon=table
Configurable=True
[Table]
File=table/sydmath.main.dict
OrderPolicy=No
AutoSelect=True
AutoSelectLength=-1
NoMatchAutoSelectLength=0
Learning=False
ExactMatch=False
UseAlternativePageKey=True
FirstCandidateAsPreedit=True
CommitInvalidSegment=True
Hint=True
[Table/PrevPage]
0=Page_Up
[Table/NextPage]
0=Page_Down
[Table/Selection]
0=F1
1=F2
2=F3
3=F4
4=F5
5=F6
6=F7
7=F8
8=F9
9=F10

2649
tables/sydmath/sydmath.txt Normal file

File diff suppressed because it is too large Load Diff