SHA256
1
0
forked from pool/anthy
OBS User unknown 2006-12-19 17:37:48 +00:00 committed by Git OBS Bridge
commit f4f0ca947c
10 changed files with 444 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
anthy-8419.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9aaf0348b8f7a91c5e66cc61e5f5b91ce353a524aa9f12d665d0287092e3b2dd
size 3104533

12
anthy-autoconf.patch Normal file
View File

@ -0,0 +1,12 @@
diff -ru anthy-3814.orig/src-util/Makefile.am anthy-3814/src-util/Makefile.am
--- anthy-3814.orig/src-util/Makefile.am 2003-01-27 15:16:38.000000000 +0100
+++ anthy-3814/src-util/Makefile.am 2003-02-16 18:50:17.000000000 +0100
@@ -5,7 +5,7 @@
ELISP_FILES = anthy.el anthy-isearch.el anthy-dic.el anthy-conf.el leim-list.el
EXTRA_DIST = $(ELISP_FILES) typetab dic-tool-usage.txt rcsize.rb
bin_PROGRAMS = anthy-dic-tool anthy-agent
-ELCFILES = anthy.elc anthy-dic.elc
+#ELCFILES = anthy.elc anthy-dic.elc
if ELISP
lisp_LISP = $(ELISP_FILES)
endif

View File

