pax_global_header00006660000000000000000000000064131634727260014525gustar00rootroot0000000000000052 comment=2a3f9fa9b2b7eeb56e1d6f64ddd6b69525b1d40a fcitx-hangul-0.3.1/000077500000000000000000000000001316347272600141175ustar00rootroot00000000000000fcitx-hangul-0.3.1/.gitignore000066400000000000000000000001041316347272600161020ustar00rootroot00000000000000build/* *.kdev4 .kdev_include_paths .directory *.kate-swp *.orig *~ fcitx-hangul-0.3.1/AUTHORS000066400000000000000000000000401316347272600151610ustar00rootroot00000000000000Weng Xuetian fcitx-hangul-0.3.1/CMakeLists.txt000066400000000000000000000023711316347272600166620ustar00rootroot00000000000000cmake_minimum_required (VERSION 2.6) project(fcitx-hangul) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) FIND_PACKAGE(Gettext REQUIRED) FIND_PACKAGE(Fcitx 4.2.7 REQUIRED) find_package(Hangul REQUIRED) # uninstall target configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" IMMEDIATE @ONLY) add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) set(CMAKE_C_FLAGS "-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -fvisibility=hidden ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -fvisibility=hidden ${CMAKE_CXX_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_SHARED_LINKER_FLAGS}") set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}") add_definitions("-D_GNU_SOURCE") if(NOT DEFINED LIB_INSTALL_DIR) set(LIB_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/lib) endif() configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" ) set(libdir ${LIB_INSTALL_DIR}) add_subdirectory(po) add_subdirectory(src) add_subdirectory(data) add_subdirectory(list)fcitx-hangul-0.3.1/COPYING000066400000000000000000000431621316347272600151600ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, 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. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, 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 or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's 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 give any other recipients of the Program a copy of this License along with the Program. 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 Program or any portion of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, 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 Program, 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 Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) 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; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, 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 executable. However, as a special exception, the source code 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. If distribution of executable or 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 counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program 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. 5. 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 Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program 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 to this License. 7. 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 Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program 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 Program. 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. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program 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. 9. The Free Software Foundation may publish revised and/or new versions of the 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 Program 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 Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, 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 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 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 Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. 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 program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. fcitx-hangul-0.3.1/INSTALL000066400000000000000000000006361316347272600151550ustar00rootroot00000000000000fcitx-hangul 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. fcitx-hangul-0.3.1/README000066400000000000000000000000471316347272600150000ustar00rootroot00000000000000fcitx-hangul Hangul Wrapper for Fcitx. fcitx-hangul-0.3.1/cmake/000077500000000000000000000000001316347272600151775ustar00rootroot00000000000000fcitx-hangul-0.3.1/cmake/FindHangul.cmake000066400000000000000000000022501316347272600202170ustar00rootroot00000000000000# - Try to find the Libpinyin libraries # Once done this will define # # HANGUL_FOUND - system has HANGUL # HANGUL_INCLUDE_DIR - the HANGUL include directory # HANGUL_LIBRARIES - HANGUL library # # Copyright (c) 2012 CSSlayer # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. if(HANGUL_INCLUDE_DIR AND HANGUL_LIBRARIES) # Already in cache, be silent set(HANGUL_FIND_QUIETLY TRUE) endif(HANGUL_INCLUDE_DIR AND HANGUL_LIBRARIES) find_package(PkgConfig REQUIRED) pkg_check_modules(PC_LIBHANGUL "libhangul>=0.0.12") find_path(HANGUL_MAIN_INCLUDE_DIR NAMES hangul.h HINTS ${PC_LIBHANGUL_INCLUDE_DIRS}) find_library(HANGUL_LIBRARIES NAMES hangul HINTS ${PC_LIBHANGUL_LIBDIR}) set(HANGUL_INCLUDE_DIR "${HANGUL_MAIN_INCLUDE_DIR}") include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Hangul DEFAULT_MSG HANGUL_LIBRARIES HANGUL_MAIN_INCLUDE_DIR ) mark_as_advanced(HANGUL_INCLUDE_DIR HANGUL_LIBRARIES) fcitx-hangul-0.3.1/cmake/cmake_uninstall.cmake.in000066400000000000000000000021151316347272600217560ustar00rootroot00000000000000if (NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) string(REGEX REPLACE "\n" ";" files "${files}") foreach (file ${files}) message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") if (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") execute_process( COMMAND @CMAKE_COMMAND@ -E remove "$ENV{DESTDIR}${file}" OUTPUT_VARIABLE rm_out RESULT_VARIABLE rm_retval ) if(NOT ${rm_retval} EQUAL 0) message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") endif (NOT ${rm_retval} EQUAL 0) else (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") endif (EXISTS "$ENV{DESTDIR}${file}" OR IS_SYMLINK "$ENV{DESTDIR}${file}") endforeach(file)fcitx-hangul-0.3.1/config.h.in000066400000000000000000000000531316347272600161400ustar00rootroot00000000000000#define CHEWING_DATADIR "@CHEWING_DATADIR@"fcitx-hangul-0.3.1/data/000077500000000000000000000000001316347272600150305ustar00rootroot00000000000000fcitx-hangul-0.3.1/data/CMakeLists.txt000066400000000000000000000007201316347272600175670ustar00rootroot00000000000000install(FILES symbol.txt DESTINATION ${FCITX4_PREFIX}/share/fcitx/hangul/) install(FILES hangul.png DESTINATION ${FCITX4_PREFIX}/share/fcitx/imicon/) install(FILES hangul.png RENAME fcitx-hangul.png DESTINATION share/icons/hicolor/64x64/apps/) install(FILES hanja_active.png RENAME fcitx-hanja-active.png DESTINATION share/icons/hicolor/48x48/status/) install(FILES hanja_inactive.png RENAME fcitx-hanja-inactive.png DESTINATION share/icons/hicolor/48x48/status/) fcitx-hangul-0.3.1/data/hangul.png000066400000000000000000000070221316347272600170150ustar00rootroot00000000000000PNG  IHDR@@iqsBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org< IDATx{pŝ?٧Ò0v,|'ǐ_#pw*ܙ"!qa*W!0qB`(&&y@Y 2%kݙYIWE~ۿu{D)Ň9it? )Kj!hJrNi*JaWJM̝4"5@*XXMKy)aJ4Fc FqFqOj 8>J4_ JwLa ||AWVDž ^SO|^NFA4QgG韊ZJ#VY "a_/g/M8r\\W<^??:Žc'i>`Rjt"^ O=>@1>TۀKxpU+t,QʔWV/l9e-1i+ C?Z߫fV:o{'3&eD]P^G|) Y\ K ="iBfM"-mi| \S! p5tTG\{JV@2}Kѹ12#ŋ%n>+"r ^sAZ +/9e,v|>#ܾEDJ"@Dw\|6^5M.#BޙmUR>p-p ~W `iOY ),BWI!7wm|u"2lc%,ǧLgb% 8'o.@hsS#Vj OSewt5}'ShI~drs:)e)HMA5@ykiOT=M{)Ȳ>+H*0{O̲K>_*qؚs"*WVzrtv)FYNeEsZuD) L}v i)0{]qH+&;@i{]u F~Ve_JP EC@RԐ ~g\܁y 4l[BܕDžQC}^PM@H#@ PͰ^a~Nrq wQ3q.nGFKPJBDTcKxqţC00—û/3Uض!D <9̗jd-?mX̖G."l~,>ZN߀EvaQ]UB Y1SQ9!5i vv}dp|Nx [5<4A)nM`3gǩ6 ̋@}m#G,@̉AZ5024rJT[tS@)I KFY}4v^z) t,>iϪ2Ɍace{efꚋ8Cxf{<|PJu{v# DDx!B %{`'*, h~ j(/(Xj;" Q򶾘De~ n֐"D-E4$N$ۦӠǁI;>ac6 )P]$]Yg'))=Lÿszʿۓqt8lZe-+z鱦D N4yau00=V^ %~$*ʬsrMzy{wv8GO $Z /s6[k 8|t`<?"LNG7p$y`:h ~ O%L^3G`sPJ~02+ը=Γ&%웯iea8xIH$FRcqB"|D e#1wOKgkg>@t=NL<6ֳwQlJOڼv6F^/qTJ]/H 4\χ'G浆 =C\f/صy_o[5e>~<."~`?S,^|kN@b3ݬHcQB*JH=^ZTAR;f"@?]XGɤƪ ƀIw ]o*"u񡡝TT.O Vi-ѝ7ѝcònc#Le˂$D\o˗`͜7|=9Bc\h4 Ɗ&Oءfr?`-p<Сbb|ګsi=6kOcmZ 8dt/ii {u6$='14㊧c/ d_k(~qѷ8pnͺW.}- &yd1D`|"ek^oLI126]]I&OzZ̅HoOs.z{-5f?+ȓfrQ~KU,Yr g9\OyJ)_k^n5'-1`GR{ >6 B}47_g*\l1ɖR p?FgUeo-& !^̓p@ nS[@?7۝شc^Jn^N0IЀvLS[{ 4OܰU+qش]WIGyG?yY`#b)p!p=yM PYy~bI_"*b'`"N-"R| 2:`Y3p"A4-HDbhh1tz{0>&˜H Rq1})g2Ly/>nֿ[g9jL`2lΒ1BVKz0.g 7aR*P_sM@D @=橬cACIa|F) <]SE@F#:S0z>G f co`.zQ .! 2_є_҇hBIENDB`fcitx-hangul-0.3.1/data/hanja_active.png000066400000000000000000000023111316347272600201470ustar00rootroot00000000000000PNG  IHDR00WsRGBbKGD pHYs  tIME !IIDAThMElaQ"Qoaz7O"4+W,aŨ md.e g_Ax yЯ+Q!Iy7u ܿhLäI]z~'-;:O0#8CG%hJOcr%׹WN¬.2+WR*܌ze.P(7;Qn?VsVty[s__QH8O5WԡI,k@G`2jS ld);W0>*og1*x>P, Koz p3vEA9 . yGc_9Npibb/ᶝU-0qovޫy\eC= rW{۞{^qRb\e]Y֑!Sj#sa HCsʥDVYG^ ұ~8#BϨ lJ%.F+-mjFHJ{b l J[;*5VcƢX7S0 &7Zࣼ1cB5P B@!F] R|yU,Z8(i$m5<>mHbQШ {:o*ʔ7y;P~u-xV}$ixhpqѿP;9gIENDB`fcitx-hangul-0.3.1/data/hanja_inactive.png000066400000000000000000000017731316347272600205110ustar00rootroot00000000000000PNG  IHDR00WsRGBbKGD pHYs  tIME 1{IDAThjAt xYTCVA;,'Pܸ셏  DBIŀф$c2MO4LUO890Lf2Uujh[ֶ5`%־*@(e]Ĵzę3b@6ysG8P0Κlp8;^"4 t2 tɉ)$,U{W`S:7Y-QopEv!6$%9%v2o㱪Pro5er^E~GΫ@o[yk?$l r%[@f a(ɼxTDh<>hMP>Uet$R)p]jFD 􍘃~ywd9"?U0 ,IX$Sj\q9ylҖ=`xle+OX84p @LXvPM|#2K`ZʆH+Xz`xerE"ߩvuG:\S.Jiȗ t)(0jyj}*WCYоZ||(!l8Pc*w ՙpy!i׀XX+MX7@$m+;~:͌8Le4)W׀#9. FW7%1 9ӔYEd佔(w ಴o W5?:/]ȪTbEx>bͅIi`kg76M{fְxassgucUn^?*GX#%+I_?zIO)e}{ /gVGr[W;IENDB`fcitx-hangul-0.3.1/data/symbol.txt000066400000000000000000000237611316347272600171070ustar00rootroot00000000000000# Copyright (c) 2005,2006 Choe Hwanjin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright notice, # this list of conditions and the following disclaimer in the documentation # and/or other materials provided with the distribution. # 3. Neither the name of the author nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. ㄱ: : ㄱ:!: ㄱ:': ㄱ:,: ㄱ:.: ㄱ:/: ㄱ::: ㄱ:;: ㄱ:?: ㄱ:^: ㄱ:_: ㄱ:`: ㄱ:|: ㄱ: ̄: ㄱ:、: ㄱ:。: ㄱ:·: ㄱ:‥: ㄱ:…: ㄱ:¨: ㄱ:〃: ㄱ:­: ㄱ:―: ㄱ:∥: ㄱ:\: ㄱ:∼: ㄱ:´: ㄱ:~: ㄱ:ˇ: ㄱ:˘: ㄱ:˝: ㄱ:˚: ㄱ:˙: ㄱ:¸: ㄱ:˛: ㄱ:¡: ㄱ:¿: ㄱ:ː: ㄲ:Æ: ㄲ:Ð: ㄲ:Ħ: ㄲ:IJ: ㄲ:Ŀ: ㄲ:Ł: ㄲ:Ø: ㄲ:Œ: ㄲ:Þ: ㄲ:Ŧ: ㄲ:Ŋ: ㄲ:æ: ㄲ:đ: ㄲ:ð: ㄲ:ħ: ㄲ:ı: ㄲ:ij: ㄲ:ĸ: ㄲ:ŀ: ㄲ:ł: ㄲ:ø: ㄲ:œ: ㄲ:ß: ㄲ:þ: ㄲ:ŧ: ㄲ:ŋ: ㄲ:ʼn: ㄴ:": ㄴ:(: ㄴ:): ㄴ:[: ㄴ:]: ㄴ:{: ㄴ:}: ㄴ:‘: ㄴ:’: ㄴ:“: ㄴ:”: ㄴ:〔: ㄴ:〕: ㄴ:〈: ㄴ:〉: ㄴ:《: ㄴ:》: ㄴ:「: ㄴ:」: ㄴ:『: ㄴ:』: ㄴ:【: ㄴ:】: ㄷ:+: ㄷ:-: ㄷ:<: ㄷ:=: ㄷ:>: ㄷ:±: ㄷ:×: ㄷ:÷: ㄷ:≠: ㄷ:≤: ㄷ:≥: ㄷ:∞: ㄷ:∴: ㄷ:♂: ㄷ:♀: ㄷ:∠: ㄷ:⊥: ㄷ:⌒: ㄷ:∂: ㄷ:∇: ㄷ:≡: ㄷ:≒: ㄷ:≪: ㄷ:≫: ㄷ:√: ㄷ:∽: ㄷ:∝: ㄷ:∵: ㄷ:∫: ㄷ:∬: ㄷ:∈: ㄷ:∋: ㄷ:⊆: ㄷ:⊇: ㄷ:⊂: ㄷ:⊃: ㄷ:∪: ㄷ:∩: ㄷ:∧: ㄷ:∨: ㄷ:¬: ㄷ:⇒: ㄷ:⇔: ㄷ:∀: ㄷ:∃: ㄷ:∮: ㄷ:∑: ㄷ:∏: ㄸ:ぁ: ㄸ:あ: ㄸ:ぃ: ㄸ:い: ㄸ:ぅ: ㄸ:う: ㄸ:ぇ: ㄸ:え: ㄸ:ぉ: ㄸ:お: ㄸ:か: ㄸ:が: ㄸ:き: ㄸ:ぎ: ㄸ:く: ㄸ:ぐ: ㄸ:け: ㄸ:げ: ㄸ:こ: ㄸ:ご: ㄸ:さ: ㄸ:ざ: ㄸ:し: ㄸ:じ: ㄸ:す: ㄸ:ず: ㄸ:せ: ㄸ:ぜ: ㄸ:そ: ㄸ:ぞ: ㄸ:た: ㄸ:だ: ㄸ:ち: ㄸ:ぢ: ㄸ:っ: ㄸ:つ: ㄸ:づ: ㄸ:て: ㄸ:で: ㄸ:と: ㄸ:ど: ㄸ:な: ㄸ:に: ㄸ:ぬ: ㄸ:ね: ㄸ:の: ㄸ:は: ㄸ:ば: ㄸ:ぱ: ㄸ:ひ: ㄸ:び: ㄸ:ぴ: ㄸ:ふ: ㄸ:ぶ: ㄸ:ぷ: ㄸ:へ: ㄸ:べ: ㄸ:ぺ: ㄸ:ほ: ㄸ:ぼ: ㄸ:ぽ: ㄸ:ま: ㄸ:み: ㄸ:む: ㄸ:め: ㄸ:も: ㄸ:ゃ: ㄸ:や: ㄸ:ゅ: ㄸ:ゆ: ㄸ:ょ: ㄸ:よ: ㄸ:ら: ㄸ:り: ㄸ:る: ㄸ:れ: ㄸ:ろ: ㄸ:ゎ: ㄸ:わ: ㄸ:ゐ: ㄸ:ゑ: ㄸ:を: ㄸ:ん: ㄹ:$: ㄹ:%: ㄹ:₩: ㄹ:F: ㄹ:′: ㄹ:″: ㄹ:℃: ㄹ:Å: ㄹ:¢: ㄹ:£: ㄹ:¥: ㄹ:¤: ㄹ:℉: ㄹ:‰: ㄹ:?: ㄹ:㎕: ㄹ:㎖: ㄹ:㎗: ㄹ:㎘: ㄹ:㏄: ㄹ:㎣: ㄹ:㎤: ㄹ:㎥: ㄹ:㎦: ㄹ:㎙: ㄹ:㎚: ㄹ:㎛: ㄹ:㎜: ㄹ:㎝: ㄹ:㎞: ㄹ:㎟: ㄹ:㎠: ㄹ:㎡: ㄹ:㎢: ㄹ:㏊: ㄹ:㎍: ㄹ:㎎: ㄹ:㎏: ㄹ:㏏: ㄹ:㎈: ㄹ:㎉: ㄹ:㏈: ㄹ:㎧: ㄹ:㎨: ㄹ:㎰: ㄹ:㎱: ㄹ:㎲: ㄹ:㎳: ㄹ:㎴: ㄹ:㎵: ㄹ:㎶: ㄹ:㎷: ㄹ:㎸: ㄹ:㎹: ㄹ:㎀: ㄹ:㎁: ㄹ:㎂: ㄹ:㎃: ㄹ:㎄: ㄹ:㎺: ㄹ:㎻: ㄹ:㎼: ㄹ:㎽: ㄹ:㎾: ㄹ:㎿: ㄹ:㎐: ㄹ:㎑: ㄹ:㎒: ㄹ:㎓: ㄹ:㎔: ㄹ:Ω: ㄹ:㏀: ㄹ:㏁: ㄹ:㎊: ㄹ:㎋: ㄹ:㎌: ㄹ:㏖: ㄹ:㏅: ㄹ:㎭: ㄹ:㎮: ㄹ:㎯: ㄹ:㏛: ㄹ:㎩: ㄹ:㎪: ㄹ:㎫: ㄹ:㎬: ㄹ:㏝: ㄹ:㏐: ㄹ:㏓: ㄹ:㏃: ㄹ:㏉: ㄹ:㏜: ㄹ:㏆: ㅁ:#: ㅁ:&: ㅁ:*: ㅁ:@: ㅁ:§: ㅁ:※: ㅁ:☆: ㅁ:★: ㅁ:○: ㅁ:●: ㅁ:◎: ㅁ:◇: ㅁ:◆: ㅁ:□: ㅁ:■: ㅁ:△: ㅁ:▲: ㅁ:▽: ㅁ:▼: ㅁ:→: ㅁ:←: ㅁ:↑: ㅁ:↓: ㅁ:↔: ㅁ:〓: ㅁ:▷: ㅁ:◀: ㅁ:▷: ㅁ:▶: ㅁ:♤: ㅁ:♠: ㅁ:♡: ㅁ:♥: ㅁ:♧: ㅁ:⊙: ㅁ:◈: ㅁ:▣: ㅁ:◐: ㅁ:◑: ㅁ:▒: ㅁ:▤: ㅁ:▥: ㅁ:▨: ㅁ:▧: ㅁ:▦: ㅁ:▩: ㅁ:♨: ㅁ:☏: ㅁ:☎: ㅁ:☜: ㅁ:☞: ㅁ:¶: ㅁ:†: ㅁ:‡: ㅁ:↕: ㅁ:↗: ㅁ:↙: ㅁ:↖: ㅁ:↘: ㅁ:♭: ㅁ:♩: ㅁ:♪: ㅁ:♬: ㅁ:㉿: ㅁ:㈜: ㅁ:№: ㅁ:㏇: ㅁ:™: ㅁ:㏂: ㅁ:㏘: ㅁ:℡: ㅁ:?: ㅁ:ª: ㅁ:º: ㅂ:─: ㅂ:│: ㅂ:┌: ㅂ:┐: ㅂ:┘: ㅂ:└: ㅂ:├: ㅂ:┬: ㅂ:┤: ㅂ:┴: ㅂ:┼: ㅂ:━: ㅂ:┃: ㅂ:┏: ㅂ:┓: ㅂ:┛: ㅂ:┗: ㅂ:┣: ㅂ:┳: ㅂ:┫: ㅂ:┻: ㅂ:╋: ㅂ:┠: ㅂ:┯: ㅂ:┨: ㅂ:┷: ㅂ:┿: ㅂ:┝: ㅂ:┰: ㅂ:┥: ㅂ:┸: ㅂ:╂: ㅂ:┒: ㅂ:┑: ㅂ:┚: ㅂ:┙: ㅂ:┖: ㅂ:┕: ㅂ:┎: ㅂ:┍: ㅂ:┞: ㅂ:┟: ㅂ:┡: ㅂ:┢: ㅂ:┦: ㅂ:┧: ㅂ:┩: ㅂ:┪: ㅂ:┭: ㅂ:┮: ㅂ:┲: ㅂ:┵: ㅂ:┶: ㅂ:┹: ㅂ:┺: ㅂ:┽: ㅂ:┾: ㅂ:╀: ㅂ:╁: ㅂ:╃: ㅂ:╄: ㅂ:╅: ㅂ:╆: ㅂ:╇: ㅂ:╈: ㅂ:╉: ㅂ:╊: ㅃ:ァ: ㅃ:ア: ㅃ:ィ: ㅃ:イ: ㅃ:ゥ: ㅃ:ウ: ㅃ:ェ: ㅃ:エ: ㅃ:ォ: ㅃ:オ: ㅃ:カ: ㅃ:ガ: ㅃ:キ: ㅃ:ギ: ㅃ:ク: ㅃ:グ: ㅃ:ケ: ㅃ:ゲ: ㅃ:コ: ㅃ:ゴ: ㅃ:サ: ㅃ:ザ: ㅃ:シ: ㅃ:ジ: ㅃ:ス: ㅃ:ズ: ㅃ:セ: ㅃ:ゼ: ㅃ:ソ: ㅃ:ゾ: ㅃ:タ: ㅃ:ダ: ㅃ:チ: ㅃ:ヂ: ㅃ:ッ: ㅃ:ツ: ㅃ:ヅ: ㅃ:テ: ㅃ:デ: ㅃ:ト: ㅃ:ド: ㅃ:ナ: ㅃ:ニ: ㅃ:ヌ: ㅃ:ネ: ㅃ:ノ: ㅃ:ハ: ㅃ:バ: ㅃ:パ: ㅃ:ヒ: ㅃ:ビ: ㅃ:ピ: ㅃ:フ: ㅃ:ブ: ㅃ:プ: ㅃ:ヘ: ㅃ:ベ: ㅃ:ペ: ㅃ:ホ: ㅃ:ボ: ㅃ:ポ: ㅃ:マ: ㅃ:ミ: ㅃ:ム: ㅃ:メ: ㅃ:モ: ㅃ:ャ: ㅃ:ヤ: ㅃ:ュ: ㅃ:ユ: ㅃ:ョ: ㅃ:ヨ: ㅃ:ラ: ㅃ:リ: ㅃ:ル: ㅃ:レ: ㅃ:ロ: ㅃ:ヮ: ㅃ:ワ: ㅃ:ヰ: ㅃ:ヱ: ㅃ:ヲ: ㅃ:ン: ㅃ:ヴ: ㅃ:ヵ: ㅃ:ヶ: ㅅ:㉠: ㅅ:㉡: ㅅ:㉢: ㅅ:㉣: ㅅ:㉤: ㅅ:㉥: ㅅ:㉦: ㅅ:㉧: ㅅ:㉨: ㅅ:㉩: ㅅ:㉪: ㅅ:㉫: ㅅ:㉬: ㅅ:㉭: ㅅ:㉮: ㅅ:㉯: ㅅ:㉰: ㅅ:㉱: ㅅ:㉲: ㅅ:㉳: ㅅ:㉴: ㅅ:㉵: ㅅ:㉶: ㅅ:㉷: ㅅ:㉸: ㅅ:㉹: ㅅ:㉺: ㅅ:㉻: ㅅ:㈀: ㅅ:㈁: ㅅ:㈂: ㅅ:㈃: ㅅ:㈄: ㅅ:㈅: ㅅ:㈆: ㅅ:㈇: ㅅ:㈈: ㅅ:㈉: ㅅ:㈊: ㅅ:㈋: ㅅ:㈌: ㅅ:㈍: ㅅ:㈎: ㅅ:㈏: ㅅ:㈐: ㅅ:㈑: ㅅ:㈒: ㅅ:㈓: ㅅ:㈔: ㅅ:㈕: ㅅ:㈖: ㅅ:㈗: ㅅ:㈘: ㅅ:㈙: ㅅ:㈚: ㅅ:㈛: ㅆ:А: ㅆ:Б: ㅆ:В: ㅆ:Г: ㅆ:Д: ㅆ:Е: ㅆ:Ё: ㅆ:Ж: ㅆ:З: ㅆ:И: ㅆ:Й: ㅆ:К: ㅆ:Л: ㅆ:М: ㅆ:Н: ㅆ:О: ㅆ:П: ㅆ:Р: ㅆ:С: ㅆ:Т: ㅆ:У: ㅆ:Ф: ㅆ:Х: ㅆ:Ц: ㅆ:Ч: ㅆ:Ш: ㅆ:Щ: ㅆ:Ъ: ㅆ:Ы: ㅆ:Ь: ㅆ:Э: ㅆ:Ю: ㅆ:Я: ㅆ:а: ㅆ:б: ㅆ:в: ㅆ:г: ㅆ:д: ㅆ:е: ㅆ:ё: ㅆ:ж: ㅆ:з: ㅆ:и: ㅆ:й: ㅆ:к: ㅆ:л: ㅆ:м: ㅆ:н: ㅆ:о: ㅆ:п: ㅆ:р: ㅆ:с: ㅆ:т: ㅆ:у: ㅆ:ф: ㅆ:х: ㅆ:ц: ㅆ:ч: ㅆ:ш: ㅆ:щ: ㅆ:ъ: ㅆ:ы: ㅆ:ь: ㅆ:э: ㅆ:ю: ㅆ:я: ㅇ:ⓐ: ㅇ:ⓑ: ㅇ:ⓒ: ㅇ:ⓓ: ㅇ:ⓔ: ㅇ:ⓕ: ㅇ:ⓖ: ㅇ:ⓗ: ㅇ:ⓘ: ㅇ:ⓙ: ㅇ:ⓚ: ㅇ:ⓛ: ㅇ:ⓜ: ㅇ:ⓝ: ㅇ:ⓞ: ㅇ:ⓟ: ㅇ:ⓠ: ㅇ:ⓡ: ㅇ:ⓢ: ㅇ:ⓣ: ㅇ:ⓤ: ㅇ:ⓥ: ㅇ:ⓦ: ㅇ:ⓧ: ㅇ:ⓨ: ㅇ:ⓩ: ㅇ:①: ㅇ:②: ㅇ:③: ㅇ:④: ㅇ:⑤: ㅇ:⑥: ㅇ:⑦: ㅇ:⑧: ㅇ:⑨: ㅇ:⑩: ㅇ:⑪: ㅇ:⑫: ㅇ:⑬: ㅇ:⑭: ㅇ:⑮: ㅇ:⒜: ㅇ:⒝: ㅇ:⒞: ㅇ:⒟: ㅇ:⒠: ㅇ:⒡: ㅇ:⒢: ㅇ:⒣: ㅇ:⒤: ㅇ:⒥: ㅇ:⒦: ㅇ:⒧: ㅇ:⒨: ㅇ:⒩: ㅇ:⒪: ㅇ:⒫: ㅇ:⒬: ㅇ:⒭: ㅇ:⒮: ㅇ:⒯: ㅇ:⒰: ㅇ:⒱: ㅇ:⒲: ㅇ:⒳: ㅇ:⒴: ㅇ:⒵: ㅇ:⑴: ㅇ:⑵: ㅇ:⑶: ㅇ:⑷: ㅇ:⑸: ㅇ:⑹: ㅇ:⑺: ㅇ:⑻: ㅇ:⑼: ㅇ:⑽: ㅇ:⑾: ㅇ:⑿: ㅇ:⒀: ㅇ:⒁: ㅇ:⒂: ㅈ:0: ㅈ:1: ㅈ:2: ㅈ:3: ㅈ:4: ㅈ:5: ㅈ:6: ㅈ:7: ㅈ:8: ㅈ:9: ㅈ:ⅰ: ㅈ:ⅱ: ㅈ:ⅲ: ㅈ:ⅳ: ㅈ:ⅴ: ㅈ:ⅵ: ㅈ:ⅶ: ㅈ:ⅷ: ㅈ:ⅸ: ㅈ:ⅹ: ㅈ:Ⅰ: ㅈ:Ⅱ: ㅈ:Ⅲ: ㅈ:Ⅳ: ㅈ:Ⅴ: ㅈ:Ⅵ: ㅈ:Ⅶ: ㅈ:Ⅷ: ㅈ:Ⅸ: ㅈ:Ⅹ: ㅊ:½: ㅊ:⅓: ㅊ:⅔: ㅊ:¼: ㅊ:¾: ㅊ:⅛: ㅊ:⅜: ㅊ:⅝: ㅊ:⅞: ㅊ:¹: ㅊ:²: ㅊ:³: ㅊ:⁴: ㅊ:ⁿ: ㅊ:₁: ㅊ:₂: ㅊ:₃: ㅊ:₄: ㅋ:ㄱ: ㅋ:ㄲ: ㅋ:ㄳ: ㅋ:ㄴ: ㅋ:ㄵ: ㅋ:ㄶ: ㅋ:ㄷ: ㅋ:ㄸ: ㅋ:ㄹ: ㅋ:ㄺ: ㅋ:ㄻ: ㅋ:ㄼ: ㅋ:ㄽ: ㅋ:ㄾ: ㅋ:ㄿ: ㅋ:ㅀ: ㅋ:ㅁ: ㅋ:ㅂ: ㅋ:ㅃ: ㅋ:ㅄ: ㅋ:ㅅ: ㅋ:ㅆ: ㅋ:ㅇ: ㅋ:ㅈ: ㅋ:ㅉ: ㅋ:ㅊ: ㅋ:ㅋ: ㅋ:ㅌ: ㅋ:ㅍ: ㅋ:ㅎ: ㅋ:ㅏ: ㅋ:ㅐ: ㅋ:ㅑ: ㅋ:ㅒ: ㅋ:ㅓ: ㅋ:ㅔ: ㅋ:ㅕ: ㅋ:ㅖ: ㅋ:ㅗ: ㅋ:ㅘ: ㅋ:ㅙ: ㅋ:ㅚ: ㅋ:ㅛ: ㅋ:ㅜ: ㅋ:ㅝ: ㅋ:ㅞ: ㅋ:ㅟ: ㅋ:ㅠ: ㅋ:ㅡ: ㅋ:ㅢ: ㅋ:ㅣ: ㅌ:ㅥ: ㅌ:ㅦ: ㅌ:ㅧ: ㅌ:ㅨ: ㅌ:ㅩ: ㅌ:ㅪ: ㅌ:ㅫ: ㅌ:ㅬ: ㅌ:ㅭ: ㅌ:ㅮ: ㅌ:ㅯ: ㅌ:ㅰ: ㅌ:ㅱ: ㅌ:ㅲ: ㅌ:ㅳ: ㅌ:ㅴ: ㅌ:ㅵ: ㅌ:ㅶ: ㅌ:ㅷ: ㅌ:ㅸ: ㅌ:ㅹ: ㅌ:ㅺ: ㅌ:ㆄ: ㅌ:ㅼ: ㅌ:ㅽ: ㅌ:ㅾ: ㅌ:ㅿ: ㅌ:ㆀ: ㅌ:ㆁ: ㅌ:ㆂ: ㅌ:ㆃ: ㅌ:ㆄ: ㅌ:ㆅ: ㅌ:ㆆ: ㅌ:ㆇ: ㅌ:ㆈ: ㅌ:ㆉ: ㅌ:ㆊ: ㅌ:ㆋ: ㅌ:ㆌ: ㅌ:ㆍ: ㅌ:ㆎ: ㅍ:A: ㅍ:B: ㅍ:C: ㅍ:D: ㅍ:E: ㅍ:F: ㅍ:G: ㅍ:H: ㅍ:I: ㅍ:J: ㅍ:K: ㅍ:L: ㅍ:M: ㅍ:N: ㅍ:O: ㅍ:P: ㅍ:Q: ㅍ:R: ㅍ:S: ㅍ:T: ㅍ:U: ㅍ:V: ㅍ:W: ㅍ:X: ㅍ:Y: ㅍ:Z: ㅍ:a: ㅍ:b: ㅍ:c: ㅍ:d: ㅍ:e: ㅍ:f: ㅍ:g: ㅍ:h: ㅍ:i: ㅍ:j: ㅍ:k: ㅍ:l: ㅍ:m: ㅍ:n: ㅍ:o: ㅍ:p: ㅍ:q: ㅍ:r: ㅍ:s: ㅍ:t: ㅍ:u: ㅍ:v: ㅍ:w: ㅍ:x: ㅍ:y: ㅍ:z: ㅎ:Α: ㅎ:Β: ㅎ:Γ: ㅎ:Δ: ㅎ:Ε: ㅎ:Ζ: ㅎ:Η: ㅎ:Θ: ㅎ:Ι: ㅎ:Κ: ㅎ:Λ: ㅎ:Μ: ㅎ:Ν: ㅎ:Ξ: ㅎ:Ο: ㅎ:Π: ㅎ:Ρ: ㅎ:Σ: ㅎ:Τ: ㅎ:Υ: ㅎ:Φ: ㅎ:Χ: ㅎ:Ψ: ㅎ:Ω: ㅎ:α: ㅎ:β: ㅎ:γ: ㅎ:δ: ㅎ:ε: ㅎ:ζ: ㅎ:η: ㅎ:θ: ㅎ:ι: ㅎ:κ: ㅎ:λ: ㅎ:μ: ㅎ:ν: ㅎ:ξ: ㅎ:ο: ㅎ:π: ㅎ:ρ: ㅎ:σ: ㅎ:τ: ㅎ:υ: ㅎ:φ: ㅎ:χ: ㅎ:ψ: ㅎ:ω: fcitx-hangul-0.3.1/list/000077500000000000000000000000001316347272600150725ustar00rootroot00000000000000fcitx-hangul-0.3.1/list/CMakeLists.txt000066400000000000000000000002071316347272600176310ustar00rootroot00000000000000 include_directories (${HANGUL_INCLUDE_DIR}) add_executable(gen_list gen_list.c) target_link_libraries (gen_list ${HANGUL_LIBRARIES}) fcitx-hangul-0.3.1/list/gen_list.c000066400000000000000000000033301316347272600170410ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2012~2012 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include #include int main(int argc, char* argv[]) { unsigned int nkeyboard = hangul_ic_get_n_keyboards(), i; for (i = 0 ; i < nkeyboard ; i ++) printf("\"%s\" \"%s\"\n", hangul_ic_get_keyboard_name(i), hangul_ic_get_keyboard_id(i)); return 0; }fcitx-hangul-0.3.1/po/000077500000000000000000000000001316347272600145355ustar00rootroot00000000000000fcitx-hangul-0.3.1/po/CMakeLists.txt000066400000000000000000000004261316347272600172770ustar00rootroot00000000000000file(GLOB PO_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.po) foreach(po_file ${PO_FILES}) string(REPLACE ".po" "" po_lang "${po_file}") fcitx_translate_add_po_file("${po_lang}" "${po_file}") endforeach() fcitx_translate_set_pot_target(pot fcitx-hangul fcitx-hangul.pot) fcitx-hangul-0.3.1/po/ca.po000066400000000000000000000043471316347272600154700ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Walter Garcia-Fontes , 2016 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2013-06-26 20:12-0400\n" "PO-Revision-Date: 2016-12-22 07:11+0000\n" "Last-Translator: Walter Garcia-Fontes \n" "Language-Team: Catalan (http://www.transifex.com/fcitx/fcitx/language/ca/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/eim.c:763 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "Hangul" #: src/eim.c:814 msgid "Use Hanja" msgstr "Usa hanja" #: src/eim.c:817 msgid "Use Hangul" msgstr "Usa hangul" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Contenidor hangul per al fcitx" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "Disposició de teclat" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik yetgeul" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik sense desplaçament" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik yetgeul" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Disposició sebeolsik dubeol" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "Ahnmatae" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "Tecla de commutació de mode hanja" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "Reordenament automàtic" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "Enviament de paraula" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "Mode hanja" fcitx-hangul-0.3.1/po/da.po000066400000000000000000000035551316347272600154710ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2017-06-13 12:02-0700\n" "PO-Revision-Date: 2012-03-17 06:22+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Danish (http://www.transifex.com/fcitx/fcitx/language/da/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "" #: src/eim.c:815 msgid "Use Hanja" msgstr "" #: src/eim.c:818 msgid "Use Hangul" msgstr "" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "" #: src/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "" fcitx-hangul-0.3.1/po/de.po000066400000000000000000000043171316347272600154720ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # mar well , 2013 # csslayer , 2013 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2015-08-03 18:01+0200\n" "PO-Revision-Date: 2013-09-16 03:04+0000\n" "Last-Translator: mar well \n" "Language-Team: German (http://www.transifex.com/fcitx/fcitx/language/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/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "Ahnmatae" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "Automatisch neu sortieren" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "Hangul" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Hangul Wrapper für Fcitx" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "Hanja Modus" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "Hanja Modus Umschalttaste" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "Tastaturlayout" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Sebeolsik Dubeol Layout" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik Yetgeul" #: src/eim.c:818 msgid "Use Hangul" msgstr "Hangul benutzen" #: src/eim.c:815 msgid "Use Hanja" msgstr "Hanja benutzen" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "Wort übergeben" fcitx-hangul-0.3.1/po/fcitx-hangul.pot000066400000000000000000000035031316347272600176530ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2017-06-13 12:02-0700\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.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "" #: src/eim.c:815 msgid "Use Hanja" msgstr "" #: src/eim.c:818 msgid "Use Hangul" msgstr "" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "" #: src/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "" fcitx-hangul-0.3.1/po/getdescpo000077500000000000000000000027271316347272600164500ustar00rootroot00000000000000#!/bin/sh filename=desc.po indir=$1 outdir=$2 cd "$outdir" rm -f "$outdir/$filename"; touch "$outdir/$filename" cat > "$outdir/$filename" <, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2010-11-17 11:48+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" EOF cd $indir descfiles=`find "$indir" -name ".hg" -prune -or -name "test" -prune -or -iname "*.desc" | grep desc` # Extract Description for f in $descfiles do awk '/^[\t ]*Description=/ { print "\n#: '$f':" NR"\n" "msgid \"" substr($0, 13)"\"\n" "msgstr \"\""}' "$f" >> "$outdir/$filename" done # Extract Group Name grep -nH '^\[' $descfiles | grep -v 'DescriptionFile' | awk ' "^[" { split($0, a, ":"); split(a[3], b, "/"); print substr(b[1], 2); }' | sort | uniq | awk '{ print "# unknown\nmsgid \""$0"\"\nmsgstr \"\"\n"; }' >> "$outdir/$filename" # Extract Enum Name grep -h 'Enum[0-9]' $descfiles | sed -e 's/Enum[0-9]=//g' | sort | uniq | awk '{ print "#: unknown\nmsgid \""$0"\"\nmsgstr \"\"\n"; }' >> "$outdir/$filename" fcitx-hangul-0.3.1/po/ja.po000066400000000000000000000044361316347272600154760ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # WAKAYAMA Shirou , 2013 # csslayer , 2013 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2015-08-03 18:01+0200\n" "PO-Revision-Date: 2013-06-27 00:23+0000\n" "Last-Translator: csslayer \n" "Language-Team: Japanese (http://www.transifex.com/fcitx/fcitx/language/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/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "Ahnmatae" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "自動並び替え" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "ハングル" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Fcitx 用 ハングルラッパー" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "朝鮮漢字モード" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "朝鮮漢字モードのトリガーとなるキー" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "キーボードレイアウト" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Sebeolsik Dubeol レイアウト" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik Yetgeul" #: src/eim.c:818 msgid "Use Hangul" msgstr "ハングルを使う" #: src/eim.c:815 msgid "Use Hanja" msgstr "朝鮮漢字を使う" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "単語確定" fcitx-hangul-0.3.1/po/ko.po000066400000000000000000000044201316347272600155060ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Bon Keun Seo , 2017 # csslayer , 2013 # csslayer , 2012 # csslayer , 2012 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2017-07-08 05:02-0700\n" "PO-Revision-Date: 2017-07-08 11:51+0000\n" "Last-Translator: Bon Keun Seo \n" "Language-Team: Korean (http://www.transifex.com/fcitx/fcitx/language/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/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "안마태" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "자동 재배열" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "두벌식" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "두벌식 옛글" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "한글" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Fcitx의 한글 표지" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "한자 모드" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "한자 모드 변환 키" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "자판 배열" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "로마자" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "세벌식 390" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "세벌식 두벌자판" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "세벌식 최종" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "세벌식 순아래" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "세벌식 옛글" #: src/eim.c:818 msgid "Use Hangul" msgstr "한글 사용" #: src/eim.c:815 msgid "Use Hanja" msgstr "한자 사용" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "단어 단위 입력" fcitx-hangul-0.3.1/po/ru.po000066400000000000000000000047631316347272600155350ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # TotalCaesar659 , 2016 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2013-06-26 20:12-0400\n" "PO-Revision-Date: 2016-11-30 23:35+0000\n" "Last-Translator: TotalCaesar659 \n" "Language-Team: Russian (http://www.transifex.com/fcitx/fcitx/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ru\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.c:763 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "Hangul" #: src/eim.c:814 msgid "Use Hanja" msgstr "Использовать Hanja" #: src/eim.c:817 msgid "Use Hangul" msgstr "Использовать Hangul" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Обертка Hangul для Fcitx" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "Раскладка клавиатуры" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik Yetgeul" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Раскладка Sebeolsik Dubeol" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "Ahnmatae" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "Клавиша переключения режима Hanja" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "Автоматическая пересортировка" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "Добавить слово" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "Режим Hanja" fcitx-hangul-0.3.1/po/tr.po000066400000000000000000000043021316347272600155210ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Gökhan Kalayci , 2017 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2013-06-26 20:12-0400\n" "PO-Revision-Date: 2017-04-20 20:35+0000\n" "Last-Translator: Gökhan Kalayci \n" "Language-Team: Turkish (http://www.transifex.com/fcitx/fcitx/language/tr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/eim.c:763 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "Hangul" #: src/eim.c:814 msgid "Use Hanja" msgstr "Hanja Kullan" #: src/eim.c:817 msgid "Use Hangul" msgstr "Hangul Kullan" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Fcitx için Hangul Wrapper" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "Klavye Düzeni " #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik Yetgeul" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Sebeolsik Dubeol Layout" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "Ahnmatae" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "Haja Modu Anahtar Değişimi" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "Otomatik Tekrar Sıralama" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "Kelime İşleme" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "Hanja Modu" fcitx-hangul-0.3.1/po/zh_CN.po000066400000000000000000000044621316347272600161040ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Christopher Meng , 2012 # marguerite su , 2012 # csslayer , 2013 # csslayer , 2012 # csslayer , 2010-2012 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2017-06-13 12:02-0700\n" "PO-Revision-Date: 2013-06-27 00:22+0000\n" "Last-Translator: csslayer \n" "Language-Team: Chinese (China) (http://www.transifex.com/fcitx/fcitx/" "language/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/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "安马太键盘" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "自动排序" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "韩文" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Fcitx 的韩文封装" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "汉字模式" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "汉字模式切换键" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "键盘布局" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "Romaja" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Sebeolsik Dubeol 布局" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "三套式古文" #: src/eim.c:818 msgid "Use Hangul" msgstr "使用韩文" #: src/eim.c:815 msgid "Use Hanja" msgstr "使用汉字" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "单词提交" fcitx-hangul-0.3.1/po/zh_TW.po000066400000000000000000000043561316347272600161400ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Alisha , 2012 # Jeff Huang , 2015 # csslayer , 2013 msgid "" msgstr "" "Project-Id-Version: fcitx\n" "Report-Msgid-Bugs-To: fcitx-dev@googlegroups.com\n" "POT-Creation-Date: 2017-06-13 12:02-0700\n" "PO-Revision-Date: 2015-09-28 14:32+0000\n" "Last-Translator: Jeff Huang \n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/fcitx/fcitx/" "language/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/fcitx-hangul.desc:14 msgid "Ahnmatae" msgstr "安馬太鍵盤" #: src/fcitx-hangul.desc:25 msgid "Auto Reorder" msgstr "自動排序" #: src/fcitx-hangul.desc:6 msgid "Dubeolsik" msgstr "Dubeolsik" #: src/fcitx-hangul.desc:7 msgid "Dubeolsik Yetgeul" msgstr "Dubeolsik Yetgeul" #: src/eim.c:764 src/fcitx-hangul.conf.in:3 src/hangul.conf.in:3 #: src/fcitx-hangul.desc:1 src/fcitx-hangul.desc:17 src/fcitx-hangul.desc:22 #: src/fcitx-hangul.desc:27 src/fcitx-hangul.desc:32 msgid "Hangul" msgstr "韓文" #: src/fcitx-hangul.conf.in:4 msgid "Hangul Wrapper For Fcitx" msgstr "Fcitx 的韓文封裝" #: src/fcitx-hangul.desc:35 msgid "Hanja Mode" msgstr "漢字模式" #: src/fcitx-hangul.desc:20 msgid "Hanja Mode Toggle Key" msgstr "漢字模式切換鍵" #: src/fcitx-hangul.desc:4 msgid "Keyboard Layout" msgstr "鍵盤配置" #: src/fcitx-hangul.desc:13 msgid "Romaja" msgstr "羅馬字" #: src/fcitx-hangul.desc:8 msgid "Sebeolsik 390" msgstr "Sebeolsik 390" #: src/fcitx-hangul.desc:12 msgid "Sebeolsik Dubeol Layout" msgstr "Sebeolsik Dubeol Layout" #: src/fcitx-hangul.desc:9 msgid "Sebeolsik Final" msgstr "Sebeolsik Final" #: src/fcitx-hangul.desc:10 msgid "Sebeolsik Noshift" msgstr "Sebeolsik Noshift" #: src/fcitx-hangul.desc:11 msgid "Sebeolsik Yetgeul" msgstr "Sebeolsik Yetgeul" #: src/eim.c:818 msgid "Use Hangul" msgstr "使用韓文" #: src/eim.c:815 msgid "Use Hanja" msgstr "使用漢字" #: src/fcitx-hangul.desc:30 msgid "Word Commit" msgstr "單字提交" fcitx-hangul-0.3.1/src/000077500000000000000000000000001316347272600147065ustar00rootroot00000000000000fcitx-hangul-0.3.1/src/CMakeLists.txt000066400000000000000000000007501316347272600174500ustar00rootroot00000000000000 include_directories (${HANGUL_INCLUDE_DIR} ${FCITX4_FCITX_CONFIG_INCLUDE_DIRS} ${FCITX4_FCITX_INCLUDE_DIRS} ${PROJECT_BINARY_DIR}) set( fcitx_hangul_sources ustring.c eim.c config.c keyboard.c ) add_definitions( -DLOCALEDIR=\"${CMAKE_INSTALL_PREFIX}/share/locale\" ) fcitx_add_addon_full(hangul DESC IM_CONFIG hangul.conf SOURCES ${fcitx_hangul_sources} LINK_LIBS ${HANGUL_LIBRARIES} ) fcitx-hangul-0.3.1/src/config.c000066400000000000000000000035711316347272600163250ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2010~2012 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "eim.h" /* USE fcitx provided macro to bind config and variable */ CONFIG_BINDING_BEGIN(FcitxHangulConfig) CONFIG_BINDING_REGISTER("Hangul", "Keyboard", keyboardLayout) CONFIG_BINDING_REGISTER("Hangul", "HanjaModeToggleKey", hkHanjaMode) CONFIG_BINDING_REGISTER("Hangul", "HanjaMode", hanjaMode) CONFIG_BINDING_REGISTER("Hangul", "AutoReorder", autoReorder) CONFIG_BINDING_REGISTER("Hangul", "WordCommit", wordCommit) CONFIG_BINDING_END()fcitx-hangul-0.3.1/src/eim.c000066400000000000000000000725511316347272600156360ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2010~2012 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "eim.h" #include "keyboard.h" #define MAX_LENGTH 40 FCITX_EXPORT_API FcitxIMClass ime = { FcitxHangulCreate, FcitxHangulDestroy }; FCITX_EXPORT_API int ABI_VERSION = FCITX_ABI_VERSION; static const FcitxHotkey FCITX_HANGUL_GRAVE[2] = { {NULL, FcitxKey_grave, FcitxKeyState_None}, {NULL, 0, 0}, }; CONFIG_DESC_DEFINE(GetHangulConfigDesc, "fcitx-hangul.desc") boolean LoadHangulConfig(FcitxHangulConfig* fs); static void SaveHangulConfig(FcitxHangulConfig* fs); static void ConfigHangul(FcitxHangul* hangul); static void FcitxHangulUpdatePreedit(FcitxHangul* hangul); static void FcitxHangulCleanLookupTable(FcitxHangul* hangul); static void FcitxHangulUpdateLookupTable(FcitxHangul* hangul, boolean checkSurrounding); static void FcitxHangulFlush(FcitxHangul* hangul); static void FcitxHangulToggleHanja(void* arg); static boolean FcitxHangulGetHanja(void* arg); static void FcitxHangulResetEvent(void* arg); static char* FcitxHangulUcs4ToUtf8(FcitxHangul* hangul, const ucschar* ucsstr, int length); static void FcitxHangulUpdateHanjaStatus(FcitxHangul* hangul); static inline void FcitxHangulFreeHanjaList(FcitxHangul* hangul) { if (hangul->hanjaList) { hanja_list_delete (hangul->hanjaList); hangul->hanjaList = NULL; } } static inline size_t ucs4_strlen(const ucschar* str) { size_t len = 0; while(*str) { len ++; str ++; } return len; } static boolean FcitxHangulOnTransition (HangulInputContext *hic, ucschar c, const ucschar *preedit, void *data) { FcitxHangul* hangul = (FcitxHangul*) data; if (!hangul->fh.autoReorder) { if (hangul_is_choseong (c)) { if (hangul_ic_has_jungseong (hic) || hangul_ic_has_jongseong (hic)) return false; } if (hangul_is_jungseong (c)) { if (hangul_ic_has_jongseong (hic)) return false; } } return true; } char* FcitxHangulUcs4ToUtf8(FcitxHangul* hangul, const ucschar* ucsstr, int length) { if (!ucsstr) return NULL; size_t ucslen; if (length < 0) ucslen = ucs4_strlen(ucsstr); else ucslen = length; size_t len = UTF8_MAX_LENGTH * ucslen; char* str = (char*) fcitx_utils_malloc0(sizeof(char) * len + 1); len *= sizeof(char); ucslen *= sizeof(ucschar); char* p = str; iconv(hangul->conv, (char**) &ucsstr, &ucslen, &p, &len); return str; } /** * @brief Reset the status. * **/ void FcitxHangulReset (void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; ustring_clear(hangul->preedit); hangul_ic_reset(hangul->ic); if (hangul->hanjaList) { FcitxHangulCleanLookupTable(hangul); } } /** * @brief Process Key Input and return the status * * @param keycode keycode from XKeyEvent * @param state state from XKeyEvent * @param count count from XKeyEvent * @return INPUT_RETURN_VALUE **/ INPUT_RETURN_VALUE FcitxHangulDoInput(void* arg, FcitxKeySym sym, unsigned int state) { FcitxHangul* hangul = (FcitxHangul*) arg; FcitxInstance* instance = hangul->owner; if (FcitxHotkeyIsHotKey(sym, state, hangul->fh.hkHanjaMode)) { if (hangul->hanjaList == NULL) { FcitxHangulUpdateLookupTable(hangul, true); } else { FcitxHangulCleanLookupTable(hangul); } return IRV_DISPLAY_MESSAGE; } if (sym == FcitxKey_Shift_L || sym == FcitxKey_Shift_R) return IRV_TO_PROCESS; FcitxGlobalConfig* config = FcitxInstanceGetGlobalConfig(hangul->owner); const FcitxHotkey* prevPage = FcitxConfigPrevPageKey(instance, config); const FcitxHotkey* nextPage = FcitxConfigNextPageKey(instance, config); int s = hangul->fh.hkHanjaMode[0].state | hangul->fh.hkHanjaMode[1].state | config->prevWord[0].state | config->prevWord[1].state | config->nextWord[0].state | config->nextWord[1].state | prevPage[0].state | prevPage[1].state | nextPage[0].state | nextPage[1].state; if (s & FcitxKeyState_Ctrl) { if (sym == FcitxKey_Control_L || sym == FcitxKey_Control_R) return IRV_TO_PROCESS; } if (s & FcitxKeyState_Alt) { if (sym == FcitxKey_Alt_L || sym == FcitxKey_Alt_R) return IRV_TO_PROCESS; } if (s & FcitxKeyState_Shift) { if (sym == FcitxKey_Shift_L || sym == FcitxKey_Shift_R) return IRV_TO_PROCESS; } if (s & FcitxKeyState_Super) { if (sym == FcitxKey_Super_L || sym == FcitxKey_Super_R) return IRV_TO_PROCESS; } if (s & FcitxKeyState_Hyper) { if (sym == FcitxKey_Hyper_L || sym == FcitxKey_Hyper_R) return IRV_TO_PROCESS; } FcitxInputState* input = FcitxInstanceGetInputState(hangul->owner); FcitxCandidateWordList* candList = FcitxInputStateGetCandidateList(input); int candSize = FcitxCandidateWordGetListSize(candList); if (candSize > 0) { if (FcitxHotkeyIsHotKey(sym, state, prevPage)) { if (FcitxCandidateWordHasPrev(candList)) { FcitxCandidateWordGetFocus(candList, true); } if (FcitxCandidateWordGoPrevPage(candList)) { FcitxCandidateWordSetType(FcitxCandidateWordGetByIndex(candList, 0), MSG_CANDIATE_CURSOR); return IRV_FLAG_UPDATE_INPUT_WINDOW; } else { return IRV_DO_NOTHING; } } else if (FcitxHotkeyIsHotKey(sym, state, nextPage)) { if (FcitxCandidateWordHasNext(candList)) { FcitxCandidateWordGetFocus(candList, true); } if (FcitxCandidateWordGoNextPage(candList)) { FcitxCandidateWordSetType(FcitxCandidateWordGetByIndex(candList, 0), MSG_CANDIATE_CURSOR); return IRV_FLAG_UPDATE_INPUT_WINDOW; } else { return IRV_DO_NOTHING; } } FcitxCandidateWord* candWord = NULL; if (FcitxHotkeyIsHotKey(sym, state, config->nextWord)) { candWord = FcitxCandidateWordGetFocus(candList, true); candWord = FcitxCandidateWordGetNext(candList, candWord); if (!candWord) { FcitxCandidateWordSetPage(candList, 0); candWord = FcitxCandidateWordGetCurrentWindow(candList); } else { FcitxCandidateWordSetFocus( candList, FcitxCandidateWordGetIndex(candList, candWord)); } } else if (FcitxHotkeyIsHotKey(sym, state, config->prevWord)) { candWord = FcitxCandidateWordGetFocus(candList, true); candWord = FcitxCandidateWordGetPrev(candList, candWord); if (!candWord) { candWord = FcitxCandidateWordGetLast(candList); } FcitxCandidateWordSetFocus( candList, FcitxCandidateWordGetIndex(candList, candWord)); } if (candWord) { FcitxCandidateWordSetType(candWord, MSG_CANDIATE_CURSOR); return IRV_FLAG_UPDATE_INPUT_WINDOW; } if (FcitxHotkeyIsHotKeyDigit(sym, state)) return IRV_TO_PROCESS; if (FcitxHotkeyIsHotKey(sym, state , FCITX_ENTER)) { do { candWord = FcitxCandidateWordGetFocus(candList, true); if (!candWord) { break; } // FcitxLog(INFO, "%d", FcitxCandidateWordGetIndex(candList, candWord)); return FcitxCandidateWordChooseByTotalIndex(candList, FcitxCandidateWordGetIndex(candList, candWord)); } while(0); return FcitxCandidateWordChooseByIndex(candList, 0); } if (!hangul->fh.hanjaMode) { FcitxHangulCleanLookupTable(hangul); } } s = FcitxKeyState_Ctrl | FcitxKeyState_Alt | FcitxKeyState_Shift | FcitxKeyState_Super | FcitxKeyState_Hyper; if (state & s) { FcitxHangulFlush (hangul); FcitxHangulUpdatePreedit(hangul); FcitxUIUpdateInputWindow(hangul->owner); return IRV_TO_PROCESS; } bool keyUsed = false; if (FcitxHotkeyIsHotKey(sym, state, FCITX_BACKSPACE)) { keyUsed = hangul_ic_backspace (hangul->ic); if (!keyUsed) { unsigned int preedit_len = ustring_length (hangul->preedit); if (preedit_len > 0) { ustring_erase (hangul->preedit, preedit_len - 1, 1); keyUsed = true; } } } else { if (ustring_length(hangul->preedit) >= MAX_LENGTH) { FcitxHangulFlush(hangul); } keyUsed = hangul_ic_process(hangul->ic, sym); boolean notFlush = false; const ucschar* str = hangul_ic_get_commit_string (hangul->ic); if (hangul->fh.wordCommit || hangul->fh.hanjaMode) { const ucschar* hic_preedit; hic_preedit = hangul_ic_get_preedit_string (hangul->ic); if (hic_preedit != NULL && hic_preedit[0] != 0) { ustring_append_ucs4 (hangul->preedit, str); } else { ustring_append_ucs4 (hangul->preedit, str); if (ustring_length (hangul->preedit) > 0) { char* commit = FcitxHangulUcs4ToUtf8(hangul, ustring_begin(hangul->preedit), ustring_length(hangul->preedit)); if (commit) { FcitxInstanceCleanInputWindowUp(hangul->owner); size_t len = fcitx_utf8_strlen(commit); if (len > 0) { char* p = fcitx_utf8_get_nth_char(commit, len - 1); if ((strcmp(p, "`") == 0 && FcitxHotkeyIsHotKey(sym, state, FCITX_HANGUL_GRAVE)) || (strcmp(p, ";") == 0 && FcitxHotkeyIsHotKey(sym, state, FCITX_SEMICOLON))) { keyUsed = false; notFlush = true; *p = 0; } } FcitxInstanceCommitString(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), commit); free(commit); } } ustring_clear (hangul->preedit); } } else { if (str != NULL && str[0] != 0) { char* commit = FcitxHangulUcs4ToUtf8(hangul, str, -1); if (commit) { FcitxInstanceCleanInputWindowUp(hangul->owner); if ((strcmp(commit, "`") == 0 && FcitxHotkeyIsHotKey(sym, state, FCITX_HANGUL_GRAVE)) || (strcmp(commit, ";") == 0 && FcitxHotkeyIsHotKey(sym, state, FCITX_SEMICOLON))) { keyUsed = false; notFlush = true; } else { FcitxInstanceCommitString(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), commit); } free(commit); } } } FcitxHangulGetCandWords(hangul); FcitxUIUpdateInputWindow(hangul->owner); if (!keyUsed && !notFlush) FcitxHangulFlush (hangul); } if (!keyUsed) return IRV_TO_PROCESS; else return IRV_DISPLAY_CANDWORDS; } void FcitxHangulUpdatePreedit(FcitxHangul* hangul) { FcitxInputState* input = FcitxInstanceGetInputState(hangul->owner); FcitxMessages* preedit = FcitxInputStateGetPreedit(input); FcitxMessages* clientPreedit = FcitxInputStateGetClientPreedit(input); FcitxInstanceCleanInputWindowUp(hangul->owner); FcitxInputStateSetShowCursor(input, true); const ucschar *hic_preedit = hangul_ic_get_preedit_string (hangul->ic); char* pre1 = FcitxHangulUcs4ToUtf8(hangul, ustring_begin(hangul->preedit), ustring_length(hangul->preedit)); char* pre2 = FcitxHangulUcs4ToUtf8(hangul, hic_preedit, -1); FcitxInputContext* ic = FcitxInstanceGetCurrentIC(hangul->owner); FcitxProfile* profile = FcitxInstanceGetProfile(hangul->owner); size_t preeditLen = 0; boolean clientPreeditNotAvail = (ic && ((ic->contextCaps & CAPACITY_PREEDIT) == 0 || !profile->bUsePreedit)); if (pre1 && pre1[0] != 0) { size_t len1 = strlen(pre1); if (clientPreeditNotAvail) FcitxMessagesAddMessageAtLast(preedit, MSG_INPUT, "%s", pre1); FcitxMessagesAddMessageAtLast(clientPreedit, MSG_INPUT, "%s", pre1); preeditLen += len1; } if (pre2 && pre2[0] != '\0') { size_t len2 = strlen(pre2); if (clientPreeditNotAvail) FcitxMessagesAddMessageAtLast(preedit, MSG_INPUT | MSG_HIGHLIGHT, "%s", pre2); FcitxMessagesAddMessageAtLast(clientPreedit, MSG_INPUT | MSG_HIGHLIGHT, "%s", pre2); preeditLen += len2; } FcitxInputStateSetCursorPos(input, clientPreeditNotAvail ? preeditLen : 0); FcitxInputStateSetClientCursorPos(input, preeditLen); if (pre1) free(pre1); if (pre2) free(pre2); } HanjaList* FcitxHangulLookupTable(FcitxHangul* hangul, const char* key, int method) { HanjaList* list = NULL; if (key == NULL) return NULL; switch (method) { case LOOKUP_METHOD_EXACT: if (hangul->symbolTable != NULL) list = hanja_table_match_exact (hangul->symbolTable, key); if (list == NULL) list = hanja_table_match_exact (hangul->table, key); break; case LOOKUP_METHOD_PREFIX: if (hangul->symbolTable != NULL) list = hanja_table_match_prefix (hangul->symbolTable, key); if (list == NULL) list = hanja_table_match_prefix (hangul->table, key); break; case LOOKUP_METHOD_SUFFIX: if (hangul->symbolTable != NULL) list = hanja_table_match_suffix (hangul->symbolTable, key); if (list == NULL) list = hanja_table_match_suffix (hangul->table, key); break; } return list; } #define FCITX_HANGUL_MAX(a, b) ((a) > (b)? (a) : (b)) #define FCITX_HANGUL_MIN(a, b) ((a) < (b)? (a) : (b)) #define FCITX_HANGUL_ABS(a) ((a) >= (0)? (a) : -(a)) static char* GetSubstring (const char* str, long p1, long p2) { const char* begin; const char* end; char* substring; long limit; long pos; long n; if (str == NULL || str[0] == '\0') return NULL; limit = strlen(str) + 1; p1 = FCITX_HANGUL_MAX(0, p1); p2 = FCITX_HANGUL_MAX(0, p2); pos = FCITX_HANGUL_MIN(p1, p2); n = FCITX_HANGUL_ABS(p2 - p1); if (pos + n > limit) n = limit - pos; begin = fcitx_utf8_get_nth_char ((char*)str, pos); end = fcitx_utf8_get_nth_char ((char*)begin, n); substring = strndup (begin, end - begin); return substring; } void FcitxHangulCleanLookupTable(FcitxHangul* hangul) { FcitxInstanceCleanInputWindowDown(hangul->owner); // FcitxUIUpdateInputWindow(hangul->owner); FcitxHangulFreeHanjaList(hangul); } void FcitxHangulUpdateLookupTable(FcitxHangul* hangul, boolean checkSurrounding) { char* surroundingStr = NULL; char* utf8; char* hanjaKey = NULL; LookupMethod lookupMethod = LOOKUP_METHOD_PREFIX; const ucschar* hic_preedit; UString* preedit; unsigned int cursorPos; unsigned int anchorPos; FcitxHangulFreeHanjaList(hangul); hic_preedit = hangul_ic_get_preedit_string (hangul->ic); preedit = ustring_dup (hangul->preedit); ustring_append_ucs4 (preedit, hic_preedit); if (ustring_length(preedit) > 0) { utf8 = FcitxHangulUcs4ToUtf8 (hangul, ustring_begin(preedit), ustring_length(preedit)); if (hangul->fh.wordCommit || hangul->fh.hanjaMode) { hanjaKey = utf8; lookupMethod = LOOKUP_METHOD_PREFIX; } else { char* substr; FcitxInstanceGetSurroundingText(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), &surroundingStr, &cursorPos, &anchorPos); substr = GetSubstring (surroundingStr, (long) cursorPos - 64, cursorPos); if (substr != NULL) { asprintf(&hanjaKey, "%s%s", substr, utf8); free (utf8); free (substr); } else { hanjaKey = utf8; } lookupMethod = LOOKUP_METHOD_SUFFIX; } } else { if (checkSurrounding) { FcitxInstanceGetSurroundingText(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), &surroundingStr, &cursorPos, &anchorPos); if (cursorPos != anchorPos) { // If we have selection in surrounding text, we use that. hanjaKey = GetSubstring(surroundingStr, cursorPos, anchorPos); lookupMethod = LOOKUP_METHOD_EXACT; } else { hanjaKey = GetSubstring (surroundingStr, (long) cursorPos - 64, cursorPos); lookupMethod = LOOKUP_METHOD_SUFFIX; } } } if (hanjaKey != NULL) { hangul->hanjaList = FcitxHangulLookupTable (hangul, hanjaKey, lookupMethod); hangul->lastLookupMethod = lookupMethod; free (hanjaKey); } ustring_delete (preedit); if (surroundingStr) free(surroundingStr); if (hangul->hanjaList) { HanjaList* list = hangul->hanjaList; if (list != NULL) { int i, n; n = hanja_list_get_size (list); FcitxInputState* input = FcitxInstanceGetInputState(hangul->owner); FcitxCandidateWordList* candList = FcitxInputStateGetCandidateList(input); FcitxGlobalConfig* config = FcitxInstanceGetGlobalConfig(hangul->owner); FcitxCandidateWordSetPageSize(candList, config->iMaxCandWord); FcitxCandidateWordSetChoose(candList, "1234567890"); FcitxCandidateWord word; FcitxCandidateWordReset(candList); for (i = 0; i < n; i++) { const char* value = hanja_list_get_nth_value (list, i); unsigned int* idx = fcitx_utils_malloc0(sizeof(unsigned int)); *idx = i; word.strWord = strdup(value); word.wordType = (i == 0) ? MSG_CANDIATE_CURSOR : MSG_INPUT; word.strExtra = NULL; word.extraType = MSG_INPUT; word.priv = idx; word.owner = hangul; word.callback = FcitxHangulGetCandWord; FcitxCandidateWordAppend(candList, &word); } FcitxCandidateWordSetFocus(candList, 0); } } } void FcitxHangulFlush(FcitxHangul* hangul) { const ucschar *str; FcitxHangulCleanLookupTable(hangul); str = hangul_ic_flush (hangul->ic); ustring_append_ucs4 (hangul->preedit, str); if (ustring_length (hangul->preedit) == 0) return; str = ustring_begin (hangul->preedit); char* utf8 = FcitxHangulUcs4ToUtf8(hangul, str, ustring_length(hangul->preedit)); if (utf8) { FcitxInstanceCommitString(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), utf8); free(utf8); } ustring_clear(hangul->preedit); } boolean FcitxHangulInit(void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; boolean flag = true; FcitxInstanceSetContext(hangul->owner, CONTEXT_IM_KEYBOARD_LAYOUT, "us"); FcitxInstanceSetContext(hangul->owner, CONTEXT_DISABLE_AUTO_FIRST_CANDIDATE_HIGHTLIGHT, &flag); return true; } /** * @brief function DoInput has done everything for us. * * @param searchMode * @return INPUT_RETURN_VALUE **/ INPUT_RETURN_VALUE FcitxHangulGetCandWords(void* arg) { FcitxHangul* hangul = (FcitxHangul* )arg; FcitxHangulUpdatePreedit(hangul); if (hangul->fh.hanjaMode) { FcitxHangulUpdateLookupTable(hangul, false); } else { FcitxHangulCleanLookupTable(hangul); } return IRV_DISPLAY_CANDWORDS; } /** * @brief get the candidate word by index * * @param iIndex index of candidate word * @return the string of canidate word **/ INPUT_RETURN_VALUE FcitxHangulGetCandWord (void* arg, FcitxCandidateWord* candWord) { FcitxHangul* hangul = (FcitxHangul* )arg; unsigned int pos = *(unsigned int*) candWord->priv; const char* key; const char* value; const ucschar* hic_preedit; int key_len; int preedit_len; int hic_preedit_len; key = hanja_list_get_nth_key (hangul->hanjaList, pos); value = hanja_list_get_nth_value (hangul->hanjaList, pos); hic_preedit = hangul_ic_get_preedit_string (hangul->ic); if (!key || !value || !hic_preedit) return IRV_CLEAN; // FcitxLog(INFO, "%s", key); key_len = fcitx_utf8_strlen(key); preedit_len = ustring_length(hangul->preedit); hic_preedit_len = ucs4_strlen (hic_preedit); boolean surrounding = false; if (hangul->lastLookupMethod == LOOKUP_METHOD_PREFIX) { if (preedit_len == 0 && hic_preedit_len == 0) { /* remove surrounding_text */ if (key_len > 0) { FcitxInstanceDeleteSurroundingText (hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), -key_len , key_len); surrounding = true; } } else { /* remove preedit text */ if (key_len > 0) { long n = FCITX_HANGUL_MIN(key_len, preedit_len); ustring_erase (hangul->preedit, 0, n); key_len -= preedit_len; } /* remove hic preedit text */ if (key_len > 0) { hangul_ic_reset (hangul->ic); key_len -= hic_preedit_len; } } } else { /* remove hic preedit text */ if (hic_preedit_len > 0) { hangul_ic_reset (hangul->ic); key_len -= hic_preedit_len; } /* remove ibus preedit text */ if (key_len > preedit_len) { ustring_erase (hangul->preedit, 0, preedit_len); key_len -= preedit_len; } else if (key_len > 0) { ustring_erase (hangul->preedit, 0, key_len); key_len = 0; } /* remove surrounding_text */ if (LOOKUP_METHOD_EXACT != hangul->lastLookupMethod && key_len > 0) { FcitxInstanceDeleteSurroundingText (hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), -key_len , key_len); surrounding = true; } } FcitxInstanceCommitString(hangul->owner, FcitxInstanceGetCurrentIC(hangul->owner), value); if (surrounding) { FcitxInstanceCleanInputWindowUp(hangul->owner); FcitxHangulCleanLookupTable(hangul); return IRV_DISPLAY_MESSAGE; } else { return IRV_DISPLAY_CANDWORDS; } } /** * @brief initialize the extra input method * * @param arg * @return successful or not **/ void* FcitxHangulCreate (FcitxInstance* instance) { FcitxHangul* hangul = (FcitxHangul*) fcitx_utils_malloc0(sizeof(FcitxHangul)); bindtextdomain("fcitx-hangul", LOCALEDIR); bind_textdomain_codeset("fcitx-hangul", "UTF-8"); hangul->owner = instance; hangul->lastLookupMethod = LOOKUP_METHOD_PREFIX; if (!LoadHangulConfig(&hangul->fh)) { free(hangul); return NULL; } hangul->conv = iconv_open("UTF-8", "UCS-4LE"); hangul->preedit = ustring_new(); ConfigHangul(hangul); hangul->table = hanja_table_load(NULL); char* path; FILE* fp = FcitxXDGGetFileWithPrefix("hangul", "symbol.txt", "r", &path); if (fp) fclose(fp); hangul->symbolTable = hanja_table_load ( path ); free(path); hangul->ic = hangul_ic_new(keyboard[hangul->fh.keyboardLayout]); hangul_ic_connect_callback (hangul->ic, "transition", FcitxHangulOnTransition, hangul); FcitxIMIFace iface; memset(&iface, 0, sizeof(FcitxIMIFace)); iface.Init = FcitxHangulInit; iface.ResetIM = FcitxHangulReset; iface.DoInput = FcitxHangulDoInput; iface.GetCandWords = FcitxHangulGetCandWords; iface.ReloadConfig = ReloadConfigFcitxHangul; iface.OnClose = FcitxHangulOnClose; FcitxInstanceRegisterIMv2(instance, hangul, "hangul", _("Hangul"), "hangul", iface, 5, "ko" ); FcitxIMEventHook hk; hk.arg = hangul; hk.func = FcitxHangulResetEvent; FcitxInstanceRegisterResetInputHook(instance, hk); FcitxUIRegisterStatus( instance, hangul, "hanja", "", "", FcitxHangulToggleHanja, FcitxHangulGetHanja ); FcitxHangulUpdateHanjaStatus(hangul); return hangul; } void FcitxHangulOnClose(void* arg, FcitxIMCloseEventType event) { FcitxHangul* hangul = arg; if (event == CET_LostFocus) { } else if (event == CET_ChangeByInactivate) { FcitxHangulFlush(hangul); } else if (event == CET_ChangeByUser) { FcitxHangulFlush(hangul); } } void FcitxHangulToggleHanja(void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; hangul->fh.hanjaMode = !hangul->fh.hanjaMode; FcitxHangulUpdateHanjaStatus(hangul); SaveHangulConfig(&hangul->fh); } void FcitxHangulUpdateHanjaStatus(FcitxHangul* hangul) { if (hangul->fh.hanjaMode) { FcitxUISetStatusString(hangul->owner, "hanja", "\xe9\x9f\x93", _("Use Hanja")); } else { FcitxUISetStatusString(hangul->owner, "hanja", "\xed\x95\x9c", _("Use Hangul")); } FcitxHangulFlush(hangul); FcitxHangulUpdatePreedit(hangul); FcitxUIUpdateInputWindow(hangul->owner); } boolean FcitxHangulGetHanja(void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; return hangul->fh.hanjaMode; } /** * @brief Destroy the input method while unload it. * * @return int **/ void FcitxHangulDestroy (void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; hanja_table_delete(hangul->table); hanja_table_delete(hangul->symbolTable); free(arg); } /** * @brief Load the config file for fcitx-hangul * * @param Bool is reload or not **/ boolean LoadHangulConfig(FcitxHangulConfig* fs) { FcitxConfigFileDesc *configDesc = GetHangulConfigDesc(); if (!configDesc) return false; FILE *fp = FcitxXDGGetFileUserWithPrefix("conf", "fcitx-hangul.config", "r", NULL); if (!fp) { if (errno == ENOENT) SaveHangulConfig(fs); } FcitxConfigFile *cfile = FcitxConfigParseConfigFileFp(fp, configDesc); FcitxHangulConfigConfigBind(fs, cfile, configDesc); FcitxConfigBindSync(&fs->gconfig); if (fp) fclose(fp); return true; } void ConfigHangul(FcitxHangul* hangul) { FcitxLog(DEBUG, "Hangul Layout: %s", keyboard[hangul->fh.keyboardLayout]); hangul_ic_select_keyboard(hangul->ic, keyboard[hangul->fh.keyboardLayout]); } void ReloadConfigFcitxHangul(void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; LoadHangulConfig(&hangul->fh); ConfigHangul(hangul); } /** * @brief Save the config * * @return void **/ void SaveHangulConfig(FcitxHangulConfig* fa) { FcitxConfigFileDesc *configDesc = GetHangulConfigDesc(); FILE *fp = FcitxXDGGetFileUserWithPrefix("conf", "fcitx-hangul.config", "w", NULL); FcitxConfigSaveConfigFileFp(fp, &fa->gconfig, configDesc); if (fp) fclose(fp); } void FcitxHangulResetEvent(void* arg) { FcitxHangul* hangul = (FcitxHangul*) arg; FcitxIM* im = FcitxInstanceGetCurrentIM(hangul->owner); if (!im || strcmp(im->uniqueName, "hangul") != 0) { FcitxUISetStatusVisable(hangul->owner, "hanja", false); } else { FcitxUISetStatusVisable(hangul->owner, "hanja", true); } } fcitx-hangul-0.3.1/src/eim.h000066400000000000000000000054711316347272600156400ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2010~2010 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef EIM_H #define EIM_H #include #include #include #include #include #include #include "ustring.h" #include "keyboard.h" #define _(x) dgettext("fcitx-hangul", x) typedef struct _FcitxHangulConfig { FcitxGenericConfig gconfig; FcitxHangulKeyboard keyboardLayout; boolean hanjaMode; boolean autoReorder; boolean wordCommit; FcitxHotkey hkHanjaMode[2]; } FcitxHangulConfig; CONFIG_BINDING_DECLARE(FcitxHangulConfig); void* FcitxHangulCreate(FcitxInstance* instance); void FcitxHangulDestroy(void* arg); INPUT_RETURN_VALUE FcitxHangulDoInput(void* arg, FcitxKeySym sym, unsigned int state); INPUT_RETURN_VALUE FcitxHangulGetCandWords (void *arg); INPUT_RETURN_VALUE FcitxHangulGetCandWord (void *arg, FcitxCandidateWord* candWord); void FcitxHangulOnClose(void* arg, FcitxIMCloseEventType event); boolean FcitxHangulInit(void*); void ReloadConfigFcitxHangul(void*); typedef enum _LookupMethod { LOOKUP_METHOD_PREFIX, LOOKUP_METHOD_EXACT, LOOKUP_METHOD_SUFFIX } LookupMethod; typedef struct _FcitxHangul { FcitxHangulConfig fh; FcitxInstance* owner; HanjaTable* table; HangulInputContext* ic; HanjaTable* symbolTable; UString* preedit; iconv_t conv; HanjaList* hanjaList; LookupMethod lastLookupMethod; } FcitxHangul; #endif fcitx-hangul-0.3.1/src/fcitx-hangul.conf.in000066400000000000000000000002701316347272600205520ustar00rootroot00000000000000[Addon] Name=fcitx-hangul _GeneralName=Hangul _Comment=Hangul Wrapper For Fcitx Category=InputMethod Enabled=True Library=fcitx-hangul.so Type=SharedLibrary IMRegisterMethod=ConfigFilefcitx-hangul-0.3.1/src/fcitx-hangul.desc000066400000000000000000000012211316347272600201330ustar00rootroot00000000000000[Hangul/Keyboard] Type=Enum DefaultValue=Dubeolsik Description=Keyboard Layout EnumCount=9 Enum0=Dubeolsik Enum1=Dubeolsik Yetgeul Enum2=Sebeolsik 390 Enum3=Sebeolsik Final Enum4=Sebeolsik Noshift Enum5=Sebeolsik Yetgeul Enum6=Sebeolsik Dubeol Layout Enum7=Romaja Enum8=Ahnmatae [Hangul/HanjaModeToggleKey] Type=Hotkey DefaultValue=HANGULHANJA F9 Description=Hanja Mode Toggle Key [Hangul/AutoReorder] Type=Boolean DefaultValue=True Description=Auto Reorder [Hangul/WordCommit] Type=Boolean DefaultValue=False Description=Word Commit [Hangul/HanjaMode] Type=Boolean DefaultValue=False Description=Hanja Mode [DescriptionFile] LocaleDomain=fcitx-hangulfcitx-hangul-0.3.1/src/hangul.conf.in000066400000000000000000000001501316347272600174340ustar00rootroot00000000000000[InputMethod] UniqueName=hangul _Name=Hangul IconName=hangul Priority=1 LangCode=ko Parent=fcitx-hangul fcitx-hangul-0.3.1/src/keyboard.c000066400000000000000000000001431316347272600166500ustar00rootroot00000000000000/* generated */ const char* keyboard[] = { "2", "2y", "39", "3f", "3s", "3y", "32", "ro", "ahn" };fcitx-hangul-0.3.1/src/keyboard.h000066400000000000000000000005531316347272600166620ustar00rootroot00000000000000/* generated */ #ifndef FCITX_HANGUL_KEYBOARD_H #define FCITX_HANGUL_KEYBOARD_H typedef enum _FcitxHangulKeyboard { Dubeolsik = 0, Dubeolsik_Yetgeul, Sebeolsik_390, Sebeolsik_Final, Sebeolsik_Noshift, Sebeolsik_Yetgeul, Sebeolsik_Dubeol_Layout, Romaja, Ahnmatae, } FcitxHangulKeyboard; extern const char* keyboard[]; #endiffcitx-hangul-0.3.1/src/ustring.c000066400000000000000000000055111316347272600165470ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2012~2012 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "ustring.h" #include #include static const UT_icd ucs_icd = { sizeof(ucschar), NULL, NULL, NULL}; UString* ustring_new() { UString* str; utarray_new(str, &ucs_icd); return str; } UString* ustring_dup(const UString* str) { UString* dup; dup = ustring_new(); ustring_append(dup, str); return dup; } void ustring_delete(UString* str) { utarray_free(str); } void ustring_clear(UString* str) { utarray_clear(str); } UString* ustring_erase(UString* str, size_t pos, size_t len) { if (len > 0) utarray_erase(str, pos, len); return str; } ucschar* ustring_begin(UString* str) { return (ucschar*) utarray_front(str); } ucschar* ustring_end(UString* str) { return (ucschar*) utarray_eltptr(str, utarray_len(str)); } unsigned ustring_length(const UString* str) { return utarray_len(str); } UString* ustring_append(UString* str, const UString* s) { utarray_concat(str, s); return str; } UString* ustring_append_ucs4(UString* str, const ucschar* s) { const ucschar*p = s; while (*p != 0) { utarray_push_back(str, p); p++; } return str; } UString* ustring_append_utf8(UString* str, const char* utf8) { while (*utf8 != '\0') { ucschar c; utf8 = fcitx_utf8_get_char(utf8, (uint32_t*) &c); utarray_push_back(str, &c); } return str; } fcitx-hangul-0.3.1/src/ustring.h000066400000000000000000000040621316347272600165540ustar00rootroot00000000000000/*************************************************************************** * Copyright (C) 2012~2012 by CSSlayer * * wengxt@gmail.com * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program 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 General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef USTRING_H #define USTRING_H #include #include typedef UT_array UString; UString* ustring_new(); UString* ustring_dup(const UString* str); void ustring_delete(UString* str); void ustring_clear(UString* str); UString* ustring_erase(UString* str, size_t pos, size_t len); ucschar* ustring_begin(UString* str); ucschar* ustring_end(UString* str); unsigned ustring_length(const UString* str); UString* ustring_append(UString* str, const UString* s); UString* ustring_append_ucs4(UString* str, const ucschar* s); UString* ustring_append_utf8(UString* str, const char* utf8); #endif