Author Archives: Luca Beltrame

KDE Platform, Workspaces and Applications 4.10.3 for openSUSE

KDE released 4.10.3 versions of the Platform, Workspaces and Applications yesterday, with more than 70 bugs being fixed. Notably:

  • Several fixes in handling encrypted mails in KMail
  • Fixes for KDEPIM syncing and ownCloud
  • A number of improvements in Dolphin, including crash fixes
  • Optimizations in the Plasma Workspaces
The full list has other important changes.
As usual, there are two different repositories from which you can get them:
  • KDE:Distro:Factory in case you are interested in contributing to packaging for the next openSUSE release;
  • KDE:Release:410 (openSUSE 12.3 or openSUSE 12.2) in case you just want to upgrade to the latest and greatest version
In case you upgrade now, you should be aware of an issue with KDM that makes it not start: thankfully there’s a workaround available, and updated packages are already being built by the OBS, so it will be solved soon.

Report bugs in packaging to Novell’s Bugzilla, and bugs in the software directly to KDE.
Have fun with 4.10.3!

Accessing Casio EX-WORD 電子辞書 from Linux

I’m a (happy!) owner of a Casio EX-WORD Dataplus 5 XD-A4700, a Japanese electronic dictionary. Recently I looked into updating the Japanese-English dictionary (currently the Shogakukan PROGRESSIVE dictionary) installed, because it’s not good enough: too often when looking up odd sentences (like the ones in Fate/Extra CCC) I do not find any matches.

EDICT is adequate, and while I can use it on my phone and tablet, I like the fact that the EX-WORD has a physical keyboard along with the stylus, and a very nice kanji handwriting recognition. After a bit of looking, I found the 5th Edition of the New Kenkyusha dictionary, offered as microSD card,  to be what I needed (but a bit pricey, 10,500 yen on Amazon, and that’s heavily discounted!).

There’s of course one little problem. Although these products have accompanying software, it is in Windows format only.And I’m using Linux. Of course I could just plug in the microSD, but what if I wanted to to move the dictionaries to the main internal memory?  What to do? Although there’s an USB port, the EX-WORD does not operate like a USB mass storage device: communicaation is done through OBEX and specific commands to load, view and install dictionaries (along with listing, download and upload files to the SD card and the internal memory).

Looking through the Internet led me to the libexword project, a library which provides a way to access these electronic dictionaries and a command-line application, and this post deals on how I made it work for me (but notice, it may not work for you).

First of all we needed a checkout of the sources:

git clone https://github.com/brijohn/libexword.git

Then we need to switch branches, because most of the ongoing work is not in the master branch, but instead in the 2.0-dev branch.

cd libexword
git checkout -b 2.0-dev origin/2.0-dev

To this point onwards you’ll need autotools (autoconf, automake) and the libusb development headers installed, along with Python and SWIG (a bindings generator). Run then

./autogen.sh
./configure --prefix=<prefix> # I used /usr for system wide install

If you don’t specify a prefix, the library and the application will be installed to /usr/local. autogen.sh may complain about a missing AM_PROG_AR (it did on my openSUSE system), so edit configure.ac and add AM_PROG_AR around line 15, then rerun autogen.sh.

After this, issue

make
sudo make install

Or become root and issue make install (assuming you’re installing to a system prefix).

Next, you need to get your 電子辞書 and connect it via USB. The kernel will not seem to find it, but it’s normal. Hit the お気に入り/ライブラリー key twice on the dictionary, then move with the arrows until you highlight 通信 (aka “transmission”). After that, push the translate button (訳) and you’ll see the Linux kernel identifying our dictionary (strings may change depending on the model):

usb 2-1.6.1: USB disconnect, device number 8
usb 2-1.6.1: new high-speed USB device number 9 using ehci-pci
usb 2-1.6.1: New USB device found, idVendor=07cf, idProduct=6101
usb 2-1.6.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1.6.1: Product: CESG502
usb 2-1.6.1: Manufacturer: CESG502

Now we need to access the dictionary. However, unless you set up specific rules in udev, only root will be able to access the device. You can create a file in /etc/udev/rules.d called 99-exword.rules with the following:

