Nice tool to use babelfish translation services on the web - which, in turn,

are able to translate (more or less properly) full text. Eg.:
from Spanish to English: "te quiero fumar mota" -> "I want to you to smoke
speck"
This commit is contained in:
Michal Pasternak 2003-11-26 18:31:48 +00:00
parent 94b1741314
commit e4acd0556a
5 changed files with 91 additions and 0 deletions

12
PyBabelFish/DESCR Normal file
View file

@ -0,0 +1,12 @@
PyBabelPhish is a simple Gtk-based frontend for several translation
services available on the web. Through the use of these services,
PyBabelPhish is able to provide full-text translations (full sentences,
phrases, etc.). PyBabelPhish is written in 100% Python, does NOT require
Gnome, but requires Gtk+ and PyGtk. Some languages have been removed from
the list due to an inability to display certain foreign characters
(especially Asian character sets). I am hopeful that support for Asian
languages will be available in the future. PyBabelPhish is in NO way
affiliated with or endorsed by the web-based translation services it
accesses and should NOT be considered 'official' software from these
companies. NO support is provided for PyBabelPhish. This software is free
and open source under the Free Education Initiative License.x

41
PyBabelFish/Makefile Normal file
View file

@ -0,0 +1,41 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/11/26 18:31:48 mpasternak Exp $
#
DISTNAME= PyBabelPhish-2.0_All_Platforms
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_All_Platforms//}
WRKSRC= ${WRKDIR}/PyBabelPhish-Install
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pythonol/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= dotz@irc.pl
HOMEPAGE= http://pythonol.sourceforge.net/
COMMENT= Gtk-based frontend for several translation services on web
USE_BUILDLINK2= yes
PY_PATCHPLIST= yes
NO_BUILD= # defined
PYFILES= URLRead.py pybabelfish.py pyfilter.py pytheme.py \
pythonol_festival.py symbolbar.py
TARGET_DIR= ${PREFIX}/${PYSITELIB}/BabelPhish
SCRIPTNAME= ${PREFIX}/bin/pybabelfish
do-install:
${INSTALL_DATA_DIR} ${TARGET_DIR}
${INSTALL_DATA_DIR} ${TARGET_DIR}/pixmaps
for a in ${PYFILES}; do \
${INSTALL_DATA} ${WRKSRC}/$$a ${TARGET_DIR}/$$a; \
done
for a in ${WRKSRC}/pixmaps/*; do \
${INSTALL_DATA} $$a ${TARGET_DIR}/pixmaps/`${BASENAME} $$a`; \
done
printf "#!/bin/sh\nexec ${PYTHONBIN} ${PREFIX}/${PYSITELIB}/BabelPhish/pybabelfish.py" > ${SCRIPTNAME}
${CHMOD} ${BINMODE} ${SCRIPTNAME}
${CHOWN} ${BINOWN}:${BINGRP} ${SCRIPTNAME}
.include "../../lang/python/extension.mk"
.include "../..//x11/py-gtk2/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"

29
PyBabelFish/PLIST Normal file
View file

@ -0,0 +1,29 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/11/26 18:31:48 mpasternak Exp $
bin/pybabelfish
${PYSITELIB}/BabelPhish/URLRead.py
${PYSITELIB}/BabelPhish/pixmaps/babtitle.gif
${PYSITELIB}/BabelPhish/pixmaps/play.gif
${PYSITELIB}/BabelPhish/pixmaps/s1.gif
${PYSITELIB}/BabelPhish/pixmaps/s10.gif
${PYSITELIB}/BabelPhish/pixmaps/s11.gif
${PYSITELIB}/BabelPhish/pixmaps/s12.gif
${PYSITELIB}/BabelPhish/pixmaps/s13.gif
${PYSITELIB}/BabelPhish/pixmaps/s14.gif
${PYSITELIB}/BabelPhish/pixmaps/s15.gif
${PYSITELIB}/BabelPhish/pixmaps/s16.gif
${PYSITELIB}/BabelPhish/pixmaps/s2.gif
${PYSITELIB}/BabelPhish/pixmaps/s3.gif
${PYSITELIB}/BabelPhish/pixmaps/s4.gif
${PYSITELIB}/BabelPhish/pixmaps/s5.gif
${PYSITELIB}/BabelPhish/pixmaps/s6.gif
${PYSITELIB}/BabelPhish/pixmaps/s7.gif
${PYSITELIB}/BabelPhish/pixmaps/s8.gif
${PYSITELIB}/BabelPhish/pixmaps/s9.gif
${PYSITELIB}/BabelPhish/pixmaps/stop.gif
${PYSITELIB}/BabelPhish/pybabelfish.py
${PYSITELIB}/BabelPhish/pyfilter.py
${PYSITELIB}/BabelPhish/pytheme.py
${PYSITELIB}/BabelPhish/pythonol_festival.py
${PYSITELIB}/BabelPhish/symbolbar.py
@dirrm ${PYSITELIB}/BabelPhish/pixmaps
@dirrm ${PYSITELIB}/BabelPhish

5
PyBabelFish/TODO Normal file
View file

@ -0,0 +1,5 @@
$Id: TODO,v 1.1.1.1 2003/11/26 18:31:48 mpasternak Exp $
Someone, please change that printf in Makefile to something more appropriate.
-- dotz@irc.pl

4
PyBabelFish/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2003/11/26 18:31:48 mpasternak Exp $
SHA1 (PyBabelPhish-2.0_All_Platforms.tar.bz2) = e1371f8010823fa3904efeb24f3d54f3d6f4feaf
Size (PyBabelPhish-2.0_All_Platforms.tar.bz2) = 62159 bytes