Word 2007で図とオートシェイプがグループ化できずに困っていたのですが、その方法が分かりました。
パソコンのツボ ~Office のTIP: Wordに挿入した写真とオートシェイプがグループ化できない
描画キャンパス内であればグループ化できるとのことです。
これは覚えておくと便利そうです。
2007年9月26日水曜日
2007年9月21日金曜日
Xaira Build 240806 (unstable) リリース
Xaira Build 240806 (unstable)がリリースされています。
[oucs] Xaira Download Page
1.24の正式版とDebianパッケージが出たらインストールし直すかもしれませんが、今のところちゃんと動いているので今はあまり触りたくないという感じです。
ちなみに、Xaira付属のPHPデモプログラムをちょっと改造して、少しだけ使いやすくしています。
今までのところ、簡単にフレーズ検索ができるようにして、フレーズで検索しても結果表示でフレーズ全体が強調表示されるように改造(オリジナルでは検索キーフレーズの最初の一語しか表示されない)しました。
もう少し手を入れて見られるようになったら、公開するかもしれません。
[oucs] Xaira Download Page
1.24の正式版とDebianパッケージが出たらインストールし直すかもしれませんが、今のところちゃんと動いているので今はあまり触りたくないという感じです。
ちなみに、Xaira付属のPHPデモプログラムをちょっと改造して、少しだけ使いやすくしています。
今までのところ、簡単にフレーズ検索ができるようにして、フレーズで検索しても結果表示でフレーズ全体が強調表示されるように改造(オリジナルでは検索キーフレーズの最初の一語しか表示されない)しました。
もう少し手を入れて見られるようになったら、公開するかもしれません。
2007年9月16日日曜日
ローカルのEPWING辞書とWeb辞書を一括して串刺し検索できる「Dicregate」
窓の杜 - 【NEWS】ローカルのEPWING辞書とWeb辞書を一括して串刺し検索できる「Dicregate」
Wikipediaや各種オンライン辞書の画面を多少書き換えて表示してくれるのであれば使いやすいかもしれません。
Wikipediaや各種オンライン辞書の画面を多少書き換えて表示してくれるのであれば使いやすいかもしれません。
2007年9月13日木曜日
xaira 1.24のコンパイルとインストール
Ubuntu 7.04ではPHPのバージョンが上がっていて、xairaの1.23のDebian用パッケージではPHPによる検索が利用できません。
そこで、いろいろ苦心しながら1.24をコンパイルし、インストールして、なんとかxaira_phpのデモが動くようになりました。
以下、1.24のコンパイル・インストールのメモです。
コンパイルに必要なパッケージのインストール
以下のパッケージが必要なので、Synapticでインストールしておきます。
g++
libicu36-dev
libxerces27-dev
zlib1g-dev
libreadline5-dev
コンパイル
$ ./configure --with-php5=/usr/include/php5
$ make
インストール
# make install
しようとすると、xaira_php/Makefileが間違っているらしくエラーになるので、480-481行目の以下の箇所を修正します。
---修正前ここから---
mkdir -p
cp $(libdir)/libphpXaira.so
---修正前ここまで---
---修正後ここから---
mkdir -p /usr/lib/php5/20060613+lfs
cp $(libdir)/libphpXaira.so /usr/lib/php5/20060613+lfs/
---修正後ここまで---
これで
# make install
できるようです。
しかし、これで、付属のPHPプログラム(test2.php)で検索を試みたところ、
Fatal error: Call to a member function getWordList() on a non-object in /foo/bar/test2.php on line 21
というエラーが表示されました。
このtest2.phpをよく見てみると、その20行目は、1.23のdebパッケージ収録のものでは
$server=XairaServer::getXairaServer();
となっていたのが、1.24では
$server=XairaServer::getXairaServer('bnc');
となっていました。
そこで
$server=XairaServer::getXairaServer('corpus1');
と書き換えて試したところ、無事にデモプログラムが検索できました。
同様にtest1.phpなども該当箇所を書き換える必要があります。
さらに、CQLで検索を行うtest1.phpの60行目
echo htmlspecialchars($_GET['query']);
がなぜかエラーになるので、
$modified_query = $_GET['query'];
$modified_query = str_replace("<", "<", $modified_query); $modified_query = str_replace(">", ">", $modified_query);
echo $modified_query;
と書き換えて対処しています。
そこで、いろいろ苦心しながら1.24をコンパイルし、インストールして、なんとかxaira_phpのデモが動くようになりました。
以下、1.24のコンパイル・インストールのメモです。
コンパイルに必要なパッケージのインストール
以下のパッケージが必要なので、Synapticでインストールしておきます。
g++
libicu36-dev
libxerces27-dev
zlib1g-dev
libreadline5-dev
コンパイル
$ ./configure --with-php5=/usr/include/php5
$ make
インストール
# make install
しようとすると、xaira_php/Makefileが間違っているらしくエラーになるので、480-481行目の以下の箇所を修正します。
---修正前ここから---
mkdir -p
cp $(libdir)/libphpXaira.so
---修正前ここまで---
---修正後ここから---
mkdir -p /usr/lib/php5/20060613+lfs
cp $(libdir)/libphpXaira.so /usr/lib/php5/20060613+lfs/
---修正後ここまで---
これで
# make install
できるようです。
しかし、これで、付属のPHPプログラム(test2.php)で検索を試みたところ、
Fatal error: Call to a member function getWordList() on a non-object in /foo/bar/test2.php on line 21
というエラーが表示されました。
このtest2.phpをよく見てみると、その20行目は、1.23のdebパッケージ収録のものでは
$server=XairaServer::getXairaServer();
となっていたのが、1.24では
$server=XairaServer::getXairaServer('bnc');
となっていました。
そこで
$server=XairaServer::getXairaServer('corpus1');
と書き換えて試したところ、無事にデモプログラムが検索できました。
同様にtest1.phpなども該当箇所を書き換える必要があります。
さらに、CQLで検索を行うtest1.phpの60行目
echo htmlspecialchars($_GET['query']);
がなぜかエラーになるので、
$modified_query = $_GET['query'];
$modified_query = str_replace("<", "<", $modified_query); $modified_query = str_replace(">", ">", $modified_query);
echo $modified_query;
と書き換えて対処しています。
2007年8月16日木曜日
OALD7版の付属CD EPWING化
oald7-fpw
これでOALD7版もEPWING化できます。
なお、同じ著者による
wikipedia-fpw
というウィキペディアのEPWING化ツールもあり、こちらも試してみたいところです。
先日COBUILD5版のEPWING化ツール公開もあり、辞書好きにはうれしい展開となっています。
これでOALD7版もEPWING化できます。
なお、同じ著者による
wikipedia-fpw
というウィキペディアのEPWING化ツールもあり、こちらも試してみたいところです。
先日COBUILD5版のEPWING化ツール公開もあり、辞書好きにはうれしい展開となっています。
2007年8月5日日曜日
COBUILD5版の付属CD EPWING化
CobuildConv - Collinsコウビルド英英辞典【改訂第5版 CD-ROM付】JIS X 4081化ツールキット
これでCOBUILD5版がEPWING化できます。
あとは、独自形式のアメリカ版(コウビルド米語辞典)を何とかしたいところです。
これでCOBUILD5版がEPWING化できます。
あとは、独自形式のアメリカ版(コウビルド米語辞典)を何とかしたいところです。
2007年7月26日木曜日
How to install BNCweb (CQP-Edition)
Here's how to install the latest version of BNCweb (CQP-Edition) on Ubuntu 7.04.
The following procedure is based on my installation of BNCweb 4.0 beta on Ubuntu 7.04. Please make necessary changes according to the version of BNCweb and to your system environment.
First, install the following packages, if not installed yet.
mysql-server-5.0
libdbi-perl
libdbd-mysl-perl
libhtml-parser-perl
libparse-recdescent-perl
flex
bison
libncurses5-dev
# mkdir /BNC_XML (* or whatever)
(unzip BNCweb-distribution_Beta.zip)
# mv ~/BNCweb-distribution_Beta/BNCweb-distribution_Beta /BNC_XML/
# cd /BNC_XML/BNCweb-distribution_Beta
# chmod -R 755 cgi-bin
# chmod -R 755 lib_files
# mkdir /BNC_XML/CQP-tempXML
# chmod 777 /BNC_XML/CQP-tempXML
# cd CQP_source
# tar xvzf cwb-2.2.b98a-src.tgz
# cd cwb-3.0
(modify "Makefile.inc")
---
line 36
PLATFORM = linux
line 62
SITE = standard
---
# make clean
# make depend
# make all
# make install
# cd ..
# tar xvzf CWB-Perl-Public-1.1.3b.tar.gz
# cd CWB-Perl-Public
# cd CWB
# perl Makefile.PL
# make
# make test
# make install
# cd ../CQP
# perl Makefile.PL
# make
# make install
# cd ../CL
# perl Makefile.PL
# make
# make install
# cd../WebCqp
# perl Makefile.PL
# make
# make install
# mkdir /BNC_XML/Texts
# cd /BNC_XML/Texts
(copy texts.tar.gz on Disk 1 of BNC-XML to /BNC_XML/Texts/)
# tar xvzf texts.tar.gz
# cd ../BNCweb-distribution_Beta/BNCweb-encoder-0.5b
# mkdir /BNC_XML/registry
# perl EncodeBNC.perl -n BNC-XML -r /BNC_XML/registry/ -f -M 800 -v /BNC_XML/Index/ /BNC_XML/Texts/
(* "-M 800" specifies the allocated memory size (in MB).
It took about 5 hours on a PC with Sempron 3200+ and 2GB memory.)
# perl MakeFreqTables.perl -n BNC-XML -r /BNC_XML/registry/ -f -M 800 -v
(* It took about 50 mins on my PC.)
# cd ../lib_files
(modify "bncConfigXML.pm")
---
line 45
$bwCorpusPath = '/BNC_XML/Texts/';
line 49
$bwTempPath = 'BNC_XML/CQP-tempXML';
line 91
$bwMysqlUser = 'root';
comment out line 92
#$bwMysqlUser = 'bncweb';
comment out line 95
#$bwMysqlPwd = 'test';
line 128
$bwSuperuser = 'your_account'; (specify the administrative account)
line 130
$bwDevelopers = 'your_account'; (specify the administrative account)
---
# cd ../BNCweb-encoder-0.5b
# perl make_MySQL_tables.pl
(When asked the username of MySQL admin and its password, just press [Enter]. When asked about the directory of the tables, just press [Enter].)
(* It took about 1.5 hours on my PC.)
Configure the apache files.
Add the following lines into the appropriate apache config file.
(e.g. just before "</VirtualHost>" in /etc/apache2/sites-available/ssl)
---
Alias /bncwebXML/ /BNC_XML/BNCweb-distribution_Beta/
Alias /bncwebXML /BNC_XML/BNCweb-distribution_Beta/
<Directory /BNC_XML/BNCweb-distribution_Beta>
Options Indexes FollowSymLinks ExecCGI
AuthType Basic
AuthName bncweb
AuthUserFile /etc/bncpass
require valid-user
SetEnv PERL5LIB /BNC_XML/BNCweb-distribution_Beta/lib_files
SetEnv CORPUS_REGISTRY /BNC_XML/registry
</Directory>
ScriptAlias /cgi-binbncXML/ /BNC_XML/BNCweb-distribution_Beta/cgi-bin/
---
Restart apache(2).
Set the password for each user.
Now access http(s)://hostname/cgi-binbncXML/BNCquery.pl?theQuery=search&urlTest=yes.
The interface of BNCweb will appear.
The following procedure is based on my installation of BNCweb 4.0 beta on Ubuntu 7.04. Please make necessary changes according to the version of BNCweb and to your system environment.
First, install the following packages, if not installed yet.
mysql-server-5.0
libdbi-perl
libdbd-mysl-perl
libhtml-parser-perl
libparse-recdescent-perl
flex
bison
libncurses5-dev
# mkdir /BNC_XML (* or whatever)
(unzip BNCweb-distribution_Beta.zip)
# mv ~/BNCweb-distribution_Beta/BNCweb-distribution_Beta /BNC_XML/
# cd /BNC_XML/BNCweb-distribution_Beta
# chmod -R 755 cgi-bin
# chmod -R 755 lib_files
# mkdir /BNC_XML/CQP-tempXML
# chmod 777 /BNC_XML/CQP-tempXML
# cd CQP_source
# tar xvzf cwb-2.2.b98a-src.tgz
# cd cwb-3.0
(modify "Makefile.inc")
---
line 36
PLATFORM = linux
line 62
SITE = standard
---
# make clean
# make depend
# make all
# make install
# cd ..
# tar xvzf CWB-Perl-Public-1.1.3b.tar.gz
# cd CWB-Perl-Public
# cd CWB
# perl Makefile.PL
# make
# make test
# make install
# cd ../CQP
# perl Makefile.PL
# make
# make install
# cd ../CL
# perl Makefile.PL
# make
# make install
# cd../WebCqp
# perl Makefile.PL
# make
# make install
# mkdir /BNC_XML/Texts
# cd /BNC_XML/Texts
(copy texts.tar.gz on Disk 1 of BNC-XML to /BNC_XML/Texts/)
# tar xvzf texts.tar.gz
# cd ../BNCweb-distribution_Beta/BNCweb-encoder-0.5b
# mkdir /BNC_XML/registry
# perl EncodeBNC.perl -n BNC-XML -r /BNC_XML/registry/ -f -M 800 -v /BNC_XML/Index/ /BNC_XML/Texts/
(* "-M 800" specifies the allocated memory size (in MB).
It took about 5 hours on a PC with Sempron 3200+ and 2GB memory.)
# perl MakeFreqTables.perl -n BNC-XML -r /BNC_XML/registry/ -f -M 800 -v
(* It took about 50 mins on my PC.)
# cd ../lib_files
(modify "bncConfigXML.pm")
---
line 45
$bwCorpusPath = '/BNC_XML/Texts/';
line 49
$bwTempPath = 'BNC_XML/CQP-tempXML';
line 91
$bwMysqlUser = 'root';
comment out line 92
#$bwMysqlUser = 'bncweb';
comment out line 95
#$bwMysqlPwd = 'test';
line 128
$bwSuperuser = 'your_account'; (specify the administrative account)
line 130
$bwDevelopers = 'your_account'; (specify the administrative account)
---
# cd ../BNCweb-encoder-0.5b
# perl make_MySQL_tables.pl
(When asked the username of MySQL admin and its password, just press [Enter]. When asked about the directory of the tables, just press [Enter].)
(* It took about 1.5 hours on my PC.)
Configure the apache files.
Add the following lines into the appropriate apache config file.
(e.g. just before "</VirtualHost>" in /etc/apache2/sites-available/ssl)
---
Alias /bncwebXML/ /BNC_XML/BNCweb-distribution_Beta/
Alias /bncwebXML /BNC_XML/BNCweb-distribution_Beta/
<Directory /BNC_XML/BNCweb-distribution_Beta>
Options Indexes FollowSymLinks ExecCGI
AuthType Basic
AuthName bncweb
AuthUserFile /etc/bncpass
require valid-user
SetEnv PERL5LIB /BNC_XML/BNCweb-distribution_Beta/lib_files
SetEnv CORPUS_REGISTRY /BNC_XML/registry
</Directory>
ScriptAlias /cgi-binbncXML/ /BNC_XML/BNCweb-distribution_Beta/cgi-bin/
---
Restart apache(2).
Set the password for each user.
Now access http(s)://hostname/cgi-binbncXML/BNCquery.pl?theQuery=search&urlTest=yes.
The interface of BNCweb will appear.
登録:
投稿 (Atom)