Loading

#Memo - Installing iBus-Waitzar Burmese Input Method on Ubuntu and Zawgyi

Download waitzar source to ~/src folder, or anywhere.

svn checkout http://waitzar.googlecode.com/svn/trunk ~/src/waitzar

Download scim-waitzar source to ~/src too

svn checkout http://scim-waitzar.googlecode.com/svn/trunk ~/src/scim-waitzar

you need scons to build both, if you already have, dont need this.

sudo apt-get install scons

go to ~/src/waitzar/cross_platform_library

cd ~/src/waitzar/cross_platform_library

create waitzar.pc with follow content

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: waitzar
Description: Encapsulation of the WaitZar language model & related APIs.
Version: 1.0.0
Libs: -L${libdir} -lwaitzar
Cflags: -I${includedir}/waitzar

OR you can just rename waitzar.pc.in to waitzar.pc

then type

scons

if everything is fine, do

sudo scons install

and then libwaitzar should install into system properly

then go to ibus-waitzar

cd ~/src/scim-waitzar/ibus-waitzar

then build, and install it, make sure you running iBus already.

scons

sudo scons install

then in iBus menu, Restart it.

and add Waitzar from iBus Preferences



by default its with Unicode 5.1

so update few things to support Zawgyi

sudo gedit /usr/share/ibus-waitzar/engine/engine.py

go to line 88

change ENCODING_UNICODE to ENCODING_ZAWGYI

go to line 599

change libwaitzar.encoding.unicode to libwaitzar.encoding.zawgyi

restart iBus from menu.

Cheers,

8 comments:

ak said...

Dear Mark,
I cannot install the Waizar in Ubuntu 9.10.I type the first command,it show this error.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package checkout
Pls help to me.
Thanks and best Regards,

ak said...

Dear Mark,
I installed step by step at my Ubuntu9.10.In this step,I have a problem.pleas help to me.
~$ cd ~/src/waitzar/cross_platform_library
aung@aung:~/src/waitzar/cross_platform_library$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [waitzar/fontconv.os] Source `waitzar/fontconv.cpp' not found, needed by target `waitzar/fontconv.os'.
scons: building terminated because of errors.

Thanks

ak said...

~$ cd ~/src/waitzar/cross_platform_library
aung@aung:~/src/waitzar/cross_platform_library$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: *** [waitzar/fontconv.os] Source `waitzar/fontconv.cpp' not found, needed by target `waitzar/fontconv.os'.
scons: building terminated because of errors.
Thanks

မာ့ခ္ said...

Hi, try libwaitzar 1.0.1 from download list

http://code.google.com/p/waitzar/downloads/list

he reorganizing the folders, its still in the middle i think.

you can copy /waitzar/Burglish/fontconv.* to /waitzar though.

but better download from download link, its should work.

rgds,

ak said...

