Gtk2-Unicode (Abiword etc.), Font DejaVu (cyrillic,vietnam)

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

Gtk2-Unicode (Abiword etc.), Font DejaVu (cyrillic,vietnam)

#1 Post by MU »

Image

Seems to work with vietnamese and cyrillic.
There is a related project for yiddish and more, but I did not include that yet:
http://gtk-im-extra.sourceforge.net/

This is simple to use:
install the Dotpup, run the new Dotpup-menuentry once, start Abiword.
With a rightclick -> input methods choose cyrillic or vietnamese (Telex).
Choose the font "DejaVu" for your text ( 2.6, from http://dejavu.sourceforge.net/wiki/index.php/Main_Page ).

Download (3 MB, 6 MB extracted):
http://dotpups.de/dotpups/Libraries/Gtk ... u-font.pup

It seems, you will not need to set up UTF-locale stuff, I can even use it with LANG=de_DE (no UTF).
If I am wrong, tell me, and I will help you.

The modules itself are very small, just the included ldconfig and the font make it so huge.

I took the Unicode-modules from Mandriva LE2005, the vietnamese module I compiled myself ( from http://freshmeat.net/projects/gtk-im-vi/ ).

They seem to use other keycombinations than "x-unikey" introduced by Hacao in the language-wiki.
I tried a selfcompiled unikey 1.04, and also http://xvnkb.sourceforge.net/, but had no success. Spent a whole night with that :roll:
For a short moment, unikey worked, but then never again.
I don't know what I messed up :oops:

Mark

User avatar
Hacao
Posts: 226
Joined: Thu 11 Aug 2005, 03:27
Location: Saigon, Vietnam
Contact:

Re: Gtk2-Unicode (Abiword etc.), Font DejaVu (cyrillic,vietn

#2 Post by Hacao »

MU wrote: For a short moment, unikey worked, but then never again.
Mark
How do that ?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=44675]Hacao Linux 2009 CE released ![/url]

[url=http://hacao.com]Hacao.com[/url] English & Vietnamese !

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#3 Post by phantrongnghia »

Oh,now i can typing vietnamese (installed xvnkb)!
But some problem occurred:
-Af ter i install ldconfig-gtk2-unicode,abiword not run!
And
x-unikey typing in telex mode(from vietnamese puppy):
Tieengs Vieetj -> Tiếng Việt
but ldconfig-gtk2-unicode :
Tieesng Vieejt -> Tiếng Việt
and in hacao puppy:
when type [ it display ơ
when type ]it display ư(still true)
but it spend more time
When I run abiword from console:

(abiword:3542): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed

(abiword:3542): Gtk-CRITICAL **: gtk_widget_queue_resize: assertion `GTK_IS_WIDGET (widget)' failed

(abiword:3542): GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

(abiword:3542): GLib-GObject-CRITICAL **: g_signal_emit_valist: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(abiword:3542): GLib-GObject-CRITICAL **: g_object_notify: assertion `G_IS_OBJECT (object)' failed
And I can not type in mozilla,geany...
I hope you shall fix all problem
thanks
But i am very interested:
Image

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

Hacao, I compiled x-unikey 1.04:
http://prdownloads.sourceforge.net/unik ... .4.tar.bz2

I ran it like this:
export LANG=en_US.UTF-8
export GTK_IM_MODULE="xim"
export XMODIFIERS="@im=unikey"

unikey&
abiword

This only worked immedeatly after compiling unikey, after a reboot, it did not work again.
It still is partially working, when you type
"Tiee" in Abiword, it removes the "ee", but it does not insert the new vietnamse "e".

To get the en_US.UTF-8 , I copied the folder from /usr/X11R6/lib/X11/locale from Mandriva-Linux to Puppy, also /usr/share/locale/en_US.UTF-8 and /usr/lib/locale/en_US.UTF-8.

I also copied the vietnamese locale from Hacao-Linux 1.0.6.


----------------------------------------
phantrongnghia:

I don't understand why it breaks your Abiword.
You can uninstall it in Pupget, to fix your Abiword.

I will do some more tests in the next days.
Mark

User avatar
Hacao
Posts: 226
Joined: Thu 11 Aug 2005, 03:27
Location: Saigon, Vietnam
Contact:

Configure error !

#5 Post by Hacao »

Hi !

I followed your way, but it error at ./configure here

Code: Select all

checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
./configure: line 4909: syntax error near unexpected token `))'
./configure: line 4909: `    (test "X$CXX" != "Xg++"))) ; then'
# 
What your fixed it ?

Thanks,
Attachments
configure.jpg
(156.82 KiB) Downloaded 2228 times
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=44675]Hacao Linux 2009 CE released ![/url]

[url=http://hacao.com]Hacao.com[/url] English & Vietnamese !

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

oh yes, you must replace ))) with ) ) )

There are 3 or 4 lines.

Wait, I upload the corrected source...
http://dotpups.de/tests/x-unikey-1.0.4.tgz

I compiled with
./configure --prefix=/usr

Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#7 Post by phantrongnghia »

Can you give me your locale folder,MU?
I do not install Mandriva and other distro,i also install puppy
Thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

http://dotpups.de/tests/x-unikey.pup

Notes:

This does not work correct, it is just for tests!

It has a script for tests, you can edit it so set variables:
/usr/local/x-unikey/test-x-unikey

It includes
/usr/lib/en_US.UTF-8
and
/usr/share/en_US.UTF-8

I also added a folder
/usr/local/x-unikey/X11R6/lib/X11/locale

You can copy those files manually to
/usr/X11R6/lib/X11/locale

I don't know if this one is needed.
This will overwrite some of Puppys files, so I did not make it to install automatically.
You might use a new pup001 or backup first your whole
/usr/X11R6/lib/X11/locale

If it fails, you could try to compile unikey yourself again with the Source I posted for Hacao.

Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#9 Post by phantrongnghia »

I did all you say
But I could not type vietnamese in Abiword(i installed from source of you and x-unikey.pup)
Thanks

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#10 Post by phantrongnghia »

I asked in Vietnamese Open Source Software Forum
mrchuoi wrote:
In Abiword 2.2 and later changed key processor and conflict with XIM and other appication use XIM (such as:xvnkb,x-unikey) can not work.All version
Abiword 2.0.x and older work well

mydomain2
Posts: 2
Joined: Sat 03 Nov 2012, 22:26

This is for Hacao

#11 Post by mydomain2 »

Hi,

Could you share Viet typing that Hacao uses? Is it in PET?

Cam on

Post Reply