pax_global_header00006660000000000000000000000064141763434770014532gustar00rootroot0000000000000052 comment=1e308364381b6a8f4eda742c285b3214ce1335ea fcitx5-chewing-5.0.9/000077500000000000000000000000001417634347700143715ustar00rootroot00000000000000fcitx5-chewing-5.0.9/.gitignore000066400000000000000000000001341417634347700163570ustar00rootroot00000000000000*~ build*/ .* !.git* .git/ *.tar.* *.kdev4 *.kate-swp *.orig tags astyle.sh cscope.* *.part fcitx5-chewing-5.0.9/AUTHORS000066400000000000000000000001021417634347700154320ustar00rootroot00000000000000Weng Xuetian Tai-Lin Chu fcitx5-chewing-5.0.9/CMakeLists.txt000066400000000000000000000021731417634347700171340ustar00rootroot00000000000000cmake_minimum_required(VERSION 3.6) project(fcitx5-chewing VERSION 5.0.9) find_package(ECM REQUIRED 1.0.0) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) find_package(PkgConfig REQUIRED) find_package(Fcitx5Core 5.0.2 REQUIRED) find_package(Gettext REQUIRED) include(FeatureSummary) include(GNUInstallDirs) include(ECMSetupVersion) include(ECMUninstallTarget) pkg_check_modules(Chewing "chewing>=0.5.0" IMPORTED_TARGET REQUIRED) pkg_get_variable(CHEWING_DATADIR "chewing" datadir) include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake") configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" ) add_subdirectory(src) add_subdirectory(data) add_subdirectory(po) fcitx5_translate_desktop_file(org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml XML) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml" DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) fcitx5-chewing-5.0.9/INSTALL000066400000000000000000000006371417634347700154300ustar00rootroot00000000000000fcitx-chewing install instructions ================================================= To compile and install, go in the source directory and type: mkdir build; cd build cmake .. (If you want to install in a different path, use instead: cmake .. -DCMAKE_INSTALL_PREFIX=/install/path) make To install, become root if required: make install Once installed, you can restart fcitx and it will be enabled by default. fcitx5-chewing-5.0.9/LICENSES/000077500000000000000000000000001417634347700155765ustar00rootroot00000000000000fcitx5-chewing-5.0.9/LICENSES/LGPL-2.1-or-later.txt000066400000000000000000000624621417634347700211300ustar00rootroot00000000000000GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. < signature of Ty Coon > , 1 April 1990 Ty Coon, President of Vice That's all there is to it! fcitx5-chewing-5.0.9/Messages.sh000077500000000000000000000000751417634347700165010ustar00rootroot00000000000000#!/bin/bash gen_pot cxx:desktop:appdata fcitx5-chewing po . fcitx5-chewing-5.0.9/README.md000066400000000000000000000006441417634347700156540ustar00rootroot00000000000000# fcitx5-chewing Chewing Wrapper for Fcitx. This provides libchewing input method support for fcitx5. Released under GPL2+. [![Jenkins Build Status](https://img.shields.io/jenkins/s/https/jenkins.fcitx-im.org/job/fcitx5-chewing.svg)](https://jenkins.fcitx-im.org/job/fcitx5-chewing/) [![Coverity Scan Status](https://img.shields.io/coverity/scan/14558.svg)](https://scan.coverity.com/projects/fcitx-fcitx5-chewing) fcitx5-chewing-5.0.9/config.h.in000066400000000000000000000002501417634347700164110ustar00rootroot00000000000000/* * SPDX-FileCopyrightText: 2010~2017 CSSlayer * * SPDX-License-Identifier: LGPL-2.1-or-later * */ #define CHEWING_DATADIR "@CHEWING_DATADIR@" fcitx5-chewing-5.0.9/data/000077500000000000000000000000001417634347700153025ustar00rootroot00000000000000fcitx5-chewing-5.0.9/data/48x48/000077500000000000000000000000001417634347700161015ustar00rootroot00000000000000fcitx5-chewing-5.0.9/data/48x48/apps/000077500000000000000000000000001417634347700170445ustar00rootroot00000000000000fcitx5-chewing-5.0.9/data/48x48/apps/fcitx-chewing.png000077700000000000000000000000001417634347700306142org.fcitx.Fcitx5.fcitx-chewing.pngustar00rootroot00000000000000fcitx5-chewing-5.0.9/data/48x48/apps/org.fcitx.Fcitx5.fcitx-chewing.png000066400000000000000000000026331417634347700253600ustar00rootroot00000000000000PNG  IHDR00WsBIT|d pHYspMBtEXtSoftwarewww.inkscape.org<IDAThZOh_4F((T!D҂x'!5^<ЀRH= D$ziA0'%ؚLHZF3^5onvcP73יl."nFÿ? V ױ=V ^AG*޽m&سgOS|>䤶 D4IDTTL&CjHRϱcT}~oߴn\qQt:댏Tn@.kgb~o߾Ǻ8r(g0>>.sssp\X^^@ 6 ?flN>-L&6NP߿ϤѣG ŋBQgZܨŘCMػw/C(0DQ""w$"l6+l6&kkkL}i&l&`kkK28% $IE?2rZfS (WBj8s ޼y#ʍ7T Hn.P<&ZN8j*Fx^ׂwٳ-IqM,,,0:xYK ЫIZNS\ ׇSN1RO>ПluH{W2}ɹsX,ji{""J&_Bp:^F;!F Ed2q6%_ԠDQD",G@RZb;N@)zP%  rU籲iBet;)t:/_`0h4h42c؄)e N7O@*j@"+WT'jx org.fcitx.Fcitx5.Addon.Chewing org.fcitx.Fcitx5 CC0-1.0 LGPL-2.1+ Chewing for Fcitx 5 Chewing input method https://fcitx-im.org https://github.com/fcitx/fcitx5-chewing/issues Fcitx fcitx5-chewing-5.0.9/po/000077500000000000000000000000001417634347700150075ustar00rootroot00000000000000fcitx5-chewing-5.0.9/po/CMakeLists.txt000066400000000000000000000000531417634347700175450ustar00rootroot00000000000000fcitx5_install_translation(fcitx5-chewing) fcitx5-chewing-5.0.9/po/LINGUAS000066400000000000000000000000451417634347700160330ustar00rootroot00000000000000 ca da de he ja ko ru tr zh_CN zh_TW fcitx5-chewing-5.0.9/po/ca.po000066400000000000000000000060501417634347700157330ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # Robert Antoni Buj Gelonch , 2017 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Robert Antoni Buj Gelonch , 2017\n" "Language-Team: Catalan (https://www.transifex.com/fcitx/teams/12005/ca/)\n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "Afegeix una frase endavant" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "Desplaça el cursor automàticament" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "Elecció de frase enrere" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Teclat Carpalx" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Chewing" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Contenir chewing per a fcitx" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "Teclat DACHEN_CP26" #: src/eim.h:63 msgid "Default Keyboard" msgstr "Teclat predeterminat" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Teclat Dvorak" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Teclat Dvorak amb suport Hsu" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "Teclat ETen" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "Teclat ETen26" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Teclat Gin-Yieh" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Teclat Han-Yu PinYin" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Teclat Hsu" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "Teclat IBM" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "Disposició de teclat" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "Tecla de selecció" #: src/eim.h:91 msgid "Space as selection key" msgstr "Espai com a tecla de selecció" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/da.po000066400000000000000000000057631417634347700157460ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # scootergrisen, 2021 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: scootergrisen, 2021\n" "Language-Team: Danish (https://www.transifex.com/fcitx/teams/12005/da/)\n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "Tilføj frase fremad" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "Skift automatisk markør" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "Valg af baglæns frase" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx-tastatur" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Chewing" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Chewing-wrapper til Fcitx" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Chewing til Fcitx 5" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "Chewing-inputmetode" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "DACHEN_CP26-tastatur" #: src/eim.h:63 msgid "Default Keyboard" msgstr "Standardtastatur" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak-tastatur" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Dvorak-tastatur med understøttelse af Hsu's" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "ETen-tastatur" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "ETen26-tastatur" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Gin-Yieh-tastatur" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Han-Yu PinYin-tastatur" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Hsu's tastatur" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM-tastatur" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "Tastaturlayout" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "Valgtast" #: src/eim.h:91 msgid "Space as selection key" msgstr "Mellemrum som valgtast" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "Brug numerisk tastatur som valgtast" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/de.po000066400000000000000000000061611417634347700157430ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # mar well , 2018 # Ettore Atalan , 2022 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2022-01-15 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Ettore Atalan , 2022\n" "Language-Team: German (https://www.transifex.com/fcitx/teams/12005/de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "Phrase nach vorne hinzufügen" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "Cursor automatisch anheben" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "Phrase rückwärts auswählen" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx Tastatur" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Chewing" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Chewing Wrapper für Fcitx" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "DACHEN_CP26 Tastatur" #: src/eim.h:63 msgid "Default Keyboard" msgstr "Standardtastatur" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak Tastatur" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Dvorak Keyboard mit Hsu's Unterstützung" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "ETen Tastatur" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "ETen26 Tastatur" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Gin-Yieh Tastatur" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Han-Yu PinYin Tastatur" #: src/eim.h:24 msgid "Horizontal" msgstr "Horizontal" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Hsu's Tastatur" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM Tastatur" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "Tastaturlayout" #: src/eim.h:23 msgid "Not Set" msgstr "Nicht festgelegt" #: src/eim.h:77 msgid "Page Size" msgstr "Seitengröße" #: src/eim.h:75 msgid "Selection Key" msgstr "Auswahltaste" #: src/eim.h:91 msgid "Space as selection key" msgstr "SPACE als Auswahltaste" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "" #: src/eim.h:24 msgid "Vertical" msgstr "Vertikal" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/fcitx5-chewing.pot000066400000000000000000000046301417634347700203620ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: LANG\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/eim.h:39 msgid "1234567890" msgstr "" #: src/eim.h:42 msgid "1234qweras" msgstr "" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "" #: src/eim.h:63 msgid "Default Keyboard" msgstr "" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "" #: src/eim.h:91 msgid "Space as selection key" msgstr "" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "" #: src/eim.h:41 msgid "asdfjkl789" msgstr "" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "" #: src/eim.h:42 msgid "dstnaeo789" msgstr "" fcitx5-chewing-5.0.9/po/he.po000066400000000000000000000053341417634347700157500ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # Omer I.S. , 2021 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Omer I.S. , 2021\n" "Language-Team: Hebrew (https://www.transifex.com/fcitx/teams/12005/he/)\n" "Language: he\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % " "1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" #: src/eim.h:39 msgid "1234567890" msgstr "" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "" #: src/eim.h:63 msgid "Default Keyboard" msgstr "" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "פריסת מקלדת" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "" #: src/eim.h:91 msgid "Space as selection key" msgstr "" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/ja.po000066400000000000000000000064311417634347700157450ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # Takuro Onoue , 2020 # UTUMI Hirosi , 2020 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: UTUMI Hirosi , 2020\n" "Language-Team: Japanese (https://www.transifex.com/fcitx/teams/12005/ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "前にフレーズを追加" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "カーソルを自動的にシフト" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "後方フレーズを選択" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx キーボード" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Chewing" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Fcitx 用 Chewing ラッパー" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Chewing for Fcitx 5" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "Chewing入力メソッド" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "DACHEN_CP26 キーボード" #: src/eim.h:63 msgid "Default Keyboard" msgstr "デフォルトのキーボード" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak キーボード" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Hsu サポートの Dvorak キーボード" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "Eten キーボード" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "Eten26 キーボード" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Gin-Yieh キーボード" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Han-Yu PinYin キーボード" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Hsu キーボード" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM キーボード" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "キーボードレイアウト" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "選択キー" #: src/eim.h:91 msgid "Space as selection key" msgstr "スペースを選択キーとして使う" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "選択キーとしてキーパッドを使用する" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/ko.po000066400000000000000000000061761417634347700157720ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # Jung Hee Lee , 2021 # Bon Keun Seo , 2021 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Bon Keun Seo , 2021\n" "Language-Team: Korean (https://www.transifex.com/fcitx/teams/12005/ko/)\n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "문구를 앞에 추가" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "자동으로 커서를 이동" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "역방향 문구 선택" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx 키보드" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Chewing" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Fcitx용 Chewing 입력기" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Fcitx 5 용 Chewing" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "Chewing 입력기" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "DACHEN_CP26 키보드" #: src/eim.h:63 msgid "Default Keyboard" msgstr "기본 키보드" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "드보락 키보드" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Hsu를 지원하는 드보락 키보드" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "ETen 키보드" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "ETen26 키보드" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Gin-Yieh 키보드" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Han-Yu 병음 키보드" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Hsu의 키보드" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM 키보드" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "키보드 자판" #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "선택 키" #: src/eim.h:91 msgid "Space as selection key" msgstr "스페이스바를 선택 키로" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "키패드를 선택 키로 사용" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/ru.po000066400000000000000000000073471417634347700160100ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # Dmitry , 2022 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2022-01-15 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Dmitry , 2022\n" "Language-Team: Russian (https://www.transifex.com/fcitx/teams/12005/ru/)\n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" "%100>=11 && n%100<=14)? 2 : 3);\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "Добавить фразу впереди" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "Автоматически сдвигать курсор" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "Выбор фразы сзади" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "Макет списка кандидатов" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Клавиатура Carpalx" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Чжуинь" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Обертка чжуинь для Fcitx" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Chewing для Fcitx 5" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "Метод ввода Chewing" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "Клавиатура DACHEN_CP26" #: src/eim.h:63 msgid "Default Keyboard" msgstr "Клавиатура по умолчанию" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Клавиатура Дворака" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Клавиатура Дворака с поддержкой " #: src/eim.h:65 msgid "ETen Keyboard" msgstr "Клавиатура ETen" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "Клавиатура ETen26" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Клавиатура Gin-Yieh" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Клавиатура Han-Yu пиньинь" #: src/eim.h:24 msgid "Horizontal" msgstr "Горизонтальный" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Клавиатура Hsu's" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "Клавиатура IBM" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "Раскладка клавиатуры" #: src/eim.h:23 msgid "Not Set" msgstr "Не задано" #: src/eim.h:77 msgid "Page Size" msgstr "Размер Страницы" #: src/eim.h:75 msgid "Selection Key" msgstr "Клавиша выбора" #: src/eim.h:91 msgid "Space as selection key" msgstr "Пробел в качестве клавиши выбора" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "Использовать Keypad в качестве клавиши выбора" #: src/eim.h:24 msgid "Vertical" msgstr "Вертикальный" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/tr.po000066400000000000000000000061421417634347700157770ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2017 # abc Def , 2021 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-11-25 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: abc Def , 2021\n" "Language-Team: Turkish (https://www.transifex.com/fcitx/teams/12005/tr/)\n" "Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "İfazı İleriye Ekle" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "İmleci otomatik olarak kaydır" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "Geriye doğru ifade seçimi" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx Klavyesi" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "Çiğneme" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Fcitx için Çiğneme Wrapperı" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Fcixtx 5 için çiğneme" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "Çiğneme giriş yöntemi" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "DACHEN_CP26 Klavyesi" #: src/eim.h:63 msgid "Default Keyboard" msgstr "Varsayılan Klavye" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak Klavyesi" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Hsu destekli Dvorak Klavyesi" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "ETen Klavyesi" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "ETen26 Klavyesi" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "Gin-Yieh Klavyesi" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "Han-Yu PinYin Klavyesi" #: src/eim.h:24 msgid "Horizontal" msgstr "" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "Hsu Klavyesi" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM Klavyesi" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "Klavye Düzeni " #: src/eim.h:23 msgid "Not Set" msgstr "" #: src/eim.h:77 msgid "Page Size" msgstr "" #: src/eim.h:75 msgid "Selection Key" msgstr "Seçim Tuşu" #: src/eim.h:91 msgid "Space as selection key" msgstr "Seçim tuşu olarak boşluk tuşu" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "Seçim tuşu olarak Tuş Takımını kullan" #: src/eim.h:24 msgid "Vertical" msgstr "" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/zh_CN.po000066400000000000000000000060361417634347700163550ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # csslayer , 2021 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2021-12-04 15:32+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: csslayer , 2021\n" "Language-Team: Chinese (China) (https://www.transifex.com/fcitx/teams/12005/" "zh_CN/)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "前方加词" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "选词完毕自动移到下一个词" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "后方选择字词" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "候选词列表方向" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx 键盘" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "新酷音" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Fcitx 的 新酷音封装" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Fcitx 5 的新酷音支持" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "新酷音输入法" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "大千26键键盘" #: src/eim.h:63 msgid "Default Keyboard" msgstr "默认键盘" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak键盘" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Dvorak键盘 + 许氏注音" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "倚天键盘" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "倚天26键键盘" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "精业键盘" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "汉语拼音键盘" #: src/eim.h:24 msgid "Horizontal" msgstr "横排" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "许氏键盘" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM键盘" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "键盘布局" #: src/eim.h:23 msgid "Not Set" msgstr "未设定" #: src/eim.h:77 msgid "Page Size" msgstr "页大小" #: src/eim.h:75 msgid "Selection Key" msgstr "选词键" #: src/eim.h:91 msgid "Space as selection key" msgstr "空格键选词" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "使用小键盘作为选择键" #: src/eim.h:24 msgid "Vertical" msgstr "竖排" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/po/zh_TW.po000066400000000000000000000063001417634347700164010ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the fcitx5-chewing package. # # Translators: # Billy SU , 2020 # PHLin , 2021 # csslayer , 2021 # Weizhong Yang , 2022 # msgid "" msgstr "" "Project-Id-Version: fcitx5-chewing\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2022-01-04 20:24+0000\n" "PO-Revision-Date: 2017-12-08 17:30+0000\n" "Last-Translator: Weizhong Yang , 2022\n" "Language-Team: Chinese (Taiwan) (https://www.transifex.com/fcitx/teams/12005/" "zh_TW/)\n" "Language: zh_TW\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: src/eim.h:39 msgid "1234567890" msgstr "1234567890" #: src/eim.h:42 msgid "1234qweras" msgstr "1234qweras" #: src/eim.h:85 msgid "Add Phrase Forward" msgstr "前方加詞" #: src/eim.h:89 msgid "Automatically shift cursor" msgstr "選字完畢自動移到下一個字" #: src/eim.h:87 msgid "Backward phrase choice" msgstr "後方選擇字詞" #: src/eim.h:80 msgid "Candidate List Layout" msgstr "候選字詞排列方式" #: src/eim.h:70 msgid "Carpalx Keyboard" msgstr "Carpalx 鍵盤" #: src/chewing-addon.conf.in.in:3 src/chewing.conf.in:3 msgid "Chewing" msgstr "新酷音" #: src/chewing-addon.conf.in.in:4 msgid "Chewing Wrapper For Fcitx" msgstr "Fcitx 的新酷音封装" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:7 msgid "Chewing for Fcitx 5" msgstr "Fcitx 5 的新酷音輸入法" #: org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in:8 msgid "Chewing input method" msgstr "新酷音輸入法" #: src/eim.h:68 msgid "DACHEN_CP26 Keyboard" msgstr "大千 26 鍵" #: src/eim.h:63 msgid "Default Keyboard" msgstr "預設鍵盤" #: src/eim.h:66 msgid "Dvorak Keyboard" msgstr "Dvorak 鍵盤" #: src/eim.h:67 msgid "Dvorak Keyboard with Hsu's support" msgstr "Dvorak 鍵盤 + 許氏注音" #: src/eim.h:65 msgid "ETen Keyboard" msgstr "倚天鍵盤" #: src/eim.h:66 msgid "ETen26 Keyboard" msgstr "倚天 26 鍵鍵盤" #: src/eim.h:65 msgid "Gin-Yieh Keyboard" msgstr "精業鍵盤" #: src/eim.h:69 msgid "Han-Yu PinYin Keyboard" msgstr "漢語拼音鍵盤" #: src/eim.h:24 msgid "Horizontal" msgstr "水平" #: src/eim.h:64 msgid "Hsu's Keyboard" msgstr "許氏鍵盤" #: src/eim.h:64 msgid "IBM Keyboard" msgstr "IBM 鍵盤" #: src/eim.h:93 msgid "Keyboard Layout" msgstr "鍵盤配置" #: src/eim.h:23 msgid "Not Set" msgstr "尚未設置" #: src/eim.h:77 msgid "Page Size" msgstr "頁面大小" #: src/eim.h:75 msgid "Selection Key" msgstr "選詞鍵" #: src/eim.h:91 msgid "Space as selection key" msgstr "使用空白鍵選擇候選字詞" #: src/eim.h:83 msgid "Use Keypad as Selection key" msgstr "使用數字鍵盤選擇候選字詞" #: src/eim.h:24 msgid "Vertical" msgstr "垂直" #: src/eim.h:41 msgid "aoeuhtn789" msgstr "aoeuhtn789" #: src/eim.h:40 msgid "asdfghjkl;" msgstr "asdfghjkl;" #: src/eim.h:41 msgid "asdfjkl789" msgstr "asdfjkl789" #: src/eim.h:40 msgid "asdfzxcv89" msgstr "asdfzxcv89" #: src/eim.h:42 msgid "dstnaeo789" msgstr "dstnaeo789" fcitx5-chewing-5.0.9/src/000077500000000000000000000000001417634347700151605ustar00rootroot00000000000000fcitx5-chewing-5.0.9/src/CMakeLists.txt000066400000000000000000000015621417634347700177240ustar00rootroot00000000000000set(CHEWING_SOURCES eim.cpp ) add_library(chewing MODULE ${CHEWING_SOURCES}) target_link_libraries(chewing Fcitx5::Core Fcitx5::Config PkgConfig::Chewing) set_target_properties(chewing PROPERTIES PREFIX "") target_compile_definitions(chewing PRIVATE FCITX_GETTEXT_DOMAIN=\"fcitx5-chewing\") fcitx5_add_i18n_definition(TARGETS chewing) install(TARGETS chewing DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5") fcitx5_translate_desktop_file(chewing.conf.in chewing.conf) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing.conf" DESTINATION "${CMAKE_INSTALL_DATADIR}/fcitx5/inputmethod") configure_file(chewing-addon.conf.in.in chewing-addon.conf.in) fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/chewing-addon.conf.in" chewing-addon.conf) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing-addon.conf" RENAME chewing.conf DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon") fcitx5-chewing-5.0.9/src/chewing-addon.conf.in.in000066400000000000000000000003231417634347700215460ustar00rootroot00000000000000[Addon] Name=Chewing Comment=Chewing Wrapper For Fcitx Category=InputMethod Version=@PROJECT_VERSION@ Type=SharedLibrary OnDemand=True Configurable=True Library=chewing [Addon/OptionalDependencies] 0=chttrans fcitx5-chewing-5.0.9/src/chewing.conf.in000066400000000000000000000001471417634347700200620ustar00rootroot00000000000000[InputMethod] Name=Chewing Icon=fcitx-chewing Label=酷 LangCode=zh_TW Addon=chewing Configurable=True fcitx5-chewing-5.0.9/src/eim.cpp000066400000000000000000000365641417634347700164540ustar00rootroot00000000000000/* * SPDX-FileCopyrightText: 2012~2012 Tai-Lin Chu * SPDX-FileCopyrightText: 2012~2017 CSSlayer * * SPDX-License-Identifier: LGPL-2.1-or-later * */ #include "eim.h" #include #include #include #include #include #include FCITX_DEFINE_LOG_CATEGORY(chewing_log, "chewing"); #define CHEWING_DEBUG() FCITX_LOGC(chewing_log, Debug) namespace fcitx { namespace { constexpr int CHEWING_MAX_LEN = 18; std::string builtin_keymaps[] = { "KB_DEFAULT", "KB_HSU", "KB_IBM", "KB_GIN_YEIH", "KB_ET", "KB_ET26", "KB_DVORAK", "KB_DVORAK_HSU", "KB_DACHEN_CP26", "KB_HANYU_PINYIN", "KB_CARPALX"}; static const char *builtin_selectkeys[] = { "1234567890", "asdfghjkl;", "asdfzxcv89", "asdfjkl789", "aoeuhtn789", "1234qweras", "dstnaeo789", }; static_assert(FCITX_ARRAY_SIZE(builtin_selectkeys) == ChewingSelectionKeyI18NAnnotation::enumLength, "Enum mismatch"); class ChewingCandidateWord : public CandidateWord { public: ChewingCandidateWord(ChewingEngine *engine, std::string str, int index) : CandidateWord(Text(str)), engine_(engine), index_(index) {} void select(InputContext *inputContext) const override { auto pageSize = engine_->instance()->globalConfig().defaultPageSize(); auto ctx = engine_->context(); int page = index_ / pageSize + chewing_cand_CurrentPage(ctx); int off = index_ % pageSize; if (page < 0 || page >= chewing_cand_TotalPage(ctx)) return; int lastPage = chewing_cand_CurrentPage(ctx); while (page != chewing_cand_CurrentPage(ctx)) { if (page < chewing_cand_CurrentPage(ctx)) { chewing_handle_Left(ctx); } if (page > chewing_cand_CurrentPage(ctx)) { chewing_handle_Right(ctx); } /* though useless, but take care if there is a bug cause freeze */ if (lastPage == chewing_cand_CurrentPage(ctx)) { break; } lastPage = chewing_cand_CurrentPage(ctx); } chewing_handle_Default(ctx, builtin_selectkeys[static_cast( *engine_->config().SelectionKey)][off]); if (chewing_keystroke_CheckAbsorb(ctx)) { engine_->updateUI(inputContext); } else if (chewing_keystroke_CheckIgnore(ctx)) { return; } else if (chewing_commit_Check(ctx)) { UniqueCPtr str(chewing_commit_String(ctx)); inputContext->commitString(str.get()); engine_->updateUI(inputContext); } else { engine_->updateUI(inputContext); } } private: ChewingEngine *engine_; int index_; }; class ChewingCandidateList : public CandidateList, public PageableCandidateList { public: ChewingCandidateList(ChewingEngine *engine, InputContext *ic) : engine_(engine), ic_(ic) { auto ctx = engine_->context(); setPageable(this); int index = 0; // get candidate word int pageSize = chewing_get_candPerPage(ctx); chewing_cand_Enumerate(ctx); while (chewing_cand_hasNext(ctx) && index < pageSize) { UniqueCPtr str(chewing_cand_String(ctx)); candidateWords_.emplace_back(std::make_unique( engine_, str.get(), index)); if (index < 10) { const char label[] = { builtin_selectkeys[static_cast( *engine_->config().SelectionKey)][index], '.', '\0'}; labels_.emplace_back(label); } else { labels_.emplace_back(); } index++; } hasPrev_ = chewing_cand_CurrentPage(ctx) > 0; hasNext_ = chewing_cand_CurrentPage(ctx) + 1 < chewing_cand_TotalPage(ctx); } const Text &label(int idx) const override { if (idx < 0 || idx >= size()) { throw std::invalid_argument("Invalid index"); } return labels_[idx]; } const CandidateWord &candidate(int idx) const override { if (idx < 0 || idx >= size()) { throw std::invalid_argument("Invalid index"); } return *candidateWords_[idx]; } int size() const override { return candidateWords_.size(); } int cursorIndex() const override { return -1; } CandidateLayoutHint layoutHint() const override { return *engine_->config().CandidateLayout; } // Need for paging bool hasPrev() const override { return hasPrev_; } bool hasNext() const override { return hasNext_; } void prev() override { paging(true); } void next() override { paging(false); } bool usedNextBefore() const override { return true; } private: void paging(bool prev) { if (candidateWords_.empty()) { return; } auto ctx = engine_->context(); if (prev) { chewing_handle_Left(ctx); } else { chewing_handle_Right(ctx); } if (chewing_keystroke_CheckAbsorb(ctx)) { engine_->updateUI(ic_); } } bool hasPrev_ = false; bool hasNext_ = false; ChewingEngine *engine_; InputContext *ic_; std::vector> candidateWords_; std::vector labels_; }; } // namespace ChewingEngine::ChewingEngine(Instance *instance) : instance_(instance), context_(chewing_new()) { chewing_set_maxChiSymbolLen(context_.get(), CHEWING_MAX_LEN); reloadConfig(); } ChewingEngine::~ChewingEngine() = default; void ChewingEngine::reloadConfig() { readAsIni(config_, "conf/chewing.conf"); populateConfig(); } void ChewingEngine::populateConfig() { ChewingContext *ctx = context_.get(); chewing_set_candPerPage(ctx, *config_.PageSize); chewing_set_addPhraseDirection(ctx, *config_.AddPhraseForward ? 0 : 1); chewing_set_phraseChoiceRearward(ctx, *config_.ChoiceBackward ? 1 : 0); chewing_set_autoShiftCur(ctx, *config_.AutoShiftCursor ? 1 : 0); chewing_set_spaceAsSelection(ctx, *config_.SpaceAsSelection ? 1 : 0); chewing_set_escCleanAllBuf(ctx, 1); } void ChewingEngine::reset(const InputMethodEntry &, InputContextEvent &event) { doReset(event); } void ChewingEngine::doReset(InputContextEvent &event) { ChewingContext *ctx = context_.get(); chewing_Reset(ctx); chewing_set_KBType( ctx, chewing_KBStr2Num( builtin_keymaps[static_cast(*config_.Layout)].data())); chewing_set_ChiEngMode(ctx, CHINESE_MODE); updateUI(event.inputContext()); } void ChewingEngine::save() {} void ChewingEngine::activate(const InputMethodEntry &, InputContextEvent &event) { // Request chttrans. // Fullwidth is not required for chewing. chttrans(); auto *inputContext = event.inputContext(); if (auto *action = instance_->userInterfaceManager().lookupAction("chttrans")) { inputContext->statusArea().addAction(StatusGroup::InputMethod, action); } } void ChewingEngine::deactivate(const InputMethodEntry &entry, InputContextEvent &event) { if (event.type() == EventType::InputContextFocusOut || event.type() == EventType::InputContextSwitchInputMethod) { flushBuffer(event); } else { reset(entry, event); } } void ChewingEngine::keyEvent(const InputMethodEntry &entry, KeyEvent &keyEvent) { auto ctx = context_.get(); if (keyEvent.isRelease()) { return; } CHEWING_DEBUG() << "KeyEvent: " << keyEvent.key().toString(); auto ic = keyEvent.inputContext(); const KeyList keypadKeys{Key{FcitxKey_KP_1}, Key{FcitxKey_KP_2}, Key{FcitxKey_KP_3}, Key{FcitxKey_KP_4}, Key{FcitxKey_KP_5}, Key{FcitxKey_KP_6}, Key{FcitxKey_KP_7}, Key{FcitxKey_KP_8}, Key{FcitxKey_KP_9}, Key{FcitxKey_KP_0}}; if (*config_.UseKeypadAsSelectionKey && ic->inputPanel().candidateList()) { if (int index = keyEvent.key().keyListIndex(keypadKeys); index >= 0 && index < ic->inputPanel().candidateList()->size()) { ic->inputPanel().candidateList()->candidate(index).select(ic); return keyEvent.filterAndAccept(); } } if (keyEvent.key().check(FcitxKey_space)) { chewing_handle_Space(ctx); } else if (keyEvent.key().check(FcitxKey_Tab)) { chewing_handle_Tab(ctx); } else if (keyEvent.key().isSimple()) { int scan_code = keyEvent.key().sym() & 0xff; chewing_handle_Default(ctx, scan_code); } else if (keyEvent.key().check(FcitxKey_BackSpace)) { const char *zuin_str = chewing_bopomofo_String_static(ctx); if (chewing_buffer_Len(ctx) == 0 && !zuin_str[0]) { return; } chewing_handle_Backspace(ctx); if (chewing_buffer_Len(ctx) == 0 && !zuin_str[0]) { keyEvent.filterAndAccept(); return reset(entry, keyEvent); } } else if (keyEvent.key().check(FcitxKey_Escape)) { chewing_handle_Esc(ctx); } else if (keyEvent.key().check(FcitxKey_Delete)) { const char *zuin_str = chewing_bopomofo_String_static(ctx); if (chewing_buffer_Len(ctx) == 0 && !zuin_str[0]) { return; } chewing_handle_Del(ctx); if (chewing_buffer_Len(ctx) == 0 && !zuin_str[0]) { keyEvent.filterAndAccept(); return reset(entry, keyEvent); } } else if (keyEvent.key().check(FcitxKey_Up)) { chewing_handle_Up(ctx); } else if (keyEvent.key().check(FcitxKey_Down)) { chewing_handle_Down(ctx); } else if (keyEvent.key().check(FcitxKey_Page_Down)) { chewing_handle_PageDown(ctx); } else if (keyEvent.key().check(FcitxKey_Page_Up)) { chewing_handle_PageUp(ctx); } else if (keyEvent.key().check(FcitxKey_Right)) { chewing_handle_Right(ctx); } else if (keyEvent.key().check(FcitxKey_Left)) { chewing_handle_Left(ctx); } else if (keyEvent.key().check(FcitxKey_Home)) { chewing_handle_Home(ctx); } else if (keyEvent.key().check(FcitxKey_End)) { chewing_handle_End(ctx); } else if (keyEvent.key().check(FcitxKey_space, KeyState::Shift)) { chewing_handle_ShiftSpace(ctx); } else if (keyEvent.key().check(FcitxKey_Left, KeyState::Shift)) { chewing_handle_ShiftLeft(ctx); } else if (keyEvent.key().check(FcitxKey_Right, KeyState::Shift)) { chewing_handle_ShiftRight(ctx); } else if (keyEvent.key().check(FcitxKey_Return)) { chewing_handle_Enter(ctx); } else if (keyEvent.key().states() == KeyState::Ctrl && Key(keyEvent.key().sym()).isDigit()) { chewing_handle_CtrlNum(ctx, keyEvent.key().sym()); } else { // to do: more chewing_handle return; } if (chewing_keystroke_CheckAbsorb(ctx)) { keyEvent.filterAndAccept(); return updateUI(ic); } else if (chewing_keystroke_CheckIgnore(ctx)) { return; } else if (chewing_commit_Check(ctx)) { keyEvent.filterAndAccept(); UniqueCPtr str(chewing_commit_String(ctx)); ic->commitString(str.get()); return updateUI(ic); } else { keyEvent.filterAndAccept(); return updateUI(ic); } } void ChewingEngine::filterKey(const InputMethodEntry &, KeyEvent &keyEvent) { if (keyEvent.isRelease()) { return; } auto ic = keyEvent.inputContext(); if (ic->inputPanel().candidateList() && (keyEvent.key().isSimple() || keyEvent.key().isCursorMove() || keyEvent.key().check(FcitxKey_space, KeyState::Shift) || keyEvent.key().check(FcitxKey_Tab) || keyEvent.key().check(FcitxKey_Return, KeyState::Shift))) { return keyEvent.filterAndAccept(); } if (!ic->inputPanel().candidateList()) { // Check if this key will produce something, if so, flush if (!keyEvent.key().hasModifier() && Key::keySymToUnicode(keyEvent.key().sym())) { flushBuffer(keyEvent); } } } void ChewingEngine::updateUI(InputContext *ic) { CHEWING_DEBUG() << "updateUI"; ChewingContext *ctx = context_.get(); int selkey[10]; int i = 0; for (i = 0; i < 10; i++) { selkey[i] = builtin_selectkeys[static_cast(*config_.SelectionKey)][i]; } chewing_set_selKey(ctx, selkey, 10); chewing_set_candPerPage(ctx, instance_->globalConfig().defaultPageSize()); populateConfig(); // clean up window asap ic->inputPanel().reset(); ic->updateUserInterface(UserInterfaceComponent::InputPanel); UniqueCPtr buf_str(chewing_buffer_String(ctx)); const char *zuin_str = chewing_bopomofo_String_static(ctx); std::string text = buf_str.get(); std::string zuin = zuin_str; CHEWING_DEBUG() << "Text: " << text << " Zuin: " << zuin; /* if not check done, so there is candidate word */ if (!chewing_cand_CheckDone(ctx)) { ic->inputPanel().setCandidateList( std::make_unique(this, ic)); if (!ic->inputPanel().candidateList()->size()) { ic->inputPanel().setCandidateList(nullptr); } } /* there is nothing */ if (zuin.empty() && text.empty() && !ic->inputPanel().candidateList()) { ic->updatePreedit(); return; } auto len = utf8::lengthValidated(text); if (len == utf8::INVALID_LENGTH) { return; } const auto useClientPreedit = ic->capabilityFlags().test(CapabilityFlag::Preedit); const auto format = useClientPreedit ? TextFormatFlag::Underline : TextFormatFlag::NoFlag; Text preedit; int cur = chewing_cursor_Current(ctx); int rcur = text.size(); if (cur >= 0 && static_cast(cur) < len) { rcur = utf8::ncharByteLength(text.begin(), cur); } preedit.setCursor(rcur); // insert zuin in the middle preedit.append(text.substr(0, rcur), format); preedit.append(zuin, {TextFormatFlag::HighLight, format}); preedit.append(text.substr(rcur), format); if (useClientPreedit) { ic->inputPanel().setClientPreedit(preedit); } else { ic->inputPanel().setPreedit(preedit); } ic->updatePreedit(); } void ChewingEngine::flushBuffer(InputContextEvent &event) { auto ctx = context_.get(); // This check is because we ask the client to do the focus out commit. if (event.type() != EventType::InputContextFocusOut) { chewing_handle_Enter(ctx); if (chewing_commit_Check(ctx)) { UniqueCPtr str(chewing_commit_String(ctx)); event.inputContext()->commitString(str.get()); } UniqueCPtr buf_str(chewing_buffer_String(ctx)); const char *zuin_str = chewing_bopomofo_String_static(ctx); std::string text = buf_str.get(); std::string zuin = zuin_str; text += zuin; if (!text.empty()) { event.inputContext()->commitString(text); } } doReset(event); } } // namespace fcitx FCITX_ADDON_FACTORY(fcitx::ChewingEngineFactory); fcitx5-chewing-5.0.9/src/eim.h000066400000000000000000000126221417634347700161060ustar00rootroot00000000000000/* * SPDX-FileCopyrightText: 2010~2017 CSSlayer * * SPDX-License-Identifier: LGPL-2.1-or-later * */ #ifndef _FCITX5_CHEWING_EIM_H_ #define _FCITX5_CHEWING_EIM_H_ #include #include #include #include #include #include #include #include #include #include #include namespace fcitx { FCITX_CONFIG_ENUM_NAME_WITH_I18N(CandidateLayoutHint, N_("Not Set"), N_("Vertical"), N_("Horizontal")); enum class ChewingSelectionKey { CSK_Digit, CSK_asdfghjkl, CSK_asdfzxcv89, CSK_asdfjkl789, CSK_aoeuhtn789, CSK_1234qweras, CSK_dstnaeo789 }; FCITX_CONFIG_ENUM_NAME(ChewingSelectionKey, "1234567890", "asdfghjkl;", "asdfzxcv89", "asdfjkl789", "aoeuhtn789", "1234qweras", "dstnaeo789"); FCITX_CONFIG_ENUM_I18N_ANNOTATION(ChewingSelectionKey, N_("1234567890"), N_("asdfghjkl;"), N_("asdfzxcv89"), N_("asdfjkl789"), N_("aoeuhtn789"), N_("1234qweras"), N_("dstnaeo789")); enum class ChewingLayout { Default, Hsu, IBM, GinYieh, ETen, ETen26, Dvorak, DvorakHsu, DACHEN_CP26, HanYuPinYin, Carpalx }; FCITX_CONFIG_ENUM_NAME(ChewingLayout, "Default Keyboard", "Hsu's Keyboard", "IBM Keyboard", "Gin-Yieh Keyboard", "ETen Keyboard", "ETen26 Keyboard", "Dvorak Keyboard", "Dvorak Keyboard with Hsu's support", "DACHEN_CP26 Keyboard", "Han-Yu PinYin Keyboard", "Carpalx Keyboard"); FCITX_CONFIG_ENUM_I18N_ANNOTATION(ChewingLayout, N_("Default Keyboard"), N_("Hsu's Keyboard"), N_("IBM Keyboard"), N_("Gin-Yieh Keyboard"), N_("ETen Keyboard"), N_("ETen26 Keyboard"), N_("Dvorak Keyboard"), N_("Dvorak Keyboard with Hsu's support"), N_("DACHEN_CP26 Keyboard"), N_("Han-Yu PinYin Keyboard"), N_("Carpalx Keyboard")); FCITX_CONFIGURATION( ChewingConfig, OptionWithAnnotation SelectionKey{this, "SelectionKey", _("Selection Key"), ChewingSelectionKey::CSK_Digit}; Option PageSize{this, "PageSize", _("Page Size"), 10, IntConstrain(3, 10)}; OptionWithAnnotation CandidateLayout{this, "CandidateLayout", _("Candidate List Layout"), fcitx::CandidateLayoutHint::NotSet}; Option UseKeypadAsSelectionKey{ this, "UseKeypadAsSelection", _("Use Keypad as Selection key"), false}; Option AddPhraseForward{this, "AddPhraseForward", _("Add Phrase Forward"), true}; Option ChoiceBackward{this, "ChoiceBackward", _("Backward phrase choice"), true}; Option AutoShiftCursor{this, "AutoShiftCursor", _("Automatically shift cursor"), false}; Option SpaceAsSelection{this, "SpaceAsSelection", _("Space as selection key"), true}; OptionWithAnnotation Layout{ this, "Layout", _("Keyboard Layout"), ChewingLayout::Default};); class ChewingEngine final : public InputMethodEngine { public: ChewingEngine(Instance *instance); ~ChewingEngine(); Instance *instance() { return instance_; } const ChewingConfig &config() { return config_; } void activate(const InputMethodEntry &entry, InputContextEvent &event) override; void deactivate(const InputMethodEntry &entry, InputContextEvent &event) override; void keyEvent(const InputMethodEntry &entry, KeyEvent &keyEvent) override; void filterKey(const InputMethodEntry &, KeyEvent &) override; void reloadConfig() override; void reset(const InputMethodEntry &entry, InputContextEvent &event) override; void save() override; const Configuration *getConfig() const override { return &config_; } void setConfig(const RawConfig &config) override { config_.load(config, true); safeSaveAsIni(config_, "conf/chewing.conf"); } void updateUI(InputContext *ic); void flushBuffer(InputContextEvent &event); void doReset(InputContextEvent &event); ChewingContext *context() { return context_.get(); } private: FCITX_ADDON_DEPENDENCY_LOADER(chttrans, instance_->addonManager()); void populateConfig(); Instance *instance_; ChewingConfig config_; UniqueCPtr context_; }; class ChewingEngineFactory : public AddonFactory { public: AddonInstance *create(AddonManager *manager) override { registerDomain("fcitx5-chewing", FCITX_INSTALL_LOCALEDIR); return new ChewingEngine(manager->instance()); } }; } // namespace fcitx #endif // _FCITX5_CHEWING_EIM_H_