Dear Mark,
I still have a problem.
aung@aung:~/src/waitzar/cross_platform_library$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o waitzar/fontconv.o -c -I/usr/include/python2.6 -I/usr/include/boost waitzar/fontconv.cpp
waitzar/fontconv.cpp:18:22: error: fontconv.h: No such file or directory
waitzar/fontconv.cpp: In function 'void waitzar::convertFont(wchar_t*, const wchar_t*, int, int)':
waitzar/fontconv.cpp:27: error: 'CHAR_RANGE' was not declared in this scope
waitzar/fontconv.cpp:32: error: 'CHAR_BUFFER' was not declared in this scope
waitzar/fontconv.cpp:34: error: 'FVLEN' was not declared in this scope
waitzar/fontconv.cpp:36: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:37: error: 'srcValHash' was not declared in this scope
waitzar/fontconv.cpp:37: error: 'VIRTUAL_OFFSET' was not declared in this scope
waitzar/fontconv.cpp:46: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:47: error: 'srcExtHash' was not declared in this scope
waitzar/fontconv.cpp:47: error: 'getExtKey' was not declared in this scope
waitzar/fontconv.cpp:47: error: 'srcValHash' was not declared in this scope
waitzar/fontconv.cpp:64: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:67: error: 'srcExtHash' was not declared in this scope
waitzar/fontconv.cpp:68: error: 'LOBYTE' was not declared in this scope
waitzar/fontconv.cpp:69: error: 'HIBYTE' was not declared in this scope
waitzar/fontconv.cpp:69: error: 'getExtValue' was not declared in this scope
waitzar/fontconv.cpp:84: error: 'srcValHash' was not declared in this scope
waitzar/fontconv.cpp:100: error: 'tmpBuffer' was not declared in this scope
waitzar/fontconv.cpp:104: error: 'VIRTUAL_OFFSET' was not declared in this scope
waitzar/fontconv.cpp:105: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:110: error: 'getExtValue' was not declared in this scope
waitzar/fontconv.cpp:111: error: 'getExtLength' was not declared in this scope
waitzar/fontconv.cpp:112: error: 'cmp' was not declared in this scope
waitzar/fontconv.cpp:113: error: 'getExtKey' was not declared in this scope
waitzar/fontconv.cpp:136: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:137: error: 'getFwdKey' was not declared in this scope
waitzar/fontconv.cpp:138: error: 'getFwdValue' was not declared in this scope
waitzar/fontconv.cpp:140: error: 'Regex' was not declared in this scope
waitzar/fontconv.cpp:140: error: expected ';' before 're'
waitzar/fontconv.cpp:141: error: 're' was not declared in this scope
waitzar/fontconv.cpp:150: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:158: error: 'cpy' was not declared in this scope
waitzar/fontconv.cpp:163: error: 'Regex' was not declared in this scope
waitzar/fontconv.cpp:163: error: expected ';' before 're'
waitzar/fontconv.cpp:164: error: 're' was not declared in this scope
waitzar/fontconv.cpp:170: error: '_f' was not declared in this scope
waitzar/fontconv.cpp:171: error: 'getAfterKey' was not declared in this scope
waitzar/fontconv.cpp:172: error: 'getAfterValue' was not declared in this scope
waitzar/fontconv.cpp:174: error: 'Regex' was not declared in this scope
waitzar/fontconv.cpp:174: error: expected ';' before 're'
waitzar/fontconv.cpp:175: error: 're' was not declared in this scope
waitzar/fontconv.cpp:184: error: 'cpy' was not declared in this scope
scons: *** [waitzar/fontconv.o] Error 1
scons: building terminated because of errors.

မာ့ခ္ said...

Look at error msg properly,

fontconv.h: No such file or directory

I told you, He moved the fontconv.* to ./Burglish/ folder, you have to copy fontconv.* to ./ until he update the build scripts.

monksarana said...

Hello, I desperately need the Zawgyi-One in my SCIM, but I have this problem after I copy the contents of .../waitzar (of the libwaitzar1.0.1.zip) to /waitzar of the cross.. directory. Then when I type "scons", I get this:

sarana@sarana-laptop:~/src/waitzar/cross_platform_library$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o waitzar/fontconv.os -c -fPIC -I/usr/include/python2.6 -I/usr/include/boost waitzar/fontconv.cpp
g++ -o waitzar/fontmap.os -c -fPIC -I/usr/include/python2.6 -I/usr/include/boost waitzar/fontmap.cpp
g++ -o waitzar/lib.os -c -fPIC -I/usr/include/python2.6 -I/usr/include/boost waitzar/lib.cpp
g++ -o waitzar/regex.os -c -fPIC -I/usr/include/python2.6 -I/usr/include/boost waitzar/regex.cpp
g++ -o waitzar/WordBuilder.os -c -fPIC -I/usr/include/python2.6 -I/usr/include/boost waitzar/WordBuilder.cpp
In file included from waitzar/WordBuilder.cpp:7:
waitzar/WordBuilder.h:30:28: error: boost/python.hpp: No such file or directory
In file included from waitzar/WordBuilder.cpp:7:
waitzar/WordBuilder.h:31: error: 'boost' has not been declared
waitzar/WordBuilder.h:31: error: 'python' is not a namespace-name
waitzar/WordBuilder.h:31: error: expected namespace-name before ';' token
scons: *** [waitzar/WordBuilder.os] Error 1
scons: building terminated because of errors.

where can I get this "python.hpp"? I couldn't find it ... please, help me.. thank you :-)

monk Sarana (Czech)

မာ့ခ္ said...

@monksarana, I guess you need boost-python library, which you can download from boost.org or install libboost-python-dev package in linux.

က်ေနာ္ဖတ္ေသာ အျခား ဘေလာ့ / ဆိုဒ္မ်ား