Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199723 - app-i18n/tomoe-0.6.0 gives no suggestions
Summary: app-i18n/tomoe-0.6.0 gives no suggestions
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 02:25 UTC by David Barnett
Modified: 2008-08-16 21:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Barnett 2007-11-20 02:25:31 UTC
When I draw strokes, I can't get any suggestions to show up in the suggestion box of tomoe, even if I click on Find. I found that if I run from the command line, I get the following errors:
(tomoe:27488): Pango-CRITICAL **: pango_font_description_from_string: assertion `str != NULL' failed

(tomoe:27488): Pango-CRITICAL **: pango_font_description_from_string: assertion `str != NULL' failed

The results are the same if I run with LANG=ja.

I can't tell whether it's actually pointing to a valid dictionary, but at least with LANG=ja it should be. I'm not sure exactly when it broke, but I know I had 0.5.0 running properly.

Reproducible: Always

Steps to Reproduce:
1.run LANG=ja scim-tomoe
2.draw strokes
3.click "Find"

Actual Results:  
Absolutely none

Expected Results:  
Suggestions to appear in suggestion panel
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-20 07:28:11 UTC
Post emerge --info output and pango/glib version please...
Comment 2 David Barnett 2007-11-21 00:20:29 UTC
# emerge --info
Portage 2.1.3.19 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 AMD Opteron(tm) Processor 142
Timestamp of tree: Sun, 18 Nov 2007 02:16:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6, 2.5.1-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://130.59.10.34/ftp/mirror/gentoo/ ftp://130.59.10.35/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa ao apache2 avi bash-completion berkdb bitmap-fonts cairo cdr cjk cli cracklib crypt cups dbus divx4linux dri dvd dvdr eds emboss encode fam fbcon firefox flac fortran gcj gd gdbm gif glut gpm gstreamer gtk gtk2 hal iconv ipv6 isdnlog jack javascript jpeg ldap libcaca mad midi mikmod mmx mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pda pdf perl png posix ppds pppd python qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg svga tcpd tetex theora truetype truetype-fonts type1-fonts unicode vorbis win32codecs wmf x86 xml xorg xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[I--] [  ] dev-libs/glib-1.2.10-r5 (1)
[I--] [  ] dev-libs/glib-2.14.3 (2)

[I--] [  ] x11-libs/pango-1.18.3 (0)
Comment 3 Jens Mueller 2008-02-09 12:54:40 UTC
Confirmed.

# emerge --info
 * Overlay eclasses override eclasses from PORTDIR:
 *
 *   '/usr/portage/local/layman/kde/eclass/subversion.eclass'
 *   '/usr/portage/local/layman/vmware/eclass/vmware.eclass'
 *   '/usr/portage/local/layman/vmware/eclass/vmware-mod.eclass'
 *
 * It is best to avoid overridding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to run `emerge --regen` after each time that you run `emerge
 * --sync`. Set PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you
 * would like to disable this warning.
Portage 2.1.4.1 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-suspend2-r1 x86_64)
=================================================================
System uname: 2.6.22-suspend2-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Fri, 08 Feb 2008 16:46:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.osuosl.org/  http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://130.59.10.34/mirror/gentoo/ http://130.59.10.35/mirror/gentoo/"
LANG="de_DE.utf-8"
LC_ALL="de_DE.utf-8"
LINGUAS="de cz it fr en zh_CN zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/sda5/usr-tmp-portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/royratcliffe /usr/portage/local/layman/vmware /usr/portage/local/layman/nx /usr/portage/local/layman/kde /usr/local/portage /usr/local/overlays/matsuu/secondlife"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl alsa amd64 arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt css cups dri dvd dvdr encode exif ffmpeg flac fortran gdbm geoip gnome gpm gtk gtk2 iconv immqt-bc ipv6 isdnlog java jpeg jpeg2k kde ldap matroska midi mmx mozilla mp3 mplayer mtp mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pango pcre pdf perl png pppd python qt qt3 qt4 quicktime rar readline realmedia reflection samba sasl session spl sse sse2 ssl svg tcpd theora tiff truetype truetype-fonts type1 type1-fonts unicode vorbis xorg xosd xprint xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de cz it fr en zh_CN zh_TW" USERLAND="GNU" VIDEO_CARDS="nvidia vga vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

[I] dev-libs/glib
     Installed versions:  1.2.10-r5(1)(20:19:18 13.12.2006)(-hardened)
                          2.14.5(2)(23:45:54 02.02.2008)(-debug -doc -hardened)


[I] x11-libs/pango
     Installed versions:  1.18.4(23:48:11 02.02.2008)(-debug -doc)
Comment 4 Jens Mueller 2008-02-09 13:04:05 UTC
Submitted also to upstream ...

http://sourceforge.net/tracker/index.php?func=detail&aid=1890135&group_id=193138&atid=944217
Comment 5 David Barnett 2008-02-12 01:41:22 UTC
I have been working with the tomoe crew on their mailing list and I think we're close to a solution. A few intermediate results to report:

First, the pango warnings are completely unrelated. They seem to come from scim-tomoe whereas the missing suggestions seem to be a problem with tomoe itself.

tomoe's unit tests and other experiments show that tomoe is coming up with no candidates rather than candidates being found but not displayed properly. The issue probably involves glib, which is what tomoe uses to parse the XML dictionaries.
Comment 6 David Barnett 2008-06-30 23:09:31 UTC
Doh! I didn't see that tomoe had changed its dictionary selection in 0.6.0 and defaults to *no* dictionary. 'ln -s /usr/share/tomoe/recognizer/{handwriting-ja.xml,handwriting.xml}' fixed it.

Maybe there should be some einfo warning about the behavior change in the ebuild. I'm not even sure which package that would be, but Ubuntu docs say to run 'LANG=ja LC_MESSAGES=ja scim-tomoe' (which didn't help for me), so I guess it would be in scim-tomoe.
Comment 7 Jens Mueller 2008-08-16 21:19:34 UTC
Umm? What exactly does that mean?

Will there be a new version? Does the user have to do something?

> 'ln -s
/usr/share/tomoe/recognizer/{handwriting-ja.xml,handwriting.xml}' fixed it.

In what directory?
Comment 8 Jens Mueller 2008-08-16 21:38:47 UTC
Umm, yeah, got it.

But it's not really nice that you have to manually create links in portage-controlled directories ...