Add PY prefix of all file names to avoid name conflict on some file
authorPeng Huang <shawn.p.huang@gmail.com>
Fri, 13 Aug 2010 08:20:01 +0000 (16:20 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 17 Aug 2010 06:04:42 +0000 (15:04 +0900)
system than is case insensitive.

67 files changed:
src/Makefile.am
src/PYBopomofo.h [moved from src/Bopomofo.h with 100% similarity]
src/PYBopomofoEditor.cc [moved from src/BopomofoEditor.cc with 99% similarity]
src/PYBopomofoEditor.h [moved from src/BopomofoEditor.h with 98% similarity]
src/PYBopomofoEngine.cc [moved from src/BopomofoEngine.cc with 97% similarity]
src/PYBopomofoEngine.h [moved from src/BopomofoEngine.h with 97% similarity]
src/PYBopomofoKeyboard.h [moved from src/BopomofoKeyboard.h with 99% similarity]
src/PYBus.h [moved from src/Bus.h with 98% similarity]
src/PYConfig.cc [moved from src/Config.cc with 99% similarity]
src/PYConfig.h [moved from src/Config.h with 99% similarity]
src/PYDatabase.cc [moved from src/Database.cc with 99% similarity]
src/PYDatabase.h [moved from src/Database.h with 97% similarity]
src/PYDoublePinyinEditor.cc [moved from src/DoublePinyinEditor.cc with 99% similarity]
src/PYDoublePinyinEditor.h [moved from src/DoublePinyinEditor.h with 98% similarity]
src/PYDoublePinyinTable.h [moved from src/DoublePinyinTable.h with 100% similarity]
src/PYDynamicSpecialPhrase.cc [moved from src/DynamicSpecialPhrase.cc with 99% similarity]
src/PYDynamicSpecialPhrase.h [moved from src/DynamicSpecialPhrase.h with 98% similarity]
src/PYEditor.cc [moved from src/Editor.cc with 98% similarity]
src/PYEditor.h [moved from src/Editor.h with 98% similarity]
src/PYEngine.cc [moved from src/Engine.cc with 99% similarity]
src/PYEngine.h [moved from src/Engine.h with 97% similarity]
src/PYExtEditor.cc [moved from src/ExtEditor.cc with 99% similarity]
src/PYExtEditor.h [moved from src/ExtEditor.h with 100% similarity]
src/PYFallbackEditor.cc [moved from src/FallbackEditor.cc with 98% similarity]
src/PYFallbackEditor.h [moved from src/FallbackEditor.h with 98% similarity]
src/PYFullPinyinEditor.cc [moved from src/FullPinyinEditor.cc with 98% similarity]
src/PYFullPinyinEditor.h [moved from src/FullPinyinEditor.h with 98% similarity]
src/PYHalfFullConverter.cc [moved from src/HalfFullConverter.cc with 98% similarity]
src/PYHalfFullConverter.h [moved from src/HalfFullConverter.h with 100% similarity]
src/PYLookupTable.h [moved from src/LookupTable.h with 98% similarity]
src/PYMain.cc [moved from src/Main.cc with 97% similarity]
src/PYObject.h [moved from src/Object.h with 98% similarity]
src/PYPhoneticEditor.cc [moved from src/PhoneticEditor.cc with 98% similarity]
src/PYPhoneticEditor.h [moved from src/PhoneticEditor.h with 96% similarity]
src/PYPhrase.h [moved from src/Phrase.h with 98% similarity]
src/PYPhraseArray.h [moved from src/PhraseArray.h with 97% similarity]
src/PYPhraseEditor.cc [moved from src/PhraseEditor.cc with 96% similarity]
src/PYPhraseEditor.h [moved from src/PhraseEditor.h with 97% similarity]
src/PYPinyinArray.h [moved from src/PinyinArray.h with 98% similarity]
src/PYPinyinEditor.cc [moved from src/PinyinEditor.cc with 98% similarity]
src/PYPinyinEditor.h [moved from src/PinyinEditor.h with 98% similarity]
src/PYPinyinEngine.cc [moved from src/PinyinEngine.cc with 97% similarity]
src/PYPinyinEngine.h [moved from src/PinyinEngine.h with 97% similarity]
src/PYPinyinParser.cc [moved from src/PinyinParser.cc with 99% similarity]
src/PYPinyinParser.h [moved from src/PinyinParser.h with 97% similarity]
src/PYPinyinParserTable.h [moved from src/PinyinParserTable.h with 100% similarity]
src/PYPinyinProperties.cc [moved from src/PinyinProperties.cc with 98% similarity]
src/PYPinyinProperties.h [moved from src/PinyinProperties.h with 97% similarity]
src/PYPointer.h [moved from src/Pointer.h with 100% similarity]
src/PYProperty.h [moved from src/Property.h with 98% similarity]
src/PYPunctEditor.cc [moved from src/PunctEditor.cc with 99% similarity]
src/PYPunctEditor.h [moved from src/PunctEditor.h with 98% similarity]
src/PYPunctTable.h [moved from src/PunctTable.h with 100% similarity]
src/PYRawEditor.h [moved from src/RawEditor.h with 97% similarity]
src/PYRegex.h [moved from src/Regex.h with 100% similarity]
src/PYSignal.h [moved from src/Signal.h with 98% similarity]
src/PYSimpTradConverter.cc [moved from src/SimpTradConverter.cc with 97% similarity]
src/PYSimpTradConverter.h [moved from src/SimpTradConverter.h with 100% similarity]
src/PYSimpTradConverterTable.h [moved from src/SimpTradConverterTable.h with 100% similarity]
src/PYSpecialPhrase.cc [moved from src/SpecialPhrase.cc with 96% similarity]
src/PYSpecialPhrase.h [moved from src/SpecialPhrase.h with 100% similarity]
src/PYSpecialPhraseTable.cc [moved from src/SpecialPhraseTable.cc with 96% similarity]
src/PYSpecialPhraseTable.h [moved from src/SpecialPhraseTable.h with 100% similarity]
src/PYString.h [moved from src/String.h with 100% similarity]
src/PYText.h [moved from src/Text.h with 98% similarity]
src/PYTypes.h [moved from src/Types.h with 100% similarity]
src/PYUtil.h [moved from src/Util.h with 99% similarity]

index 9490ee0..d1666fc 100644 (file)
@@ -42,73 +42,73 @@ ibus_engine_pinyin_built_h_sources = \
        SimpTradConverterTable.h \
        $(NULL)
 ibus_engine_pinyin_c_sources = \
-       BopomofoEditor.cc \
-       BopomofoEngine.cc \
-       Config.cc \
-       Database.cc \
-       DoublePinyinEditor.cc \
-       Editor.cc \
-       Engine.cc \
-       FallbackEditor.cc \
-       FullPinyinEditor.cc \
-       HalfFullConverter.cc \
-       Main.cc \
-       PhoneticEditor.cc \
-       PhraseEditor.cc \
-       PinyinEditor.cc \
-       PinyinEngine.cc \
-       PinyinParser.cc \
-       PinyinProperties.cc \
-       PunctEditor.cc \
-       SimpTradConverter.cc \
-       DynamicSpecialPhrase.cc \
-       SpecialPhrase.cc \
-       SpecialPhraseTable.cc \
+       PYBopomofoEditor.cc \
+       PYBopomofoEngine.cc \
+       PYConfig.cc \
+       PYDatabase.cc \
+       PYDoublePinyinEditor.cc \
+       PYEditor.cc \
+       PYEngine.cc \
+       PYFallbackEditor.cc \
+       PYFullPinyinEditor.cc \
+       PYHalfFullConverter.cc \
+       PYMain.cc \
+       PYPhoneticEditor.cc \
+       PYPhraseEditor.cc \
+       PYPinyinEditor.cc \
+       PYPinyinEngine.cc \
+       PYPinyinParser.cc \
+       PYPinyinProperties.cc \
+       PYPunctEditor.cc \
+       PYSimpTradConverter.cc \
+       PYDynamicSpecialPhrase.cc \
+       PYSpecialPhrase.cc \
+       PYSpecialPhraseTable.cc \
        $(NULL)
 ibus_engine_pinyin_h_sources = \
-       Bopomofo.h \
-       BopomofoEditor.h \
-       BopomofoEngine.h \
-       Bus.h \
-       Config.h \
-       Database.h \
-       DoublePinyinEditor.h \
-       DoublePinyinTable.h \
-       Editor.h \
-       Engine.h \
-       ExtEditor.h \
-       FallbackEditor.h \
-       FullPinyinEditor.h \
-       HalfFullConverter.h \
-       LookupTable.h \
-       Object.h \
-       PhoneticEditor.h \
-       Phrase.h \
-       PhraseArray.h \
-       PhraseEditor.h \
-       PinyinArray.h \
-       PinyinEditor.h \
-       PinyinEngine.h \
-       PinyinParser.h \
-       PinyinProperties.h \
-       Pointer.h \
-       Property.h \
-       PunctEditor.h \
-       RawEditor.h \
-       Regex.h \
-       Signal.h \
-       SimpTradConverter.h \
-       SpecialPhrase.h \
-       DynamicSpecialPhrase.h \
-       SpecialPhraseTable.h \
-       String.h \
-       Text.h \
-       Types.h \
-       Util.h \
+       PYBopomofo.h \
+       PYBopomofoEditor.h \
+       PYBopomofoEngine.h \
+       PYBus.h \
+       PYConfig.h \
+       PYDatabase.h \
+       PYDoublePinyinEditor.h \
+       PYDoublePinyinTable.h \
+       PYEditor.h \
+       PYEngine.h \
+       PYExtEditor.h \
+       PYFallbackEditor.h \
+       PYFullPinyinEditor.h \
+       PYHalfFullConverter.h \
+       PYLookupTable.h \
+       PYObject.h \
+       PYPhoneticEditor.h \
+       PYPhrase.h \
+       PYPhraseArray.h \
+       PYPhraseEditor.h \
+       PYPinyinArray.h \
+       PYPinyinEditor.h \
+       PYPinyinEngine.h \
+       PYPinyinParser.h \
+       PYPinyinProperties.h \
+       PYPointer.h \
+       PYProperty.h \
+       PYPunctEditor.h \
+       PYRawEditor.h \
+       PYRegex.h \
+       PYSignal.h \
+       PYSimpTradConverter.h \
+       PYSpecialPhrase.h \
+       PYDynamicSpecialPhrase.h \
+       PYSpecialPhraseTable.h \
+       PYString.h \
+       PYText.h \
+       PYTypes.h \
+       PYUtil.h \
        $(NULL)
 
 if IBUS_BUILD_LUA_EXTENSION
-ibus_engine_pinyin_c_sources += ExtEditor.cc
+ibus_engine_pinyin_c_sources += PYExtEditor.cc
 endif
 
 ibus_engine_pinyin_SOURCES = \
similarity index 100%
rename from src/Bopomofo.h
rename to src/PYBopomofo.h
similarity index 99%
rename from src/BopomofoEditor.cc
rename to src/PYBopomofoEditor.cc
index 80441b9..d83086b 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "BopomofoEditor.h"
-#include "Config.h"
-#include "PinyinProperties.h"
-#include "SimpTradConverter.h"
+#include "PYBopomofoEditor.h"
+#include "PYConfig.h"
+#include "PYPinyinProperties.h"
+#include "PYSimpTradConverter.h"
 
 namespace PY {
-#include "BopomofoKeyboard.h"
+#include "PYBopomofoKeyboard.h"
 
 const static gchar * bopomofo_select_keys[] = {
     "1234567890",
similarity index 98%
rename from src/BopomofoEditor.h
rename to src/PYBopomofoEditor.h
index 0ace665..8ad9784 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __PY_BOPOMOFO_EDITOR_H_
 #define __PY_BOPOMOFO_EDITOR_H_
 
-#include "PhoneticEditor.h"
+#include "PYPhoneticEditor.h"
 
 namespace PY {
 
similarity index 97%
rename from src/BopomofoEngine.cc
rename to src/PYBopomofoEngine.cc
index 71acd13..2e7411e 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "BopomofoEngine.h"
+#include "PYBopomofoEngine.h"
 #include <string>
-#include "RawEditor.h"
-#include "PunctEditor.h"
+#include "PYRawEditor.h"
+#include "PYPunctEditor.h"
 #ifdef IBUS_BUILD_LUA_EXTENSION
-#include "ExtEditor.h"
+#include "PYExtEditor.h"
 #endif
-#include "BopomofoEditor.h"
-#include "FallbackEditor.h"
-#include "Config.h"
+#include "PYBopomofoEditor.h"
+#include "PYFallbackEditor.h"
+#include "PYConfig.h"
 
 namespace PY {
 
similarity index 97%
rename from src/BopomofoEngine.h
rename to src/PYBopomofoEngine.h
index 06297b8..a99dc83 100644 (file)
@@ -22,8 +22,8 @@
 #ifndef __PY_BOPOMOFO_ENGINE_H_
 #define __PY_BOPOMOFO_ENGINE_H_
 
-#include "Engine.h"
-#include "PinyinProperties.h"
+#include "PYEngine.h"
+#include "PYPinyinProperties.h"
 
 namespace PY {
 
similarity index 99%
rename from src/BopomofoKeyboard.h
rename to src/PYBopomofoKeyboard.h
index 148bd3b..f23d6a2 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __PY_BOPOMOFO_KEYBOARD_H_
 #define __PY_BOPOMOFO_KEYBOARD_H_
 
-#include "Bopomofo.h"
+#include "PYBopomofo.h"
 
 static const guint8
 bopomofo_keyboard[][41][2] = {
similarity index 98%
rename from src/Bus.h
rename to src/PYBus.h
index 4ed9932..1172d25 100644 (file)
--- a/src/Bus.h
@@ -22,7 +22,7 @@
 #define __PY_BUS_H_
 
 #include <ibus.h>
-#include "Object.h"
+#include "PYObject.h"
 
 namespace PY {
 
similarity index 99%
rename from src/Config.cc
rename to src/PYConfig.cc
index 36bc019..09bb44f 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "Config.h"
+#include "PYConfig.h"
 
-#include "Types.h"
-#include "Bus.h"
-#include "DoublePinyinTable.h"
+#include "PYTypes.h"
+#include "PYBus.h"
+#include "PYDoublePinyinTable.h"
 
 namespace PY {
 
similarity index 99%
rename from src/Config.h
rename to src/PYConfig.h
index 0d2c4ed..9bbb503 100644 (file)
@@ -24,7 +24,7 @@
 #include <string>
 #include <boost/scoped_ptr.hpp>
 #include <ibus.h>
-#include "Object.h"
+#include "PYObject.h"
 
 namespace PY {
 
similarity index 99%
rename from src/Database.cc
rename to src/PYDatabase.cc
index 7661634..1fd3b86 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "Database.h"
+#include "PYDatabase.h"
 #include <sqlite3.h>
-#include "Util.h"
-#include "PinyinArray.h"
+#include "PYUtil.h"
+#include "PYPinyinArray.h"
 
 namespace PY {
 
similarity index 97%
rename from src/Database.h
rename to src/PYDatabase.h
index d414da2..ab90fcf 100644 (file)
@@ -23,9 +23,9 @@
 
 #include <boost/shared_ptr.hpp>
 #include <boost/scoped_ptr.hpp>
-#include "String.h"
-#include "Types.h"
-#include "PhraseArray.h"
+#include "PYString.h"
+#include "PYTypes.h"
+#include "PYPhraseArray.h"
 
 typedef struct sqlite3 sqlite3;
 
similarity index 99%
rename from src/DoublePinyinEditor.cc
rename to src/PYDoublePinyinEditor.cc
index 3386680..fb775d9 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "DoublePinyinEditor.h"
-#include "Config.h"
+#include "PYDoublePinyinEditor.h"
+#include "PYConfig.h"
 
 namespace PY {
 
 #define DEFINE_DOUBLE_PINYIN_TABLES
-#include "DoublePinyinTable.h"
+#include "PYDoublePinyinTable.h"
 
 /*
  * c in 'a' ... 'z' => id = c - 'a'
similarity index 98%
rename from src/DoublePinyinEditor.h
rename to src/PYDoublePinyinEditor.h
index 993ec90..e9ef1e9 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __PY_DOUBLE_PINYIN_EDITOR_H_
 #define __PY_DOUBLE_PINYIN_EDITOR_H_
 
-#include "PinyinEditor.h"
+#include "PYPinyinEditor.h"
 
 namespace PY {
 
similarity index 99%
rename from src/DynamicSpecialPhrase.cc
rename to src/PYDynamicSpecialPhrase.cc
index 02c2fcb..2b65258 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "DynamicSpecialPhrase.h"
+#include "PYDynamicSpecialPhrase.h"
 
 namespace PY {
 
similarity index 98%
rename from src/DynamicSpecialPhrase.h
rename to src/PYDynamicSpecialPhrase.h
index dbe97fd..f259a97 100644 (file)
@@ -24,7 +24,7 @@
 #include <ctime>
 #include <string>
 #include <glib.h>
-#include "SpecialPhrase.h"
+#include "PYSpecialPhrase.h"
 
 namespace PY {
 
similarity index 98%
rename from src/Editor.cc
rename to src/PYEditor.cc
index 957e603..47c3a6e 100644 (file)
@@ -18,8 +18,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "Text.h"
-#include "Editor.h"
+#include "PYText.h"
+#include "PYEditor.h"
 
 namespace PY {
 
similarity index 98%
rename from src/Editor.h
rename to src/PYEditor.h
index d0db6b5..e520d51 100644 (file)
@@ -23,9 +23,9 @@
 
 #include <glib.h>
 #include <boost/shared_ptr.hpp>
-#include "Signal.h"
-#include "String.h"
-#include "Util.h"
+#include "PYSignal.h"
+#include "PYString.h"
+#include "PYUtil.h"
 
 namespace PY {
 
similarity index 99%
rename from src/Engine.cc
rename to src/PYEngine.cc
index 2dd1d17..1797e24 100644 (file)
@@ -19,9 +19,9 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include "Engine.h"
-#include "PinyinEngine.h"
-#include "BopomofoEngine.h"
+#include "PYEngine.h"
+#include "PYPinyinEngine.h"
+#include "PYBopomofoEngine.h"
 
 namespace PY {
 /* code of engine class of GObject */
similarity index 97%
rename from src/Engine.h
rename to src/PYEngine.h
index 297acaf..50113e6 100644 (file)
 
 #include <ibus.h>
 
-#include "Pointer.h"
-#include "LookupTable.h"
-#include "Property.h"
-#include "Editor.h"
+#include "PYPointer.h"
+#include "PYLookupTable.h"
+#include "PYProperty.h"
+#include "PYEditor.h"
 
 namespace PY {
 
similarity index 99%
rename from src/ExtEditor.cc
rename to src/PYExtEditor.cc
index 826fdf7..d81d9b8 100644 (file)
@@ -25,14 +25,14 @@ extern "C" {
 #include "lua-plugin.h"
 }
 
-#include "Config.h"
-#include "Pointer.h"
-#include "LookupTable.h"
+#include "PYConfig.h"
+#include "PYPointer.h"
+#include "PYLookupTable.h"
 
-#include "DynamicSpecialPhrase.h"
+#include "PYDynamicSpecialPhrase.h"
 
-#include "Editor.h"
-#include "ExtEditor.h"
+#include "PYEditor.h"
+#include "PYExtEditor.h"
 
 namespace PY {
 
similarity index 100%
rename from src/ExtEditor.h
rename to src/PYExtEditor.h
similarity index 98%
rename from src/FallbackEditor.cc
rename to src/PYFallbackEditor.cc
index 0d85780..dea4ea9 100644 (file)
@@ -18,9 +18,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "FallbackEditor.h"
-#include "HalfFullConverter.h"
-#include "PinyinProperties.h"
+#include "PYFallbackEditor.h"
+#include "PYHalfFullConverter.h"
+#include "PYPinyinProperties.h"
 
 namespace PY {
 
similarity index 98%
rename from src/FallbackEditor.h
rename to src/PYFallbackEditor.h
index 74452ba..db8077e 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef __PY_FALLBACK_EDITOR_
 #define __PY_FALLBACK_EDITOR_
 
-#include "Text.h"
-#include "Editor.h"
+#include "PYText.h"
+#include "PYEditor.h"
 
 namespace PY {
 
similarity index 98%
rename from src/FullPinyinEditor.cc
rename to src/PYFullPinyinEditor.cc
index 1d7e29e..4530395 100644 (file)
@@ -18,8 +18,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "FullPinyinEditor.h"
-#include "Config.h"
+#include "PYFullPinyinEditor.h"
+#include "PYConfig.h"
 
 namespace PY {
 
similarity index 98%
rename from src/FullPinyinEditor.h
rename to src/PYFullPinyinEditor.h
index f415a9f..aba2077 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __PY_FULL_PINYIN_EDITOR_H_
 #define __PY_FULL_PINYIN_EDITOR_H_
 
-#include "PinyinEditor.h"
+#include "PYPinyinEditor.h"
 
 namespace PY {
 
similarity index 98%
rename from src/HalfFullConverter.cc
rename to src/PYHalfFullConverter.cc
index 6b33ca0..3513d94 100644 (file)
@@ -19,7 +19,7 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include "HalfFullConverter.h"
+#include "PYHalfFullConverter.h"
 
 namespace PY {
 
similarity index 98%
rename from src/LookupTable.h
rename to src/PYLookupTable.h
index d62b978..d3db85f 100644 (file)
@@ -22,8 +22,8 @@
 #define __PY_LOOKUP_TABLE_H_
 
 #include <ibus.h>
-#include "Object.h"
-#include "Text.h"
+#include "PYObject.h"
+#include "PYText.h"
 
 namespace PY {
 
similarity index 97%
rename from src/Main.cc
rename to src/PYMain.cc
index e431cfc..463ec2f 100644 (file)
 #include <ibus.h>
 #include <stdlib.h>
 #include <locale.h>
-#include "Engine.h"
-#include "Pointer.h"
-#include "Bus.h"
-#include "Config.h"
-#include "Database.h"
+#include "PYEngine.h"
+#include "PYPointer.h"
+#include "PYBus.h"
+#include "PYConfig.h"
+#include "PYDatabase.h"
 
 using namespace PY;
 
similarity index 98%
rename from src/Object.h
rename to src/PYObject.h
index a30ac9c..5703f8e 100644 (file)
@@ -22,7 +22,7 @@
 #define __PY_OBJECT_H_
 
 #include <glib-object.h>
-#include "Pointer.h"
+#include "PYPointer.h"
 
 namespace PY {
 
similarity index 98%
rename from src/PhoneticEditor.cc
rename to src/PYPhoneticEditor.cc
index f38ea76..44e0004 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "PhoneticEditor.h"
-#include "Config.h"
-#include "PinyinProperties.h"
-#include "SimpTradConverter.h"
+#include "PYPhoneticEditor.h"
+#include "PYConfig.h"
+#include "PYPinyinProperties.h"
+#include "PYSimpTradConverter.h"
 
 namespace PY {
 
similarity index 96%
rename from src/PhoneticEditor.h
rename to src/PYPhoneticEditor.h
index 9589cfa..7ff07d9 100644 (file)
 #ifndef __PY_PHONETIC_EDITOR_H_
 #define __PY_PHONETIC_EDITOR_H_
 
-#include "LookupTable.h"
-#include "Editor.h"
-#include "PinyinParser.h"
-#include "PhraseEditor.h"
-#include "SpecialPhraseTable.h"
+#include "PYLookupTable.h"
+#include "PYEditor.h"
+#include "PYPinyinParser.h"
+#include "PYPhraseEditor.h"
+#include "PYSpecialPhraseTable.h"
 
 namespace PY {
 
similarity index 98%
rename from src/Phrase.h
rename to src/PYPhrase.h
index 45a43e1..d97aa68 100644 (file)
@@ -22,7 +22,7 @@
 #define __PY_PHRASE_H_
 
 #include <cstring>
-#include "Types.h"
+#include "PYTypes.h"
 
 namespace PY {
 
similarity index 97%
rename from src/PhraseArray.h
rename to src/PYPhraseArray.h
index a7111f1..b01d2d3 100644 (file)
@@ -22,7 +22,7 @@
 #define __PY_PHRASE_ARRAY_H_
 
 #include <vector>
-#include "Phrase.h"
+#include "PYPhrase.h"
 
 namespace PY {
 
similarity index 96%
rename from src/PhraseEditor.cc
rename to src/PYPhraseEditor.cc
index 472a83c..45da5e4 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "PhraseEditor.h"
-#include "Config.h"
-#include "Database.h"
-#include "PinyinProperties.h"
-#include "SimpTradConverter.h"
+#include "PYPhraseEditor.h"
+#include "PYConfig.h"
+#include "PYDatabase.h"
+#include "PYPinyinProperties.h"
+#include "PYSimpTradConverter.h"
 
 namespace PY {
 
similarity index 97%
rename from src/PhraseEditor.h
rename to src/PYPhraseEditor.h
index ed2ddfe..87758c0 100644 (file)
@@ -22,9 +22,9 @@
 #define __PY_PHRASE_EDITOR_H_
 
 #include <boost/shared_ptr.hpp>
-#include "String.h"
-#include "PhraseArray.h"
-#include "PinyinArray.h"
+#include "PYString.h"
+#include "PYPhraseArray.h"
+#include "PYPinyinArray.h"
 
 #define FILL_GRAN (12)
 
similarity index 98%
rename from src/PinyinArray.h
rename to src/PYPinyinArray.h
index 2377ae6..e48f17c 100644 (file)
@@ -22,7 +22,7 @@
 #define __PY_PINYIN_ARRAY_H_
 
 #include <vector>
-#include "Types.h"
+#include "PYTypes.h"
 
 namespace PY {
 
similarity index 98%
rename from src/PinyinEditor.cc
rename to src/PYPinyinEditor.cc
index 1fe0498..5200113 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "PinyinEditor.h"
-#include "Config.h"
-#include "PinyinProperties.h"
-#include "SimpTradConverter.h"
-#include "HalfFullConverter.h"
+#include "PYPinyinEditor.h"
+#include "PYConfig.h"
+#include "PYPinyinProperties.h"
+#include "PYSimpTradConverter.h"
+#include "PYHalfFullConverter.h"
 
 namespace PY {
 
similarity index 98%
rename from src/PinyinEditor.h
rename to src/PYPinyinEditor.h
index cf62ae4..9e83228 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __PY_PINYIN_EDITOR_H_
 #define __PY_PINYIN_EDITOR_H_
 
-#include "PhoneticEditor.h"
+#include "PYPhoneticEditor.h"
 
 namespace PY {
 
similarity index 97%
rename from src/PinyinEngine.cc
rename to src/PYPinyinEngine.cc
index 17199b9..1625bc5 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "PinyinEngine.h"
+#include "PYPinyinEngine.h"
 #include <string>
-#include "Config.h"
-#include "PunctEditor.h"
-#include "RawEditor.h"
+#include "PYConfig.h"
+#include "PYPunctEditor.h"
+#include "PYRawEditor.h"
 #ifdef IBUS_BUILD_LUA_EXTENSION
-#include "ExtEditor.h"
+#include "PYExtEditor.h"
 #endif
-#include "FullPinyinEditor.h"
-#include "DoublePinyinEditor.h"
-#include "FallbackEditor.h"
+#include "PYFullPinyinEditor.h"
+#include "PYDoublePinyinEditor.h"
+#include "PYFallbackEditor.h"
 
 namespace PY {
 
similarity index 97%
rename from src/PinyinEngine.h
rename to src/PYPinyinEngine.h
index 96bf731..4e98256 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef __PY_PINYIN_ENGINE_H_
 #define __PY_PINYIN_ENGINE_H_
 
-#include "Engine.h"
-#include "PinyinProperties.h"
+#include "PYEngine.h"
+#include "PYPinyinProperties.h"
 
 namespace PY {
 
similarity index 99%
rename from src/PinyinParser.cc
rename to src/PYPinyinParser.cc
index 2c16ec0..5114606 100644 (file)
 
 #include <cstring>
 #include <cstdlib>
-#include "PinyinParser.h"
+#include "PYPinyinParser.h"
 
 namespace PY {
 
-#include "Bopomofo.h"
-#include "PinyinParserTable.h"
+#include "PYBopomofo.h"
+#include "PYPinyinParserTable.h"
 
 static gboolean
 check_flags (const Pinyin *pinyin, guint option)
similarity index 97%
rename from src/PinyinParser.h
rename to src/PYPinyinParser.h
index b948197..702d87a 100644 (file)
@@ -22,8 +22,8 @@
 #define __PY_PARSER_H_
 
 #include <glib.h>
-#include "String.h"
-#include "PinyinArray.h"
+#include "PYString.h"
+#include "PYPinyinArray.h"
 
 namespace PY {
 
similarity index 98%
rename from src/PinyinProperties.cc
rename to src/PYPinyinProperties.cc
index f4e4b0e..3461c35 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "PinyinProperties.h"
+#include "PYPinyinProperties.h"
 #include <libintl.h>
-#include "Text.h"
-#include "Config.h"
+#include "PYText.h"
+#include "PYConfig.h"
 
 namespace PY {
 
similarity index 97%
rename from src/PinyinProperties.h
rename to src/PYPinyinProperties.h
index 68fcd6b..b21fcb5 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef __PY_PINYIN_PROPERTIES_H_
 #define __PY_PINYIN_PROPERTIES_H_
 
-#include "Signal.h"
-#include "Property.h"
+#include "PYSignal.h"
+#include "PYProperty.h"
 
 namespace PY {
 
similarity index 100%
rename from src/Pointer.h
rename to src/PYPointer.h
similarity index 98%
rename from src/Property.h
rename to src/PYProperty.h
index 09429c4..801e856 100644 (file)
@@ -22,8 +22,8 @@
 #define __PY_PROPERTY_H_
 
 #include <ibus.h>
-#include "Object.h"
-#include "Text.h"
+#include "PYObject.h"
+#include "PYText.h"
 
 namespace PY {
 
similarity index 99%
rename from src/PunctEditor.cc
rename to src/PYPunctEditor.cc
index f4b6a2e..091d639 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "Config.h"
-#include "PunctEditor.h"
+#include "PYConfig.h"
+#include "PYPunctEditor.h"
 
 namespace PY {
 
-#include "PunctTable.h"
+#include "PYPunctTable.h"
 
 PunctEditor::PunctEditor (PinyinProperties & props, Config & config)
     : Editor (props, config),
similarity index 98%
rename from src/PunctEditor.h
rename to src/PYPunctEditor.h
index 80b9ad8..0035813 100644 (file)
@@ -22,8 +22,8 @@
 #ifndef __PY_PUNCT_EDITOR_
 #define __PY_PUNCT_EDITOR_
 
-#include "LookupTable.h"
-#include "Editor.h"
+#include "PYLookupTable.h"
+#include "PYEditor.h"
 
 namespace PY {
 
similarity index 100%
rename from src/PunctTable.h
rename to src/PYPunctTable.h
similarity index 97%
rename from src/RawEditor.h
rename to src/PYRawEditor.h
index 2b55cbe..0257142 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __PY_RAW_EDITOR_
 #define __PY_RAW_EDITOR_
 
-#include "Editor.h"
+#include "PYEditor.h"
 
 namespace PY {
 
similarity index 100%
rename from src/Regex.h
rename to src/PYRegex.h
similarity index 98%
rename from src/Signal.h
rename to src/PYSignal.h
index 7454039..6721493 100644 (file)
@@ -21,8 +21,9 @@
 #ifndef __PY_SIGNAL_H_
 #define __PY_SIGNAL_H_
 
+
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#  include <config.h>
 #endif
 
 #ifdef HAVE_BOOST_SIGNALS2_HPP
similarity index 97%
rename from src/SimpTradConverter.cc
rename to src/PYSimpTradConverter.cc
index e2dc1b3..4ea6c0a 100644 (file)
@@ -23,7 +23,7 @@
 #  include "config.h"
 #endif
 
-#include "SimpTradConverter.h"
+#include "PYSimpTradConverter.h"
 
 #ifdef HAVE_OPENCC
 #  include <opencc.h>
@@ -32,8 +32,8 @@
 #  include <cstdlib>
 #endif
 
-#include "Types.h"
-#include "String.h"
+#include "PYTypes.h"
+#include "PYString.h"
 
 namespace PY {
 
@@ -119,7 +119,7 @@ static gint _cmp (gconstpointer p1, gconstpointer p2)
     return _xcmp (pp[0], pp[1], s2[0]);
 }
 
-#include "SimpTradConverterTable.h"
+#include "PYSimpTradConverterTable.h"
 
 void
 SimpTradConverter::simpToTrad (const gchar *in, String &out)
similarity index 96%
rename from src/SpecialPhrase.cc
rename to src/PYSpecialPhrase.cc
index 65f65b6..879964a 100644 (file)
@@ -18,7 +18,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "SpecialPhrase.h"
+#include "PYSpecialPhrase.h"
 
 namespace PY {
 
similarity index 100%
rename from src/SpecialPhrase.h
rename to src/PYSpecialPhrase.h
similarity index 96%
rename from src/SpecialPhraseTable.cc
rename to src/PYSpecialPhraseTable.cc
index 7e6b6e4..7790798 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-#include "SpecialPhraseTable.h"
+#include "PYSpecialPhraseTable.h"
 #include <fstream>
-#include "DynamicSpecialPhrase.h"
-#include "SpecialPhrase.h"
+#include "PYDynamicSpecialPhrase.h"
+#include "PYSpecialPhrase.h"
 
 namespace PY {
 
similarity index 100%
rename from src/String.h
rename to src/PYString.h
similarity index 98%
rename from src/Text.h
rename to src/PYText.h
index f286eb1..5042c31 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <string>
 #include <ibus.h>
-#include "Object.h"
+#include "PYObject.h"
 
 namespace PY {
 
similarity index 100%
rename from src/Types.h
rename to src/PYTypes.h
similarity index 99%
rename from src/Util.h
rename to src/PYUtil.h
index bb3a712..1e22089 100644 (file)
@@ -22,7 +22,7 @@
 #define __PY_UTIL_H_
 
 #ifdef HAVE_CONFIG_H
-#  include "config.h"
+#  include <config.h>
 #endif
 
 #if defined(HAVE_UUID_CREATE)