Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Ehlke committed May 29, 2010
0 parents commit bc4cefe
Show file tree
Hide file tree
Showing 12 changed files with 4,339 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Makefile for the ebmodule package
# Tamito KAJIYAMA <12 September 2001>
# $Id: Makefile,v 1.2 2001/09/22 12:08:19 kajiyama Exp $

PYTHON= python
LIBDIR= `$(PYTHON) -c "import sys; print sys.prefix+'/lib/python'+sys.version[:3]"`
SITEPACKAGEDIR= $(LIBDIR)/site-packages

all: src/ebmodule.so

src/Makefile.pre.in:
cp $(LIBDIR)/config/Makefile.pre.in src

src/Makefile: src/Makefile.pre.in
(cd src ; $(MAKE) -f Makefile.pre.in boot)

src/ebmodule.so: src/Makefile
(cd src ; $(MAKE))

.PHONY: test
test: src/ebmodule.so
(cd test ; $(MAKE) test)

install: src/ebmodule.so
(cd src ; $(MAKE) install)
install -m 644 eblib.py $(SITEPACKAGEDIR)
$(PYTHON) $(LIBDIR)/compileall.py $(SITEPACKAGEDIR)

clean: src/Makefile
(cd src ; $(MAKE) distclean)
(cd test ; $(MAKE) clean)
$(RM) -r build
$(RM) *~ MANIFEST src/Makefile.pre.in

archive:
$(PYTHON) setup.py sdist -f
108 changes: 108 additions & 0 deletions README.en
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
ebmodule 2.0
============
Tamito KAJIYAMA <25 September 2001>

This package is a suite of Python wrapper modules of the EB
library, a C library for accessing electronic dictionaries.
Using this package Python programs can easily retrieve
information from electronic dictionaries of the EB and EPWING
formats.

The latest version of this package is available at the following
location:

http://pseudo.grad.sccs.chukyo-u.ac.jp/~kajiyama/python/

Requirements
------------

This package requires the EB library (version 3.1 and later).
The source distribution of the EB library is available at the
following location:

http://www.sra.co.jp/people/m-kasahr/eb/

This package supports Python 1.5.2 and later.

Installation
------------

This package provides two installation procedures.

o Using Distutils

The users of Python 2.0 and later can choose this option. It
uses Distutils, the standard installer modules adopted in Python
2.0. Run commands as follows:

$ python setup.py build
$ su
# python setup.py install

o Using Makefile

Another option is provided for the users of Python 1.5.2. Run
commands as follows:

$ make
$ su
# make install

You can specify the version of Python that you want to use as
follows, if you have multiple versions:

$ make PYTHON=python1.5
$ su
# make PYTHON=python1.5 install

Usage
-----

This package provides two Python modules.

o The eb module

This module has almost the same API with the underlying EB
library. See the EB library reference for the use of the
functions and constants in the eb module. The library reference
is included in the source distribution of the EB library, and is
also available at the following location:

http://www.sra.co.jp/people/m-kasahr/eb/doc/eb_toc.html

o The eblib module

This module provides a set of classes that encapsulate the
low-level API of the eb module. See the source file (eblib.py)
for the use of the eblib module. There is a simple application
code at the bottom of the source file.

History
-------

o Version 2.0 <25 September 2001>
- Supported the EB library version 3.X

o Version 1.0 <18 September 2001>
- First public release
- Supported the EB library version 2.X

License
-------

This is free software; you can freely redistribute it and/or
modify it under the terms of the GNU General Public License
(version 2 or later).

This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. Use it at your own risk.

Author
------

Tamito KAJIYAMA <kajiyama@grad.sccs.chukyo-u.ac.jp>

Any comments, suggestions, and/or patches are very welcome.
Thank you for using the ebmodule package!

$Id: README.en,v 1.2 2001/09/24 03:21:06 kajiyama Exp $
103 changes: 103 additions & 0 deletions README.ja
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
ebmodule 2.0
============
�ỳ̱�� (2001ǯ9��25��)

�ܥѥå������ϡ��ŻҼ��񸡺��饤�֥���EB �饤�֥��פ� Python
�ѥ�åѡ��⥸�塼����󶡤��ޤ���Ʊ�⥸�塼���𤷤� EB �饤��
�������Ѥ��뤳�Ȥˤ�ꡢEB ��������� EPWING �������ŻҼ����
Python �ץ�����फ���ưפ˸������뤳�Ȥ��Ǥ��ޤ���

