├── .clang-format ├── .gitignore ├── CMakeLists.txt ├── COPYING ├── ChangeLog ├── README.md ├── clang-format.sh ├── cmake ├── FindRimeData.cmake └── cmake_uninstall.cmake.in ├── data ├── CMakeLists.txt ├── default │ ├── rime-deploy.png │ ├── rime-disable.png │ ├── rime-im-cangjie5.png │ ├── rime-im-luna_pinyin.png │ ├── rime-im-luna_pinyin_simp.png │ ├── rime-im.png │ ├── rime-latin.png │ └── rime-sync.png ├── rime-deploy.png ├── rime-deploy.svg ├── rime-disable.png ├── rime-disable.svg ├── rime-im.png ├── rime-im.svg ├── rime-latin.png ├── rime-latin.svg ├── rime-sync.png ├── rime-sync.svg ├── rime.png ├── rime.svg └── rime128.png ├── gui ├── .gitignore ├── CMakeLists.txt └── src │ ├── CMakeLists.txt │ ├── Common.h │ ├── ConfigMain.cpp │ ├── ConfigMain.h │ ├── ConfigMain.ui │ ├── ErrorOverlay.cpp │ ├── ErrorOverlay.h │ ├── Main.cpp │ ├── Main.h │ ├── Model.cpp │ ├── Model.h │ ├── RimeConfigParser.cpp │ ├── RimeConfigParser.h │ ├── fcitx-rime-config.json │ ├── keynametable.h │ ├── keysym.h │ └── keysymgen.h ├── po ├── CMakeLists.txt ├── ca.po ├── da.po ├── de.po ├── fcitx-rime.pot ├── ja.po ├── ko.po ├── ru.po ├── tr.po ├── vi.po ├── zh_CN.po └── zh_TW.po └── src ├── CMakeLists.txt ├── fcitx-rime.c ├── fcitx-rime.conf.in └── rime.conf.in /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | # BasedOnStyle: LLVM 4 | AccessModifierOffset: -4 5 | ConstructorInitializerIndentWidth: 4 6 | AlignEscapedNewlinesLeft: false 7 | AlignTrailingComments: true 8 | AllowAllParametersOfDeclarationOnNextLine: true 9 | AllowShortBlocksOnASingleLine: false 10 | AllowShortIfStatementsOnASingleLine: false 11 | AllowShortLoopsOnASingleLine: false 12 | AllowShortFunctionsOnASingleLine: All 13 | AlwaysBreakTemplateDeclarations: true 14 | AlwaysBreakBeforeMultilineStrings: false 15 | BreakBeforeBinaryOperators: false 16 | BreakBeforeTernaryOperators: true 17 | BreakConstructorInitializersBeforeComma: false 18 | BinPackParameters: true 19 | ColumnLimit: 80 20 | ConstructorInitializerAllOnOneLineOrOnePerLine: false 21 | DerivePointerAlignment: false 22 | ExperimentalAutoDetectBinPacking: false 23 | IndentCaseLabels: false 24 | IndentWrappedFunctionNames: false 25 | IndentFunctionDeclarationAfterType: false 26 | MaxEmptyLinesToKeep: 1 27 | KeepEmptyLinesAtTheStartOfBlocks: true 28 | NamespaceIndentation: None 29 | ObjCSpaceAfterProperty: false 30 | ObjCSpaceBeforeProtocolList: true 31 | PenaltyBreakBeforeFirstCallParameter: 19 32 | PenaltyBreakComment: 300 33 | PenaltyBreakString: 1000 34 | PenaltyBreakFirstLessLess: 120 35 | PenaltyExcessCharacter: 1000000 36 | PenaltyReturnTypeOnItsOwnLine: 60 37 | PointerAlignment: Right 38 | SpacesBeforeTrailingComments: 1 39 | Cpp11BracedListStyle: true 40 | Standard: Cpp11 41 | IndentWidth: 4 42 | TabWidth: 4 43 | UseTab: Never 44 | BreakBeforeBraces: Attach 45 | SpacesInParentheses: false 46 | SpacesInAngles: false 47 | SpaceInEmptyParentheses: false 48 | SpacesInCStyleCastParentheses: false 49 | SpacesInContainerLiterals: true 50 | SpaceBeforeAssignmentOperators: true 51 | ContinuationIndentWidth: 4 52 | CommentPragmas: '^ IWYU pragma:' 53 | ForEachMacros: [ Q_FOREACH, BOOST_FOREACH ] 54 | SpaceBeforeParens: ControlStatements 55 | DisableFormat: false 56 | SortIncludes: true 57 | ... 58 | 59 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | build/* 3 | *.kdev4 4 | .kdev_include_paths 5 | .directory 6 | *.kate-swp 7 | *.orig 8 | tags 9 | astyle.sh 10 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8) 2 | 3 | project(fcitx-rime) 4 | 5 | set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) 6 | 7 | include(FindPkgConfig) 8 | find_package(Fcitx 4.2.8.1 REQUIRED) 9 | pkg_check_modules(RIME "rime>=1.0.0" REQUIRED) 10 | 11 | if(NOT DEFINED RIME_DATA_DIR) 12 | find_package(RimeData REQUIRED) 13 | endif(NOT DEFINED RIME_DATA_DIR) 14 | message(STATUS "Precompiler macro RIME_DATA_DIR is set to \"${RIME_DATA_DIR}\"") 15 | add_definitions(-DRIME_DATA_DIR="${RIME_DATA_DIR}") 16 | 17 | set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -fvisibility=hidden ${CMAKE_C_FLAGS}") 18 | set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -fvisibility=hidden ${CMAKE_CXX_FLAGS}") 19 | set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_SHARED_LINKER_FLAGS}") 20 | set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}") 21 | 22 | # uninstall target 23 | configure_file( 24 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" 25 | "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" 26 | IMMEDIATE @ONLY) 27 | 28 | add_custom_target(uninstall 29 | COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) 30 | 31 | option(ENABLE_QT5GUI "Build the Rime Config GUI Tool" ON) 32 | 33 | add_subdirectory(po) 34 | add_subdirectory(src) 35 | add_subdirectory(data) 36 | if(ENABLE_QT5GUI) 37 | add_subdirectory(gui) 38 | endif(ENABLE_QT5GUI) 39 | 40 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | 2013-07-15: CSSlayer 2 | * 0.2.2 3 | - Fix Issue 11 4 | - Fix Issue 12 5 | - Update icon artwork 6 | - Add License 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## RIME support for Fcitx 2 | 3 | RIME(中州韻輸入法引擎) is _mainly_ a Traditional Chinese input method engine. 4 | 5 | project: http://rime.im/ 6 | 7 | 8 | ## Build From Source: 9 | 10 | ### special notice of RIME dependency: 11 | 12 | RIME split its devlopment source into a few sections, here we need librime. 13 | 14 | In librime source, there are two directory, brise and librime. 15 | 16 | According to your distribution, you might need brise+librime package(openSUSE) or only librime which includes brise at /usr/share/brise. 17 | 18 | If your distribution doesn't have one you need to download librime and put brise directory into /usr/share/brise. 19 | 20 | If you're a distribution packager, ask maintainer of librime to add brise sub-package. 21 | 22 | ### special notice of Boost dependency: 23 | 24 | Boost is a RIME dependency, so without boost >= 1.46.1, you will not ble to install librime-devel. 25 | 26 | Generally it means, distros that are a little old like openSUSE 11.4 or Ubuntu 10.10 might not be possible to build or install. 27 | 28 | ### Dependency 29 | 30 | *cmake 31 | 32 | *gcc-c++ 33 | 34 | *fcitx-devel with all three skins 35 | 36 | some distro like openSUSE split a fcitx-skin-classic and a fcitx-skin-dark, so you need them. 37 | 38 | *librime-devel 39 | 40 | *brise 41 | 42 | *hicolor-icon-theme 43 | 44 | optional, for directory ownership. 45 | 46 | #### openSUSE: 47 | 48 | sudo zypper ar -f http://download.opensuse.org/repositories/M17N/openSUSE_12.2/ M17N 49 | 50 | sudo zypper in cmake gcc-c++ fcitx-devel fcitx-skin-classic fcitx-skin-dark librime-devel brise hicolor-icon-theme 51 | 52 | 53 | ## Install from Distribution 54 | 55 | ### Debian/Ubuntu 56 | 57 | sudo apt-get install fcitx-rime 58 | 59 | ### openSUSE 60 | 61 | sudo zypper ar -f http://download.opensuse.org/repositories/M17N/openSUSE_12.2/ M17N 62 | 63 | sudo zypper in fcitx-rime 64 | 65 | 66 | -------------------------------------------------------------------------------- /clang-format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | find . \( -not \( -name 'keynametable.h' -o -name 'keysymgen.h' -o -name 'keysymdef.h' -o -name 'XF86keysym.h' \) \) -a \( -name '*.h' -o -name '*.cpp' \) | xargs clang-format -i 3 | -------------------------------------------------------------------------------- /cmake/FindRimeData.cmake: -------------------------------------------------------------------------------- 1 | # Author: Marguerite Su 2 | # License: GPL 3 | # Description: find Rime schema collection package. 4 | # RIME_DATA_FOUND - System has rime-data package 5 | # RIME_DATA_DIR - rime-data absolute path 6 | 7 | set(RIME_DATA_FIND_DIR "${CMAKE_INSTALL_PREFIX}/share/rime-data" 8 | "${CMAKE_INSTALL_PREFIX}/share/rime/data" 9 | "/usr/share/rime-data" 10 | "/usr/share/rime/data") 11 | 12 | set(RIME_DATA_FOUND FALSE) 13 | 14 | foreach(_RIME_DATA_DIR ${RIME_DATA_FIND_DIR}) 15 | if (IS_DIRECTORY ${_RIME_DATA_DIR}) 16 | set(RIME_DATA_FOUND True) 17 | set(RIME_DATA_DIR ${_RIME_DATA_DIR}) 18 | endif (IS_DIRECTORY ${_RIME_DATA_DIR}) 19 | endforeach(_RIME_DATA_DIR) 20 | 21 | include(FindPackageHandleStandardArgs) 22 | find_package_handle_standard_args(RimeData DEFAULT_MSG RIME_DATA_DIR) 23 | mark_as_advanced(RIME_DATA_DIR) 24 | -------------------------------------------------------------------------------- /cmake/cmake_uninstall.cmake.in: -------------------------------------------------------------------------------- 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(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") 4 | 5 | file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) 6 | string(REGEX REPLACE "\n" ";" files "${files}") 7 | foreach (file ${files}) 8 | message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") 9 | if (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") 10 | execute_process( 11 | COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}" 12 | OUTPUT_VARIABLE rm_out 13 | RESULT_VARIABLE rm_retval 14 | ) 15 | if(NOT ${rm_retval} EQUAL 0) 16 | message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") 17 | endif (NOT ${rm_retval} EQUAL 0) 18 | else (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") 19 | message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") 20 | endif (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") 21 | endforeach(file) 22 | -------------------------------------------------------------------------------- /data/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # for im icon 2 | install(FILES rime.png RENAME rime.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/imicon) 3 | 4 | # for skin 5 | install(DIRECTORY default DESTINATION ${FCITX4_PREFIX}/share/fcitx/skin) 6 | 7 | # with prefix 8 | foreach(svg rime rime-deploy rime-sync) 9 | install(FILES ${svg}.png RENAME fcitx-${svg}.png DESTINATION share/icons/hicolor/48x48/apps) 10 | install(FILES ${svg}.svg RENAME fcitx-${svg}.svg DESTINATION share/icons/hicolor/scalable/status) 11 | endforeach() 12 | 13 | # without prefix 14 | foreach(svg rime-im rime-latin rime-disable) 15 | install(FILES ${svg}.png DESTINATION share/icons/hicolor/48x48/apps) 16 | install(FILES ${svg}.svg DESTINATION share/icons/hicolor/scalable/status) 17 | endforeach() 18 | 19 | # install the config tool icon 20 | install(FILES rime128.png RENAME fcitx-rime.png DESTINATION share/icons/hicolor/128x128/apps) 21 | 22 | -------------------------------------------------------------------------------- /data/default/rime-deploy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-deploy.png -------------------------------------------------------------------------------- /data/default/rime-disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-disable.png -------------------------------------------------------------------------------- /data/default/rime-im-cangjie5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-im-cangjie5.png -------------------------------------------------------------------------------- /data/default/rime-im-luna_pinyin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-im-luna_pinyin.png -------------------------------------------------------------------------------- /data/default/rime-im-luna_pinyin_simp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-im-luna_pinyin_simp.png -------------------------------------------------------------------------------- /data/default/rime-im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-im.png -------------------------------------------------------------------------------- /data/default/rime-latin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-latin.png -------------------------------------------------------------------------------- /data/default/rime-sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/default/rime-sync.png -------------------------------------------------------------------------------- /data/rime-deploy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime-deploy.png -------------------------------------------------------------------------------- /data/rime-deploy.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 41 | 43 | 44 | 46 | image/svg+xml 47 | 49 | 50 | 51 | 52 | 53 | 58 | 61 | 64 | 74 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /data/rime-disable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime-disable.png -------------------------------------------------------------------------------- /data/rime-disable.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 43 | 45 | 46 | 48 | image/svg+xml 49 | 51 | 52 | 53 | 54 | 55 | 60 | 64 | 67 | 74 | 80 | 85 | 90 | 91 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /data/rime-im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime-im.png -------------------------------------------------------------------------------- /data/rime-im.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 43 | 45 | 46 | 48 | image/svg+xml 49 | 51 | 52 | 53 | 54 | 55 | 60 | 64 | 71 | 74 | 81 | 87 | 88 | 89 | 90 | 91 | -------------------------------------------------------------------------------- /data/rime-latin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime-latin.png -------------------------------------------------------------------------------- /data/rime-latin.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 41 | 43 | 44 | 46 | image/svg+xml 47 | 49 | 50 | 51 | 52 | 53 | 58 | 60 | 67 | A 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /data/rime-sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime-sync.png -------------------------------------------------------------------------------- /data/rime-sync.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 45 | 47 | 48 | 50 | image/svg+xml 51 | 53 | 54 | 55 | 56 | 57 | 62 | 65 | 70 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /data/rime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime.png -------------------------------------------------------------------------------- /data/rime.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 21 | 23 | 42 | 44 | 45 | 47 | image/svg+xml 48 | 50 | 51 | 52 | 53 | 54 | 59 | 64 | 67 | 74 | 80 | 86 | 92 | 98 | 104 | 110 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /data/rime128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fcitx/fcitx-rime/68c18a6a2def4fe09881a85b3e6e4d6173bdd6ff/data/rime128.png -------------------------------------------------------------------------------- /gui/.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | 3 | -------------------------------------------------------------------------------- /gui/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(REQUIRED_QT_VERSION 5.1.0) 2 | 3 | find_package(FcitxQt5WidgetsAddons 1.1.0 REQUIRED) 4 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Widgets Concurrent) 5 | find_package(Rime REQUIRED) 6 | pkg_check_modules(Rime "rime>=1.0.0" REQUIRED IMPORTED_TARGET) 7 | 8 | add_subdirectory(src) 9 | -------------------------------------------------------------------------------- /gui/src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(FRCU_SRCS 2 | Main.cpp 3 | ConfigMain.cpp 4 | Model.cpp 5 | RimeConfigParser.cpp 6 | ErrorOverlay.cpp) 7 | set(FRCU_HDRS 8 | Main.h 9 | ConfigMain.h 10 | Model.h 11 | Common.h 12 | RimeConfigParser.h 13 | ErrorOverlay.h) 14 | 15 | set(FRCU_UIS 16 | ConfigMain.ui) 17 | 18 | fcitx_translate_add_sources( 19 | ${FRCU_SRCS} 20 | ${FRCU_HDRS} 21 | ${FRCU_UIS}) 22 | 23 | add_library(fcitx-rime-config-gui 24 | MODULE ${FRCU_SRCS}) 25 | 26 | set(AUTOGEN_BUILD_DIR "${CMAKE_BINARY_DIR}/gui/src/fcitx-rime-config-gui_autogen/include") 27 | file(COPY "${CMAKE_SOURCE_DIR}/gui/src/Common.h" DESTINATION "${AUTOGEN_BUILD_DIR}") 28 | 29 | set_target_properties(fcitx-rime-config-gui PROPERTIES 30 | LINK_FLAGS "-Wl,--no-undefined" 31 | AUTOMOC TRUE 32 | AUTOUIC TRUE 33 | AUTOUIC_OPTIONS "-tr=fcitx_rime::tr2fcitx;--include=Common.h") 34 | 35 | target_link_libraries(fcitx-rime-config-gui 36 | Qt5::Widgets 37 | Qt5::Concurrent 38 | FcitxQt5::WidgetsAddons 39 | PkgConfig::Rime 40 | ${FCITX4_FCITX_UTILS_LIBRARIES} 41 | ${FCITX4_FCITX_CONFIG_LIBRARIES}) 42 | 43 | 44 | install(TARGETS fcitx-rime-config-gui DESTINATION ${FCITX4_ADDON_INSTALL_DIR}/qt) 45 | -------------------------------------------------------------------------------- /gui/src/Common.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #ifndef FCITX_RIME_CONFIG_COMMON_H 19 | #define FCITX_RIME_CONFIG_COMMON_H 20 | 21 | #include 22 | #include 23 | 24 | #define _(x) QString::fromUtf8(dgettext("fcitx-rime", x)) 25 | 26 | #define FCITX_RIME_ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0])) 27 | 28 | namespace fcitx_rime { 29 | inline QString tr2fcitx(const char *message, const char *comment = nullptr) { 30 | if (message && message[0]) { 31 | return QString(_(message)); 32 | } else { 33 | return QString(); 34 | } 35 | } 36 | }; // namespace fcitx_rime 37 | #endif // _FCITXRIMECONFIGCOMMON_H_ 38 | -------------------------------------------------------------------------------- /gui/src/ConfigMain.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #include 19 | 20 | #include "Common.h" 21 | #include "ConfigMain.h" 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | 31 | namespace fcitx_rime { 32 | ConfigMain::ConfigMain(QWidget *parent) 33 | : FcitxQtConfigUIWidget(parent), model(new RimeConfigDataModel()), inError(false) { 34 | 35 | // Setup UI 36 | setMinimumSize(680, 500); 37 | setupUi(this); 38 | overlay = new ErrorOverlay(this); 39 | verticallayout_general->setAlignment(Qt::AlignTop); 40 | addIMButton->setIcon(QIcon::fromTheme("go-next")); 41 | removeIMButton->setIcon(QIcon::fromTheme("go-previous")); 42 | moveUpButton->setIcon(QIcon::fromTheme("go-up")); 43 | moveDownButton->setIcon(QIcon::fromTheme("go-down")); 44 | // configureButton->setIcon(QIcon::fromTheme("help-about")); 45 | 46 | // listViews for currentIM and availIM 47 | QStandardItemModel *listModel = new QStandardItemModel(this); 48 | currentIMView->setModel(listModel); 49 | QStandardItemModel *availIMModel = new QStandardItemModel(this); 50 | availIMView->setModel(availIMModel); 51 | 52 | // Shortcuts Tab 53 | connect(cand_cnt_spinbox, QOverload::of(&QSpinBox::valueChanged), this, 54 | &ConfigMain::stateChanged); 55 | connect(shift_l_combo, QOverload::of(&QComboBox::currentIndexChanged), 56 | this, &ConfigMain::stateChanged); 57 | connect(shift_r_combo, QOverload::of(&QComboBox::currentIndexChanged), 58 | this, &ConfigMain::stateChanged); 59 | QList keywgts = 60 | general_tab->findChildren(); 61 | for (size_t i = 0; i < keywgts.size(); i++) { 62 | connect(keywgts[i], &FcitxQtKeySequenceWidget::keySequenceChanged, this, 63 | &ConfigMain::keytoggleChanged); 64 | } 65 | 66 | // Schemas Tab 67 | connect(removeIMButton, &QPushButton::clicked, this, &ConfigMain::removeIM); 68 | connect(addIMButton, &QPushButton::clicked, this, &ConfigMain::addIM); 69 | connect(moveUpButton, &QPushButton::clicked, this, &ConfigMain::moveUpIM); 70 | connect(moveDownButton, &QPushButton::clicked, this, 71 | &ConfigMain::moveDownIM); 72 | connect(availIMView->selectionModel(), &QItemSelectionModel::currentChanged, 73 | this, &ConfigMain::availIMSelectionChanged); 74 | connect(currentIMView->selectionModel(), 75 | &QItemSelectionModel::currentChanged, this, 76 | &ConfigMain::activeIMSelectionChanged); 77 | 78 | if(!yamlToModel()) { // Load data from yaml 79 | disableUi("Failed to load Rime config or api. Please check your Rime config or installation."); 80 | } else { 81 | modelToUi(); 82 | } 83 | } 84 | 85 | ConfigMain::~ConfigMain() { delete model; } 86 | 87 | void ConfigMain::keytoggleChanged() { stateChanged(); } 88 | 89 | // SLOTs 90 | void ConfigMain::stateChanged() { emit changed(true); } 91 | 92 | void ConfigMain::focusSelectedIM(const QString im_name) { 93 | // search enabled IM first 94 | int sz = currentIMView->model()->rowCount(); 95 | for (int i = 0; i < sz; i++) { 96 | QModelIndex ind = currentIMView->model()->index(i, 0); 97 | const QString name = 98 | currentIMView->model()->data(ind, Qt::DisplayRole).toString(); 99 | if (name == im_name) { 100 | currentIMView->setCurrentIndex(ind); 101 | currentIMView->setFocus(); 102 | return; 103 | } 104 | } 105 | // if not found, search avali IM list 106 | sz = availIMView->model()->rowCount(); 107 | for (int i = 0; i < sz; i++) { 108 | QModelIndex ind = availIMView->model()->index(i, 0); 109 | const QString name = 110 | availIMView->model()->data(ind, Qt::DisplayRole).toString(); 111 | if (name == im_name) { 112 | availIMView->setCurrentIndex(ind); 113 | availIMView->setFocus(); 114 | return; 115 | } 116 | } 117 | } 118 | 119 | void ConfigMain::addIM() { 120 | if (availIMView->currentIndex().isValid()) { 121 | const QString uniqueName = 122 | availIMView->currentIndex().data(Qt::DisplayRole).toString(); 123 | int largest = 0; 124 | int find = -1; 125 | for (size_t i = 0; i < model->schemas_.size(); i++) { 126 | if (model->schemas_[i].name == uniqueName) { 127 | find = i; 128 | } 129 | if (model->schemas_[i].index > largest) { 130 | largest = model->schemas_[i].index; 131 | } 132 | } 133 | if (find != -1) { 134 | model->schemas_[find].active = true; 135 | model->schemas_[find].index = largest + 1; 136 | } 137 | 138 | model->sortSchemas(); 139 | updateIMList(); 140 | focusSelectedIM(uniqueName); 141 | stateChanged(); 142 | } 143 | } 144 | 145 | void ConfigMain::removeIM() { 146 | if (currentIMView->currentIndex().isValid()) { 147 | const QString uniqueName = 148 | currentIMView->currentIndex().data(Qt::DisplayRole).toString(); 149 | for (size_t i = 0; i < model->schemas_.size(); i++) { 150 | if (model->schemas_[i].name == uniqueName) { 151 | model->schemas_[i].active = false; 152 | model->schemas_[i].index = 0; 153 | } 154 | } 155 | model->sortSchemas(); 156 | updateIMList(); 157 | focusSelectedIM(uniqueName); 158 | stateChanged(); 159 | } 160 | } 161 | 162 | void ConfigMain::moveUpIM() { 163 | if (currentIMView->currentIndex().isValid()) { 164 | const QString uniqueName = 165 | currentIMView->currentIndex().data(Qt::DisplayRole).toString(); 166 | int cur_index = -1; 167 | for (size_t i = 0; i < model->schemas_.size(); i++) { 168 | if (model->schemas_[i].name == uniqueName) { 169 | cur_index = model->schemas_[i].index; 170 | Q_ASSERT(cur_index == 171 | (i + 1)); // make sure the schema is sorted 172 | } 173 | } 174 | // can't move up the top schema because the button should be grey 175 | if (cur_index == -1 || cur_index == 0) { 176 | return; 177 | } 178 | 179 | int temp; 180 | temp = model->schemas_[cur_index - 1].index; 181 | model->schemas_[cur_index - 1].index = 182 | model->schemas_[cur_index - 2].index; 183 | model->schemas_[cur_index - 2].index = temp; 184 | model->sortSchemas(); 185 | updateIMList(); 186 | focusSelectedIM(uniqueName); 187 | stateChanged(); 188 | } 189 | } 190 | 191 | void ConfigMain::moveDownIM() { 192 | if (currentIMView->currentIndex().isValid()) { 193 | const QString uniqueName = 194 | currentIMView->currentIndex().data(Qt::DisplayRole).toString(); 195 | int cur_index = -1; 196 | for (size_t i = 0; i < model->schemas_.size(); i++) { 197 | if (model->schemas_[i].name == uniqueName) { 198 | cur_index = model->schemas_[i].index; 199 | Q_ASSERT(cur_index == 200 | (i + 1)); // make sure the schema is sorted 201 | } 202 | } 203 | // can't move down the bottom schema because the button should be grey 204 | if (cur_index == -1 || cur_index == 0) { 205 | return; 206 | } 207 | int temp; 208 | temp = model->schemas_[cur_index - 1].index; 209 | model->schemas_[cur_index - 1].index = model->schemas_[cur_index].index; 210 | model->schemas_[cur_index].index = temp; 211 | model->sortSchemas(); 212 | updateIMList(); 213 | focusSelectedIM(uniqueName); 214 | stateChanged(); 215 | } 216 | } 217 | 218 | void ConfigMain::availIMSelectionChanged() { 219 | if (!availIMView->currentIndex().isValid()) { 220 | addIMButton->setEnabled(false); 221 | } else { 222 | addIMButton->setEnabled(true); 223 | } 224 | } 225 | 226 | void ConfigMain::activeIMSelectionChanged() { 227 | if (!currentIMView->currentIndex().isValid()) { 228 | removeIMButton->setEnabled(false); 229 | moveUpButton->setEnabled(false); 230 | moveDownButton->setEnabled(false); 231 | // configureButton->setEnabled(false); 232 | } else { 233 | removeIMButton->setEnabled(true); 234 | // configureButton->setEnabled(true); 235 | if (currentIMView->currentIndex().row() == 0) { 236 | moveUpButton->setEnabled(false); 237 | } else { 238 | moveUpButton->setEnabled(true); 239 | } 240 | if (currentIMView->currentIndex().row() == 241 | currentIMView->model()->rowCount() - 1) { 242 | moveDownButton->setEnabled(false); 243 | } else { 244 | moveDownButton->setEnabled(true); 245 | } 246 | } 247 | } 248 | // end of SLOTs 249 | 250 | QString ConfigMain::icon() { return "fcitx-rime"; } 251 | 252 | QString ConfigMain::addon() { return "fcitx-rime"; } 253 | 254 | QString ConfigMain::title() { return _("Fcitx Rime Config GUI Tool"); } 255 | 256 | void ConfigMain::load() { 257 | if(inError) { 258 | return; 259 | } 260 | 261 | modelToUi(); 262 | } 263 | 264 | void ConfigMain::disableUi(const char *message) { 265 | setEnabled(false); 266 | overlay->enable(message); 267 | inError = true; 268 | } 269 | 270 | void ConfigMain::setModelFromLayout(QVector &model_keys, 271 | QLayout *layout) { 272 | QList keys = getKeyWidgetsFromLayout(layout); 273 | model_keys.clear(); 274 | for (int i = 0; i < keys.size(); i++) { 275 | if (!keys[i]->keySequence().isEmpty()) { 276 | model_keys.push_back(keys[i]->keySequence()); 277 | } 278 | } 279 | } 280 | 281 | void ConfigMain::uiToModel() { 282 | model->candidate_per_word = cand_cnt_spinbox->value(); 283 | 284 | setModelFromLayout(model->toggle_keys, horizontallayout_toggle); 285 | setModelFromLayout(model->ascii_key, horizontallayout_ascii); 286 | setModelFromLayout(model->pgdown_key, horizontallayout_pagedown); 287 | setModelFromLayout(model->pgup_key, horizontallayout_pageup); 288 | setModelFromLayout(model->trasim_key, horizontallayout_trasim); 289 | setModelFromLayout(model->halffull_key, horizontallayout_hfshape); 290 | 291 | if (model->switch_keys.size() >= 2) { 292 | model->switch_keys[0] = textToSwitchKey(shift_l_combo->currentIndex()); 293 | model->switch_keys[1] = textToSwitchKey(shift_r_combo->currentIndex()); 294 | } 295 | 296 | // clear cuurent model and save from the ui 297 | for (int i = 0; i < model->schemas_.size(); i++) { 298 | model->schemas_[i].index = 0; 299 | model->schemas_[i].active = false; 300 | } 301 | QStandardItemModel *qmodel = 302 | static_cast(currentIMView->model()); 303 | QModelIndex parent; 304 | int seqno = 1; 305 | for (int r = 0; r < qmodel->rowCount(parent); ++r) { 306 | QModelIndex index = qmodel->index(r, 0, parent); 307 | QVariant name = qmodel->data(index); 308 | for (int i = 0; i < model->schemas_.size(); i++) { 309 | if (model->schemas_[i].name == name) { 310 | model->schemas_[i].index = seqno++; 311 | model->schemas_[i].active = true; 312 | } 313 | } 314 | } 315 | model->sortSchemas(); 316 | } 317 | 318 | void ConfigMain::save() { 319 | 320 | if(inError) { 321 | return; 322 | } 323 | 324 | uiToModel(); 325 | QFutureWatcher *futureWatcher = new QFutureWatcher(this); 326 | futureWatcher->setFuture( 327 | QtConcurrent::run(this, &ConfigMain::modelToYaml)); 328 | connect(futureWatcher, &QFutureWatcher::finished, this, [this]() { 329 | if(inError) { 330 | disableUi("Failed to save your preferences into Rime config. Please check your config file manually."); 331 | } else { 332 | emit changed(false); 333 | emit saveFinished(); 334 | } 335 | }); 336 | } 337 | 338 | QList 339 | ConfigMain::getKeyWidgetsFromLayout(QLayout *layout) { 340 | int count = layout->count(); 341 | QList out; 342 | for (int i = 0; i < count; i++) { 343 | FcitxQtKeySequenceWidget *widget = 344 | qobject_cast( 345 | layout->itemAt(i)->widget()); 346 | if (widget != NULL) { 347 | out.push_back(widget); 348 | } 349 | } 350 | return out; 351 | } 352 | 353 | void ConfigMain::setKeySeqFromLayout(QLayout *layout, 354 | QVector &model_keys) { 355 | QList keywidgets = 356 | getKeyWidgetsFromLayout(layout); 357 | Q_ASSERT(keywidgets.size() >= model_keys.size()); 358 | for (int i = 0; i < model_keys.size(); i++) { 359 | keywidgets[i]->setKeySequence( 360 | QKeySequence(FcitxQtKeySequenceWidget::keyFcitxToQt( 361 | model_keys[i].sym_, model_keys[i].states_))); 362 | } 363 | return; 364 | } 365 | 366 | void ConfigMain::setSwitchKey(QComboBox *box, SwitchKeyFunction switch_key) { 367 | int index = -1; 368 | switch (switch_key) { 369 | case SwitchKeyFunction::Noop: 370 | index = 0; 371 | break; 372 | case SwitchKeyFunction::InlineASCII: 373 | index = 1; 374 | break; 375 | case SwitchKeyFunction::CommitText: 376 | index = 2; 377 | break; 378 | case SwitchKeyFunction::CommitCode: 379 | index = 3; 380 | break; 381 | case SwitchKeyFunction::Clear: 382 | index = 4; 383 | break; 384 | }; 385 | box->setCurrentIndex(index); 386 | } 387 | 388 | SwitchKeyFunction ConfigMain::textToSwitchKey(int current_index) { 389 | switch (current_index) { 390 | case 0: 391 | return SwitchKeyFunction::Noop; 392 | case 1: 393 | return SwitchKeyFunction::InlineASCII; 394 | case 2: 395 | return SwitchKeyFunction::CommitText; 396 | case 3: 397 | return SwitchKeyFunction::CommitCode; 398 | case 4: 399 | return SwitchKeyFunction::Clear; 400 | default: 401 | return SwitchKeyFunction::Noop; 402 | } 403 | } 404 | 405 | void ConfigMain::modelToUi() { 406 | cand_cnt_spinbox->setValue(model->candidate_per_word); 407 | 408 | // set shortcut keys 409 | setKeySeqFromLayout(horizontallayout_toggle, model->toggle_keys); 410 | setKeySeqFromLayout(horizontallayout_pagedown, model->pgdown_key); 411 | setKeySeqFromLayout(horizontallayout_pageup, model->pgup_key); 412 | setKeySeqFromLayout(horizontallayout_ascii, model->ascii_key); 413 | setKeySeqFromLayout(horizontallayout_trasim, model->trasim_key); 414 | setKeySeqFromLayout(horizontallayout_hfshape, model->halffull_key); 415 | 416 | // set switch keys 417 | if (model->switch_keys.size() >= 2) { 418 | setSwitchKey(shift_l_combo, model->switch_keys[0]); 419 | setSwitchKey(shift_r_combo, model->switch_keys[1]); 420 | } 421 | 422 | // Clear both models 423 | static_cast(currentIMView->model())->clear(); 424 | static_cast(availIMView->model())->clear(); 425 | // Set available and enabled input methods 426 | for (size_t i = 0; i < model->schemas_.size(); i++) { 427 | auto &schema = model->schemas_[i]; 428 | if (schema.active) { 429 | QStandardItem *active_schema = new QStandardItem(schema.name); 430 | active_schema->setEditable(false); 431 | auto qmodel = 432 | static_cast(currentIMView->model()); 433 | qmodel->appendRow(active_schema); 434 | } else { 435 | QStandardItem *inactive_schema = new QStandardItem(schema.name); 436 | inactive_schema->setEditable(false); 437 | auto qmodel = 438 | static_cast(availIMView->model()); 439 | qmodel->appendRow(inactive_schema); 440 | } 441 | } 442 | } 443 | 444 | void ConfigMain::updateIMList() { 445 | auto avail_IMmodel = 446 | static_cast(availIMView->model()); 447 | auto active_IMmodel = 448 | static_cast(currentIMView->model()); 449 | avail_IMmodel->removeRows(0, avail_IMmodel->rowCount()); 450 | active_IMmodel->removeRows(0, active_IMmodel->rowCount()); 451 | for (size_t i = 0; i < model->schemas_.size(); i++) { 452 | auto &schema = model->schemas_[i]; 453 | if (schema.active) { 454 | QStandardItem *active_schema = new QStandardItem(schema.name); 455 | active_schema->setEditable(false); 456 | active_IMmodel->appendRow(active_schema); 457 | } else { 458 | QStandardItem *inactive_schema = new QStandardItem(schema.name); 459 | inactive_schema->setEditable(false); 460 | avail_IMmodel->appendRow(inactive_schema); 461 | } 462 | } 463 | } 464 | 465 | void ConfigMain::modelToYaml() { 466 | config.setPageSize(model->candidate_per_word); 467 | std::vector toggleKeys; 468 | for (size_t i = 0; i < model->toggle_keys.size(); i++) { 469 | toggleKeys.push_back(model->toggle_keys[i].toString()); 470 | } 471 | 472 | config.setToggleKeys(toggleKeys); 473 | config.setKeybindings(model->getKeybindings()); 474 | config.setSwitchKeys(std::vector( 475 | model->switch_keys.begin(), model->switch_keys.end())); 476 | 477 | // set active schema list 478 | std::vector schemaNames; 479 | schemaNames.reserve(model->schemas_.size()); 480 | for (int i = 0; i < model->schemas_.size(); i++) { 481 | if (model->schemas_[i].index == 0) { 482 | break; 483 | } else { 484 | schemaNames.push_back(model->schemas_[i].id.toStdString()); 485 | } 486 | } 487 | config.setSchemas(schemaNames); 488 | 489 | inError = !(config.sync()); 490 | return; 491 | } 492 | 493 | bool ConfigMain::yamlToModel() { 494 | // load page size 495 | int page_size = 0; 496 | bool suc; 497 | 498 | suc = config.isError(); 499 | if(suc) { 500 | return false; 501 | } 502 | 503 | suc = config.getPageSize(&page_size); 504 | if (suc) { 505 | model->candidate_per_word = page_size; 506 | } else { 507 | model->candidate_per_word = default_page_size; 508 | } 509 | 510 | // load toggle keys 511 | auto toggleKeys = config.getToggleKeys(); 512 | for (const auto &toggleKey : toggleKeys) { 513 | if (!toggleKey.empty()) { // skip the empty keys 514 | model->toggle_keys.push_back(FcitxKeySeq(toggleKey.data())); 515 | } 516 | } 517 | 518 | // load keybindings 519 | auto bindings = config.getKeybindings(); 520 | model->setKeybindings(std::move(bindings)); 521 | 522 | // load switchkeys 523 | auto switch_keys = config.getSwitchKeys(); 524 | model->switch_keys = 525 | QVector(switch_keys.begin(), switch_keys.end()); 526 | 527 | // load schemas 528 | getAvailableSchemas(); 529 | return true; 530 | } 531 | 532 | void ConfigMain::getAvailableSchemas() { 533 | const char *userPath = RimeGetUserDataDir(); 534 | const char *sysPath = RimeGetSharedDataDir(); 535 | 536 | QSet files; 537 | for (auto path : {sysPath, userPath}) { 538 | if (!path) { 539 | continue; 540 | } 541 | QDir dir(path); 542 | QList entryList = dir.entryList(QStringList("*.schema.yaml"), 543 | QDir::Files | QDir::Readable); 544 | files.unite(QSet(entryList.begin(), entryList.end())); 545 | } 546 | 547 | auto filesList = files.values(); 548 | filesList.sort(); 549 | 550 | for (const auto &file : filesList) { 551 | auto schema = FcitxRimeSchema(); 552 | QString fullPath; 553 | for (auto path : {userPath, sysPath}) { 554 | QDir dir(path); 555 | if (dir.exists(file)) { 556 | fullPath = dir.filePath(file); 557 | break; 558 | } 559 | } 560 | schema.path = fullPath; 561 | QFile fd(fullPath); 562 | if (!fd.open(QIODevice::ReadOnly)) { 563 | continue; 564 | } 565 | auto yamlData = fd.readAll(); 566 | auto name = config.stringFromYAML(yamlData.constData(), "schema/name"); 567 | auto id = 568 | config.stringFromYAML(yamlData.constData(), "schema/schema_id"); 569 | schema.name = QString::fromStdString(name); 570 | schema.id = QString::fromStdString(id); 571 | schema.index = config.schemaIndex(id.data()); 572 | schema.active = static_cast(schema.index); 573 | model->schemas_.push_back(schema); 574 | } 575 | model->sortSchemas(); 576 | } 577 | 578 | }; // namespace fcitx_rime 579 | -------------------------------------------------------------------------------- /gui/src/ConfigMain.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #ifndef FCITX_RIME_CONFIGMAIN_H 19 | #define FCITX_RIME_CONFIGMAIN_H 20 | 21 | #include 22 | #include 23 | 24 | #include "ErrorOverlay.h" 25 | #include "Model.h" 26 | #include "RimeConfigParser.h" 27 | #include "ui_ConfigMain.h" 28 | 29 | namespace fcitx_rime { 30 | class ConfigMain : public FcitxQtConfigUIWidget, private Ui::MainUI { 31 | Q_OBJECT 32 | public: 33 | explicit ConfigMain(QWidget *parent = 0); 34 | QString title() override; 35 | ~ConfigMain(); 36 | void load() override; 37 | void save() override; 38 | bool asyncSave() override { return true; } 39 | 40 | QString addon() override; 41 | QString icon() override; 42 | public slots: 43 | void keytoggleChanged(); 44 | void stateChanged(); 45 | void addIM(); 46 | void removeIM(); 47 | void moveUpIM(); 48 | void moveDownIM(); 49 | void availIMSelectionChanged(); 50 | void activeIMSelectionChanged(); 51 | 52 | private: 53 | void disableUi(const char *message); 54 | void setFcitxQtKeySeq(char *rime_key, FcitxKeySeq &keyseq); 55 | bool yamlToModel(); 56 | void uiToModel(); 57 | void modelToUi(); 58 | void modelToYaml(); 59 | void getAvailableSchemas(); 60 | void updateIMList(); 61 | void focusSelectedIM(const QString im_name); 62 | void setSwitchKey(QComboBox *box, SwitchKeyFunction switch_key); 63 | SwitchKeyFunction textToSwitchKey(int current_index); 64 | QList getKeyWidgetsFromLayout(QLayout *layout); 65 | void setKeySeqFromLayout(QLayout *layout, QVector &model_keys); 66 | void setModelFromLayout(QVector &model_keys, QLayout *layout); 67 | 68 | RimeConfigParser config; 69 | RimeConfigDataModel *model; 70 | ErrorOverlay *overlay; 71 | 72 | bool inError; 73 | }; 74 | } // namespace fcitx_rime 75 | 76 | #endif // FCITX_RIME_CONFIGMAIN_H 77 | -------------------------------------------------------------------------------- /gui/src/ConfigMain.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainUI 4 | 5 | 6 | 7 | 0 8 | 0 9 | 500 10 | 500 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Shortcut 27 | 28 | 29 | 30 | 31 | 32 | 33 | Call-out Menu 34 | 35 | 36 | 37 | 38 | false 39 | 40 | 41 | 42 | 43 | false 44 | 45 | 46 | 47 | 48 | false 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | Page Up 59 | 60 | 61 | 62 | 63 | false 64 | true 65 | 66 | 67 | 68 | 69 | false 70 | true 71 | 72 | 73 | 74 | 75 | false 76 | true 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | Page Down 87 | 88 | 89 | 90 | 91 | false 92 | true 93 | 94 | 95 | 96 | 97 | false 98 | true 99 | 100 | 101 | 102 | 103 | false 104 | true 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | Half/Full Shape 114 | 115 | 116 | 117 | 118 | false 119 | 120 | 121 | 122 | 123 | false 124 | 125 | 126 | 127 | 128 | false 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | Western/Eastern 138 | 139 | 140 | 141 | 142 | false 143 | 144 | 145 | 146 | 147 | false 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | Traditional/Simplified 158 | 159 | 160 | 161 | 162 | false 163 | 164 | 165 | 166 | 167 | false 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | Candidate Word Number 178 | 179 | 180 | 181 | 182 | 183 | CandidateWordNumber 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | Left Shift Key 194 | 195 | 196 | 197 | 198 | 199 | 200 | Noop 201 | 202 | 203 | 204 | 205 | Inline ASCII 206 | 207 | 208 | 209 | 210 | Commit Text 211 | 212 | 213 | 214 | 215 | Commit Code 216 | 217 | 218 | 219 | 220 | Clear 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | Right Shift Key 233 | 234 | 235 | 236 | 237 | 238 | 239 | Noop 240 | 241 | 242 | 243 | 244 | Inline ASCII 245 | 246 | 247 | 248 | 249 | Commit Text 250 | 251 | 252 | 253 | 254 | Commit Code 255 | 256 | 257 | 258 | 259 | Clear 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | Schema 271 | 272 | 273 | 274 | 275 | 276 | Qt::Horizontal 277 | 278 | 279 | QSizePolicy::Fixed 280 | 281 | 282 | 283 | 20 284 | 20 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | Available Input Schemas: 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | Qt::Vertical 315 | 316 | 317 | 318 | 20 319 | 40 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | false 328 | 329 | 330 | 331 | 332 | 333 | 334 | false 335 | 336 | 337 | 338 | 339 | 340 | 341 | Qt::Vertical 342 | 343 | 344 | 345 | 20 346 | 40 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | Active Input Schemas: 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | Qt::Vertical 373 | 374 | 375 | 376 | 20 377 | 40 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | false 386 | 387 | 388 | 389 | 390 | 391 | 392 | false 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | Qt::Vertical 403 | 404 | 405 | 406 | 20 407 | 40 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | <b>Select Input Schema:</b> 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | FcitxQtKeySequenceWidget 436 | QWidget 437 |
fcitxqtkeysequencewidget.h
438 |
439 |
440 | 441 | 442 |
443 | -------------------------------------------------------------------------------- /gui/src/ErrorOverlay.cpp: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Copyright (C) 2011 by Dario Freddi * 3 | * * 4 | * This program is free software; you can redistribute it and/or modify * 5 | * it under the terms of the GNU General Public License as published by * 6 | * the Free Software Foundation; either version 2 of the License, or * 7 | * (at your option) any later version. * 8 | * * 9 | * This program is distributed in the hope that it will be useful, * 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 12 | * GNU General Public License for more details. * 13 | * * 14 | * You should have received a copy of the GNU General Public License * 15 | * along with this program; if not, write to the * 16 | * Free Software Foundation, Inc., * 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * 18 | ***************************************************************************/ 19 | 20 | #include "ErrorOverlay.h" 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | ErrorOverlay::ErrorOverlay(QWidget *baseWidget, QWidget *parent) : 27 | QWidget(parent ? parent : baseWidget->window()), 28 | m_BaseWidget(baseWidget), 29 | m_enable(false) { 30 | setVisible(false); 31 | // Build the UI 32 | QVBoxLayout *layout = new QVBoxLayout; 33 | layout->setSpacing(10); 34 | 35 | QLabel *pixmap = new QLabel(); 36 | pixmap->setPixmap(QIcon::fromTheme("dialog-error").pixmap(64)); 37 | 38 | m_message = new QLabel(""); 39 | 40 | pixmap->setAlignment(Qt::AlignHCenter); 41 | m_message->setAlignment(Qt::AlignHCenter); 42 | 43 | layout->addStretch(); 44 | layout->addWidget(pixmap); 45 | layout->addWidget(m_message); 46 | layout->addStretch(); 47 | 48 | setLayout(layout); 49 | 50 | // Draw the transparent overlay background 51 | QPalette p = palette(); 52 | p.setColor(backgroundRole(), QColor(0, 0, 0, 128)); 53 | p.setColor(foregroundRole(), Qt::white); 54 | setPalette(p); 55 | setAutoFillBackground(true); 56 | 57 | m_BaseWidget->installEventFilter(this); 58 | 59 | } 60 | 61 | ErrorOverlay::~ErrorOverlay() { } 62 | 63 | void ErrorOverlay::enable(const char *errorMessage) { 64 | 65 | m_message->setText(errorMessage); 66 | 67 | if(!m_BaseWidget) { 68 | return; 69 | } 70 | 71 | // reparent to the current top level widget of the base widget if needed 72 | // needed eg. in dock widgets 73 | if (parentWidget() != m_BaseWidget->window()) { 74 | setParent(m_BaseWidget->window()); 75 | } 76 | 77 | show(); 78 | 79 | // follow position changes 80 | const QPoint topLevelPos = m_BaseWidget->mapTo(window(), QPoint(0, 0)); 81 | const QPoint parentPos = parentWidget()->mapFrom(window(), topLevelPos); 82 | move(parentPos); 83 | 84 | m_enable = true; 85 | // TODO: hide/scale icon if we don't have enough space 86 | resize(m_BaseWidget->size()); 87 | } 88 | -------------------------------------------------------------------------------- /gui/src/ErrorOverlay.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | * Copyright (C) 2011 by Dario Freddi * 3 | * * 4 | * This program is free software; you can redistribute it and/or modify * 5 | * it under the terms of the GNU General Public License as published by * 6 | * the Free Software Foundation; either version 2 of the License, or * 7 | * (at your option) any later version. * 8 | * * 9 | * This program is distributed in the hope that it will be useful, * 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 12 | * GNU General Public License for more details. * 13 | * * 14 | * You should have received a copy of the GNU General Public License * 15 | * along with this program; if not, write to the * 16 | * Free Software Foundation, Inc., * 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * 18 | ***************************************************************************/ 19 | 20 | #ifndef ERROROVERLAY_H 21 | #define ERROROVERLAY_H 22 | 23 | #include 24 | #include 25 | 26 | class ErrorOverlay : public QWidget 27 | { 28 | Q_OBJECT 29 | public: 30 | explicit ErrorOverlay(QWidget *baseWidget, QWidget *parent = 0); 31 | virtual ~ErrorOverlay(); 32 | 33 | void enable(const char *errorMessage); 34 | 35 | private: 36 | QWidget *m_BaseWidget; 37 | QLabel *m_message; 38 | bool m_enable; 39 | }; 40 | 41 | #endif // ERROROVERLAY_H 42 | -------------------------------------------------------------------------------- /gui/src/Main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #include 19 | #include 20 | 21 | #include "ConfigMain.h" 22 | #include "Main.h" 23 | 24 | // FcitxQtConfigUIPlugin : QObject, FcitxQtConfigUIFactoryInterface 25 | RimeConfigParserTool::RimeConfigParserTool(QObject *parent) 26 | : FcitxQtConfigUIPlugin(parent) { 27 | if (parent == NULL) { 28 | } 29 | } 30 | 31 | FcitxQtConfigUIWidget *RimeConfigParserTool::create(const QString &key) { 32 | Q_UNUSED(key); 33 | return new fcitx_rime::ConfigMain; 34 | } 35 | 36 | QString RimeConfigParserTool::name() { return "rime-config-gui-tool"; } 37 | 38 | QStringList RimeConfigParserTool::files() { return QStringList("rime/config"); } 39 | 40 | QString RimeConfigParserTool::domain() { return "fcitx_rime"; } 41 | -------------------------------------------------------------------------------- /gui/src/Main.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #ifndef FCITX_RIME_MAIN_H 19 | #define FCITX_RIME_MAIN_H 20 | 21 | #include 22 | 23 | class RimeConfigParserTool : public FcitxQtConfigUIPlugin { 24 | Q_OBJECT 25 | public: 26 | Q_PLUGIN_METADATA(IID "FcitxQtConfigUIFactoryInterface_iid" FILE 27 | "fcitx-rime-config.json") 28 | explicit RimeConfigParserTool(QObject *parent = 0); 29 | QString name() override; 30 | QStringList files() override; 31 | QString domain() override; 32 | FcitxQtConfigUIWidget *create(const QString &key) override; 33 | }; 34 | 35 | #endif // FCITX_RIME_MAIN_H 36 | -------------------------------------------------------------------------------- /gui/src/Model.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #include "Model.h" 19 | #include "Common.h" 20 | #include "keynametable.h" 21 | #include 22 | #include 23 | #include 24 | 25 | namespace fcitx_rime { 26 | void RimeConfigDataModel::sortSchemas() { 27 | std::sort(schemas_.begin(), schemas_.end(), 28 | [](const FcitxRimeSchema &a, const FcitxRimeSchema &b) -> bool { 29 | // if both inactive, sort by id 30 | if (a.index == 0 && b.index == 0) { 31 | return a.id < b.id; 32 | } 33 | if (a.index == 0) { 34 | return false; 35 | } 36 | if (b.index == 0) { 37 | return true; 38 | } 39 | return (a.index < b.index); 40 | }); 41 | } 42 | 43 | void RimeConfigDataModel::sortKeys() { 44 | sortSingleKeySet(toggle_keys); 45 | sortSingleKeySet(ascii_key); 46 | sortSingleKeySet(trasim_key); 47 | sortSingleKeySet(halffull_key); 48 | sortSingleKeySet(pgup_key); 49 | sortSingleKeySet(pgdown_key); 50 | } 51 | 52 | void RimeConfigDataModel::sortSingleKeySet(QVector &keys) { 53 | std::sort(keys.begin(), keys.end(), 54 | [](const FcitxKeySeq &a, const FcitxKeySeq &b) -> bool { 55 | auto qa = QKeySequence(FcitxQtKeySequenceWidget::keyFcitxToQt( 56 | a.sym_, a.states_)); 57 | auto qb = QKeySequence(FcitxQtKeySequenceWidget::keyFcitxToQt( 58 | b.sym_, b.states_)); 59 | return qa.toString().length() < qb.toString().length(); 60 | }); 61 | } 62 | 63 | void RimeConfigDataModel::setKeybindings(std::vector bindings) { 64 | for (const auto &binding : bindings) { 65 | if (binding.accept.empty()) { 66 | continue; 67 | } 68 | if (binding.action == "ascii_mode") { 69 | FcitxKeySeq seq(binding.accept); 70 | ascii_key.push_back(seq); 71 | } else if (binding.action == "full_shape") { 72 | FcitxKeySeq seq(binding.accept); 73 | halffull_key.push_back(seq); 74 | } else if (binding.action == "simplification") { 75 | FcitxKeySeq seq(binding.accept); 76 | trasim_key.push_back(seq); 77 | } else if (binding.action == "Page_Up") { 78 | FcitxKeySeq seq(binding.accept); 79 | pgup_key.push_back(seq); 80 | } else if (binding.action == "Page_Down") { 81 | FcitxKeySeq seq(binding.accept); 82 | pgdown_key.push_back(seq); 83 | } 84 | } 85 | sortKeys(); 86 | } 87 | 88 | std::vector RimeConfigDataModel::getKeybindings() { 89 | std::vector out; 90 | // Fill ascii_key 91 | for (auto &ascii : ascii_key) { 92 | Keybinding binding; 93 | binding.action = "ascii_mode"; 94 | binding.when = KeybindingCondition::Always; 95 | binding.type = KeybindingType::Toggle; 96 | binding.accept = ascii.toString(); 97 | out.push_back(binding); 98 | } 99 | // Fill trasim_key 100 | for (auto &trasim : trasim_key) { 101 | Keybinding binding; 102 | binding.action = "simplification"; 103 | binding.when = KeybindingCondition::Always; 104 | binding.type = KeybindingType::Toggle; 105 | binding.accept = trasim.toString(); 106 | out.push_back(binding); 107 | } 108 | // Fill halffull_key 109 | for (auto &halffull : halffull_key) { 110 | Keybinding binding; 111 | binding.action = "full_shape"; 112 | binding.when = KeybindingCondition::Always; 113 | binding.type = KeybindingType::Toggle; 114 | binding.accept = halffull.toString(); 115 | out.push_back(binding); 116 | } 117 | // Fill pgup_key 118 | for (auto &pgup : pgup_key) { 119 | Keybinding binding; 120 | binding.action = "Page_Up"; 121 | binding.when = KeybindingCondition::HasMenu; 122 | binding.type = KeybindingType::Send; 123 | binding.accept = pgup.toString(); 124 | out.push_back(binding); 125 | } 126 | // Fill pgdown_key 127 | for (auto &pgup : pgdown_key) { 128 | Keybinding binding; 129 | binding.action = "Page_Down"; 130 | binding.when = KeybindingCondition::HasMenu; 131 | binding.type = KeybindingType::Send; 132 | binding.accept = pgup.toString(); 133 | out.push_back(binding); 134 | } 135 | return out; 136 | } 137 | 138 | // default constructor 139 | FcitxKeySeq::FcitxKeySeq() {} 140 | 141 | // convert keyseq to state and sym 142 | FcitxKeySeq::FcitxKeySeq(const char *keyseq) { 143 | KeyStates states; 144 | const char *p = keyseq; 145 | const char *lastModifier = keyseq; 146 | const char *found = nullptr; 147 | // use macro to check modifiers 148 | #define _CHECK_MODIFIER(NAME, VALUE) \ 149 | if ((found = strstr(p, NAME))) { \ 150 | states |= fcitx::KeyState::VALUE; \ 151 | if (found + strlen(NAME) > lastModifier) { \ 152 | lastModifier = found + strlen(NAME); \ 153 | } \ 154 | } 155 | 156 | _CHECK_MODIFIER("CTRL_", Ctrl) 157 | _CHECK_MODIFIER("Control+", Ctrl) 158 | _CHECK_MODIFIER("ALT_", Alt) 159 | _CHECK_MODIFIER("Alt+", Alt) 160 | _CHECK_MODIFIER("SHIFT_", Shift) 161 | _CHECK_MODIFIER("Shift+", Shift) 162 | _CHECK_MODIFIER("SUPER_", Super) 163 | _CHECK_MODIFIER("Super+", Super) 164 | 165 | #undef _CHECK_MODIFIER 166 | sym_ = keySymFromString(lastModifier); 167 | states_ = states; 168 | } 169 | 170 | KeySym FcitxKeySeq::keySymFromString(const char *keyString) { 171 | auto value = std::lower_bound( 172 | keyValueByNameOffset, 173 | keyValueByNameOffset + FCITX_RIME_ARRAY_SIZE(keyValueByNameOffset), 174 | keyString, [](const uint32_t &idx, const std::string &str) { 175 | return keyNameList[&idx - keyValueByNameOffset] < str; 176 | }); 177 | if (value != keyValueByNameOffset + 178 | FCITX_RIME_ARRAY_SIZE(keyValueByNameOffset) && 179 | strcmp(keyString, keyNameList[value - keyValueByNameOffset]) == 0) { 180 | return static_cast(*value); 181 | } 182 | 183 | return FcitxKey_None; 184 | } 185 | 186 | std::string FcitxKeySeq::keySymToString(KeySym sym) const { 187 | const KeyNameOffsetByValue *result = std::lower_bound( 188 | keyNameOffsetByValue, 189 | keyNameOffsetByValue + FCITX_RIME_ARRAY_SIZE(keyNameOffsetByValue), sym, 190 | [](const KeyNameOffsetByValue &item, KeySym key) { 191 | return item.sym < key; 192 | }); 193 | if (result != keyNameOffsetByValue + 194 | FCITX_RIME_ARRAY_SIZE(keyNameOffsetByValue) && 195 | result->sym == sym) { 196 | return keyNameList[result->offset]; 197 | } 198 | return std::string(); 199 | } 200 | 201 | // convert QKeySequence to state and sym 202 | FcitxKeySeq::FcitxKeySeq(const QKeySequence qkey) { 203 | int sym = 0; 204 | uint states = 0; 205 | int qkeycode = static_cast(qkey[0]); 206 | FcitxQtKeySequenceWidget::keyQtToFcitx( 207 | qkeycode, FcitxQtModifierSide::MS_Unknown, sym, states); 208 | sym_ = static_cast(sym); 209 | states_ = static_cast(states); 210 | } 211 | 212 | // convert to Rime X11 style string 213 | std::string FcitxKeySeq::toString() const { 214 | auto sym = sym_; 215 | if (sym == FcitxKey_None) { 216 | return std::string(); 217 | } 218 | if (sym == FcitxKey_ISO_Left_Tab) { 219 | sym = FcitxKey_Tab; 220 | } 221 | 222 | auto key = keySymToString(sym); 223 | 224 | if (key.empty()) { 225 | return std::string(); 226 | } 227 | 228 | std::string str; 229 | 230 | #define _APPEND_MODIFIER_STRING(STR, VALUE) \ 231 | if (states_ & fcitx::KeyState::VALUE) { \ 232 | str += STR; \ 233 | } 234 | 235 | _APPEND_MODIFIER_STRING("Control+", Ctrl) 236 | _APPEND_MODIFIER_STRING("Alt+", Alt) 237 | _APPEND_MODIFIER_STRING("Shift+", Shift) 238 | _APPEND_MODIFIER_STRING("Super+", Super) 239 | 240 | #undef _APPEND_MODIFIER_STRING 241 | str += key; 242 | return str; 243 | } 244 | } // namespace fcitx_rime 245 | -------------------------------------------------------------------------------- /gui/src/Model.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // 4 | // This program is free software; you can redistribute it and/or modify 5 | // it under the terms of the GNU General Public License as published by 6 | // the Free Software Foundation; either version 2 of the License, 7 | // or (at your option) any later version. 8 | // 9 | // This program is distributed in the hope that it will be useful, 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | // General Public License for more details. 13 | // 14 | // You should have received a copy of the GNU General Public License 15 | // along with this program; see the file COPYING. If not, 16 | // see . 17 | // 18 | #ifndef FCITX_RIME_MODEL_H 19 | #define FCITX_RIME_MODEL_H 20 | 21 | #include "RimeConfigParser.h" 22 | #include "keysym.h" 23 | #include "keysymgen.h" 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | static constexpr int max_shortcuts = 3; 30 | static constexpr int default_page_size = 5; 31 | 32 | namespace fcitx_rime { 33 | typedef QFlags KeyStates; 34 | typedef FcitxKeySym KeySym; 35 | class FcitxKeySeq { 36 | public: 37 | KeyStates states_; 38 | KeySym sym_; 39 | FcitxKeySeq(); 40 | FcitxKeySeq(const char *keyseq); 41 | FcitxKeySeq(const std::string &keyseq) : FcitxKeySeq(keyseq.data()) {} 42 | FcitxKeySeq(const QKeySequence qkey); 43 | std::string toString() const; 44 | std::string keySymToString(KeySym sym) const; 45 | KeySym keySymFromString(const char *keyString); 46 | }; 47 | 48 | class FcitxRimeSchema { 49 | public: 50 | QString path; 51 | QString id; 52 | QString name; 53 | int index; // index starts from 1, 0 means not enabled 54 | bool active; 55 | }; 56 | 57 | class RimeConfigDataModel { 58 | public: 59 | QVector toggle_keys; 60 | int candidate_per_word; 61 | QVector switch_keys; 62 | QVector schemas_; 63 | QVector ascii_key; 64 | QVector trasim_key; 65 | QVector halffull_key; 66 | QVector pgup_key; 67 | QVector pgdown_key; 68 | 69 | void setKeybindings(const std::vector bindings); 70 | std::vector getKeybindings(); 71 | 72 | void sortSchemas(); 73 | void sortKeys(); 74 | 75 | private: 76 | void sortSingleKeySet(QVector &keys); 77 | }; 78 | } // namespace fcitx_rime 79 | 80 | #endif // FCITX_RIME_MODEL_H 81 | -------------------------------------------------------------------------------- /gui/src/RimeConfigParser.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // Copyright (C) 2018~2018 by Weng Xuetian 4 | // 5 | // This program is free software; you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation; either version 2 of the License, 8 | // or (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | // General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program; see the file COPYING. If not, 17 | // see . 18 | // 19 | #include "RimeConfigParser.h" 20 | #include 21 | #include 22 | #include 23 | 24 | namespace fcitx_rime { 25 | 26 | RimeConfigParser::RimeConfigParser() : api(rime_get_api()), default_conf({0}), inError(false) { 27 | RimeModule *module = api->find_module("levers"); 28 | if (!module) { 29 | inError = true; 30 | } else { 31 | levers = (RimeLeversApi *)module->get_api(); 32 | start(true); 33 | } 34 | } 35 | 36 | RimeConfigParser::~RimeConfigParser() { api->finalize(); } 37 | 38 | bool RimeConfigParser::isError() { 39 | return inError; 40 | } 41 | 42 | bool RimeConfigParser::start(bool firstRun) { 43 | bool suc; 44 | char *user_path = NULL; 45 | FILE *fp = FcitxXDGGetFileUserWithPrefix(fcitx_rime_dir_prefix, 46 | ".place_holder", "w", NULL); 47 | if (fp) { 48 | fclose(fp); 49 | } 50 | FcitxXDGGetFileUserWithPrefix(fcitx_rime_dir_prefix, "", nullptr, 51 | &user_path); 52 | 53 | RIME_STRUCT(RimeTraits, fcitx_rime_traits); 54 | fcitx_rime_traits.shared_data_dir = RIME_DATA_DIR; 55 | fcitx_rime_traits.user_data_dir = user_path; 56 | fcitx_rime_traits.distribution_name = "Rime"; 57 | fcitx_rime_traits.distribution_code_name = "fcitx-rime-config"; 58 | fcitx_rime_traits.distribution_version = "0.1.0"; 59 | fcitx_rime_traits.app_name = "rime.fcitx-rime-config"; 60 | if (firstRun) { 61 | api->setup(&fcitx_rime_traits); 62 | } 63 | default_conf = {0}; 64 | api->initialize(&fcitx_rime_traits); 65 | settings = levers->custom_settings_init("default", "rime_patch"); 66 | suc = levers->load_settings(settings); 67 | if(!suc) { 68 | return false; 69 | } 70 | suc = levers->settings_get_config(settings, &default_conf); 71 | if(!suc) { 72 | return false; 73 | } 74 | 75 | free(user_path); 76 | return true; 77 | } 78 | 79 | void RimeConfigParser::setToggleKeys(const std::vector &keys) { 80 | api->config_clear(&default_conf, "switcher/hotkeys"); 81 | api->config_create_list(&default_conf, "switcher/hotkeys"); 82 | RimeConfigIterator iterator; 83 | api->config_begin_list(&iterator, &default_conf, "switcher/hotkeys"); 84 | api->config_next(&iterator); 85 | for (size_t i = 0; i < keys.size(); i++) { 86 | api->config_next(&iterator); 87 | api->config_set_string(&default_conf, iterator.path, keys[i].data()); 88 | } 89 | api->config_end(&iterator); 90 | } 91 | 92 | std::vector RimeConfigParser::getToggleKeys() { 93 | std::vector result; 94 | listForeach(&default_conf, "switcher/hotkeys", 95 | [=, &result](RimeConfig *config, const char *path) { 96 | auto str = api->config_get_cstring(config, path); 97 | if (str) { 98 | result.push_back(str); 99 | } 100 | return true; 101 | }); 102 | return result; 103 | } 104 | 105 | const char *keyBindingConditionToString(KeybindingCondition condition) { 106 | switch (condition) { 107 | case KeybindingCondition::Composing: 108 | return "composing"; 109 | case KeybindingCondition::HasMenu: 110 | return "has_menu"; 111 | case KeybindingCondition::Always: 112 | return "always"; 113 | case KeybindingCondition::Paging: 114 | return "paging"; 115 | } 116 | return ""; 117 | } 118 | 119 | KeybindingCondition keyBindingConditionFromString(const char *str) { 120 | if (strcmp(str, "composing") == 0) { 121 | return KeybindingCondition::Composing; 122 | } else if (strcmp(str, "has_menu") == 0) { 123 | return KeybindingCondition::HasMenu; 124 | } else if (strcmp(str, "paging") == 0) { 125 | return KeybindingCondition::Paging; 126 | } else if (strcmp(str, "always") == 0) { 127 | return KeybindingCondition::Always; 128 | } 129 | return KeybindingCondition::Composing; 130 | } 131 | 132 | const char *keybindingTypeToString(KeybindingType type) { 133 | switch (type) { 134 | case KeybindingType::Send: 135 | return "send"; 136 | case KeybindingType::Select: 137 | return "select"; 138 | case KeybindingType::Toggle: 139 | return "toggle"; 140 | } 141 | return ""; 142 | } 143 | 144 | const char *switchKeyFunctionToString(SwitchKeyFunction type) { 145 | switch (type) { 146 | case SwitchKeyFunction::Noop: 147 | return "noop"; 148 | case SwitchKeyFunction::InlineASCII: 149 | return "inline_ascii"; 150 | case SwitchKeyFunction::CommitText: 151 | return "commit_text"; 152 | case SwitchKeyFunction::CommitCode: 153 | return "commit_code"; 154 | case SwitchKeyFunction::Clear: 155 | return "clear"; 156 | } 157 | return ""; 158 | } 159 | 160 | SwitchKeyFunction switchKeyFunctionFromString(const char *str) { 161 | if (strcmp(str, "noop") == 0) { 162 | return SwitchKeyFunction::Noop; 163 | } else if (strcmp(str, "inline_ascii") == 0) { 164 | return SwitchKeyFunction::InlineASCII; 165 | } else if (strcmp(str, "commit_text")) { 166 | return SwitchKeyFunction::CommitText; 167 | } else if (strcmp(str, "commit_code")) { 168 | return SwitchKeyFunction::CommitCode; 169 | } else if (strcmp(str, "clear")) { 170 | return SwitchKeyFunction::Clear; 171 | } 172 | return SwitchKeyFunction::Noop; 173 | } 174 | 175 | void RimeConfigParser::setKeybindings(const std::vector &bindings) { 176 | RimeConfig copy_config = {0}; 177 | RimeConfig copy_config_map = {0}; 178 | RimeConfigIterator iterator; 179 | RimeConfigIterator copy_iterator; 180 | api->config_init(©_config); 181 | api->config_create_list(©_config, "key_binder/bindings"); 182 | api->config_begin_list(&iterator, &default_conf, "key_binder/bindings"); 183 | api->config_begin_list(©_iterator, ©_config, "key_binder/bindings"); 184 | while (!copy_iterator.path) { 185 | api->config_next(©_iterator); 186 | } 187 | while (api->config_next(&iterator)) { 188 | RimeConfig map = {0}; 189 | const char *send_key = NULL; 190 | api->config_get_item(&default_conf, iterator.path, &map); 191 | send_key = api->config_get_cstring(&map, "send"); 192 | if (!send_key) { 193 | send_key = api->config_get_cstring(&map, "toggle"); 194 | } 195 | if (!send_key) { 196 | send_key = api->config_get_cstring(&map, "select"); 197 | } 198 | if (strcmp(send_key, "Page_Up") && strcmp(send_key, "Page_Down") && 199 | strcmp(send_key, "ascii_mode") && strcmp(send_key, "full_shape") && 200 | strcmp(send_key, "simplification")) { 201 | api->config_set_item(©_config, copy_iterator.path, &map); 202 | api->config_next(©_iterator); 203 | } 204 | }; 205 | api->config_end(&iterator); 206 | for (auto &binding : bindings) { 207 | RimeConfig map = {0}; 208 | api->config_init(&map); 209 | api->config_set_string(&map, "accept", binding.accept.data()); 210 | api->config_set_string(&map, "when", 211 | keyBindingConditionToString(binding.when)); 212 | api->config_set_string(&map, keybindingTypeToString(binding.type), 213 | binding.action.data()); 214 | api->config_set_item(©_config, copy_iterator.path, &map); 215 | api->config_next(©_iterator); 216 | } 217 | api->config_end(©_iterator); 218 | api->config_get_item(©_config, "key_binder/bindings", ©_config_map); 219 | api->config_set_item(&default_conf, "key_binder/bindings", 220 | ©_config_map); 221 | } 222 | 223 | void RimeConfigParser::setPageSize(int page_size) { 224 | api->config_set_int(&default_conf, "menu/page_size", page_size); 225 | } 226 | 227 | bool RimeConfigParser::getPageSize(int *page_size) { 228 | return api->config_get_int(&default_conf, "menu/page_size", page_size); 229 | } 230 | 231 | std::vector RimeConfigParser::getKeybindings() { 232 | std::vector result; 233 | listForeach(&default_conf, "key_binder/bindings", 234 | [=, &result](RimeConfig *config, const char *path) { 235 | RimeConfig map = {0}; 236 | api->config_get_item(config, path, &map); 237 | auto when = api->config_get_cstring(&map, "when"); 238 | if (!when) { 239 | return false; 240 | } 241 | Keybinding binding; 242 | binding.when = keyBindingConditionFromString(when); 243 | auto accept = api->config_get_cstring(&map, "accept"); 244 | if (!accept) { 245 | return false; 246 | } 247 | binding.accept = accept; 248 | auto action = api->config_get_cstring(&map, "send"); 249 | if (action) { 250 | binding.type = KeybindingType::Send; 251 | } else { 252 | action = api->config_get_cstring(&map, "toggle"); 253 | } 254 | if (action) { 255 | binding.type = KeybindingType::Toggle; 256 | } else { 257 | action = api->config_get_cstring(&map, "select"); 258 | binding.type = KeybindingType::Select; 259 | } 260 | if (!action) { 261 | return false; 262 | } 263 | binding.action = action; 264 | result.push_back(std::move(binding)); 265 | return true; 266 | }); 267 | return result; 268 | } 269 | 270 | void RimeConfigParser::listForeach( 271 | RimeConfig *config, const char *key, 272 | std::function callback) { 273 | size_t size = RimeConfigListSize(config, key); 274 | if (!size) { 275 | return; 276 | } 277 | 278 | RimeConfigIterator iterator; 279 | RimeConfigBeginList(&iterator, config, key); 280 | for (auto i = 0; i < size; i++) { 281 | RimeConfigNext(&iterator); 282 | if (!callback(config, iterator.path)) { 283 | break; 284 | } 285 | } 286 | RimeConfigEnd(&iterator); 287 | } 288 | 289 | bool RimeConfigParser::sync() { 290 | int page_size; 291 | bool suc; 292 | RimeConfig hotkeys = {0}; 293 | RimeConfig keybindings = {0}; 294 | RimeConfig schema_list = {0}; 295 | std::string yaml; 296 | 297 | api->config_get_int(&default_conf, "menu/page_size", &page_size); 298 | levers->customize_int(settings, "menu/page_size", page_size); 299 | api->config_get_item(&default_conf, "switcher/hotkeys", &hotkeys); 300 | levers->customize_item(settings, "switcher/hotkeys", &hotkeys); 301 | api->config_get_item(&default_conf, "key_binder/bindings", &keybindings); 302 | levers->customize_item(settings, "key_binder/bindings", &keybindings); 303 | levers->customize_string( 304 | settings, "ascii_composer/switch_key/Shift_L", 305 | api->config_get_cstring(&default_conf, 306 | "ascii_composer/switch_key/Shift_L")); 307 | levers->customize_string( 308 | settings, "ascii_composer/switch_key/Shift_R", 309 | api->config_get_cstring(&default_conf, 310 | "ascii_composer/switch_key/Shift_R")); 311 | 312 | /* Concatenate all active schemas */ 313 | for (const auto &schema : schema_id_list) { 314 | yaml += "- { schema: " + schema + " } \n"; 315 | } 316 | api->config_load_string(&schema_list, yaml.c_str()); 317 | levers->customize_item(settings, "schema_list", &schema_list); 318 | suc = levers->save_settings(settings); 319 | if(!suc) { 320 | return false; 321 | } 322 | levers->custom_settings_destroy(settings); 323 | suc = api->start_maintenance(true); // Full check mode 324 | if(!suc) { 325 | return false; 326 | } 327 | api->finalize(); 328 | return start(false); 329 | } 330 | 331 | std::string RimeConfigParser::stringFromYAML(const char *yaml, 332 | const char *attr) { 333 | RimeConfig rime_schema_config = {0}; 334 | api->config_load_string(&rime_schema_config, yaml); 335 | auto str = api->config_get_cstring(&rime_schema_config, attr); 336 | std::string result; 337 | if (str) { 338 | result = str; 339 | } 340 | return result; 341 | } 342 | 343 | void RimeConfigParser::setSchemas(const std::vector &schemas) { 344 | schema_id_list = schemas; 345 | return; 346 | } 347 | 348 | int RimeConfigParser::schemaIndex(const char *schema_id) { 349 | int idx = 0; 350 | bool found = false; 351 | listForeach(&default_conf, "schema_list", 352 | [=, &idx, &found](RimeConfig *config, const char *path) { 353 | RimeConfig map = {0}; 354 | this->api->config_get_item(config, path, &map); 355 | auto schema = this->api->config_get_cstring(&map, "schema"); 356 | /* This schema is enabled in default */ 357 | if (schema && strcmp(schema, schema_id) == 0) { 358 | found = true; 359 | return false; 360 | } 361 | idx++; 362 | return true; 363 | }); 364 | 365 | return found ? (idx + 1) : 0; 366 | } 367 | 368 | std::vector RimeConfigParser::getSwitchKeys() { 369 | std::vector out; 370 | const char *shift_l = NULL, *shift_r = NULL; 371 | shift_l = api->config_get_cstring(&default_conf, 372 | "ascii_composer/switch_key/Shift_L"); 373 | shift_r = api->config_get_cstring(&default_conf, 374 | "ascii_composer/switch_key/Shift_R"); 375 | out.push_back(switchKeyFunctionFromString(shift_l)); 376 | out.push_back(switchKeyFunctionFromString(shift_r)); 377 | return out; 378 | } 379 | 380 | void RimeConfigParser::setSwitchKeys( 381 | const std::vector &switch_keys) { 382 | if (switch_keys.size() < 2) { 383 | return; 384 | } 385 | api->config_set_string(&default_conf, "ascii_composer/switch_key/Shift_L", 386 | switchKeyFunctionToString(switch_keys[0])); 387 | api->config_set_string(&default_conf, "ascii_composer/switch_key/Shift_R", 388 | switchKeyFunctionToString(switch_keys[1])); 389 | return; 390 | } 391 | 392 | } // namespace fcitx_rime 393 | -------------------------------------------------------------------------------- /gui/src/RimeConfigParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright (C) 2018~2018 by xuzhao9 3 | // Copyright (C) 2018~2018 by Weng Xuetian 4 | // 5 | // This program is free software; you can redistribute it and/or modify 6 | // it under the terms of the GNU General Public License as published by 7 | // the Free Software Foundation; either version 2 of the License, 8 | // or (at your option) any later version. 9 | // 10 | // This program is distributed in the hope that it will be useful, 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | // General Public License for more details. 14 | // 15 | // You should have received a copy of the GNU General Public License 16 | // along with this program; see the file COPYING. If not, 17 | // see . 18 | // 19 | #ifndef FCITX_RIME_CONFIG_H 20 | #define FCITX_RIME_CONFIG_H 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | static constexpr const char *fcitx_rime_dir_prefix = "rime"; 28 | static constexpr const char *fcitx_rime_schema_suffix = ".schema.yaml"; 29 | 30 | namespace fcitx_rime { 31 | 32 | enum class KeybindingCondition { 33 | Composing, 34 | HasMenu, 35 | Paging, 36 | Always, 37 | }; 38 | 39 | enum class KeybindingType { 40 | Send, 41 | Toggle, 42 | Select, 43 | }; 44 | 45 | enum class SwitchKeyFunction { 46 | Noop, 47 | InlineASCII, 48 | CommitText, 49 | CommitCode, 50 | Clear, 51 | }; 52 | 53 | struct Keybinding { 54 | KeybindingCondition when; 55 | std::string accept; 56 | KeybindingType type; 57 | std::string action; 58 | }; 59 | 60 | class RimeConfigParser { 61 | public: 62 | RimeConfigParser(); 63 | ~RimeConfigParser(); 64 | 65 | bool isError(); 66 | bool sync(); 67 | 68 | void setSwitchKeys(const std::vector &switch_keys); 69 | std::vector getSwitchKeys(); 70 | 71 | void setToggleKeys(const std::vector &keys); 72 | std::vector getToggleKeys(); 73 | 74 | void setKeybindings(const std::vector &bindings); 75 | std::vector getKeybindings(); 76 | 77 | void setPageSize(int page_size); 78 | bool getPageSize(int *page_size); 79 | 80 | std::string stringFromYAML(const char *yaml, const char *attr); 81 | void setSchemas(const std::vector &schemas); 82 | int schemaIndex(const char *schema); 83 | 84 | private: 85 | bool start(bool firstRun = false); 86 | static void 87 | listForeach(RimeConfig *config, const char *key, 88 | std::function); 89 | 90 | RimeApi *api; 91 | RimeLeversApi *levers; 92 | RimeCustomSettings *settings; 93 | RimeConfig default_conf; 94 | std::vector schema_id_list; 95 | bool inError; 96 | }; 97 | 98 | } // namespace fcitx_rime 99 | 100 | #endif // FCITX_RIME_CONFIG_H 101 | -------------------------------------------------------------------------------- /gui/src/fcitx-rime-config.json: -------------------------------------------------------------------------------- 1 | { 2 | } 3 | -------------------------------------------------------------------------------- /gui/src/keysym.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012~2015 by CSSlayer 3 | * wengxt@gmail.com 4 | * Copyright (C) 2017 Modified by xzhao 5 | * i@xuzhao.net 6 | * 7 | * This library is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU Lesser General Public License as 9 | * published by the Free Software Foundation; either version 2 of the 10 | * License, or (at your option) any later version. 11 | * 12 | * This library is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 | * Lesser General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU Lesser General Public 18 | * License along with this library; see the file COPYING. If not, 19 | * see . 20 | */ 21 | 22 | #ifndef _FCITX_UTILS_KEYSYM_H_ 23 | #define _FCITX_UTILS_KEYSYM_H_ 24 | 25 | #include 26 | 27 | namespace fcitx { 28 | /** 29 | * fcitx key state (modifier keys) 30 | **/ 31 | enum class KeyState : uint32_t { 32 | None = 0, 33 | Shift = 1 << 0, 34 | CapsLock = 1 << 1, 35 | Ctrl = 1 << 2, 36 | Alt = 1 << 3, 37 | Alt_Shift = Alt | Shift, 38 | Ctrl_Shift = Ctrl | Shift, 39 | Ctrl_Alt = Ctrl | Alt, 40 | Ctrl_Alt_Shift = Ctrl | Alt | Shift, 41 | NumLock = 1 << 4, 42 | Super = 1 << 6, 43 | ScrollLock = 1 << 7, 44 | MousePressed = 1 << 8, 45 | HandledMask = 1 << 24, 46 | IgnoredMask = 1 << 25, 47 | Super2 = 1 << 26, 48 | Hyper = 1 << 27, 49 | Meta = 1 << 28, 50 | UsedMask = 0x5c001fff, 51 | SimpleMask = Ctrl_Alt_Shift | Super | Super2 | Hyper | Meta, 52 | }; 53 | } // namespace fcitx 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /po/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | file(GLOB PO_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.po) 2 | 3 | foreach(po_file ${PO_FILES}) 4 | string(REPLACE ".po" "" po_lang "${po_file}") 5 | fcitx_translate_add_po_file("${po_lang}" "${po_file}") 6 | endforeach() 7 | fcitx_translate_set_pot_target(pot fcitx-rime fcitx-rime.pot) 8 | 9 | 10 | -------------------------------------------------------------------------------- /po/ca.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Robert Antoni Buj Gelonch , 2017 7 | # Walter Garcia-Fontes , 2017 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: fcitx\n" 11 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 12 | "POT-Creation-Date: 2020-10-07 00:03-0700\n" 13 | "PO-Revision-Date: 2018-05-30 07:04+0000\n" 14 | "Last-Translator: csslayer \n" 15 | "Language-Team: Catalan (http://www.transifex.com/fcitx/fcitx/language/ca/)\n" 16 | "Language: ca\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 21 | 22 | #. i18n: file: gui/src/ConfigMain.ui:423 23 | #. i18n: ectx: property (text), widget (QLabel, label_4) 24 | msgid "Select Input Schema:" 25 | msgstr "" 26 | 27 | #. i18n: file: gui/src/ConfigMain.ui:358 28 | #. i18n: ectx: property (text), widget (QLabel, label_2) 29 | msgid "Active Input Schemas:" 30 | msgstr "" 31 | 32 | #. i18n: file: gui/src/ConfigMain.ui:296 33 | #. i18n: ectx: property (text), widget (QLabel, label) 34 | msgid "Available Input Schemas:" 35 | msgstr "" 36 | 37 | #. i18n: file: gui/src/ConfigMain.ui:33 38 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 39 | msgid "Call-out Menu" 40 | msgstr "" 41 | 42 | #. i18n: file: gui/src/ConfigMain.ui:177 43 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 44 | msgid "Candidate Word Number" 45 | msgstr "" 46 | 47 | #. i18n: file: gui/src/ConfigMain.ui:220 48 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 49 | #. i18n: file: gui/src/ConfigMain.ui:259 50 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 51 | msgid "Clear" 52 | msgstr "" 53 | 54 | #. i18n: file: gui/src/ConfigMain.ui:215 55 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 56 | #. i18n: file: gui/src/ConfigMain.ui:254 57 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 58 | msgid "Commit Code" 59 | msgstr "" 60 | 61 | #. i18n: file: gui/src/ConfigMain.ui:210 62 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 63 | #. i18n: file: gui/src/ConfigMain.ui:249 64 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 65 | msgid "Commit Text" 66 | msgstr "" 67 | 68 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 69 | msgid "Deploy" 70 | msgstr "Desplega" 71 | 72 | #: src/fcitx-rime.c:528 73 | msgid "English" 74 | msgstr "Anglès" 75 | 76 | #: src/fcitx-rime.conf.in:11 77 | msgid "Fcitx Rime Config" 78 | msgstr "" 79 | 80 | #: gui/src/ConfigMain.cpp:249 81 | msgid "Fcitx Rime Config GUI Tool" 82 | msgstr "" 83 | 84 | #. i18n: file: gui/src/ConfigMain.ui:113 85 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 86 | msgid "Half/Full Shape" 87 | msgstr "" 88 | 89 | #. i18n: file: gui/src/ConfigMain.ui:205 90 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 91 | #. i18n: file: gui/src/ConfigMain.ui:244 92 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 93 | msgid "Inline ASCII" 94 | msgstr "" 95 | 96 | #. i18n: file: gui/src/ConfigMain.ui:193 97 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 98 | msgid "Left Shift Key" 99 | msgstr "" 100 | 101 | #. i18n: file: gui/src/ConfigMain.ui:14 102 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 103 | msgid "MainWindow" 104 | msgstr "" 105 | 106 | #. i18n: file: gui/src/ConfigMain.ui:200 107 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 108 | #. i18n: file: gui/src/ConfigMain.ui:239 109 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 110 | msgid "Noop" 111 | msgstr "" 112 | 113 | #. i18n: file: gui/src/ConfigMain.ui:86 114 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 115 | msgid "Page Down" 116 | msgstr "" 117 | 118 | #. i18n: file: gui/src/ConfigMain.ui:58 119 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 120 | msgid "Page Up" 121 | msgstr "" 122 | 123 | #. i18n: file: gui/src/ConfigMain.ui:232 124 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 125 | msgid "Right Shift Key" 126 | msgstr "" 127 | 128 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 129 | #: src/rime.conf.in:3 130 | msgid "Rime" 131 | msgstr "Rime" 132 | 133 | #: src/fcitx-rime.conf.in:4 134 | msgid "Rime Wrapper For Fcitx" 135 | msgstr "Contenidor rime per a fcitx" 136 | 137 | #: src/fcitx-rime.c:64 138 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 139 | msgstr "Rime ha trobat un error. Vegeu /tmp/rime.fcitx.ERROR per als detalls." 140 | 141 | #: src/fcitx-rime.c:62 142 | msgid "Rime is ready." 143 | msgstr "Rime està preparat." 144 | 145 | #: src/fcitx-rime.c:60 146 | msgid "Rime is under maintenance ..." 147 | msgstr "Rime estar sota manteniment ..." 148 | 149 | #. i18n: file: gui/src/ConfigMain.ui:270 150 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 151 | msgid "Schema" 152 | msgstr "" 153 | 154 | #: src/fcitx-rime.c:173 155 | msgid "Schema List" 156 | msgstr "Llista d'esquemes" 157 | 158 | #. i18n: file: gui/src/ConfigMain.ui:26 159 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 160 | msgid "Shortcut" 161 | msgstr "" 162 | 163 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 164 | msgid "Synchronize" 165 | msgstr "Sincronitza" 166 | 167 | #. i18n: file: gui/src/ConfigMain.ui:157 168 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 169 | msgid "Traditional/Simplified" 170 | msgstr "" 171 | 172 | #. i18n: file: gui/src/ConfigMain.ui:137 173 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 174 | msgid "Western/Eastern" 175 | msgstr "" 176 | 177 | msgctxt "EMAIL OF TRANSLATORS" 178 | msgid "Your emails" 179 | msgstr "" 180 | 181 | msgctxt "NAME OF TRANSLATORS" 182 | msgid "Your names" 183 | msgstr "" 184 | -------------------------------------------------------------------------------- /po/da.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # scootergrisen, 2017-2018,2020 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: fcitx\n" 10 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 11 | "POT-Creation-Date: 2020-10-13 00:02-0700\n" 12 | "PO-Revision-Date: 2020-10-12 19:44+0000\n" 13 | "Last-Translator: scootergrisen\n" 14 | "Language-Team: Danish (http://www.transifex.com/fcitx/fcitx/language/da/)\n" 15 | "Language: da\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #. i18n: file: gui/src/ConfigMain.ui:423 22 | #. i18n: ectx: property (text), widget (QLabel, label_4) 23 | msgid "Select Input Schema:" 24 | msgstr "Vælg inputskema:" 25 | 26 | #. i18n: file: gui/src/ConfigMain.ui:358 27 | #. i18n: ectx: property (text), widget (QLabel, label_2) 28 | msgid "Active Input Schemas:" 29 | msgstr "Aktive inputskemaer:" 30 | 31 | #. i18n: file: gui/src/ConfigMain.ui:296 32 | #. i18n: ectx: property (text), widget (QLabel, label) 33 | msgid "Available Input Schemas:" 34 | msgstr "Tilgængelige inputskemaer:" 35 | 36 | #. i18n: file: gui/src/ConfigMain.ui:33 37 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 38 | msgid "Call-out Menu" 39 | msgstr "Udkaldsmenu" 40 | 41 | #. i18n: file: gui/src/ConfigMain.ui:177 42 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 43 | msgid "Candidate Word Number" 44 | msgstr "Kandidatord-nummer" 45 | 46 | #. i18n: file: gui/src/ConfigMain.ui:220 47 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 48 | #. i18n: file: gui/src/ConfigMain.ui:259 49 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 50 | msgid "Clear" 51 | msgstr "Ryd" 52 | 53 | #. i18n: file: gui/src/ConfigMain.ui:215 54 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 55 | #. i18n: file: gui/src/ConfigMain.ui:254 56 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 57 | msgid "Commit Code" 58 | msgstr "Udfør kode" 59 | 60 | #. i18n: file: gui/src/ConfigMain.ui:210 61 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 62 | #. i18n: file: gui/src/ConfigMain.ui:249 63 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 64 | msgid "Commit Text" 65 | msgstr "Udfør tekst" 66 | 67 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 68 | msgid "Deploy" 69 | msgstr "Udsend" 70 | 71 | #: src/fcitx-rime.c:528 72 | msgid "English" 73 | msgstr "Engelsk" 74 | 75 | #: src/fcitx-rime.conf.in:11 76 | msgid "Fcitx Rime Config" 77 | msgstr "Fcitx Rime-konfiguration" 78 | 79 | #: gui/src/ConfigMain.cpp:249 80 | msgid "Fcitx Rime Config GUI Tool" 81 | msgstr "Fcitx Rime-konfigurationsværktøj med grafisk brugerflade" 82 | 83 | #. i18n: file: gui/src/ConfigMain.ui:113 84 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 85 | msgid "Half/Full Shape" 86 | msgstr "Halv/fuld form" 87 | 88 | #. i18n: file: gui/src/ConfigMain.ui:205 89 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 90 | #. i18n: file: gui/src/ConfigMain.ui:244 91 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 92 | msgid "Inline ASCII" 93 | msgstr "Inline ASCII" 94 | 95 | #. i18n: file: gui/src/ConfigMain.ui:193 96 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 97 | msgid "Left Shift Key" 98 | msgstr "Venstre Skift-tast" 99 | 100 | #. i18n: file: gui/src/ConfigMain.ui:14 101 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 102 | msgid "MainWindow" 103 | msgstr "Hovedvindue" 104 | 105 | #. i18n: file: gui/src/ConfigMain.ui:200 106 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 107 | #. i18n: file: gui/src/ConfigMain.ui:239 108 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 109 | msgid "Noop" 110 | msgstr "Noop" 111 | 112 | #. i18n: file: gui/src/ConfigMain.ui:86 113 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 114 | msgid "Page Down" 115 | msgstr "Page Down" 116 | 117 | #. i18n: file: gui/src/ConfigMain.ui:58 118 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 119 | msgid "Page Up" 120 | msgstr "Page Up" 121 | 122 | #. i18n: file: gui/src/ConfigMain.ui:232 123 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 124 | msgid "Right Shift Key" 125 | msgstr "Højre Skift-tast" 126 | 127 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 128 | #: src/rime.conf.in:3 129 | msgid "Rime" 130 | msgstr "Rime" 131 | 132 | #: src/fcitx-rime.conf.in:4 133 | msgid "Rime Wrapper For Fcitx" 134 | msgstr "Rime-wrapper til Fcitx" 135 | 136 | #: src/fcitx-rime.c:64 137 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 138 | msgstr "Rime stødte på en fejl. Se /tmp/rime.fcitx.ERROR for detaljer." 139 | 140 | #: src/fcitx-rime.c:62 141 | msgid "Rime is ready." 142 | msgstr "Rime er klar." 143 | 144 | #: src/fcitx-rime.c:60 145 | msgid "Rime is under maintenance ..." 146 | msgstr "Rime er ved at blive vedligeholdt ..." 147 | 148 | #. i18n: file: gui/src/ConfigMain.ui:270 149 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 150 | msgid "Schema" 151 | msgstr "Skema" 152 | 153 | #: src/fcitx-rime.c:173 154 | msgid "Schema List" 155 | msgstr "Skemaliste" 156 | 157 | #. i18n: file: gui/src/ConfigMain.ui:26 158 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 159 | msgid "Shortcut" 160 | msgstr "Genvej" 161 | 162 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 163 | msgid "Synchronize" 164 | msgstr "Synkroniser" 165 | 166 | #. i18n: file: gui/src/ConfigMain.ui:157 167 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 168 | msgid "Traditional/Simplified" 169 | msgstr "Traditionel/forenklet" 170 | 171 | #. i18n: file: gui/src/ConfigMain.ui:137 172 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 173 | msgid "Western/Eastern" 174 | msgstr "Vestlig/østlig" 175 | 176 | msgctxt "EMAIL OF TRANSLATORS" 177 | msgid "Your emails" 178 | msgstr "Dine e-mails" 179 | 180 | msgctxt "NAME OF TRANSLATORS" 181 | msgid "Your names" 182 | msgstr "Dine navne" 183 | -------------------------------------------------------------------------------- /po/de.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Ettore Atalan , 2022 7 | # mar well , 2013 8 | # mar well , 2013-2014,2017-2018 9 | msgid "" 10 | msgstr "" 11 | "Project-Id-Version: fcitx\n" 12 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 13 | "POT-Creation-Date: 2022-01-15 20:26+0000\n" 14 | "PO-Revision-Date: 2022-01-15 15:10+0000\n" 15 | "Last-Translator: Ettore Atalan \n" 16 | "Language-Team: German (http://www.transifex.com/fcitx/fcitx/language/de/)\n" 17 | "Language: de\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 22 | 23 | #. i18n: file: gui/src/ConfigMain.ui:423 24 | #. i18n: ectx: property (text), widget (QLabel, label_4) 25 | msgid "Select Input Schema:" 26 | msgstr "Auswahl Eingabeschema:" 27 | 28 | #. i18n: file: gui/src/ConfigMain.ui:358 29 | #. i18n: ectx: property (text), widget (QLabel, label_2) 30 | msgid "Active Input Schemas:" 31 | msgstr "Aktive Eingabeschemata:" 32 | 33 | #. i18n: file: gui/src/ConfigMain.ui:296 34 | #. i18n: ectx: property (text), widget (QLabel, label) 35 | msgid "Available Input Schemas:" 36 | msgstr "Vorhandene Eingabeschemata:" 37 | 38 | #. i18n: file: gui/src/ConfigMain.ui:33 39 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 40 | msgid "Call-out Menu" 41 | msgstr "" 42 | 43 | #. i18n: file: gui/src/ConfigMain.ui:177 44 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 45 | msgid "Candidate Word Number" 46 | msgstr "Anzahl Zeichenvorschläge" 47 | 48 | #. i18n: file: gui/src/ConfigMain.ui:220 49 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 50 | #. i18n: file: gui/src/ConfigMain.ui:259 51 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 52 | msgid "Clear" 53 | msgstr "" 54 | 55 | #. i18n: file: gui/src/ConfigMain.ui:215 56 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 57 | #. i18n: file: gui/src/ConfigMain.ui:254 58 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 59 | msgid "Commit Code" 60 | msgstr "" 61 | 62 | #. i18n: file: gui/src/ConfigMain.ui:210 63 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 64 | #. i18n: file: gui/src/ConfigMain.ui:249 65 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 66 | msgid "Commit Text" 67 | msgstr "" 68 | 69 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 70 | msgid "Deploy" 71 | msgstr "Deploy" 72 | 73 | #: src/fcitx-rime.c:528 74 | msgid "English" 75 | msgstr "Englisch" 76 | 77 | #: src/fcitx-rime.conf.in:11 78 | msgid "Fcitx Rime Config" 79 | msgstr "Fcitx Rime Konfiguration" 80 | 81 | #: gui/src/ConfigMain.cpp:254 82 | msgid "Fcitx Rime Config GUI Tool" 83 | msgstr "Graphisches Benutzerinterface für Fcitx Rime" 84 | 85 | #. i18n: file: gui/src/ConfigMain.ui:113 86 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 87 | msgid "Half/Full Shape" 88 | msgstr "Half/Full Shape" 89 | 90 | #. i18n: file: gui/src/ConfigMain.ui:205 91 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 92 | #. i18n: file: gui/src/ConfigMain.ui:244 93 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 94 | msgid "Inline ASCII" 95 | msgstr "" 96 | 97 | #. i18n: file: gui/src/ConfigMain.ui:193 98 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 99 | msgid "Left Shift Key" 100 | msgstr "Linke Umschalttaste" 101 | 102 | #. i18n: file: gui/src/ConfigMain.ui:14 103 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 104 | msgid "MainWindow" 105 | msgstr "MainWindow" 106 | 107 | #. i18n: file: gui/src/ConfigMain.ui:200 108 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 109 | #. i18n: file: gui/src/ConfigMain.ui:239 110 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 111 | msgid "Noop" 112 | msgstr "" 113 | 114 | #. i18n: file: gui/src/ConfigMain.ui:86 115 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 116 | msgid "Page Down" 117 | msgstr "Seite nach unten" 118 | 119 | #. i18n: file: gui/src/ConfigMain.ui:58 120 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 121 | msgid "Page Up" 122 | msgstr "Seite nach oben" 123 | 124 | #. i18n: file: gui/src/ConfigMain.ui:232 125 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 126 | msgid "Right Shift Key" 127 | msgstr "Rechte Umschalttaste" 128 | 129 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 130 | #: src/rime.conf.in:3 131 | msgid "Rime" 132 | msgstr "Rime" 133 | 134 | #: src/fcitx-rime.conf.in:4 135 | msgid "Rime Wrapper For Fcitx" 136 | msgstr "Rime Wrapper für Fcitx" 137 | 138 | #: src/fcitx-rime.c:64 139 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 140 | msgstr "" 141 | "Rime ist auf einen Fehler gestoßen. Bitte sehen Sie für mehr Infos in /tmp/" 142 | "rime.fcitx.ERROR nach." 143 | 144 | #: src/fcitx-rime.c:62 145 | msgid "Rime is ready." 146 | msgstr "Rime ist bereit." 147 | 148 | #: src/fcitx-rime.c:60 149 | msgid "Rime is under maintenance ..." 150 | msgstr "Rime wird im Moment gewartet." 151 | 152 | #. i18n: file: gui/src/ConfigMain.ui:270 153 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 154 | msgid "Schema" 155 | msgstr "Schema" 156 | 157 | #: src/fcitx-rime.c:173 158 | msgid "Schema List" 159 | msgstr "Liste Schemata" 160 | 161 | #. i18n: file: gui/src/ConfigMain.ui:26 162 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 163 | msgid "Shortcut" 164 | msgstr "" 165 | 166 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 167 | msgid "Synchronize" 168 | msgstr "Synchronisieren" 169 | 170 | #. i18n: file: gui/src/ConfigMain.ui:157 171 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 172 | msgid "Traditional/Simplified" 173 | msgstr "Traditionell/Simplifiziert" 174 | 175 | #. i18n: file: gui/src/ConfigMain.ui:137 176 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 177 | msgid "Western/Eastern" 178 | msgstr "Westlich/Östlich" 179 | 180 | msgctxt "EMAIL OF TRANSLATORS" 181 | msgid "Your emails" 182 | msgstr "marwell.1980@freenet.de" 183 | 184 | msgctxt "NAME OF TRANSLATORS" 185 | msgid "Your names" 186 | msgstr "Marcus Wellendorf" 187 | -------------------------------------------------------------------------------- /po/fcitx-rime.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 11 | "POT-Creation-Date: 2020-10-07 00:03-0700\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: LANG\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=utf-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: gui/src/ConfigMain.cpp:249 21 | msgid "Fcitx Rime Config GUI Tool" 22 | msgstr "" 23 | 24 | #: src/fcitx-rime.c:60 25 | msgid "Rime is under maintenance ..." 26 | msgstr "" 27 | 28 | #: src/fcitx-rime.c:62 29 | msgid "Rime is ready." 30 | msgstr "" 31 | 32 | #: src/fcitx-rime.c:64 33 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 34 | msgstr "" 35 | 36 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 37 | #: src/rime.conf.in:3 38 | msgid "Rime" 39 | msgstr "" 40 | 41 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 42 | msgid "Deploy" 43 | msgstr "" 44 | 45 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 46 | msgid "Synchronize" 47 | msgstr "" 48 | 49 | #: src/fcitx-rime.c:173 50 | msgid "Schema List" 51 | msgstr "" 52 | 53 | #: src/fcitx-rime.c:528 54 | msgid "English" 55 | msgstr "" 56 | 57 | #: src/fcitx-rime.conf.in:4 58 | msgid "Rime Wrapper For Fcitx" 59 | msgstr "" 60 | 61 | #: src/fcitx-rime.conf.in:11 62 | msgid "Fcitx Rime Config" 63 | msgstr "" 64 | 65 | #. i18n: file: gui/src/ConfigMain.ui:14 66 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 67 | msgid "MainWindow" 68 | msgstr "" 69 | 70 | #. i18n: file: gui/src/ConfigMain.ui:26 71 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 72 | msgid "Shortcut" 73 | msgstr "" 74 | 75 | #. i18n: file: gui/src/ConfigMain.ui:33 76 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 77 | msgid "Call-out Menu" 78 | msgstr "" 79 | 80 | #. i18n: file: gui/src/ConfigMain.ui:58 81 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 82 | msgid "Page Up" 83 | msgstr "" 84 | 85 | #. i18n: file: gui/src/ConfigMain.ui:86 86 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 87 | msgid "Page Down" 88 | msgstr "" 89 | 90 | #. i18n: file: gui/src/ConfigMain.ui:113 91 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 92 | msgid "Half/Full Shape" 93 | msgstr "" 94 | 95 | #. i18n: file: gui/src/ConfigMain.ui:137 96 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 97 | msgid "Western/Eastern" 98 | msgstr "" 99 | 100 | #. i18n: file: gui/src/ConfigMain.ui:157 101 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 102 | msgid "Traditional/Simplified" 103 | msgstr "" 104 | 105 | #. i18n: file: gui/src/ConfigMain.ui:177 106 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 107 | msgid "Candidate Word Number" 108 | msgstr "" 109 | 110 | #. i18n: file: gui/src/ConfigMain.ui:193 111 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 112 | msgid "Left Shift Key" 113 | msgstr "" 114 | 115 | #. i18n: file: gui/src/ConfigMain.ui:200 116 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 117 | #. i18n: file: gui/src/ConfigMain.ui:239 118 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 119 | msgid "Noop" 120 | msgstr "" 121 | 122 | #. i18n: file: gui/src/ConfigMain.ui:205 123 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 124 | #. i18n: file: gui/src/ConfigMain.ui:244 125 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 126 | msgid "Inline ASCII" 127 | msgstr "" 128 | 129 | #. i18n: file: gui/src/ConfigMain.ui:210 130 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 131 | #. i18n: file: gui/src/ConfigMain.ui:249 132 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 133 | msgid "Commit Text" 134 | msgstr "" 135 | 136 | #. i18n: file: gui/src/ConfigMain.ui:215 137 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 138 | #. i18n: file: gui/src/ConfigMain.ui:254 139 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 140 | msgid "Commit Code" 141 | msgstr "" 142 | 143 | #. i18n: file: gui/src/ConfigMain.ui:220 144 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 145 | #. i18n: file: gui/src/ConfigMain.ui:259 146 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 147 | msgid "Clear" 148 | msgstr "" 149 | 150 | #. i18n: file: gui/src/ConfigMain.ui:232 151 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 152 | msgid "Right Shift Key" 153 | msgstr "" 154 | 155 | #. i18n: file: gui/src/ConfigMain.ui:270 156 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 157 | msgid "Schema" 158 | msgstr "" 159 | 160 | #. i18n: file: gui/src/ConfigMain.ui:296 161 | #. i18n: ectx: property (text), widget (QLabel, label) 162 | msgid "Available Input Schemas:" 163 | msgstr "" 164 | 165 | #. i18n: file: gui/src/ConfigMain.ui:358 166 | #. i18n: ectx: property (text), widget (QLabel, label_2) 167 | msgid "Active Input Schemas:" 168 | msgstr "" 169 | 170 | #. i18n: file: gui/src/ConfigMain.ui:423 171 | #. i18n: ectx: property (text), widget (QLabel, label_4) 172 | msgid "Select Input Schema:" 173 | msgstr "" 174 | 175 | msgctxt "NAME OF TRANSLATORS" 176 | msgid "Your names" 177 | msgstr "" 178 | 179 | msgctxt "EMAIL OF TRANSLATORS" 180 | msgid "Your emails" 181 | msgstr "" 182 | -------------------------------------------------------------------------------- /po/ja.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # shirou - しろう , 2013 7 | # Aaron Muir Hamilton , 2022 8 | # ABE Tsunehiko, 2017 9 | # ABE Tsunehiko, 2017 10 | # shirou - しろう , 2013 11 | # Takuro Onoue , 2020 12 | # shirou - しろう , 2013 13 | msgid "" 14 | msgstr "" 15 | "Project-Id-Version: fcitx\n" 16 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 17 | "POT-Creation-Date: 2022-12-07 20:28+0000\n" 18 | "PO-Revision-Date: 2013-03-25 22:16+0000\n" 19 | "Last-Translator: Aaron Muir Hamilton , 2022\n" 20 | "Language-Team: Japanese (http://www.transifex.com/fcitx/fcitx/language/ja/)\n" 21 | "Language: ja\n" 22 | "MIME-Version: 1.0\n" 23 | "Content-Type: text/plain; charset=UTF-8\n" 24 | "Content-Transfer-Encoding: 8bit\n" 25 | "Plural-Forms: nplurals=1; plural=0;\n" 26 | 27 | #. i18n: file: gui/src/ConfigMain.ui:423 28 | #. i18n: ectx: property (text), widget (QLabel, label_4) 29 | msgid "Select Input Schema:" 30 | msgstr "入力スキーマの選択:" 31 | 32 | #. i18n: file: gui/src/ConfigMain.ui:358 33 | #. i18n: ectx: property (text), widget (QLabel, label_2) 34 | msgid "Active Input Schemas:" 35 | msgstr "有効な入力スキーマ" 36 | 37 | #. i18n: file: gui/src/ConfigMain.ui:296 38 | #. i18n: ectx: property (text), widget (QLabel, label) 39 | msgid "Available Input Schemas:" 40 | msgstr "利用可能な入力スキーマ" 41 | 42 | #. i18n: file: gui/src/ConfigMain.ui:33 43 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 44 | msgid "Call-out Menu" 45 | msgstr "" 46 | 47 | #. i18n: file: gui/src/ConfigMain.ui:177 48 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 49 | msgid "Candidate Word Number" 50 | msgstr "候補の単語数" 51 | 52 | #. i18n: file: gui/src/ConfigMain.ui:220 53 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 54 | #. i18n: file: gui/src/ConfigMain.ui:259 55 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 56 | msgid "Clear" 57 | msgstr "クリア" 58 | 59 | #. i18n: file: gui/src/ConfigMain.ui:215 60 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 61 | #. i18n: file: gui/src/ConfigMain.ui:254 62 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 63 | msgid "Commit Code" 64 | msgstr "確定コード" 65 | 66 | #. i18n: file: gui/src/ConfigMain.ui:210 67 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 68 | #. i18n: file: gui/src/ConfigMain.ui:249 69 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 70 | msgid "Commit Text" 71 | msgstr "確定テキスト" 72 | 73 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 74 | msgid "Deploy" 75 | msgstr "デプロイ" 76 | 77 | #: src/fcitx-rime.c:528 78 | msgid "English" 79 | msgstr "英語" 80 | 81 | #: src/fcitx-rime.conf.in:11 82 | msgid "Fcitx Rime Config" 83 | msgstr "Fcitx Rime 設定" 84 | 85 | #: gui/src/ConfigMain.cpp:254 86 | msgid "Fcitx Rime Config GUI Tool" 87 | msgstr "Fcitx Rime GUI 設定ツール" 88 | 89 | #. i18n: file: gui/src/ConfigMain.ui:113 90 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 91 | msgid "Half/Full Shape" 92 | msgstr "半角/全角" 93 | 94 | #. i18n: file: gui/src/ConfigMain.ui:205 95 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 96 | #. i18n: file: gui/src/ConfigMain.ui:244 97 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 98 | msgid "Inline ASCII" 99 | msgstr "インラインアスキー" 100 | 101 | #. i18n: file: gui/src/ConfigMain.ui:193 102 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 103 | msgid "Left Shift Key" 104 | msgstr "左シフトキー" 105 | 106 | #. i18n: file: gui/src/ConfigMain.ui:14 107 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 108 | msgid "MainWindow" 109 | msgstr "メインウィンドウ" 110 | 111 | #. i18n: file: gui/src/ConfigMain.ui:200 112 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 113 | #. i18n: file: gui/src/ConfigMain.ui:239 114 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 115 | msgid "Noop" 116 | msgstr "なにもしない" 117 | 118 | #. i18n: file: gui/src/ConfigMain.ui:86 119 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 120 | msgid "Page Down" 121 | msgstr "ページダウン" 122 | 123 | #. i18n: file: gui/src/ConfigMain.ui:58 124 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 125 | msgid "Page Up" 126 | msgstr "ページアップ" 127 | 128 | #. i18n: file: gui/src/ConfigMain.ui:232 129 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 130 | msgid "Right Shift Key" 131 | msgstr "右シフトキー" 132 | 133 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 134 | #: src/rime.conf.in:3 135 | msgid "Rime" 136 | msgstr "Rime" 137 | 138 | #: src/fcitx-rime.conf.in:4 139 | msgid "Rime Wrapper For Fcitx" 140 | msgstr "Fcitx 用 Rime ラッパー" 141 | 142 | #: src/fcitx-rime.c:64 143 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 144 | msgstr "" 145 | "Rimeでエラーが起こりました。より詳しくは /tmp/rime.fcitx.ERROR を見てくださ" 146 | "い。" 147 | 148 | #: src/fcitx-rime.c:62 149 | msgid "Rime is ready." 150 | msgstr "Rimeの準備ができました。" 151 | 152 | #: src/fcitx-rime.c:60 153 | msgid "Rime is under maintenance ..." 154 | msgstr "Rimeはメンテナンス中です..." 155 | 156 | #. i18n: file: gui/src/ConfigMain.ui:270 157 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 158 | msgid "Schema" 159 | msgstr "スキーマ" 160 | 161 | #: src/fcitx-rime.c:173 162 | msgid "Schema List" 163 | msgstr "スキーマリスト" 164 | 165 | #. i18n: file: gui/src/ConfigMain.ui:26 166 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 167 | msgid "Shortcut" 168 | msgstr "ショートカット" 169 | 170 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 171 | msgid "Synchronize" 172 | msgstr "同期" 173 | 174 | #. i18n: file: gui/src/ConfigMain.ui:157 175 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 176 | msgid "Traditional/Simplified" 177 | msgstr "繁体字/簡体字" 178 | 179 | #. i18n: file: gui/src/ConfigMain.ui:137 180 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 181 | msgid "Western/Eastern" 182 | msgstr "西洋/東洋" 183 | 184 | msgctxt "EMAIL OF TRANSLATORS" 185 | msgid "Your emails" 186 | msgstr "あなたのメールアドレス" 187 | 188 | msgctxt "NAME OF TRANSLATORS" 189 | msgid "Your names" 190 | msgstr "あなたのお名前" 191 | -------------------------------------------------------------------------------- /po/ko.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Bon Keun Seo , 2017,2021 7 | # Junghee Lee , 2021 8 | # Junghee Lee , 2020 9 | # Junghee Lee , 2022 10 | # Junghee Lee , 2021 11 | # Junghee Lee , 2020,2022 12 | msgid "" 13 | msgstr "" 14 | "Project-Id-Version: fcitx\n" 15 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 16 | "POT-Creation-Date: 2022-04-10 20:28+0000\n" 17 | "PO-Revision-Date: 2013-03-25 22:16+0000\n" 18 | "Last-Translator: Junghee Lee , 2022\n" 19 | "Language-Team: Korean (http://www.transifex.com/fcitx/fcitx/language/ko/)\n" 20 | "Language: ko\n" 21 | "MIME-Version: 1.0\n" 22 | "Content-Type: text/plain; charset=UTF-8\n" 23 | "Content-Transfer-Encoding: 8bit\n" 24 | "Plural-Forms: nplurals=1; plural=0;\n" 25 | 26 | #. i18n: file: gui/src/ConfigMain.ui:423 27 | #. i18n: ectx: property (text), widget (QLabel, label_4) 28 | msgid "Select Input Schema:" 29 | msgstr "입력 스키마 선택:" 30 | 31 | #. i18n: file: gui/src/ConfigMain.ui:358 32 | #. i18n: ectx: property (text), widget (QLabel, label_2) 33 | msgid "Active Input Schemas:" 34 | msgstr "활성 입력 스키마:" 35 | 36 | #. i18n: file: gui/src/ConfigMain.ui:296 37 | #. i18n: ectx: property (text), widget (QLabel, label) 38 | msgid "Available Input Schemas:" 39 | msgstr "사용 가능한 입력 스키마:" 40 | 41 | #. i18n: file: gui/src/ConfigMain.ui:33 42 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 43 | msgid "Call-out Menu" 44 | msgstr "호출 메뉴" 45 | 46 | #. i18n: file: gui/src/ConfigMain.ui:177 47 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 48 | msgid "Candidate Word Number" 49 | msgstr "후보 단어 번호" 50 | 51 | #. i18n: file: gui/src/ConfigMain.ui:220 52 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 53 | #. i18n: file: gui/src/ConfigMain.ui:259 54 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 55 | msgid "Clear" 56 | msgstr "지우기" 57 | 58 | #. i18n: file: gui/src/ConfigMain.ui:215 59 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 60 | #. i18n: file: gui/src/ConfigMain.ui:254 61 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 62 | msgid "Commit Code" 63 | msgstr "입력완료 코드" 64 | 65 | #. i18n: file: gui/src/ConfigMain.ui:210 66 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 67 | #. i18n: file: gui/src/ConfigMain.ui:249 68 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 69 | msgid "Commit Text" 70 | msgstr "텍스트 입력완료" 71 | 72 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 73 | msgid "Deploy" 74 | msgstr "배치" 75 | 76 | #: src/fcitx-rime.c:528 77 | msgid "English" 78 | msgstr "영어" 79 | 80 | #: src/fcitx-rime.conf.in:11 81 | msgid "Fcitx Rime Config" 82 | msgstr "Fcitx Rime 구성" 83 | 84 | #: gui/src/ConfigMain.cpp:254 85 | msgid "Fcitx Rime Config GUI Tool" 86 | msgstr "Fcitx Rime 구성 GUI 도구" 87 | 88 | #. i18n: file: gui/src/ConfigMain.ui:113 89 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 90 | msgid "Half/Full Shape" 91 | msgstr "반각/전각" 92 | 93 | #. i18n: file: gui/src/ConfigMain.ui:205 94 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 95 | #. i18n: file: gui/src/ConfigMain.ui:244 96 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 97 | msgid "Inline ASCII" 98 | msgstr "인라인 아스키" 99 | 100 | #. i18n: file: gui/src/ConfigMain.ui:193 101 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 102 | msgid "Left Shift Key" 103 | msgstr "왼쪽 Shift 키" 104 | 105 | #. i18n: file: gui/src/ConfigMain.ui:14 106 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 107 | msgid "MainWindow" 108 | msgstr "기본창" 109 | 110 | #. i18n: file: gui/src/ConfigMain.ui:200 111 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 112 | #. i18n: file: gui/src/ConfigMain.ui:239 113 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 114 | msgid "Noop" 115 | msgstr "동작없음" 116 | 117 | #. i18n: file: gui/src/ConfigMain.ui:86 118 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 119 | msgid "Page Down" 120 | msgstr "페이지 아래로" 121 | 122 | #. i18n: file: gui/src/ConfigMain.ui:58 123 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 124 | msgid "Page Up" 125 | msgstr "페이지 위로" 126 | 127 | #. i18n: file: gui/src/ConfigMain.ui:232 128 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 129 | msgid "Right Shift Key" 130 | msgstr "오른쪽 Shift 키" 131 | 132 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 133 | #: src/rime.conf.in:3 134 | msgid "Rime" 135 | msgstr "Rime" 136 | 137 | #: src/fcitx-rime.conf.in:4 138 | msgid "Rime Wrapper For Fcitx" 139 | msgstr "Fcitx용 Rime 래퍼" 140 | 141 | #: src/fcitx-rime.c:64 142 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 143 | msgstr "" 144 | "Rime에 오류가 발생했습니다. 자세한 내용은 /tmp/rime.fcitx.ERROR를 참조하십시" 145 | "오." 146 | 147 | #: src/fcitx-rime.c:62 148 | msgid "Rime is ready." 149 | msgstr "Rime이 준비되었습니다." 150 | 151 | #: src/fcitx-rime.c:60 152 | msgid "Rime is under maintenance ..." 153 | msgstr "라임이 점검중입니다..." 154 | 155 | #. i18n: file: gui/src/ConfigMain.ui:270 156 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 157 | msgid "Schema" 158 | msgstr "스키마" 159 | 160 | #: src/fcitx-rime.c:173 161 | msgid "Schema List" 162 | msgstr "스키마 목록" 163 | 164 | #. i18n: file: gui/src/ConfigMain.ui:26 165 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 166 | msgid "Shortcut" 167 | msgstr "단축키" 168 | 169 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 170 | msgid "Synchronize" 171 | msgstr "동기화" 172 | 173 | #. i18n: file: gui/src/ConfigMain.ui:157 174 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 175 | msgid "Traditional/Simplified" 176 | msgstr "정체자/간화자" 177 | 178 | #. i18n: file: gui/src/ConfigMain.ui:137 179 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 180 | msgid "Western/Eastern" 181 | msgstr "서부/동부" 182 | 183 | msgctxt "EMAIL OF TRANSLATORS" 184 | msgid "Your emails" 185 | msgstr "이메일" 186 | 187 | msgctxt "NAME OF TRANSLATORS" 188 | msgid "Your names" 189 | msgstr "이름" 190 | -------------------------------------------------------------------------------- /po/ru.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Dmitry , 2022-2023 7 | # TotalCaesar659 , 2016 8 | # TotalCaesar659 , 2016 9 | msgid "" 10 | msgstr "" 11 | "Project-Id-Version: fcitx\n" 12 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 13 | "POT-Creation-Date: 2023-11-02 20:26+0000\n" 14 | "PO-Revision-Date: 2013-03-25 22:16+0000\n" 15 | "Last-Translator: Dmitry , 2022-2023\n" 16 | "Language-Team: Russian (http://app.transifex.com/fcitx/fcitx/language/ru/)\n" 17 | "Language: ru\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " 22 | "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " 23 | "(n%100>=11 && n%100<=14)? 2 : 3);\n" 24 | 25 | #. i18n: file: gui/src/ConfigMain.ui:423 26 | #. i18n: ectx: property (text), widget (QLabel, label_4) 27 | msgid "Select Input Schema:" 28 | msgstr "Выбрать схему ввода:" 29 | 30 | #. i18n: file: gui/src/ConfigMain.ui:358 31 | #. i18n: ectx: property (text), widget (QLabel, label_2) 32 | msgid "Active Input Schemas:" 33 | msgstr "Активные схемы ввода:" 34 | 35 | #. i18n: file: gui/src/ConfigMain.ui:296 36 | #. i18n: ectx: property (text), widget (QLabel, label) 37 | msgid "Available Input Schemas:" 38 | msgstr "Доступные схемы ввода:" 39 | 40 | #. i18n: file: gui/src/ConfigMain.ui:33 41 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 42 | msgid "Call-out Menu" 43 | msgstr "Меню Вызова" 44 | 45 | #. i18n: file: gui/src/ConfigMain.ui:177 46 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 47 | msgid "Candidate Word Number" 48 | msgstr "Номер слова-кандидата" 49 | 50 | #. i18n: file: gui/src/ConfigMain.ui:220 51 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 52 | #. i18n: file: gui/src/ConfigMain.ui:259 53 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 54 | msgid "Clear" 55 | msgstr "Очистить" 56 | 57 | #. i18n: file: gui/src/ConfigMain.ui:215 58 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 59 | #. i18n: file: gui/src/ConfigMain.ui:254 60 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 61 | msgid "Commit Code" 62 | msgstr "Код Фиксации" 63 | 64 | #. i18n: file: gui/src/ConfigMain.ui:210 65 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 66 | #. i18n: file: gui/src/ConfigMain.ui:249 67 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 68 | msgid "Commit Text" 69 | msgstr "Текст Фиксации" 70 | 71 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 72 | msgid "Deploy" 73 | msgstr "Развернуть" 74 | 75 | #: src/fcitx-rime.c:528 76 | msgid "English" 77 | msgstr "Английский" 78 | 79 | #: src/fcitx-rime.conf.in:11 80 | msgid "Fcitx Rime Config" 81 | msgstr "Конфигурация Fcitx Rime" 82 | 83 | #: gui/src/ConfigMain.cpp:254 84 | msgid "Fcitx Rime Config GUI Tool" 85 | msgstr "Графический инструмент настройки Fcitx Rime Config" 86 | 87 | #. i18n: file: gui/src/ConfigMain.ui:113 88 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 89 | msgid "Half/Full Shape" 90 | msgstr "Полуширинная/Полноширинная Форма" 91 | 92 | #. i18n: file: gui/src/ConfigMain.ui:205 93 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 94 | #. i18n: file: gui/src/ConfigMain.ui:244 95 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 96 | msgid "Inline ASCII" 97 | msgstr "Встроенный ASCII" 98 | 99 | #. i18n: file: gui/src/ConfigMain.ui:193 100 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 101 | msgid "Left Shift Key" 102 | msgstr "Левая клавиша Shift" 103 | 104 | #. i18n: file: gui/src/ConfigMain.ui:14 105 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 106 | msgid "MainWindow" 107 | msgstr "Главное окно" 108 | 109 | #. i18n: file: gui/src/ConfigMain.ui:200 110 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 111 | #. i18n: file: gui/src/ConfigMain.ui:239 112 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 113 | msgid "Noop" 114 | msgstr "Noop" 115 | 116 | #. i18n: file: gui/src/ConfigMain.ui:86 117 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 118 | msgid "Page Down" 119 | msgstr "Страница Вниз" 120 | 121 | #. i18n: file: gui/src/ConfigMain.ui:58 122 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 123 | msgid "Page Up" 124 | msgstr "Страница Вверх" 125 | 126 | #. i18n: file: gui/src/ConfigMain.ui:232 127 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 128 | msgid "Right Shift Key" 129 | msgstr "Правая клавиша Shift" 130 | 131 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 132 | #: src/rime.conf.in:3 133 | msgid "Rime" 134 | msgstr "Rime" 135 | 136 | #: src/fcitx-rime.conf.in:4 137 | msgid "Rime Wrapper For Fcitx" 138 | msgstr "Обертка Rime для Fcitx" 139 | 140 | #: src/fcitx-rime.c:64 141 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 142 | msgstr "Обнаружена ошибка Rime. Подробности в файле /tmp/rime.fcitx.ERROR." 143 | 144 | #: src/fcitx-rime.c:62 145 | msgid "Rime is ready." 146 | msgstr "Rime готов." 147 | 148 | #: src/fcitx-rime.c:60 149 | msgid "Rime is under maintenance ..." 150 | msgstr "Rime перегружен..." 151 | 152 | #. i18n: file: gui/src/ConfigMain.ui:270 153 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 154 | msgid "Schema" 155 | msgstr "Схема" 156 | 157 | #: src/fcitx-rime.c:173 158 | msgid "Schema List" 159 | msgstr "Список схем" 160 | 161 | #. i18n: file: gui/src/ConfigMain.ui:26 162 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 163 | msgid "Shortcut" 164 | msgstr "Ярлык" 165 | 166 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 167 | msgid "Synchronize" 168 | msgstr "Синхронизировать" 169 | 170 | #. i18n: file: gui/src/ConfigMain.ui:157 171 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 172 | msgid "Traditional/Simplified" 173 | msgstr "Традиционный/Упрощённый" 174 | 175 | #. i18n: file: gui/src/ConfigMain.ui:137 176 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 177 | msgid "Western/Eastern" 178 | msgstr "Западный/Восточный" 179 | 180 | msgctxt "EMAIL OF TRANSLATORS" 181 | msgid "Your emails" 182 | msgstr "Ваши адреса электронной почты" 183 | 184 | msgctxt "NAME OF TRANSLATORS" 185 | msgid "Your names" 186 | msgstr "Ваши имена" 187 | -------------------------------------------------------------------------------- /po/tr.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Gökhan Kalayci , 2017 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: fcitx\n" 10 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 11 | "POT-Creation-Date: 2020-10-07 00:03-0700\n" 12 | "PO-Revision-Date: 2018-05-30 07:04+0000\n" 13 | "Last-Translator: csslayer \n" 14 | "Language-Team: Turkish (http://www.transifex.com/fcitx/fcitx/language/tr/)\n" 15 | "Language: tr\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #. i18n: file: gui/src/ConfigMain.ui:423 22 | #. i18n: ectx: property (text), widget (QLabel, label_4) 23 | msgid "Select Input Schema:" 24 | msgstr "" 25 | 26 | #. i18n: file: gui/src/ConfigMain.ui:358 27 | #. i18n: ectx: property (text), widget (QLabel, label_2) 28 | msgid "Active Input Schemas:" 29 | msgstr "" 30 | 31 | #. i18n: file: gui/src/ConfigMain.ui:296 32 | #. i18n: ectx: property (text), widget (QLabel, label) 33 | msgid "Available Input Schemas:" 34 | msgstr "" 35 | 36 | #. i18n: file: gui/src/ConfigMain.ui:33 37 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 38 | msgid "Call-out Menu" 39 | msgstr "" 40 | 41 | #. i18n: file: gui/src/ConfigMain.ui:177 42 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 43 | msgid "Candidate Word Number" 44 | msgstr "" 45 | 46 | #. i18n: file: gui/src/ConfigMain.ui:220 47 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 48 | #. i18n: file: gui/src/ConfigMain.ui:259 49 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 50 | msgid "Clear" 51 | msgstr "" 52 | 53 | #. i18n: file: gui/src/ConfigMain.ui:215 54 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 55 | #. i18n: file: gui/src/ConfigMain.ui:254 56 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 57 | msgid "Commit Code" 58 | msgstr "" 59 | 60 | #. i18n: file: gui/src/ConfigMain.ui:210 61 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 62 | #. i18n: file: gui/src/ConfigMain.ui:249 63 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 64 | msgid "Commit Text" 65 | msgstr "" 66 | 67 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 68 | msgid "Deploy" 69 | msgstr "Dağıt" 70 | 71 | #: src/fcitx-rime.c:528 72 | msgid "English" 73 | msgstr "İngilizce" 74 | 75 | #: src/fcitx-rime.conf.in:11 76 | msgid "Fcitx Rime Config" 77 | msgstr "" 78 | 79 | #: gui/src/ConfigMain.cpp:249 80 | msgid "Fcitx Rime Config GUI Tool" 81 | msgstr "" 82 | 83 | #. i18n: file: gui/src/ConfigMain.ui:113 84 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 85 | msgid "Half/Full Shape" 86 | msgstr "" 87 | 88 | #. i18n: file: gui/src/ConfigMain.ui:205 89 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 90 | #. i18n: file: gui/src/ConfigMain.ui:244 91 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 92 | msgid "Inline ASCII" 93 | msgstr "" 94 | 95 | #. i18n: file: gui/src/ConfigMain.ui:193 96 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 97 | msgid "Left Shift Key" 98 | msgstr "" 99 | 100 | #. i18n: file: gui/src/ConfigMain.ui:14 101 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 102 | msgid "MainWindow" 103 | msgstr "" 104 | 105 | #. i18n: file: gui/src/ConfigMain.ui:200 106 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 107 | #. i18n: file: gui/src/ConfigMain.ui:239 108 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 109 | msgid "Noop" 110 | msgstr "" 111 | 112 | #. i18n: file: gui/src/ConfigMain.ui:86 113 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 114 | msgid "Page Down" 115 | msgstr "" 116 | 117 | #. i18n: file: gui/src/ConfigMain.ui:58 118 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 119 | msgid "Page Up" 120 | msgstr "" 121 | 122 | #. i18n: file: gui/src/ConfigMain.ui:232 123 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 124 | msgid "Right Shift Key" 125 | msgstr "" 126 | 127 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 128 | #: src/rime.conf.in:3 129 | msgid "Rime" 130 | msgstr "Rime" 131 | 132 | #: src/fcitx-rime.conf.in:4 133 | msgid "Rime Wrapper For Fcitx" 134 | msgstr "Fcitx için Rime Wrapper" 135 | 136 | #: src/fcitx-rime.c:64 137 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 138 | msgstr "" 139 | "Rime bir hatayla karşılaştı. Detaylar için /tmp/rime.fcitx.ERROR yoluna " 140 | "bakın." 141 | 142 | #: src/fcitx-rime.c:62 143 | msgid "Rime is ready." 144 | msgstr "Rime hazır." 145 | 146 | #: src/fcitx-rime.c:60 147 | msgid "Rime is under maintenance ..." 148 | msgstr "Rime bakımda..." 149 | 150 | #. i18n: file: gui/src/ConfigMain.ui:270 151 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 152 | msgid "Schema" 153 | msgstr "" 154 | 155 | #: src/fcitx-rime.c:173 156 | msgid "Schema List" 157 | msgstr "Şema Listesi" 158 | 159 | #. i18n: file: gui/src/ConfigMain.ui:26 160 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 161 | msgid "Shortcut" 162 | msgstr "" 163 | 164 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 165 | msgid "Synchronize" 166 | msgstr "Eşitleme" 167 | 168 | #. i18n: file: gui/src/ConfigMain.ui:157 169 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 170 | msgid "Traditional/Simplified" 171 | msgstr "" 172 | 173 | #. i18n: file: gui/src/ConfigMain.ui:137 174 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 175 | msgid "Western/Eastern" 176 | msgstr "" 177 | 178 | msgctxt "EMAIL OF TRANSLATORS" 179 | msgid "Your emails" 180 | msgstr "" 181 | 182 | msgctxt "NAME OF TRANSLATORS" 183 | msgid "Your names" 184 | msgstr "" 185 | -------------------------------------------------------------------------------- /po/vi.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Trong Dzang , 2013 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: fcitx\n" 10 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 11 | "POT-Creation-Date: 2020-10-07 00:03-0700\n" 12 | "PO-Revision-Date: 2018-05-30 07:04+0000\n" 13 | "Last-Translator: csslayer \n" 14 | "Language-Team: Vietnamese (http://www.transifex.com/fcitx/fcitx/language/" 15 | "vi/)\n" 16 | "Language: vi\n" 17 | "MIME-Version: 1.0\n" 18 | "Content-Type: text/plain; charset=UTF-8\n" 19 | "Content-Transfer-Encoding: 8bit\n" 20 | "Plural-Forms: nplurals=1; plural=0;\n" 21 | 22 | #. i18n: file: gui/src/ConfigMain.ui:423 23 | #. i18n: ectx: property (text), widget (QLabel, label_4) 24 | msgid "Select Input Schema:" 25 | msgstr "" 26 | 27 | #. i18n: file: gui/src/ConfigMain.ui:358 28 | #. i18n: ectx: property (text), widget (QLabel, label_2) 29 | msgid "Active Input Schemas:" 30 | msgstr "" 31 | 32 | #. i18n: file: gui/src/ConfigMain.ui:296 33 | #. i18n: ectx: property (text), widget (QLabel, label) 34 | msgid "Available Input Schemas:" 35 | msgstr "" 36 | 37 | #. i18n: file: gui/src/ConfigMain.ui:33 38 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 39 | msgid "Call-out Menu" 40 | msgstr "" 41 | 42 | #. i18n: file: gui/src/ConfigMain.ui:177 43 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 44 | msgid "Candidate Word Number" 45 | msgstr "" 46 | 47 | #. i18n: file: gui/src/ConfigMain.ui:220 48 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 49 | #. i18n: file: gui/src/ConfigMain.ui:259 50 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 51 | msgid "Clear" 52 | msgstr "" 53 | 54 | #. i18n: file: gui/src/ConfigMain.ui:215 55 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 56 | #. i18n: file: gui/src/ConfigMain.ui:254 57 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 58 | msgid "Commit Code" 59 | msgstr "" 60 | 61 | #. i18n: file: gui/src/ConfigMain.ui:210 62 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 63 | #. i18n: file: gui/src/ConfigMain.ui:249 64 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 65 | msgid "Commit Text" 66 | msgstr "" 67 | 68 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 69 | msgid "Deploy" 70 | msgstr "Triển khai" 71 | 72 | #: src/fcitx-rime.c:528 73 | msgid "English" 74 | msgstr "" 75 | 76 | #: src/fcitx-rime.conf.in:11 77 | msgid "Fcitx Rime Config" 78 | msgstr "" 79 | 80 | #: gui/src/ConfigMain.cpp:249 81 | msgid "Fcitx Rime Config GUI Tool" 82 | msgstr "" 83 | 84 | #. i18n: file: gui/src/ConfigMain.ui:113 85 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 86 | msgid "Half/Full Shape" 87 | msgstr "" 88 | 89 | #. i18n: file: gui/src/ConfigMain.ui:205 90 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 91 | #. i18n: file: gui/src/ConfigMain.ui:244 92 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 93 | msgid "Inline ASCII" 94 | msgstr "" 95 | 96 | #. i18n: file: gui/src/ConfigMain.ui:193 97 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 98 | msgid "Left Shift Key" 99 | msgstr "" 100 | 101 | #. i18n: file: gui/src/ConfigMain.ui:14 102 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 103 | msgid "MainWindow" 104 | msgstr "" 105 | 106 | #. i18n: file: gui/src/ConfigMain.ui:200 107 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 108 | #. i18n: file: gui/src/ConfigMain.ui:239 109 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 110 | msgid "Noop" 111 | msgstr "" 112 | 113 | #. i18n: file: gui/src/ConfigMain.ui:86 114 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 115 | msgid "Page Down" 116 | msgstr "" 117 | 118 | #. i18n: file: gui/src/ConfigMain.ui:58 119 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 120 | msgid "Page Up" 121 | msgstr "" 122 | 123 | #. i18n: file: gui/src/ConfigMain.ui:232 124 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 125 | msgid "Right Shift Key" 126 | msgstr "" 127 | 128 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 129 | #: src/rime.conf.in:3 130 | msgid "Rime" 131 | msgstr "Rime" 132 | 133 | #: src/fcitx-rime.conf.in:4 134 | msgid "Rime Wrapper For Fcitx" 135 | msgstr "Bộ Wrapper cho Fcitx" 136 | 137 | #: src/fcitx-rime.c:64 138 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 139 | msgstr "Rime gặp lỗi. Xem ở /tmp/rime.fcitx.ERROR để biết chi tiết." 140 | 141 | #: src/fcitx-rime.c:62 142 | msgid "Rime is ready." 143 | msgstr "Rime sẵn sàng," 144 | 145 | #: src/fcitx-rime.c:60 146 | msgid "Rime is under maintenance ..." 147 | msgstr "Rime đang bảo trì..." 148 | 149 | #. i18n: file: gui/src/ConfigMain.ui:270 150 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 151 | msgid "Schema" 152 | msgstr "" 153 | 154 | #: src/fcitx-rime.c:173 155 | msgid "Schema List" 156 | msgstr "" 157 | 158 | #. i18n: file: gui/src/ConfigMain.ui:26 159 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 160 | msgid "Shortcut" 161 | msgstr "" 162 | 163 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 164 | msgid "Synchronize" 165 | msgstr "Đồng bộ hóa" 166 | 167 | #. i18n: file: gui/src/ConfigMain.ui:157 168 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 169 | msgid "Traditional/Simplified" 170 | msgstr "" 171 | 172 | #. i18n: file: gui/src/ConfigMain.ui:137 173 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 174 | msgid "Western/Eastern" 175 | msgstr "" 176 | 177 | msgctxt "EMAIL OF TRANSLATORS" 178 | msgid "Your emails" 179 | msgstr "" 180 | 181 | msgctxt "NAME OF TRANSLATORS" 182 | msgid "Your names" 183 | msgstr "" 184 | -------------------------------------------------------------------------------- /po/zh_CN.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # csslayer , 2014,2018,2020 7 | # csslayer , 2014,2018,2020,2023 8 | # csslayer , 2012-2013 9 | # wwj402 , 2013,2018 10 | # wwj402 , 2013,2018 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: fcitx\n" 14 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 15 | "POT-Creation-Date: 2023-10-07 20:26+0000\n" 16 | "PO-Revision-Date: 2013-03-25 22:16+0000\n" 17 | "Last-Translator: csslayer , 2014,2018,2020,2023\n" 18 | "Language-Team: Chinese (China) (http://app.transifex.com/fcitx/fcitx/" 19 | "language/zh_CN/)\n" 20 | "Language: zh_CN\n" 21 | "MIME-Version: 1.0\n" 22 | "Content-Type: text/plain; charset=UTF-8\n" 23 | "Content-Transfer-Encoding: 8bit\n" 24 | "Plural-Forms: nplurals=1; plural=0;\n" 25 | 26 | #. i18n: file: gui/src/ConfigMain.ui:423 27 | #. i18n: ectx: property (text), widget (QLabel, label_4) 28 | msgid "Select Input Schema:" 29 | msgstr "选择输入方案:" 30 | 31 | #. i18n: file: gui/src/ConfigMain.ui:358 32 | #. i18n: ectx: property (text), widget (QLabel, label_2) 33 | msgid "Active Input Schemas:" 34 | msgstr "激活的输入方案:" 35 | 36 | #. i18n: file: gui/src/ConfigMain.ui:296 37 | #. i18n: ectx: property (text), widget (QLabel, label) 38 | msgid "Available Input Schemas:" 39 | msgstr "可用的输入方案:" 40 | 41 | #. i18n: file: gui/src/ConfigMain.ui:33 42 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 43 | msgid "Call-out Menu" 44 | msgstr "调用菜单" 45 | 46 | #. i18n: file: gui/src/ConfigMain.ui:177 47 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 48 | msgid "Candidate Word Number" 49 | msgstr "候选词个数" 50 | 51 | #. i18n: file: gui/src/ConfigMain.ui:220 52 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 53 | #. i18n: file: gui/src/ConfigMain.ui:259 54 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 55 | msgid "Clear" 56 | msgstr "清除" 57 | 58 | #. i18n: file: gui/src/ConfigMain.ui:215 59 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 60 | #. i18n: file: gui/src/ConfigMain.ui:254 61 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 62 | msgid "Commit Code" 63 | msgstr "提交码" 64 | 65 | #. i18n: file: gui/src/ConfigMain.ui:210 66 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 67 | #. i18n: file: gui/src/ConfigMain.ui:249 68 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 69 | msgid "Commit Text" 70 | msgstr "提交文本" 71 | 72 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 73 | msgid "Deploy" 74 | msgstr "重新部署" 75 | 76 | #: src/fcitx-rime.c:528 77 | msgid "English" 78 | msgstr "英文" 79 | 80 | #: src/fcitx-rime.conf.in:11 81 | msgid "Fcitx Rime Config" 82 | msgstr "Fcitx Rime 配置" 83 | 84 | #: gui/src/ConfigMain.cpp:254 85 | msgid "Fcitx Rime Config GUI Tool" 86 | msgstr "Fcitx Rime 配置 GUI 工具" 87 | 88 | #. i18n: file: gui/src/ConfigMain.ui:113 89 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 90 | msgid "Half/Full Shape" 91 | msgstr "半/全 角" 92 | 93 | #. i18n: file: gui/src/ConfigMain.ui:205 94 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 95 | #. i18n: file: gui/src/ConfigMain.ui:244 96 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 97 | msgid "Inline ASCII" 98 | msgstr "内联 ASCII" 99 | 100 | #. i18n: file: gui/src/ConfigMain.ui:193 101 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 102 | msgid "Left Shift Key" 103 | msgstr "左 Shift" 104 | 105 | #. i18n: file: gui/src/ConfigMain.ui:14 106 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 107 | msgid "MainWindow" 108 | msgstr "主窗口" 109 | 110 | #. i18n: file: gui/src/ConfigMain.ui:200 111 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 112 | #. i18n: file: gui/src/ConfigMain.ui:239 113 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 114 | msgid "Noop" 115 | msgstr "无操作" 116 | 117 | #. i18n: file: gui/src/ConfigMain.ui:86 118 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 119 | msgid "Page Down" 120 | msgstr "向下翻页" 121 | 122 | #. i18n: file: gui/src/ConfigMain.ui:58 123 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 124 | msgid "Page Up" 125 | msgstr "向上翻页" 126 | 127 | #. i18n: file: gui/src/ConfigMain.ui:232 128 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 129 | msgid "Right Shift Key" 130 | msgstr "右 Shift" 131 | 132 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 133 | #: src/rime.conf.in:3 134 | msgid "Rime" 135 | msgstr "中州韵" 136 | 137 | #: src/fcitx-rime.conf.in:4 138 | msgid "Rime Wrapper For Fcitx" 139 | msgstr "Fcitx 的中州韵封装" 140 | 141 | #: src/fcitx-rime.c:64 142 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 143 | msgstr "Rime 出现了一个错误。请参阅/tmp/rime.fcitx.ERROR中细节。" 144 | 145 | #: src/fcitx-rime.c:62 146 | msgid "Rime is ready." 147 | msgstr "Rime 就绪。" 148 | 149 | #: src/fcitx-rime.c:60 150 | msgid "Rime is under maintenance ..." 151 | msgstr "Rime 正在维护中..." 152 | 153 | #. i18n: file: gui/src/ConfigMain.ui:270 154 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 155 | msgid "Schema" 156 | msgstr "输入方案" 157 | 158 | #: src/fcitx-rime.c:173 159 | msgid "Schema List" 160 | msgstr "方案列表" 161 | 162 | #. i18n: file: gui/src/ConfigMain.ui:26 163 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 164 | msgid "Shortcut" 165 | msgstr "快捷键" 166 | 167 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 168 | msgid "Synchronize" 169 | msgstr "同步" 170 | 171 | #. i18n: file: gui/src/ConfigMain.ui:157 172 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 173 | msgid "Traditional/Simplified" 174 | msgstr "繁体/简体" 175 | 176 | #. i18n: file: gui/src/ConfigMain.ui:137 177 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 178 | msgid "Western/Eastern" 179 | msgstr "英文/中文" 180 | 181 | msgctxt "EMAIL OF TRANSLATORS" 182 | msgid "Your emails" 183 | msgstr "wengxt@gmail.com" 184 | 185 | msgctxt "NAME OF TRANSLATORS" 186 | msgid "Your names" 187 | msgstr "Weng Xuetian" 188 | -------------------------------------------------------------------------------- /po/zh_TW.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # pan93412 , 2019 7 | # csslayer , 2015 8 | # fhoshino , 2021 9 | # 黃柏諺 , 2015 10 | # Lau YeeYu, 2023 11 | # csslayer , 2015 12 | # 黃柏諺 , 2015 13 | msgid "" 14 | msgstr "" 15 | "Project-Id-Version: fcitx\n" 16 | "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" 17 | "POT-Creation-Date: 2023-04-25 20:26+0000\n" 18 | "PO-Revision-Date: 2013-03-25 22:16+0000\n" 19 | "Last-Translator: Lau YeeYu, 2023\n" 20 | "Language-Team: Chinese (Taiwan) (http://app.transifex.com/fcitx/fcitx/" 21 | "language/zh_TW/)\n" 22 | "Language: zh_TW\n" 23 | "MIME-Version: 1.0\n" 24 | "Content-Type: text/plain; charset=UTF-8\n" 25 | "Content-Transfer-Encoding: 8bit\n" 26 | "Plural-Forms: nplurals=1; plural=0;\n" 27 | 28 | #. i18n: file: gui/src/ConfigMain.ui:423 29 | #. i18n: ectx: property (text), widget (QLabel, label_4) 30 | msgid "Select Input Schema:" 31 | msgstr "請選取輸入方案:" 32 | 33 | #. i18n: file: gui/src/ConfigMain.ui:358 34 | #. i18n: ectx: property (text), widget (QLabel, label_2) 35 | msgid "Active Input Schemas:" 36 | msgstr "啟用輸入專案:" 37 | 38 | #. i18n: file: gui/src/ConfigMain.ui:296 39 | #. i18n: ectx: property (text), widget (QLabel, label) 40 | msgid "Available Input Schemas:" 41 | msgstr "可用輸入方案:" 42 | 43 | #. i18n: file: gui/src/ConfigMain.ui:33 44 | #. i18n: ectx: property (text), widget (QLabel, toggle_label) 45 | msgid "Call-out Menu" 46 | msgstr "呼叫選單" 47 | 48 | #. i18n: file: gui/src/ConfigMain.ui:177 49 | #. i18n: ectx: property (text), widget (QLabel, candidate_word_number_label) 50 | msgid "Candidate Word Number" 51 | msgstr "候選字數" 52 | 53 | #. i18n: file: gui/src/ConfigMain.ui:220 54 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 55 | #. i18n: file: gui/src/ConfigMain.ui:259 56 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 57 | msgid "Clear" 58 | msgstr "清除" 59 | 60 | #. i18n: file: gui/src/ConfigMain.ui:215 61 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 62 | #. i18n: file: gui/src/ConfigMain.ui:254 63 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 64 | msgid "Commit Code" 65 | msgstr "提交碼" 66 | 67 | #. i18n: file: gui/src/ConfigMain.ui:210 68 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 69 | #. i18n: file: gui/src/ConfigMain.ui:249 70 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 71 | msgid "Commit Text" 72 | msgstr "提交文本" 73 | 74 | #: src/fcitx-rime.c:149 src/fcitx-rime.c:150 75 | msgid "Deploy" 76 | msgstr "重新部署" 77 | 78 | #: src/fcitx-rime.c:528 79 | msgid "English" 80 | msgstr "英語" 81 | 82 | #: src/fcitx-rime.conf.in:11 83 | msgid "Fcitx Rime Config" 84 | msgstr "Fcitx Rime 設定" 85 | 86 | #: gui/src/ConfigMain.cpp:254 87 | msgid "Fcitx Rime Config GUI Tool" 88 | msgstr "Fcitx Rime 設定圖形介面工具" 89 | 90 | #. i18n: file: gui/src/ConfigMain.ui:113 91 | #. i18n: ectx: property (text), widget (QLabel, toggle_hfshape) 92 | msgid "Half/Full Shape" 93 | msgstr "半/全形" 94 | 95 | #. i18n: file: gui/src/ConfigMain.ui:205 96 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 97 | #. i18n: file: gui/src/ConfigMain.ui:244 98 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 99 | msgid "Inline ASCII" 100 | msgstr "內聯 ASCII" 101 | 102 | #. i18n: file: gui/src/ConfigMain.ui:193 103 | #. i18n: ectx: property (text), widget (QLabel, shift_l_label) 104 | msgid "Left Shift Key" 105 | msgstr "左 Shift 鍵" 106 | 107 | #. i18n: file: gui/src/ConfigMain.ui:14 108 | #. i18n: ectx: property (windowTitle), widget (QWidget, MainUI) 109 | msgid "MainWindow" 110 | msgstr "主視窗" 111 | 112 | #. i18n: file: gui/src/ConfigMain.ui:200 113 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_l_combo) 114 | #. i18n: file: gui/src/ConfigMain.ui:239 115 | #. i18n: ectx: property (text), item, widget (QComboBox, shift_r_combo) 116 | msgid "Noop" 117 | msgstr "無操作" 118 | 119 | #. i18n: file: gui/src/ConfigMain.ui:86 120 | #. i18n: ectx: property (text), widget (QLabel, label_pagedown) 121 | msgid "Page Down" 122 | msgstr "向下一頁" 123 | 124 | #. i18n: file: gui/src/ConfigMain.ui:58 125 | #. i18n: ectx: property (text), widget (QLabel, label_pageup) 126 | msgid "Page Up" 127 | msgstr "向上一頁" 128 | 129 | #. i18n: file: gui/src/ConfigMain.ui:232 130 | #. i18n: ectx: property (text), widget (QLabel, shift_r_label) 131 | msgid "Right Shift Key" 132 | msgstr "右 Shift 鍵" 133 | 134 | #: src/fcitx-rime.c:70 src/fcitx-rime.c:129 src/fcitx-rime.conf.in:3 135 | #: src/rime.conf.in:3 136 | msgid "Rime" 137 | msgstr "中州韻" 138 | 139 | #: src/fcitx-rime.conf.in:4 140 | msgid "Rime Wrapper For Fcitx" 141 | msgstr "Fcitx 的中州韻封裝" 142 | 143 | #: src/fcitx-rime.c:64 144 | msgid "Rime has encountered an error. See /tmp/rime.fcitx.ERROR for details." 145 | msgstr "Rime 遇到了一個錯誤。見 /tmp/rime.fcitx.ERROR 以取得更多資訊。" 146 | 147 | #: src/fcitx-rime.c:62 148 | msgid "Rime is ready." 149 | msgstr "Rime 準備好了。" 150 | 151 | #: src/fcitx-rime.c:60 152 | msgid "Rime is under maintenance ..." 153 | msgstr "Rime 仍在維護中..." 154 | 155 | #. i18n: file: gui/src/ConfigMain.ui:270 156 | #. i18n: ectx: attribute (title), widget (QWidget, schemas_tab) 157 | msgid "Schema" 158 | msgstr "輸入方案" 159 | 160 | #: src/fcitx-rime.c:173 161 | msgid "Schema List" 162 | msgstr "方案選單" 163 | 164 | #. i18n: file: gui/src/ConfigMain.ui:26 165 | #. i18n: ectx: attribute (title), widget (QWidget, general_tab) 166 | msgid "Shortcut" 167 | msgstr "快速鍵" 168 | 169 | #: src/fcitx-rime.c:158 src/fcitx-rime.c:159 170 | msgid "Synchronize" 171 | msgstr "同步" 172 | 173 | #. i18n: file: gui/src/ConfigMain.ui:157 174 | #. i18n: ectx: property (text), widget (QLabel, toggle_trasim) 175 | msgid "Traditional/Simplified" 176 | msgstr "繁體/簡體" 177 | 178 | #. i18n: file: gui/src/ConfigMain.ui:137 179 | #. i18n: ectx: property (text), widget (QLabel, toggle_ascii) 180 | msgid "Western/Eastern" 181 | msgstr "英文/中文" 182 | 183 | msgctxt "EMAIL OF TRANSLATORS" 184 | msgid "Your emails" 185 | msgstr "pan93412@gmail.com, s8321414@gmail.com," 186 | 187 | msgctxt "NAME OF TRANSLATORS" 188 | msgid "Your names" 189 | msgstr "Yi-Jyun Pan, Jeff Huang, Alisha" 190 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | include_directories(${FCITX4_FCITX_INCLUDE_DIRS}) 3 | include_directories(${FCITX4_FCITX_CONFIG_INCLUDE_DIRS}) 4 | include_directories(${FCITX4_FCITX_UTILS_INCLUDE_DIRS}) 5 | include_directories(${RIME_INCLUDE_DIRS}) 6 | link_directories(${RIME_LIBRARY_DIRS}) 7 | 8 | set(FCITX_RIME_SRC fcitx-rime.c) 9 | 10 | fcitx_add_addon_full(rime 11 | SOURCES ${FCITX_RIME_SRC} 12 | IM_CONFIG rime.conf 13 | LINK_LIBS ${RIME_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) 14 | -------------------------------------------------------------------------------- /src/fcitx-rime.conf.in: -------------------------------------------------------------------------------- 1 | [Addon] 2 | Name=fcitx-rime 3 | _GeneralName=Rime 4 | _Comment=Rime Wrapper For Fcitx 5 | Category=InputMethod 6 | Enabled=True 7 | Library=fcitx-rime.so 8 | Type=SharedLibrary 9 | IMRegisterMethod=ConfigFile 10 | LoadLocal=True 11 | SubConfig=Fcitx Rime Config:native:rime/config,fcitx:domain 12 | -------------------------------------------------------------------------------- /src/rime.conf.in: -------------------------------------------------------------------------------- 1 | [InputMethod] 2 | UniqueName=rime 3 | _Name=Rime 4 | IconName=rime 5 | Priority=10 6 | LangCode=zh_TW 7 | Parent=fcitx-rime 8 | --------------------------------------------------------------------------------