SUBSYSTEM=="usb", ATTR{idVendor}=="07cf",ATTR{idProduct}=="6101",  MODE="0666"

and then refresh the rules with

udevadm control --reload-rules

After all of this is done, run exword and connect to the device:

$ exword
Exword dictionary tool.
Type 'help' for a list of commands.
>> connect
connecting to device...done
\_INTERNAL_00\ >>

“connect” takes different options: check with “help connect” for what you need specifically.

We can change between paths using the setpath command:

setpath drv0:/// # Root of internal memory
setpath crd0:/// # Root of SD
setpath drv0:///CASIOTXT # Move to the CASIOTXT directory in the internal memory

Notice however that some directories can’t be accessed.

You can list files with the list command (a truncated output shown below):

\_INTERNAL_00\ >> list
<sys_bak>
maintch.wrk
fav.inf
line3.inf
linecd.inf
<SOUND>
<CASIOTXT>
drvvewer.inf
lngfile.inf
<data>

There are also other commands: use “help” to see them all. Issue “disconnect” when you are done, and “exit” to exit the program.

There’s also a Python binding made using SWIG: I’ve yet to play with it.

The libexword developer has also created some GUI tools to mimic the Windows EX-WORD tools (which, it must be noted, work only with the Japanese dictionaries). You can get them at the exword-tools git repo. The procedure for installing them is the same as above (including the modification to configure.ac). You’ll need the development headers of wxWidgets, however, as this is a GUI application.

After installing, you can launch ExwordLibrary, ExwordTextLoader and ExwordLibraryInstaller. The latter is required to install new dictionaries, and unfortunately involves getting a Windows executable and placing it under PREFIX/share/exword, where PREFIX is the path you gave to the libexword configure script. This also means you need wine to run it.

Once that is done, you can use the library application:
exwordlib

 

or the installer to install dictionaries:

exword-dict

And that’s all. I hope this has been useful for using your electronic dictionary with Linux!

KDE Platform, Workspaces and Applications 4.10.2 packages available for openSUSE

KDE has released its monthly update for the 4.10 release, and after a brief wait while the Open Build Service worked over the released tarballs, the openSUSE KDE team is pleased to announce the availability of the 4.10.2 release packages for openSUSE 12.2 and 12.3.

KDE Plasma Workspaces 4.10.2 and Dolphin

Despite being a minor release, more than 100 bugs were fixed, in particular there were many KDEPIM fixes touching both the low level stack and KMail/KAddressbook/Kontact. Some highlights on the fixed issues:

  • Issues creating IMAP folders with KDEPIM (KDE bugs 291143292418305987)
  • Issues with encrypted mails in KDEPIM (KDE bugs 301088313478)
  • KMail not creating required folders at startup (KDE bug 303117)
  • Crashes when using the semantic desktop framework (KDE bug 313478)
  • Improvements to CalDAV support in KDEPIM

And this is just a small part of the complete list.

As usual, packages live in the KDE:Release:410 (openSUSE 12.3openSUSE 12.2) repository. You can add the repositories through zypper or YaST.

The KDE:Distro:Factory repository has also been updated. If you want to contribute and help KDE packaging in openSUSE, use the KDE:Distro:Factory version, otherwise stick to the KDE:Release:410.

The package manager may complain about needing a downgrade of the branding packages: it is harmless, as some packages were splitted and as such they report a lower version number. Just accept the downgrade in the branding packages and all will be well.

Report bugs in packaging to Novell’s Bugzilla, and bugs in the software directly to KDE.

Have fun with 4.10.2!

KDE Platform, Workspaces and Applications 4.10 available for openSUSE

Hot on the heels of the announcement from KDE, the openSUSE KDE team is happy to announce the availability of packages for the latest stable release of the KDE Platform, Workspaces, and Applications.

Packages are available in the KDE:Distro:Factory repository (which is where the packages to land in 12.3 are tested) for openSUSE Factory (soon to be 12.3) and openSUSE 12.2 and soon (when the Open Build Systen finishes rebuilding a number of packages) in the KDE:Release:410  repository for openSUSE 12.2 users.

If you want to contribute and help KDE packaging in openSUSE, use the KDE:Distro:Factory version, otherwise stick to the KDE:Release:410 repository.

Enjoy!