�ܥѥå������κǿ��Ǥϰʲ��ξ�꤫������Ǥ��ޤ���

http://pseudo.grad.sccs.chukyo-u.ac.jp/~kajiyama/python/index-ja.html

ɬ�פʤ��
----------

�ܥѥå����������Ѥ���ˤϡ�EB �饤�֥�� (�С������ 3.1 �ʹ�)
��ɬ�פǤ���EB �饤�֥��Υ����������ɤϰʲ��ξ�꤫������Ǥ�
�ޤ���

http://www.sra.co.jp/people/m-kasahr/eb/index-ja.html

�ܥѥå������� Python 1.5.2 �ʹߤ��б����Ƥ��ޤ���

���󥹥ȡ�����ˡ
----------------

�ܥѥå������Υ��󥹥ȡ�����ˡ�ˤϰʲ������̤����ˡ������ޤ���

o Distutils ���Ѥ�����ˡ

Python ɸ��Υ��󥹥ȡ��鵡ǽ���Ѥ�����ˡ�Ǥ���Python 2.0 �ʹߤ�
���ѤǤ��ޤ����ʲ������Τǥ��ޥ�ɤ�¹Ԥ��Ʋ�������

$ python setup.py build
$ su
# python setup.py install

o ��°�� Makefile ���Ѥ�����ˡ

Python 1.5.2 ����Ѥ��Ƥ�����Ϥ��������ˡ�����Ѥ��Ʋ�������

$ make
$ su
# make install

ʣ���ΥС������� Python �����󥹥ȡ��뤵��Ƥ����硢�ʲ�����
�Τǻ��Ѥ���С����������Ǥ��ޤ���

$ make PYTHON=python1.5
$ su
# make PYTHON=python1.5 install

�Ȥ���
------

�ܥѥå������ϰʲ�����ĤΥ⥸�塼����󶡤��ޤ���

o eb �⥸�塼��

���� EB �饤�֥��Ȥۤ�Ʊ��� API ��������٥�⥸�塼��Ǥ���
�ƴؿ��λȤ����ˤĤ��Ƥ� EB �饤�֥�����°�Υ饤�֥�ꡦ��ե�
��󥹤򻲾Ȥ��Ʋ�������Ʊ��ե���󥹤ϰʲ��ξ��Ǥ���������
���ޤ���

http://www.sra.co.jp/people/m-kasahr/eb/doc-ja/eb-ja_toc.html

o eblib �⥸�塼��

�嵭�� eb �⥸�塼��򥯥饹�������⥸�塼��Ǥ����Ȥ����ˤĤ���
�ϥ����������� (eblib.py) �򻲾Ȥ��Ʋ�������Ʊ�ե�����������˴�
ñ�ʥ���ץ�ץ�����ब�դ��Ƥ��ޤ���

��������
--------

o �С������ 2.0 (2001ǯ9��25��)
- EB �饤�֥�� (�С������ 3.X) ���б�

o �С������ 1.0 (2001ǯ9��18��)
- �ǽ�Υ�꡼��
- EB �饤�֥�� (�С������ 2.X) ���б�

�饤����
----------

�ܥ��եȥ������ϡ�GNU General Public License (�С������2�ʹ�)
�˴�Ť��ե꡼���եȥ������Ǥ������ʤ��ϡ�Ʊ�饤���󥹤˽��ä���
���եȥ�������ͳ�����Ѥ����������������դ��뤳�Ȥ��Ǥ��ޤ���

�ܥ��եȥ�������̵�ݾڤǤ����ܥ��եȥ������κ�Ԥϡ��ܥ��եȥ���
�������Ѥ������Ȥˤ�ä�������ǡ���ʤ�»�����Ф��Ƥ⤽���դ��餤
�ޤ���

���
----

�ỳ̱�� <kajiyama@grad.sccs.chukyo-u.ac.jp>

�ܥ��եȥ��������Ф��륳���ȡ��Х���𡢥ѥå��ʤɤ򴿷ޤ��ޤ���
�嵭�Υ᡼�륢�ɥ쥹�ޤǤ����ڤˤ��󤻲�������

$Id: README.ja,v 1.2 2001/09/24 03:21:06 kajiyama Exp $
Loading

0 comments on commit bc4cefe

Please sign in to comment.