Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

QA: clear indentation and header guards.

  • Loading branch information...
commit 4d5db6ec05abacb11d9750e239505659af1291bf 1 parent 3327357
@CasperVector CasperVector authored
Showing with 2,555 additions and 2,079 deletions.
  1. +16 −15 LGPL.LICENSE
  2. +1 −0  OPENSOLARIS.LICENSE
  3. +2 −1  SConstruct
  4. +1 −0  TODO
  5. +7 −5 debian/README.Debian
  6. +9 −8 debian/rules
  7. +1 −0  doc/README.in
  8. +1 −0  doc/SConscript
  9. +2 −0  doc/SLM-inst.mk.in
  10. +2 −0  doc/SLM-train.mk
  11. +1 −0  man/SConscript
  12. +2 −0  man/genpyt.pod
  13. +2 −0  man/getwordfreq.pod
  14. +2 −0  man/idngram_merge.pod
  15. +2 −0  man/ids2ngram.pod
  16. +2 −0  man/mmseg.pod
  17. +2 −0  man/slmbuild.pod
  18. +2 −0  man/slminfo.pod
  19. +2 −0  man/slmprune.pod
  20. +2 −0  man/slmseg.pod
  21. +2 −0  man/slmthread.pod
  22. +2 −0  man/tslmendian.pod
  23. +2 −0  man/tslminfo.pod
  24. +2 −0  man/tslmpack.pod
  25. +2 −0  python/imdict.py
  26. +2 −0  python/importer/import_fcitx_userdict.py
  27. +2 −0  python/importer/import_fit_userdict.py
  28. +2 −0  python/importer/import_google_userdict.py
  29. +2 −0  python/importer/import_qim_userdict.py
  30. +2 −0  python/importer/import_qq_userdict.py
  31. +2 −0  python/importer/import_sogou_celldict.py
  32. +2 −0  python/importer/import_sogou_userdict.py
  33. +2 −0  python/importer/import_ziguang_userdict.py
  34. +2 −0  python/importer/importer.py
  35. +2 −0  python/mmseg.py
  36. +2 −0  python/pinyin_data.py
  37. +2 −0  python/pyslm.pyx
  38. +2 −0  python/pytrie.pyx
  39. +2 −0  python/setup.py
  40. +2 −0  python/test.py
  41. +2 −0  python/trie.py
  42. +2 −0  python/utils.py
  43. +14 −13 src/SConscript
  44. +2 −0  src/ime-core/ic_history.cpp
  45. +2 −0  src/ime-core/ic_history.h
  46. +4 −2 src/ime-core/imi_context.cpp
  47. +2 −0  src/ime-core/imi_context.h
  48. +2 −0  src/ime-core/imi_data.cpp
  49. +2 −0  src/ime-core/imi_data.h
  50. +2 −0  src/ime-core/imi_defines.h
  51. +2 −0  src/ime-core/imi_funcobjs.cpp
  52. +2 −0  src/ime-core/imi_funcobjs.h
  53. +7 −0 src/ime-core/imi_glibHandler.h
  54. +2 −0  src/ime-core/imi_keys.h
  55. +2 −0  src/ime-core/imi_option_event.cpp
  56. +2 −0  src/ime-core/imi_option_event.h
  57. +2 −0  src/ime-core/imi_option_keys.h
  58. +2 −0  src/ime-core/imi_options.cpp
  59. +2 −0  src/ime-core/imi_options.h
  60. +2 −0  src/ime-core/imi_plugin.cpp
  61. +7 −0 src/ime-core/imi_plugin.h
  62. +2 −0  src/ime-core/imi_uiobjects.cpp
  63. +2 −0  src/ime-core/imi_uiobjects.h
  64. +2 −0  src/ime-core/imi_view.cpp
  65. +2 −0  src/ime-core/imi_view.h
  66. +2 −0  src/ime-core/imi_view_classic.cpp
  67. +2 −0  src/ime-core/imi_view_classic.h
  68. +2 −0  src/ime-core/imi_winHandler.cpp
  69. +2 −0  src/ime-core/imi_winHandler.h
  70. +2 −0  src/ime-core/lattice_states.cpp
  71. +2 −0  src/ime-core/lattice_states.h
  72. +2 −0  src/ime-core/userdict.cpp
  73. +2 −0  src/ime-core/userdict.h
  74. +2 −0  src/ime-core/utils.h
  75. +2 −0  src/lexicon/genpyt.cpp
  76. +2 −0  src/lexicon/pytrie.cpp
  77. +2 −0  src/lexicon/pytrie.h
  78. +2 −0  src/lexicon/pytrie_gen.cpp
  79. +2 −0  src/lexicon/pytrie_gen.h
  80. +2 −0  src/lexicon/trie_writer.cpp
  81. +2 −0  src/lexicon/trie_writer.h
  82. +2 −0  src/pinyin/datrie.h
  83. +2 −0  src/pinyin/datrie_impl.h
  84. +2 −0  src/pinyin/hunpin_seg.cpp
  85. +2 −0  src/pinyin/hunpin_seg.h
  86. +2 −0  src/pinyin/pinyin_data.cpp
  87. +2 −0  src/pinyin/pinyin_data.h
  88. +2 −0  src/pinyin/pinyin_seg.cpp
  89. +2 −0  src/pinyin/pinyin_seg.h
  90. +2 −0  src/pinyin/segmentor.h
  91. +2 −0  src/pinyin/shuangpin_data.cpp
  92. +2 −0  src/pinyin/shuangpin_data.h
  93. +1 −0  src/pinyin/shuangpin_seg.cpp
  94. +2 −0  src/pinyin/shuangpin_seg.h
  95. +2 −0  src/pinyin/syllable.h
  96. +1 −0  src/portability.cpp
  97. +2 −0  src/portability.h
  98. +1 −3 src/slm/getwordfreq/getwordfreq.cpp
  99. +2 −0  src/slm/ids2ngram/idngram.h
  100. +1 −0  src/slm/ids2ngram/idngram_merge.cpp
  101. +1 −0  src/slm/ids2ngram/idngram_merge.h
  102. +1 −0  src/slm/ids2ngram/ids2ngram.cpp
  103. +2 −0  src/slm/mmseg/mmseg.cpp
  104. +2 −0  src/slm/sim_dict.cpp
  105. +2 −0  src/slm/sim_dict.h
  106. +2 −0  src/slm/sim_fmerge.h
  107. +2 −0  src/slm/sim_sen.cpp
  108. +2 −0  src/slm/sim_sen.h
  109. +2 −0  src/slm/sim_slm.cpp
  110. +2 −0  src/slm/sim_slm.h
  111. +1 −0  src/slm/sim_slmbuilder.cpp
  112. +2 −0  src/slm/sim_slmbuilder.h
  113. +2 −0  src/slm/slm.cpp
  114. +2 −0  src/slm/slm.h
  115. +2 −0  src/slm/slmbuild/slmbuild.cpp
  116. +2 −0  src/slm/slminfo/slminfo.cpp
  117. +2 −0  src/slm/slmprune/slmprune.cpp
  118. +2 −0  src/slm/slmseg/slmseg.cpp
  119. +1 −4 src/slm/thread/ValueCompress.cpp
  120. +2 −0  src/slm/thread/ValueCompress.h
  121. +2 −0  src/slm/thread/slmthread.cpp
  122. +2 −0  src/slm/thread/test_vc.cpp
  123. +2 −0  src/slm/tools/clean_rmrb.cpp
  124. +2 −0  src/slm/tools/dumpdict.cpp
  125. +2 −0  src/slm/tslmendian/slm_endian.cpp
  126. +1 −0  src/slm/tslmendian/slm_file.cpp
  127. +2 −0  src/slm/tslmendian/slm_file.h
  128. +2 −0  src/slm/tslmendian/writer.cpp
  129. +2 −0  src/slm/tslmendian/writer.h
  130. +2 −0  src/slm/tslminfo/tslminfo.cpp
  131. +2 −0  src/slm/tslmpack/arpa_conv.cpp
  132. +2 −0  src/slm/tslmpack/arpa_conv.h
  133. +2 −0  src/slm/tslmpack/arpa_slm.cpp
  134. +2 −0  src/slm/tslmpack/arpa_slm.h
  135. +2 −0  src/slm/tslmpack/common.h
  136. +2 −0  src/slm/tslmpack/slmpack.cpp
  137. +2 −0  src/sunpinyin.h
  138. +2 −0  wrapper/gtk_standalone/SConstruct
  139. +1 −0  wrapper/gtk_standalone/imi_gtkwin.cpp
  140. +2 −0  wrapper/gtk_standalone/imi_gtkwin.h
  141. +2 −0  wrapper/gtk_standalone/sunpinyin.cpp
  142. +16 −15 wrapper/ibus/LGPL.LICENSE
  143. +1 −0  wrapper/ibus/OPENSOLARIS.LICENSE
  144. +2 −0  wrapper/ibus/SConstruct
  145. +1 −0  wrapper/ibus/cmake/modules/FindSunPinyin.cmake
  146. +1 −0  wrapper/ibus/cmake/modules/FindiBus.cmake
  147. +82 −83 wrapper/ibus/cmake/modules/Gettext.cmake
  148. +1 −0  wrapper/ibus/cmake/modules/LibFindMacros.cmake
  149. +2 −0  wrapper/ibus/cmake/modules/Paths.cmake
  150. +2 −0  wrapper/ibus/data/CMakeLists.txt
  151. +2 −1  wrapper/ibus/debian/rules
  152. +1 −0  wrapper/ibus/po/CMakeLists.txt
  153. +2 −0  wrapper/ibus/setup/CMakeLists.txt
  154. +2 −0  wrapper/ibus/setup/main.py
  155. +2 −0  wrapper/ibus/src/CMakeLists.txt
  156. +2 −0  wrapper/ibus/src/debug.cpp
  157. +5 −3 wrapper/ibus/src/debug.h
  158. +1 −0  wrapper/ibus/src/engine.cpp
  159. +2 −0  wrapper/ibus/src/engine.h
  160. +2 −0  wrapper/ibus/src/ibus_common.h
  161. +2 −0  wrapper/ibus/src/ibus_portable.cpp
  162. +2 −0  wrapper/ibus/src/ibus_portable.h
  163. +2 −0  wrapper/ibus/src/imi_ibus_win.cpp
  164. +2 −0  wrapper/ibus/src/imi_ibus_win.h
  165. +3 −1 wrapper/ibus/src/main.cpp
  166. +2 −0  wrapper/ibus/src/pointer.h
  167. +2 −0  wrapper/ibus/src/sunpinyin_config.cpp
  168. +2 −0  wrapper/ibus/src/sunpinyin_config.h
  169. +2 −0  wrapper/ibus/src/sunpinyin_config_keys.h
  170. +3 −1 wrapper/ibus/src/sunpinyin_engine.cpp
  171. +2 −0  wrapper/ibus/src/sunpinyin_engine.h
  172. +1 −0  wrapper/ibus/src/sunpinyin_engine_proxy.cpp
  173. +2 −0  wrapper/ibus/src/sunpinyin_engine_proxy.h
  174. +11 −9 wrapper/ibus/src/sunpinyin_lookup_table.cpp
  175. +2 −0  wrapper/ibus/src/sunpinyin_lookup_table.h
  176. +10 −8 wrapper/ibus/src/sunpinyin_property.cpp
  177. +2 −0  wrapper/ibus/src/sunpinyin_property.h
  178. +2 −0  wrapper/macos/CandidateWindow.h
  179. +2 −0  wrapper/macos/CandidateWindow.m
  180. +2 −0  wrapper/macos/Frameworks/Growl.framework/Versions/A/Headers/Growl.h
  181. +636 −634 wrapper/macos/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge-Carbon.h
  182. +359 −357 wrapper/macos/Frameworks/Growl.framework/Versions/A/Headers/GrowlApplicationBridge.h
  183. +2 −0  wrapper/macos/Frameworks/Growl.framework/Versions/A/Headers/GrowlDefines.h
  184. +7 −5 wrapper/macos/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcast.h
  185. +18 −16 wrapper/macos/Frameworks/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
  186. +7 −5 wrapper/macos/Frameworks/Sparkle.framework/Versions/A/Headers/SUUpdater.h
  187. +2 −0  wrapper/macos/Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
  188. +2 −0  wrapper/macos/Frameworks/Sparkle.framework/Versions/A/Headers/Sparkle.h
  189. +3 −1 wrapper/macos/Makefile
  190. +2 −0  wrapper/macos/SunPinyinApplicationDelegate.h
  191. +1 −1  wrapper/macos/SunPinyinApplicationDelegate.mm
  192. +2 −0  wrapper/macos/SunPinyinInputController.h
  193. +2 −0  wrapper/macos/SunPinyinInputController.mm
  194. +2 −0  wrapper/macos/imi_imkitwin.h
  195. +2 −0  wrapper/macos/imi_imkitwin.mm
  196. +13 −11 wrapper/macos/imi_session_wrapper.h
  197. +2 −0  wrapper/macos/imi_session_wrapper.mm
  198. +2 −0  wrapper/macos/macos_keycode.h
  199. +1 −0  wrapper/macos/macos_keycode.mm
  200. +1 −0  wrapper/macos/main.m
  201. +2 −0  wrapper/macos/packaging/SunPinyin/DownloadDataFiles/DownloadDataFilesPane.h
  202. +16 −14 wrapper/macos/packaging/SunPinyin/DownloadDataFiles/DownloadDataFilesPane.m
  203. +1 −0  wrapper/macos/packaging/genplist.py
  204. +1 −0  wrapper/macos/packaging/package.py
  205. +16 −15 wrapper/scim/LGPL.LICENSE
  206. +1 −0  wrapper/scim/OPENSOLARIS.LICENSE
  207. +2 −0  wrapper/scim/SConstruct
  208. +2 −0  wrapper/scim/src/imi_scimwin.cpp
  209. +2 −0  wrapper/scim/src/imi_scimwin.h
  210. +2 −0  wrapper/scim/src/sunpinyin_imengine.cpp
  211. +2 −0  wrapper/scim/src/sunpinyin_imengine.h
  212. +2 −0  wrapper/scim/src/sunpinyin_imengine_config_keys.h
  213. +2 −0  wrapper/scim/src/sunpinyin_imengine_setup.cpp
  214. +2 −0  wrapper/scim/src/sunpinyin_keycode.h
  215. +2 −0  wrapper/scim/src/sunpinyin_lookup_table.cpp
  216. +2 −0  wrapper/scim/src/sunpinyin_lookup_table.h
  217. +2 −0  wrapper/scim/src/sunpinyin_private.h
  218. +1 −0  wrapper/scim/src/sunpinyin_utils.cpp
  219. +2 −0  wrapper/scim/src/sunpinyin_utils.h
  220. +39 −37 wrapper/xim/IMdkit/FrameMgr.c
  221. +6 −4 wrapper/xim/IMdkit/FrameMgr.h
  222. +30 −28 wrapper/xim/IMdkit/IMConn.c
  223. +2 −0  wrapper/xim/IMdkit/IMMethod.c
  224. +9 −7 wrapper/xim/IMdkit/IMValues.c
  225. +2 −0  wrapper/xim/IMdkit/IMdkit.h
  226. +213 −212 wrapper/xim/IMdkit/Xi18n.h
  227. +2 −0  wrapper/xim/IMdkit/Xi18nX.h
  228. +4 −2 wrapper/xim/IMdkit/XimFunc.h
  229. +133 −132 wrapper/xim/IMdkit/XimProto.h
  230. +2 −0  wrapper/xim/IMdkit/i18nAttr.c
  231. +2 −0  wrapper/xim/IMdkit/i18nClbk.c
  232. +275 −273 wrapper/xim/IMdkit/i18nIMProto.c
  233. +57 −55 wrapper/xim/IMdkit/i18nIc.c
  234. +37 −36 wrapper/xim/IMdkit/i18nMethod.c
  235. +38 −36 wrapper/xim/IMdkit/i18nPtHdr.c
  236. +7 −5 wrapper/xim/IMdkit/i18nUtil.c
  237. +2 −0  wrapper/xim/IMdkit/i18nX.c
  238. +16 −15 wrapper/xim/LGPL.LICENSE
  239. +1 −0  wrapper/xim/OPENSOLARIS.LICENSE
  240. +1 −1  wrapper/xim/SConstruct
  241. +2 −0  wrapper/xim/common.h
  242. +1 −4 wrapper/xim/debian/rules
  243. +2 −1  wrapper/xim/debian/xsunpinyin.postinst
  244. +2 −0  wrapper/xim/debian/xsunpinyin.prerm
  245. +1 −0  wrapper/xim/ic.c
  246. +2 −0  wrapper/xim/ic.h
  247. +2 −0  wrapper/xim/ic_gtk.c
  248. +1 −0  wrapper/xim/ic_skin.c
  249. +2 −0  wrapper/xim/main.c
  250. +2 −0  wrapper/xim/preferences.c
  251. +2 −0  wrapper/xim/settings.c
  252. +2 −0  wrapper/xim/settings.h
  253. +2 −0  wrapper/xim/skin.c
  254. +2 −0  wrapper/xim/skin.h
  255. +1 −0  wrapper/xim/sunpinyin_preedit.cc
  256. +1 −0  wrapper/xim/sunpinyin_preedit_gtk.cc
  257. +2 −0  wrapper/xim/sunpinyin_preedit_skin.cc
  258. +2 −0  wrapper/xim/sunpinyin_preedit_ui.h
  259. +2 −0  wrapper/xim/ui.c
  260. +2 −0  wrapper/xim/ui.h
  261. +2 −0  wrapper/xim/xim.c
  262. +2 −0  wrapper/xim/xim.h
  263. +2 −0  wrapper/xim/xim_trigger.c
  264. +2 −0  wrapper/xim/xmisc.c
  265. +2 −0  wrapper/xim/xmisc.h
