Archive for July, 2005

Phonethica is going to have a presentation of the project at ICHIM, an international conference which is to take place in Paris, September 21-23. 2005

Digital Culture & Heritage

ICHIM 05, the Ninth International Cultural Heritage Informatics Meeting will take place from September 21-23. 2005 at the Bibliotheque Nationale de France, and at the Cite Internationale de […]

QCを使ってインタフェースを作って行く過程で、QCではできないこと、問題点等が見えてきた。QCの制限をいかにまとめる。

1. shiftやoptionなどのmodifierキーの状態をしらべる方法がない。
一般のキー (a, b, 1, A, &などなど)の状態は”Keyboard”パッチで得られる。

2. Iteratorのなかのサブパッチは互いに独立ではない
Iteratorは、中のサブパッチを指定回数だけ繰り返すパッチ。本当に単純に繰り返すだけなので、中のオブジェクトの状態は繰り返しごとに独立ではない。

3. Consumerパッチは出力ポートを持てない
QCのパッチは、Consumer(ピンク), Processor (グリーン), Provider(ブルー)の三つのタイプに大別される。このうちレンダリングを行うConsumerパッチ(ピンク色)は、アウトプットのポートがもてない。たとえば、上のIteratorもConsumerのひとつなので、繰り返しにあわせて何か値を出力するといったことは不可。

RE:Activism

14Jul05

Phonethica is going to have a presentation of the project at RE:Activism, an international conference which is to take place in Budapest, October 14-15. 2005.

RE:Activism: Re-drawing the Boundaries of Activism in a new media environment
The problematics
The emergence of the internet and other information technologies gave birth to a plethora of new social and communicative […]

辞書データのフォーマットを解析する方法。
正規表現 (Regular Expression)を使う。Objective-Cには正規表現のクラスが用意されていない。以下のサードパーティー製のライブラリのいずれかを使う必要がある。

1. AGRegex,
2. MOKit,
3. OmniFoundation,
4. PCRE

この中でも特に一般的な正規表現の使い方に近いPCRE (Perl Compatible Regular Expressions) を利用することにした。

PCREのインストール

インストール

./configure –enable-utf8
make
sudo make install
使うときには
regexec([str UTF8String]. …)

と思いきや… Cocoa上では異様に動作が重い。つかいかたがおかしいのか… 1時間ほど試行錯誤したが、理由がまったくわからないため、Cocoaから直接正規表現を使うことはあきらめる。
以前のポストでも書いた、Pythonの正規表現をつかって、辞書データをCSVファイルに書き換え、それをCocoaから呼ぶことにした。

今週は、言語データベースをMac上で構築することが課題になっている。まずはTigerで導入された、CoreDataの仕組みを使ってDBの枠組みを作り、そこにオンラインで公開されている辞書データを流し込む。

1. CoreData上のデータモデリング

メインの”Word” Entityのほかに、それが何語なのかを表す “Language” Entity、言語がどこで話されているのか、地域を表す”Region” Entityなどを用意した。Wordは、単語のスペル、発音記号列、対訳の各属性と、言語、対訳に使った言語への関係(Language entityとのRelation)を保持する。

2. データのインポート
テストに使用するのは、5月25日のポストに書いたオンライン上のフリー辞書。まずは英語、フランス語、ドイツ語、オランダ語を使う。

CoreDataメモ
* Application Supportフォルダのパス
FSRef foundRef;

OSErr err = FSFindFolder(kUserDomain, kApplicationSupportFolderType, kDontCreateFolder, &foundRef); // ユーザ
もしくは
OSErr err = FSFindFolder(kSystemDomain, kApplicationSupportFolderType, kDontCreateFolder, &foundRef); // システム


Project Phonethica

Combining scientific technology and art, Phonethica is an interdisciplinary project which explores the diversity of the world, through the phonetics of its 6,000 languages.

 
best oem soft acrobat 8 for mac oem buy replica mobile