@ -0,0 +1,16 @@
diff -ru anthy-6024.orig/src-util/anthy.el anthy-6024/src-util/anthy.el
--- anthy-6024.orig/src-util/anthy.el 2004-08-31 18:20:12.000000000 +0200
+++ anthy-6024/src-util/anthy.el 2005-01-18 15:48:34.755323462 +0100
@@ -863,9 +863,9 @@
(if anthy-xemacs
(let ((event last-command-event))
(cond
- ((event-matches-key-specifier-p event 'left) 2)
- ((event-matches-key-specifier-p event 'right) 6)
- ((event-matches-key-specifier-p event 'backspace) 8)
+ ((equal event (character-to-event 'left)) 2)
+ ((equal event (character-to-event 'right)) 6)
+ ((equal event (character-to-event 'backspace)) 8)
(t
(char-to-int (event-to-character event)))))
last-command-char))

152
anthy.changes Normal file
View File

@ -0,0 +1,152 @@
-------------------------------------------------------------------
Tue Dec 19 18:03:11 CET 2006 - mfabian@suse.de
- update to 8419.
- fix bugzilla #224463.
-------------------------------------------------------------------
Fri Jul 28 09:22:19 CEST 2006 - mfabian@suse.de
- update to 7917.
•dictionary of place names added
•memory leak when the emacs key-map was changed fixed
•add a dictionary of postal codes
-------------------------------------------------------------------
Tue Feb 28 16:57:30 CET 2006 - mfabian@suse.de
- add Provides: locale(...).
-------------------------------------------------------------------
Wed Jan 25 21:34:15 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Fri Jan 13 12:45:58 CET 2006 - mfabian@suse.de
- update to 7307.
-------------------------------------------------------------------
Wed Aug 03 12:39:35 CEST 2005 - mfabian@suse.de
- update to 6801.
- remove Andreas Schwab's cleanup.patch, it is included now.
-------------------------------------------------------------------
Fri May 06 12:05:48 CEST 2005 - mfabian@suse.de
- update to 6506.
-------------------------------------------------------------------
Sat Apr 23 15:10:57 CEST 2005 - schwab@suse.de
- Clean up lisp code.
- Move *.so links to devel package.
-------------------------------------------------------------------
Tue Feb 01 16:36:49 CET 2005 - mfabian@suse.de
- update to 6131.
-------------------------------------------------------------------
Tue Jan 18 15:58:03 CET 2005 - mfabian@suse.de
- fix anthy.el to make 'backspace work when XEmacs is started
in a terminal "xemacs -nw".
-------------------------------------------------------------------
Tue Dec 28 16:06:45 CET 2004 - mfabian@suse.de
- update to 6024.
-------------------------------------------------------------------
Thu Dec 16 19:30:22 CET 2004 - mfabian@suse.de
- update to 5924.
-------------------------------------------------------------------
Mon Oct 11 14:12:17 CEST 2004 - mfabian@suse.de
- make 'anthy-add-word' work with xemacs.
- make 'anthy-add-word-interactive' work for special nouns.
-------------------------------------------------------------------
Mon Sep 20 17:11:24 CEST 2004 - mfabian@suse.de
- Bugzilla #45561: move .so files to main package. uim needs the
.so files but uim should not need to have anthy-devel installed
to work.
- update to 5714:
- initialize hankaku_kana_table. otherwise segv.
- depgraph/: update from hmm branch
-------------------------------------------------------------------
Sat Sep 4 20:38:28 CEST 2004 - mfabian@suse.de
- update to 5704.
-------------------------------------------------------------------
Fri Aug 13 21:01:52 CEST 2004 - mfabian@suse.de
- update to 5613.
-------------------------------------------------------------------
Tue Feb 24 19:35:39 CET 2004 - mfabian@suse.de
- update to 5021.
-------------------------------------------------------------------
Tue Feb 10 21:39:47 CET 2004 - mfabian@suse.de
- update to 5008.
- compile and install emacs-lisp file for XEmacs as well.
- don't build as root.
-------------------------------------------------------------------
Mon Aug 25 22:37:05 CEST 2003 - mfabian@suse.de
- update to 4421.
-------------------------------------------------------------------
Sun Feb 16 17:15:18 CET 2003 - mfabian@suse.de
- update to 3814
-------------------------------------------------------------------
Mon Nov 11 23:49:55 CET 2002 - ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
-------------------------------------------------------------------
Mon Aug 12 16:12:22 CEST 2002 - mfabian@suse.de
- update to 3208
- fix autoconf problem
- anthy-devel should require anthy
- remove extra cannadic sources because they are contained in the
anthy tarball now.
- add suse-start-anthy.el to make the input-method
'japanese-anthy automatically available for GNU Emacs as soon
as anthy is installed.
-------------------------------------------------------------------
Fri Apr 5 17:07:49 CEST 2002 - mfabian@suse.de
- update to 2427b
- use 'libtoolize --force' and 'autoreconf --force --install'
to fix build problems
-------------------------------------------------------------------
Wed Apr 3 23:01:55 CEST 2002 - mfabian@suse.de
- update to version 2307
- update cannadic to 0.94b
- use %{_libdir}
- add emacs stuff to '# neededforbuild' to be able to compile
anthy.el
-------------------------------------------------------------------
Sat Sep 8 22:21:00 CEST 2001 - mfabian@suse.de
- new package: Anthy, version 1800b

218
anthy.spec Normal file
View File

@ -0,0 +1,218 @@
#
# spec file for package anthy (Version 8419)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: anthy
BuildRequires: emacs-x11 giflib-devel krb5 libpng-devel libtiff-devel openldap2 openldap2-devel xemacs xorg-x11-devel
License: GNU General Public License (GPL), GNU Library General Public License v. 2.0 and 2.1 (LGPL)
Group: System/I18n/Japanese
Autoreqprov: on
Provides: locale(scim-anthy:ja)
Provides: locale(uim:ja)
Provides: locale(m17n-lib:ja)
Provides: locale(xemacs:ja)
Provides: locale(emacs:ja)
Version: 8419
Release: 1
URL: http://sourceforge.jp/projects/anthy/
# old URL, still some information only there: http://www.kmc.kyoto-u.ac.jp/proj/heke/
# cvs -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/anthy login
# cvs -z3 -d:pserver:anonymous@cvs.sourceforge.jp:/cvsroot/anthy co modulename
Source0: http://osdn.dl.sourceforge.jp/anthy/23182/anthy-8419.tar.bz2
Source1: suse-start-anthy.el
Patch0: anthy-autoconf.patch
Patch2: anthy-last-command-char-xemacs.patch
Patch3: bugzilla-224463-comparison-with-string-literal.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Kana-Kanji Conversion Engine
# Summary(ja): 仮名漢字変換エンジン
# Anthy(旧称Ancy)
#
# PC-Unix用の仮名漢字変換エンジンとしては Canna、 FreeWnn等が有名ですが、
# いずれも1990年前後の国産Unixワークステーションのために開発され、 フリー
# なものの開発はほぼ停止している状態です。 Hekeプロジェクトでは新たな変
# 換エンジンを辞書を除いてフルスクラッチで 開発を行っています。
#
# 著者:
# ------
# 田畑 悠介 <yusuke@kmc.kyoto-u.ac.jp>
%description
Anthy (previously called 'Ancy'):
Canna, FreeWnn, and others are famous Kana-Kanji conversion engines
usable for Unix on PCs. They were originally developed for Japanese
Unix workstations around 1990 and development has practically stopped.
Therefore, the Heke Project is writing a free conversion engine from
scratch (apart from the dictionary, which is developed outside of the
Heke Project).
Authors:
--------
TAHATA Yuusuke <yusuke@kmc.kyoto-u.ac.jp>
%package devel
Summary: Include Files and Libraries mandatory for Development.
Group: System/I18n/Japanese
Requires: %{name} = %{version}-%{release}
# Summary(ja): Anthy のヘッダファイル及びライブラリです。
# %description devel -l ja
# Anthy のヘッダファイル及びライブラリです。
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
TAHATA Yuusuke <yusuke@kmc.kyoto-u.ac.jp>
%prep
%setup0 -q -n %{name}-%{version}
#%patch0 -p 1
%patch2 -p 1
%patch3 -p 1
%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config}
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
%{_target_cpu}-suse-linux
make
cd test
./anthy --all
%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT install
install -m 644 $RPM_SOURCE_DIR/suse-start-anthy.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
# compile the XEmacs versions of the emacs-lisp files and install them:
pushd src-util
rm -f *.elc
make EMACS=xemacs
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
install -m 644 *.el *.elc $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
popd
%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog DIARY INSTALL NEWS README
%doc doc
%config %{_sysconfdir}/anthy-conf
%dir /usr/share/anthy/
/usr/share/anthy/*
%{_bindir}/*
%{_libdir}/*.so.*
/usr/share/emacs/site-lisp/*
/usr/share/xemacs/*
%files devel
%defattr(-, root, root)
%dir /usr/include/anthy/
/usr/include/anthy/*
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/anthy.pc
%changelog -n anthy
* Tue Dec 19 2006 - mfabian@suse.de
- update to 8419.
- fix bugzilla #224463.
* Fri Jul 28 2006 - mfabian@suse.de
- update to 7917.
•dictionary of place names added
•memory leak when the emacs key-map was changed fixed
•add a dictionary of postal codes
* Tue Feb 28 2006 - mfabian@suse.de
- add Provides: locale(...).
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - mfabian@suse.de
- update to 7307.
* Wed Aug 03 2005 - mfabian@suse.de
- update to 6801.
- remove Andreas Schwab's cleanup.patch, it is included now.
* Fri May 06 2005 - mfabian@suse.de
- update to 6506.
* Sat Apr 23 2005 - schwab@suse.de
- Clean up lisp code.
- Move *.so links to devel package.
* Tue Feb 01 2005 - mfabian@suse.de
- update to 6131.
* Tue Jan 18 2005 - mfabian@suse.de
- fix anthy.el to make 'backspace work when XEmacs is started
in a terminal "xemacs -nw".
* Tue Dec 28 2004 - mfabian@suse.de
- update to 6024.
* Thu Dec 16 2004 - mfabian@suse.de
- update to 5924.
* Mon Oct 11 2004 - mfabian@suse.de
- make 'anthy-add-word' work with xemacs.
- make 'anthy-add-word-interactive' work for special nouns.
* Mon Sep 20 2004 - mfabian@suse.de
- Bugzilla #45561: move .so files to main package. uim needs the
.so files but uim should not need to have anthy-devel installed
to work.
- update to 5714:
- initialize hankaku_kana_table. otherwise segv.
- depgraph/: update from hmm branch
* Sat Sep 04 2004 - mfabian@suse.de
- update to 5704.
* Fri Aug 13 2004 - mfabian@suse.de
- update to 5613.
* Tue Feb 24 2004 - mfabian@suse.de
- update to 5021.
* Tue Feb 10 2004 - mfabian@suse.de
- update to 5008.
- compile and install emacs-lisp file for XEmacs as well.
- don't build as root.
* Mon Aug 25 2003 - mfabian@suse.de
- update to 4421.
* Sun Feb 16 2003 - mfabian@suse.de
- update to 3814
* Mon Nov 11 2002 - ro@suse.de
- changed neededforbuild <xshared> to <x-devel-packages>
* Mon Aug 12 2002 - mfabian@suse.de
- update to 3208
- fix autoconf problem
- anthy-devel should require anthy
- remove extra cannadic sources because they are contained in the
anthy tarball now.
- add suse-start-anthy.el to make the input-method
'japanese-anthy automatically available for GNU Emacs as soon
as anthy is installed.
* Fri Apr 05 2002 - mfabian@suse.de
- update to 2427b
- use 'libtoolize --force' and 'autoreconf --force --install'
to fix build problems
* Wed Apr 03 2002 - mfabian@suse.de
- update to version 2307
- update cannadic to 0.94b
- use %%{_libdir}
- add emacs stuff to '# neededforbuild' to be able to compile
anthy.el
* Sat Sep 08 2001 - mfabian@suse.de
- new package: Anthy, version 1800b

View File

@ -0,0 +1,12 @@
diff -ru anthy-8419/src-diclib/ruleparser.c anthy-8419.new/src-diclib/ruleparser.c
--- anthy-8419/src-diclib/ruleparser.c 2006-10-14 07:47:51.000000000 +0200
+++ anthy-8419.new/src-diclib/ruleparser.c 2006-12-19 18:12:49.000000000 +0100
@@ -177,7 +177,7 @@
if (!t) {
return -1;
}
- if (t == NL) {
+ if (strcmp(t, NL) == 0) {
return 0;
}
g_ps.nr_token++;

0
ready Normal file
View File

7
suse-start-anthy.el Normal file
View File

@ -0,0 +1,7 @@
;; /usr/share/emacs/site-lisp/suse-start-anthy.el
(add-to-list 'load-path "/usr/share/emacs/site-lisp/anthy")
(load "/usr/share/emacs/site-lisp/anthy/leim-list" nil t)
;; /usr/share/emacs/site-lisp/suse-start-anthy.el ends here