View
31 LGPL.LICENSE
@@ -1,5 +1,5 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
+ GNU 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
@@ -10,7 +10,7 @@
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -55,7 +55,7 @@ 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
@@ -111,8 +111,8 @@ 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.
-
- GNU LESSER GENERAL PUBLIC LICENSE
+
+ GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
@@ -158,7 +158,7 @@ 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
@@ -216,7 +216,7 @@ 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.
@@ -267,7 +267,7 @@ Library will still fall under Section 6.)
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
@@ -329,7 +329,7 @@ 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
@@ -370,7 +370,7 @@ 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
@@ -422,7 +422,7 @@ 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
@@ -432,7 +432,7 @@ 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
+ 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.
@@ -455,8 +455,8 @@ 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
-
+ 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
@@ -514,3 +514,4 @@ Any litigation relating to this License shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California and the state courts of the State of California, with
venue lying in Santa Clara County, California.
+
View
1  OPENSOLARIS.LICENSE
@@ -375,3 +375,4 @@ Any litigation relating to this License shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California and the state courts of the State of California, with
venue lying in Santa Clara County, California.
+
View
3  SConstruct
@@ -469,6 +469,7 @@ def DoInstall():
DoInstall()
env.Alias('install', [
- 'install-bin', 'install-man1', 'install-doc', 'install-headers', 'install-lib'
+ 'install-bin', 'install-man1', 'install-doc', 'install-headers', 'install-lib'
])
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  TODO
@@ -19,3 +19,4 @@ Done:
* porting to SCIM platform
* porting to Mac OS X
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
12 debian/README.Debian
@@ -1,4 +1,4 @@
-sunpinyin for Debian -*- rst -*-
+sunpinyin for Debian
--------------------
SunPinyin is an SLM (Statistical Language Model) based input method
@@ -24,10 +24,10 @@ some default shortcut key bindings not changeable. They are listed as
following:
ctrl-backquote switch between classic/instant style.
- only take effects while in Chinese input mode.
+ only take effects while in Chinese input mode.
ctrl-k switch between gbk/gb2312 charset.
-shift switch between Chinese/English input mode.
-escape dismiss un-committed preedit string.
+shift switch between Chinese/English input mode.
+escape dismiss un-committed preedit string.
data files
----------
@@ -130,7 +130,7 @@ home page [1].)
**** In the second round
With the help of trained LM, we can get a better segmentation by:
- ./slmseg -d ${DICTFILE} -f bin -s 10 -m ${TSLM_FILE} ${CORPUSFILE} >${IDS_FILE}
+ ./slmseg -d ${DICTFILE} -f bin -s 10 -m ${TSLM_FILE} ${CORPUSFILE} >${IDS_FILE}
*** Calculate the 3-gram
The number of all occurrence of 3-words tuple are calculated and
@@ -165,3 +165,5 @@ home page [1].)
[2] http://code.google.com/p/open-gram/downloads/list
-- Kov Chai <tchaikov@gmail.com> Sun, 21 Mar 2010 01:48:32 +0800
+
+-*- mode: rst; indent-tabs-mode: nil -*- vim:et:ts=4
View
17 debian/rules
@@ -1,5 +1,5 @@
#!/usr/bin/make -f
-# -*- makefile -*-
+# -*- mode: makefile; indent-tabs-mode: t -*- vim:noet:ts=4
#export DH_VERBOSE=1
@@ -14,7 +14,7 @@ ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
endif
LITTLE_ENDIAN_ARCHS := "alpha amd64 arm hurd-i386 i386 ia64 mipsel sh3 sh4"
-BIG_ENDIAN_ARCHS := "hppa m68k mips powerpc ppc64 sparc s390"
+BIG_ENDIAN_ARCHS := "hppa m68k mips powerpc ppc64 sparc s390"
ifneq (,$(findstring $(DEB_BUILD_ARCH), $(LITTLE_ENDIAN_ARCHS)))
BUILD_ENDIANNESS := le
@@ -41,13 +41,14 @@ DEB_DH_MAKESHLIBS_ARGS := -n
DEB_DH_GENCONTROL_ARGS := -u'-Vsunpinyin-data-depends=$(SUNPINYIN_DATA_DEPENDS)'
binary-fixup/sunpinyin-data-le::
- for f in pydict3_sc.bin lm_sc.t3g ; do \
- cp -f $(CURDIR)/data/$$f.le \
- $(CURDIR)/debian/sunpinyin-data-le/usr/lib/sunpinyin/data/$$f; \
+ for f in pydict3_sc.bin lm_sc.t3g ; do \
+ cp -f $(CURDIR)/data/$$f.le \
+ $(CURDIR)/debian/sunpinyin-data-le/usr/lib/sunpinyin/data/$$f; \
done
binary-fixup/sunpinyin-data-be::
- for f in pydict3_sc.bin lm_sc.t3g ; do \
- cp -f $(CURDIR)/data/$$f.be \
- $(CURDIR)/debian/sunpinyin-data-be/usr/lib/sunpinyin/data/$$f; \
+ for f in pydict3_sc.bin lm_sc.t3g ; do \
+ cp -f $(CURDIR)/data/$$f.be \
+ $(CURDIR)/debian/sunpinyin-data-be/usr/lib/sunpinyin/data/$$f; \
done
+
View
1  doc/README.in
@@ -14,3 +14,4 @@ that directory:
[1] https://code.google.com/p/open-gram/downloads
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  doc/SConscript
@@ -4,3 +4,4 @@ Import('env')
env.Substfile('README.in', SUBST_DICT={'@PREFIX@': env['PREFIX']})
env.Substfile('SLM-inst.mk.in', SUBST_DICT={'@DATADIR@': env['DATADIR']})
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  doc/SLM-inst.mk.in
@@ -1,3 +1,5 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; indent-tabs-mode: t -*- vim:noet:ts=4
# Sample Makefile for lexicon generation and installation.
DICT_FILE = dict.utf8
View
2  doc/SLM-train.mk
@@ -1,3 +1,5 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; indent-tabs-mode: t -*- vim:noet:ts=4
# Sample Makefile for SLM training.
DICT_FILE = dict.utf8
View
1  man/SConscript
@@ -18,3 +18,4 @@ env.Man('tslmpack.1', 'tslmpack.pod')
env.Man('genpyt.1', 'genpyt.pod')
env.Man('getwordfreq.1', 'getwordfreq.pod')
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/genpyt.pod
@@ -50,3 +50,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmthread>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/getwordfreq.pod
@@ -48,3 +48,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmthread>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/idngram_merge.pod
@@ -45,3 +45,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<ids2ngram>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/ids2ngram.pod
@@ -58,3 +58,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<mmseg>(1), B<slmseg>(1), B<slmbuild> (1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/mmseg.pod
@@ -62,3 +62,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmseg>(1), B<ids2ngram> (1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/slmbuild.pod
@@ -106,3 +106,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<ids2ngram>(1), B<slmprune>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/slminfo.pod
@@ -42,3 +42,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmprune>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/slmprune.pod
@@ -38,3 +38,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slminfo>(1), B<slmthread>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/slmseg.pod
@@ -59,3 +59,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<mmseg>(1), B<ids2ngram> (1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/slmthread.pod
@@ -25,3 +25,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmprune>(1), B<slmseg>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/tslmendian.pod
@@ -48,3 +48,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slmthread>(1). B<tslminfo>, B<tslmpack>.
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/tslminfo.pod
@@ -41,3 +41,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<slminfo>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  man/tslmpack.pod
@@ -29,3 +29,5 @@ Currently maintained by Kov.Chai E<lt>tchaikov@gmail.comE<gt>.
B<tslminfo>(1).
+=for comment
+-*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/imdict.py
@@ -51,3 +51,5 @@ def load(self, fname):
word, id= line.split(' ')[0:2]
self.add(word, int(id))
file.close()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_fcitx_userdict.py
@@ -28,3 +28,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_fit_userdict.py
@@ -18,3 +18,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_google_userdict.py
@@ -31,3 +31,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_qim_userdict.py
@@ -26,3 +26,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_qq_userdict.py
@@ -29,3 +29,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_sogou_celldict.py
@@ -79,3 +79,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_sogou_userdict.py
@@ -27,3 +27,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/import_ziguang_userdict.py
@@ -29,3 +29,5 @@ def main ():
if __name__ == "__main__":
main()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/importer/importer.py
@@ -134,3 +134,5 @@ def export_sunpinyin_user_dict (userdict_path=''):
if __name__ == "__main__":
export_sunpinyin_user_dict ()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/mmseg.py
@@ -142,3 +142,5 @@ def process_file(file, dict):
process_file (file, dict)
file.close()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/pinyin_data.py
@@ -569,3 +569,5 @@ def gen_inner_fuzzy_syllable_tables ():
gen_suffix_trie ("../src/pinyin/quanpin_trie.h")
gen_inner_fuzzy_syllable_tables ()
gen_fuzzy_syllable_pairs_tables ()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/pyslm.pyx
@@ -123,3 +123,5 @@ cdef class Slm:
cdef CThreadSlm_TState st
pystate_to_cstate (state, &st)
return self.thisptr.lastWordId(st)
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/pytrie.pyx
@@ -144,3 +144,5 @@ cdef class PinyinTrie:
def is_valid (self, node, allowNonComplete=True, csLevel=0):
cdef CPinyinTrie_TNode *pnode = (<PinyinTrieNode>node).pnode
return self.thisptr.isValid (pnode, allowNonComplete, csLevel)
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/setup.py
@@ -32,3 +32,5 @@
],
cmdclass = {'build_ext': build_ext}
)
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/test.py
@@ -46,3 +46,5 @@ def test_pytrie ():
test_pyslm()
test_pytrie()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/trie.py
@@ -277,3 +277,5 @@ def test ():
if __name__ == "__main__":
test ()
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  python/utils.py
@@ -208,3 +208,5 @@ def __iter__(self):
def truncate(self, tsize):
if self.__realsize >= tsize:
self.__realsize = tsize
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
27 src/SConscript
@@ -2,43 +2,44 @@ import os
Import('env')
env.Program('mmseg', ['portability.o', 'slm/sim_dict.o', 'slm/sim_sen.o',
- 'slm/mmseg/mmseg.o'])
+ 'slm/mmseg/mmseg.o'])
env.Program('slmseg', ['portability.o', 'slm/sim_dict.o', 'slm/sim_sen.o',
- 'slm/slm.o', 'slm/slmseg/slmseg.o'])
+ 'slm/slm.o', 'slm/slmseg/slmseg.o'])
env.Program('ids2ngram', ['portability.o', 'slm/ids2ngram/ids2ngram.o'])
env.Program('idngram_merge', ['portability.o', 'slm/ids2ngram/idngram_merge.o'])
env.Program('slmbuild', ['portability.o', 'slm/sim_slmbuilder.o',
- 'slm/slmbuild/slmbuild.o'])
+ 'slm/slmbuild/slmbuild.o'])
env.Program('slmprune', ['portability.o', 'slm/sim_slm.o',
- 'slm/slmprune/slmprune.o'])
+ 'slm/slmprune/slmprune.o'])
env.Program('slminfo', ['portability.o', 'slm/slminfo/slminfo.o'])
env.Program('slmthread', ['portability.o', 'slm/sim_slm.o',
- 'slm/thread/ValueCompress.o', 'slm/thread/slmthread.o'])
+ 'slm/thread/ValueCompress.o', 'slm/thread/slmthread.o'])
env.Program('tslmendian', ['slm/tslmendian/slm_file.o',
- 'slm/tslmendian/slm_endian.o',
- 'slm/tslmendian/writer.o'])
+ 'slm/tslmendian/slm_endian.o',
+ 'slm/tslmendian/writer.o'])
env.Program('tslminfo', ['portability.o', 'slm/slm.o', 'slm/tslminfo/tslminfo.o'])
env.Program('tslmpack', ['portability.o', 'slm/slm.o',
- 'slm/thread/ValueCompress.o', 'slm/tslmpack/slmpack.o',
- 'slm/tslmpack/arpa_conv.o', 'slm/tslmpack/arpa_slm.o'])
+ 'slm/thread/ValueCompress.o', 'slm/tslmpack/slmpack.o',
+ 'slm/tslmpack/arpa_conv.o', 'slm/tslmpack/arpa_slm.o'])
env.Program('genpyt', ['portability.o', 'slm/slm.o', 'slm/tslmendian/writer.o',
- 'lexicon/trie_writer.o', 'lexicon/genpyt.o',
- 'lexicon/pytrie.o', 'lexicon/pytrie_gen.o',
- 'pinyin/pinyin_data.o'])
+ 'lexicon/trie_writer.o', 'lexicon/genpyt.o',
+ 'lexicon/pytrie.o', 'lexicon/pytrie_gen.o',
+ 'pinyin/pinyin_data.o'])
env.Program('getwordfreq', ['portability.o', 'slm/slm.o',
- 'slm/getwordfreq/getwordfreq.o'])
+ 'slm/getwordfreq/getwordfreq.o'])
env.Program('testvc', ['slm/thread/ValueCompress.o', 'slm/thread/test_vc.o'])
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/ic_history.cpp
@@ -418,3 +418,5 @@ CBigramHistory::initStopWords()
m_stopWords.insert(0); //unknown world
m_stopWords.insert(DCWID); //seperator word id used by history memory interanlly
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/ic_history.h
@@ -184,3 +184,5 @@ class CBigramHistory : public CICHistory {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
6 src/ime-core/imi_context.cpp
@@ -509,7 +509,7 @@ CIMIContext::_transferBetween(unsigned start, unsigned end,
for (; it != ite; ++it) {
// for 1-length lattice states, replace ending_word_id (comma)
// with none_word_id (recognized by CThreadSlm)
- unsigned _wid = wid;
+ unsigned _wid = wid;
if (wid == ENDING_WORD_ID && it->m_pBackTraceNode && it->m_pBackTraceNode->m_frIdx == 0)
_wid = NONE_WORD_ID;
@@ -992,7 +992,7 @@ CIMIContext::_saveUserDict()
break;
}
- if (!e_pos) e_pos = i;
+ if (!e_pos) e_pos = i;
has_user_selected |= (fr.m_bwType & CLatticeFrame::USER_SELECTED);
std::copy(state->m_syls.begin(), state->m_syls.end(), inserter(syls, syls.begin()));
@@ -1059,3 +1059,5 @@ CIMIContext::removeFromHistoryCache(std::vector<unsigned>& wids)
m_pHistory->forget(&(wids[0]), &(wids[0]) + wids.size());
buildLattice(m_pPySegmentor);
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_context.h
@@ -388,3 +388,5 @@ class CIMIContext
}; // CIMIContext
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_data.cpp
@@ -110,3 +110,5 @@ CIMIData::clear()
m_pPinyinTrie = NULL;
m_pLM = NULL;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_data.h
@@ -77,3 +77,5 @@ class CIMIData {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_defines.h
@@ -51,3 +51,5 @@
#endif /* SUNPY_IMI_CONFIG_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_funcobjs.cpp
@@ -124,3 +124,5 @@ CGetFullPunctOp::operator ()(unsigned ch)
return ret;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_funcobjs.h
@@ -74,3 +74,5 @@ class CGetFullPunctOp : private CNonCopyable
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
7 src/ime-core/imi_glibHandler.h
@@ -36,6 +36,9 @@
* to such option by the copyright holder.
*/
+#ifndef _SUNPINYIN_IMI_GLIB_HANDLER_H
+#define _SUNPINYIN_IMI_GLIB_HANDLER_H
+
#include <glib.h>
#include "imi_winHandler.h"
#include "imi_view.h"
@@ -79,3 +82,7 @@ class CIMIGlibHandler : public CIMIWinHandler
private:
guint m_sourceId;
};
+
+#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_keys.h
@@ -114,3 +114,5 @@ struct CKeyEvent {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_option_event.cpp
@@ -106,3 +106,5 @@ COptionEventBus::publishEvent(const COptionEvent& event)
break;
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_option_event.h
@@ -103,3 +103,5 @@ class COptionEventBus
typedef SingletonHolder<COptionEventBus> AOptionEventBus;
#endif // _IMI_SESSION_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_option_keys.h
@@ -18,3 +18,5 @@
#define SHUANGPIN_TYPE "Pinyin/ShuangPinType"
#endif // _IMI_OPTION_KEYS_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_options.cpp
@@ -265,3 +265,5 @@ CHunpinSchemePolicy::CHunpinSchemePolicy()
: m_shuangpinType(MS2003)
{
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_options.h
@@ -380,3 +380,5 @@ class CSunpinyinSessionFactory : private CNonCopyable
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_plugin.cpp
@@ -377,3 +377,5 @@ CIMIPluginManager::markWaitTime(int waitTime)
m_waitTime = waitTime;
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
7 src/ime-core/imi_plugin.h
@@ -36,6 +36,9 @@
* to such option by the copyright holder.
*/
+#ifndef _SUNPINYIN_IMI_PLUGIN_H
+#define _SUNPINYIN_IMI_PLUGIN_H
+
#include <string>
#include <vector>
@@ -113,3 +116,7 @@ class CIMIPluginManager
};
typedef SingletonHolder<CIMIPluginManager> AIMIPluginManager;
+
+#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_uiobjects.cpp
@@ -312,3 +312,5 @@ CCandidateList::shrinkList()
m_candiUserIndex.end());
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_uiobjects.h
@@ -246,3 +246,5 @@ class CCandidateList : virtual public ICandidateList {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_view.cpp
@@ -221,3 +221,5 @@ CIMIView::handlerCommit(const wstring& wstr)
m_pWinHandler->commit(wstr.c_str());
#endif
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_view.h
@@ -225,3 +225,5 @@ class CIMIView {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_view_classic.cpp
@@ -747,3 +747,5 @@ CIMIClassicView::deleteCandidate(int candiIdx, unsigned& mask)
_getCandidates();
mask |= PREEDIT_MASK | CANDIDATE_MASK;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_view_classic.h
@@ -101,3 +101,5 @@ class CIMIClassicView : public CIMIView
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_winHandler.cpp
@@ -102,3 +102,5 @@ CIMIWinHandler::updateStatus(int key, int value)
printf("%d\n", value);
fflush(stdout);
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/imi_winHandler.h
@@ -91,3 +91,5 @@ class CIMIWinHandler
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/lattice_states.cpp
@@ -320,3 +320,5 @@ CLatticeStates::iterator::operator->()
{
return m_childIt.operator->();
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/lattice_states.h
@@ -244,3 +244,5 @@ class CLatticeStates {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/userdict.cpp
@@ -317,3 +317,5 @@ CUserDict::_createIndexes()
return true;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/userdict.h
@@ -81,3 +81,5 @@ class CUserDict
};
#endif /* SUNPY_USERDICT_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/ime-core/utils.h
@@ -135,3 +135,5 @@ class SingletonHolder
};
#endif /* SUNPY_UTILS_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/genpyt.cpp
@@ -184,3 +184,5 @@ main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/pytrie.cpp
@@ -158,3 +158,5 @@ CPinyinTrie::print(const TNode* pRoot, std::string& prefix, FILE *fp) const
prefix.resize(prefix.size() - strlen(str) - 1);
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/pytrie.h
@@ -163,3 +163,5 @@ class CPinyinTrie {
};
#endif /* __SUNPINYIN_PYTRIE_H__*/
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/pytrie_gen.cpp
@@ -539,3 +539,5 @@ CPinyinTrieMaker::write(FILE *fp, CWordEvaluator* psrt, bool revert_endian)
}
return suc;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/pytrie_gen.h
@@ -170,3 +170,5 @@ class CPinyinTrieMaker {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/trie_writer.cpp
@@ -6,3 +6,5 @@ bool revert_write<CPinyinTrie::TTransUnit
{
return revert_write(t.m_Syllable, fp) && revert_write(t.m_Offset, fp);
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/lexicon/trie_writer.h
@@ -103,3 +103,5 @@ bool revert_write<CPinyinTrie::TTransUnit> (const CPinyinTrie::TTransUnit& t,
FILE *fp);
#endif //__SUNPINYIN_PYTRIE_WRITER_H__
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/datrie.h
@@ -86,3 +86,5 @@ class CDATrie
#include "datrie_impl.h"
#endif /* SUNPY_DATRIE_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/datrie_impl.h
@@ -158,3 +158,5 @@ int CDATrie<T, encoder>::match_longest(InputIterator first,
return ret_v;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/hunpin_seg.cpp
@@ -381,3 +381,5 @@ CHunpinSegmentor::_updateWith(const std::string& new_pystr, unsigned from)
}
return minUpdatedFrom;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/hunpin_seg.h
@@ -77,3 +77,5 @@ class CHunpinSegmentor : public IPySegmentor
};
#endif /* SUNPY_PINYIN_SEG_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/pinyin_data.cpp
@@ -800,3 +800,5 @@ CPinyinData::getFuzzyPreProSyllables(const unsigned **pre_syls,
*pre_syls = fuzzy_pre_syllables;
*pro_syls = fuzzy_pro_syllables;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/pinyin_data.h
@@ -69,3 +69,5 @@ class CPinyinData
};
#endif /* _PINYIN_DATA_H_ */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/pinyin_seg.cpp
@@ -500,3 +500,5 @@ CQuanpinSegmentor::_updateWith(const std::string& new_pystr, unsigned from)
}
return minUpdatedFrom;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/pinyin_seg.h
@@ -160,3 +160,5 @@ class CQuanpinSegmentor : public IPySegmentor
};
#endif /* SUNPY_PINYIN_SEG_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/segmentor.h
@@ -95,3 +95,5 @@ struct IPySegmentor {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/shuangpin_data.cpp
@@ -384,3 +384,5 @@ CShuangpinData::_genKeyboardMap(EShuangpinType shyType)
break;
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/shuangpin_data.h
@@ -99,3 +99,5 @@ class CShuangpinData : private CNonCopyable
};
#endif /* _PINYIN_DATA_H_ */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/pinyin/shuangpin_seg.cpp
@@ -355,3 +355,4 @@ CShuangpinSegmentor::_addFuzzySyllables(TSegment& seg)
}
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/shuangpin_seg.h
@@ -87,3 +87,5 @@ class CShuangpinSegmentor : public IPySegmentor
};
#endif /* SUNPY_SHUANGPIN_SEG_H */
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/pinyin/syllable.h
@@ -176,3 +176,5 @@ class CGetFuzzySyllablesOp : private CNonCopyable
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/portability.cpp
@@ -288,3 +288,4 @@ strndup(const char *s, size_t n)
}
#endif //HAVE_STRNDUP
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/portability.h
@@ -331,3 +331,5 @@ extern "C" char *strndup(const char *s, size_t n);
#endif //HAVE_STRNDUP
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
4 src/slm/getwordfreq/getwordfreq.cpp
@@ -157,6 +157,4 @@ main(int argc, char*argv[])
}
}
-
-
-
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/ids2ngram/idngram.h
@@ -114,3 +114,5 @@ class CSIM_IdngramFreq : public CSIM_Idngram<N> {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/slm/ids2ngram/idngram_merge.cpp
@@ -146,3 +146,4 @@ main(int argc, char* argv[])
return 0;
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/slm/ids2ngram/idngram_merge.h
@@ -103,3 +103,4 @@ void ProcessingIdngramMerge(FILE* out, std::vector<FILE* >& file_list){
#endif
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/slm/ids2ngram/ids2ngram.cpp
@@ -214,3 +214,4 @@ main(int argc, char* argv[])
return 0;
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/mmseg/mmseg.cpp
@@ -319,3 +319,5 @@ main(int argc, char *argv[])
s_dict = NULL;
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_dict.cpp
@@ -185,3 +185,5 @@ CSIMDict::InnerPrint(FILE* fp, wstring & wstr, const TState* pnode)
}
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_dict.h
@@ -79,3 +79,5 @@ class CSIMDict {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_fmerge.h
@@ -155,3 +155,5 @@ class CMultiWayFileMerger
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_sen.cpp
@@ -86,3 +86,5 @@ SIMCharReaderIterator::operator+(int i)
{
return SIMCharReaderIterator(reader, idx + i);
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_sen.h
@@ -118,3 +118,5 @@ bool ReadSentence(wstring& wstr, iterator& first, bool bIgnoreCRLF = false){
}
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_slm.cpp
@@ -160,3 +160,5 @@ CSIMSlm::getPrDirect(int n, TSIMWordId* hw)
return ((TLeaf*)pstate)->pr; // as we derive TNode from TLeaf
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_slm.h
@@ -136,3 +136,5 @@ _NodeT_* binary_find_id(_NodeT_ *ph, _NodeT_* pt, TSIMWordId id){
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/slm/sim_slmbuilder.cpp
@@ -631,3 +631,4 @@ CSlmBuilder::Close(void)
nlevel = 0;
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/sim_slmbuilder.h
@@ -163,3 +163,5 @@ class CSlmLinearDiscounter : public CSlmDiscounter {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slm.cpp
@@ -306,3 +306,5 @@ CThreadSlm::historify(TState& st)
}
return st;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slm.h
@@ -349,3 +349,5 @@ class CThreadSlm {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slmbuild/slmbuild.cpp
@@ -260,3 +260,5 @@ main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slminfo/slminfo.cpp
@@ -292,3 +292,5 @@ main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slmprune/slmprune.cpp
@@ -487,3 +487,5 @@ main(int argc, char* argv[])
pruner.Free();
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/slmseg/slmseg.cpp
@@ -485,3 +485,5 @@ main(int argc, char *argv[])
s_dict = NULL;
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
5 src/slm/thread/ValueCompress.cpp
@@ -311,7 +311,4 @@ CValueCompressor::operator()(std::map<float, float>& eff2val,
*/
}
-
-
-
-
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/thread/ValueCompress.h
@@ -71,3 +71,5 @@ class CValueCompressor {
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/thread/slmthread.cpp
@@ -467,3 +467,5 @@ main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/thread/test_vc.cpp
@@ -95,3 +95,5 @@ main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tools/clean_rmrb.cpp
@@ -92,3 +92,5 @@ main(int argc, char *argv[])
printf("\n");
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tools/dumpdict.cpp
@@ -74,3 +74,5 @@ main(int argc, char* argv[])
dict.close();
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmendian/slm_endian.cpp
@@ -136,3 +136,5 @@ main(int argc, char* argv[])
}
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  src/slm/tslmendian/slm_file.cpp
@@ -321,3 +321,4 @@ CThreadSlmFile::getHostEndian()
return htons(0x0001) == 0x0100 ? LITTLE_ENDIAN : BIG_ENDIAN;
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmendian/slm_file.h
@@ -90,3 +90,5 @@ class CThreadSlmFile
};
#endif //SLM_FILE_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmendian/writer.cpp
@@ -38,3 +38,5 @@ endian2str(int endian)
}
return NULL;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmendian/writer.h
@@ -98,3 +98,5 @@ class Writer
#endif // WRITER_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslminfo/tslminfo.cpp
@@ -323,3 +323,5 @@ main(int argc, char* argv[])
}
return 100;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/arpa_conv.cpp
@@ -173,3 +173,5 @@ compress(const CArpaSlm& slm,
nodeLevels = node_levels;
leafLevel = leaf_level;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/arpa_conv.h
@@ -55,3 +55,5 @@ void compress(const CArpaSlm& slm,
TNodeLevels& nodeLevels, CThreadSlm::TLeaf*& leafLevel);
#endif //_SLM_PACK_ARPA_CONV_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/arpa_slm.cpp
@@ -241,3 +241,5 @@ CArpaSlm::find_1st_child(unsigned lvl, const TNode& node, int last_child)
return distance(level.begin(), found);
}
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/arpa_slm.h
@@ -109,3 +109,5 @@ class CArpaSlm {
};
#endif //_ARPA_SLM_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/common.h
@@ -59,3 +59,5 @@ typedef std::map<std::string, unsigned int> TLexicon; // map word to wid
#define OriginalBow(b) (float((usingLogPr) ? (-log((b))) : ((b))))
#endif //_SLM_PACK_COMMON_H
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/slm/tslmpack/slmpack.cpp
@@ -364,3 +364,5 @@ main(int argc, char* argv[])
cleanup(pr_table, bow_table, levels, lastLevel);
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  src/sunpinyin.h
@@ -11,3 +11,5 @@
#include <ime-core/imi_uiobjects.h>
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  wrapper/gtk_standalone/SConstruct
@@ -4,3 +4,5 @@ env=Environment(ENV=os.environ, CFLAGS='-g', CXXFLAGS='-g -DDEBUG')
env.ParseConfig('pkg-config gtk+-3.0 sunpinyin-2.0 sqlite3 --cflags --libs')
env.Program('sunpinyin', source=['imi_gtkwin.cpp', 'sunpinyin.cpp'])
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  wrapper/gtk_standalone/imi_gtkwin.cpp
@@ -285,3 +285,4 @@ CGTKWinHandler::updateCandidates(const ICandidateList* pcl)
gtk_label_set_text(GTK_LABEL(m_CandidataArea), m_buf);
}
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  wrapper/gtk_standalone/imi_gtkwin.h
@@ -128,3 +128,5 @@ class CGTKWinHandler : public CIMIGlibHandler
};
#endif
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
2  wrapper/gtk_standalone/sunpinyin.cpp
@@ -141,3 +141,5 @@ int main(int argc, char* argv[])
return 0;
}
+
+// -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
31 wrapper/ibus/LGPL.LICENSE
@@ -1,5 +1,5 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
+ GNU 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
@@ -10,7 +10,7 @@
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -55,7 +55,7 @@ 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
@@ -111,8 +111,8 @@ 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.
-
- GNU LESSER GENERAL PUBLIC LICENSE
+
+ GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
@@ -158,7 +158,7 @@ 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
@@ -216,7 +216,7 @@ 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.
@@ -267,7 +267,7 @@ Library will still fall under Section 6.)
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
@@ -329,7 +329,7 @@ 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
@@ -370,7 +370,7 @@ 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
@@ -422,7 +422,7 @@ 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
@@ -432,7 +432,7 @@ 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
+ 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.
@@ -455,8 +455,8 @@ 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
-
+ 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
@@ -514,3 +514,4 @@ Any litigation relating to this License shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California and the state courts of the State of California, with
venue lying in Santa Clara County, California.
+
View
1  wrapper/ibus/OPENSOLARIS.LICENSE
@@ -375,3 +375,4 @@ Any litigation relating to this License shall be subject to the
jurisdiction of the Federal Courts of the Northern District of
California and the state courts of the State of California, with
venue lying in Santa Clara County, California.
+
View
2  wrapper/ibus/SConstruct
@@ -170,3 +170,5 @@ def DoInstall():
DoInstall()
env.Alias('install', ['install-libexec', 'install-data', 'install-locale'])
+
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  wrapper/ibus/cmake/modules/FindSunPinyin.cmake
@@ -32,3 +32,4 @@ set(SunPinyin_PROCESS_INCLUDES SunPinyin_INCLUDE_DIR)
set(SunPinyin_PROCESS_LIBS SunPinyin_LIBRARY)
libfind_process(SunPinyin)
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
1  wrapper/ibus/cmake/modules/FindiBus.cmake
@@ -32,3 +32,4 @@ set(iBus_PROCESS_INCLUDES iBus_INCLUDE_DIR)
set(iBus_PROCESS_LIBS iBus_LIBRARY)
libfind_process(iBus)
+# -*- indent-tabs-mode: nil -*- vim:et:ts=4
View
165 wrapper/ibus/cmake/modules/Gettext.cmake
@@ -53,7 +53,7 @@ IF (GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE )
ELSE (GETTEXT_MSGMERGE_EXECUTABLE AND GETTEXT_MSGFMT_EXECUTABLE)