debian/0000755000000000000000000000000011666752401007176 5ustar debian/omegat.menu0000644000000000000000000000022511666752401011337 0ustar ?package(omegat):needs="X11" section="Applications/Office"\ title="OmegaT" command="/usr/bin/omegat"\ icon="/usr/share/omegat/images/OmegaT.xpm" debian/watch0000644000000000000000000000016511666752401010231 0ustar version=3 opts=dversionmangle=s/\+dfsg\d*$// \ http://sf.net/omegat/OmegaT_([\d.]+)_(\d+).*Source\.zip \ debian debian/omegat.sgml0000644000000000000000000000766511666752401011354 0ustar manpage.1'. You may view the manual page with: `docbook-to-man manpage.sgml | nroff -man | less'. A typical entry in a Makefile or Makefile.am is: manpage.1: manpage.sgml docbook-to-man $< > $@ The docbook-to-man binary is found in the docbook-to-man package. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include docbook-to-man in your Build-Depends control field. --> Tiago"> Saboga"> december 10, 2006"> 1"> tiagosaboga@gmail.com"> OMEGAT"> Debian"> GNU"> GPL"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2006 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; Computer Assisted Translation (CAT) tool &dhpackage; DESCRIPTION This manual page documents briefly the &dhpackage; command. This manual page was written for the &debian; distribution because the original program does not have a manual page. Instead, it has documentation in the html format; see below. &dhpackage; is actually a wrapper which launches sun's java implementation and loads OmegaT's class. OmegaT is a program that assists translators by maintaining a translation memory. OPTIONS There are no documented options. SEE ALSO java (1). The programs are documented fully by OmegaT User Manual available via the OmegaT help system. On Debian systems, the documentation can also be found in /usr/share/doc/omegat/html. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the &gnu; General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
debian/omegat.links0000644000000000000000000000152311666752401011515 0ustar /usr/share/doc/omegat/html/be /usr/share/omegat/html-template/be /usr/share/doc/omegat/html/de /usr/share/omegat/html-template/de /usr/share/doc/omegat/html/en /usr/share/omegat/html-template/en /usr/share/doc/omegat/html/eo /usr/share/omegat/html-template/eo /usr/share/doc/omegat/html/es /usr/share/omegat/html-template/es /usr/share/doc/omegat/html/fr /usr/share/omegat/html-template/fr /usr/share/doc/omegat/html/it /usr/share/omegat/html-template/it /usr/share/doc/omegat/html/ja /usr/share/omegat/html-template/ja /usr/share/doc/omegat/html/pt_BR /usr/share/omegat/html-template/pt_BR /usr/share/doc/omegat/html/ru /usr/share/omegat/html-template/ru /usr/share/doc/omegat/html/sh /usr/share/omegat/html-template/sh /usr/share/doc/omegat/html/sk /usr/share/omegat/html-template/sk /usr/share/doc/omegat/html/sq /usr/share/omegat/html-template/sq debian/omegat.dirs0000644000000000000000000000014111666752401011331 0ustar usr/share/omegat usr/share/omegat/plugins usr/share/doc/omegat usr/share/doc/omegat/html usr/bin debian/rules0000755000000000000000000000320411666752401010255 0ustar #!/usr/bin/make -f # include /usr/share/quilt/quilt.make JAVA_HOME=/usr/lib/jvm/default-java ANT_OPTIONS=-propertyfile debian/ant.properties configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir JAVA_HOME=$(JAVA_HOME) ant $(ANT_OPTIONS) gen jar docbook-to-man debian/omegat.sgml > omegat.1 convert images/OmegaT.ico[0] images/OmegaT.xpm touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp omegat.1 images/OmegaT.xpm -JAVA_HOME=$(JAVA_HOME) ant $(ANT_OPTIONS) clean dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs dh_lintian find $(CURDIR)/docs -mindepth 1 -maxdepth 1 -type d -print0 | xargs -0 cp -r --target-directory=$(CURDIR)/debian/omegat/usr/share/doc/omegat/html find $(CURDIR)/debian/omegat/usr/share/doc/omegat -name '*license.txt' -delete find $(CURDIR)/debian/omegat/usr/share -regex '.*(html|txt)' -print0 | xargs -0 fromdos install -m 755 $(CURDIR)/debian/omegat.sh $(CURDIR)/debian/omegat/usr/bin/omegat install -m 644 $(CURDIR)/lib-mnemonics/dist/lib-mnemonics.jar $(CURDIR)/debian/omegat/usr/share/omegat/lib-mnemonics.jar binary-arch: build install binary-indep: build install dh_testdir dh_testroot dh_installchangelogs -k release/changes.txt dh_installdocs dh_installexamples dh_install dh_installmenu dh_installman dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure get-orig-source debian/omegat.lintian-overrides0000644000000000000000000000015211666752401014030 0ustar # We ship an empty plugins dir. omegat binary: package-contains-empty-directory usr/share/omegat/plugins/ debian/control0000644000000000000000000000371011666752401010602 0ustar Source: omegat Section: editors Priority: optional Maintainer: Debian Java Maintainers Uploaders: Tiago Saboga Build-Depends: debhelper (>= 7), default-jdk, ant Build-Depends-Indep: docbook-to-man, imagemagick, libvldocking-java, libhtmlparser-java, libjna-java, libswing-layout-java, tofrodos Homepage: http://www.omegat.org Vcs-Git: git://git.debian.org/pkg-java/omegat.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/omegat.git Standards-Version: 3.9.2 Package: omegat Architecture: all Depends: ${misc:Depends}, openjdk-6-jre | openjdk-7-jre | sun-java6-jre, libvldocking-java, libhtmlparser-java, libswing-layout-java Recommends: libjna-java, libhunspell-1.3-0 Suggests: libaccess-bridge-java-jni Description: Computer Assisted Translation (CAT) tool OmegaT's main features are - multiple source texts handling, retaining complex folder hierarchies - fuzzy matching with other segments in the source file(s) or TMX files from previous projects - easy glossary terms management - flexible regex-based sentence segmenting (using an SRX-like method) - powerful regex-based searches along with the facility to apply a filter to display search results in the editor - ability to batch process documents from the command line - extended project statistics - easy-to-understand documentation and tutorial - plugin architecture with separate Lucene stemmer (recognition of inflected forms) and LanguageTool (style and grammar checker) plugins - integration with Hunspell for spelling checking - simple API to access source/target/selection textual data . OmegaT supports 24 formats, including documentation formats such as OpenDocument, Open XML (MS Office 2007), DocBook and (x)HTML, and also localization formats such as Java properties and PO files. An Okapi plugin can further extend the supported formats, for example to include TTX (TradosTag). debian/TODO0000644000000000000000000000030611666752401007665 0ustar * Move to javahelper? * Run with jarwrapper * Write a real man page * Document plugin installation * Load additional plugins from user dir -- Tiago Saboga , Fri, 10 Jun 2011 debian/README.Debian-plugins0000644000000000000000000000101611666752401012714 0ustar OmegaT may be extended by plugins. None of them is currently available as debian packages, and here are some pointers. * omegat-plugins http://omegat-plugins.sourceforge.net/ This project allows integration with Lucene stemmer, for the recognition of inflected forms, and LanguageTools, a style and grammar checker. * okapi-framework http://okapi.opentag.com/ okapi-framework contains a plugin which extend the file formats supported by OmegaT. -- Tiago Saboga Thu, 09 Jun 2011 10:49:02 -0300 debian/omegat.sh0000755000000000000000000000115311666752401011011 0ustar #!/bin/sh JAVA_OPTIONS='-Djava.library.path=/usr/lib/jni' JAVA=$(which java | xargs readlink -f) echo "$JAVA" | grep -q -e '\(openjdk\|sun\)' if [ $? -eq 0 ] then JAVABIN=$JAVA elif [ -x /usr/lib/jvm/java-6-openjdk/bin/java ] then JAVABIN="/usr/lib/jvm/java-6-openjdk/bin/java" elif [ -x /usr/lib/jvm/java-6-sun/bin/java ] then JAVABIN="/usr/lib/jvm/java-6-sun/bin/java" elif [ -x /usr/lib/jvm/java-1.5.0-sun/bin/java ] then JAVABIN="/usr/lib/jvm/java-1.5.0-sun/bin/java" else echo "Suitable java binary not found." exit 1 fi exec $JAVABIN $JAVA_OPTIONS -jar /usr/share/omegat/OmegaT.jar $* debian/copyright0000644000000000000000000001026211666752401011132 0ustar This package was debianized by Tiago Saboga on Sun, 10 Dec 2006 21:09:11 -0200. It was downloaded from Upstream Authors: OmegaT is originally the work of Keith Godfrey. Marc Prior is the coordinator of the OmegaT project. Code has been contributed by Zoltan Bartko Volker Berlin Didier Briel (development manager) Kim Bruning Alex Buloichik (lead developer) Sandra Jean Chua Martin Fleurke Wildrich Fourie Thomas Huriaux Ibai Lakunza Velasco Fabián Mandelbaum Maxym Mykhalchuk Arno Peters Henry Pijffers Tiago Saboga Andrzej Sawuła Benjamin Siband Rashid Umarov Antonio Vilei Martin Wunderlich Other contributions by Sabine Cretella Dmitri Gabinski Jean-Christophe Helary (localization manager) Vito Smolej (documentation manager) Samuel Murray Marc Prior and many, many more very helpful people Copyright: Copyright(C) 2000-2007 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, Benjamin Siband, Sandra Jean Chua, Kim Bruning, Martin Wunderlich, Didier Briel and Thomas Huriaux. Copyright 2008-2011 Didier Briel Copyright 2007 Zoltan Bartko Copyright 2007 Tiago Saboga Copyright 2007-2011 Alex Buloichik Copyright 2007-2010 Martin Fleurke Copyright 2008 Fabian Mandelbaum Copyright 2008 Josef Molnár (translation) Copyright 2007-2011 Jean-Christophe Helary (translation) Copyright 2008 Dick Groskamp (translation) Copyright 2008 Dragomir Kovačević (translation) Copyright 2008 Vito Smolej (translation) Copyright 2006-2009 Martin Wunderlich Copyright 2008 Andrzej Sawula Copyright 2010 Wildrich Fourie Copyright 2010 Volker Berlin Copyright 2009 Arno Peters Copyright 2010 Antonio Vilei Copyright 2009 Guido Leenders Copyright 1996,2005 The Free Software Foundation Copyright 2010 Rashid Umarov Copyright 2010 Ibai Lakunza Velasco Copyright 2011 Valter Mura (italian translation) Copyright 2011 Thelma L Sabim (brazilian portuguese translation) Copyright 2011 John Moran The user manual is the joint work of Jean-Christophe Helary, Samuel Murray, Maxym Mykhalchuk, Henry Pijffers and Vito Smolej. The documentation, except for the Instant Start Guide chapter, is Copyright 2009, 2011 Vito Smolej. The Instant Start Guide is Copyright 2005-2009 Samuel Murray. The file src/schemas/srx20.xsd is Copyright The Localisation Industry Standards Association [LISA] 2006. The file header states "All Rights Reserved", but according to the LISA website (as of 2011-06-07), all LISA Standards have been transfered to the public domain. "As of 2011 February 28, the Localization Industry Standards Association (LISA) was declared insolvent. The results of the Extraordinary General Assembly meeting and ballot of 2011 April 21 LISA has formallized the dissolution of the association and the transfer of the LISA Standards to the public domain. The company Société fiduciaire Zemp & Associés, SàrL in Geneva is designated as the liquidator of the association’s assets." License: OmegaT is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. OmegaT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The Debian packaging is Copyright 2006-2011, Tiago Saboga and is licensed under the GPL, either version 2 of the License, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian GNU/Linux systems, the complete text of the version 2 of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2. debian/compat0000644000000000000000000000000211666752401010374 0ustar 7 debian/source/0000755000000000000000000000000011666752401010476 5ustar debian/source/format0000644000000000000000000000001411666752401011704 0ustar 3.0 (quilt) debian/omegat.desktop0000644000000000000000000000034511666752401012047 0ustar [Desktop Entry] Version=1.0 Name=OmegaT Comment=Computer-Assisted Translation tool Exec=omegat Icon=/usr/share/omegat/images/OmegaT.xpm Type=Application Categories=Office;Development;Translation;Java; X-AppInstall-Package=omegat debian/ant.properties0000644000000000000000000000141311666752401012075 0ustar ant.build.javac.source=1.6 ant.build.javac.target=1.6 file.reference.htmlparser.jar=/usr/share/java/libhtmlparser.jar file.reference.vldocking_2.0.6d.jar=/usr/share/java/vldocking.jar file.reference.jna.jar=/usr/share/java/jna.jar file.reference.swing-layout.jar=/usr/share/java/swing-layout.jar file.reference.copylibstaskbar=/usr/lib/netbeans/java1/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar javac.classpath=\ ${reference.lib-mnemonics.jar}:\ ${file.reference.htmlparser.jar}:\ ${file.reference.vldocking_2.0.6d.jar}:\ ${file.reference.jna.jar}:\ ${file.reference.swing-layout.jar}:\ ${file.reference.copylibstaskbar} reference.lib-mnemonics.jar=lib-mnemonics/dist/lib-mnemonics.jar javadoc.link=/usr/share/doc/classpath-doc/api debian/omegat.install0000644000000000000000000000037111666752401012043 0ustar release/readme*.txt usr/share/doc/omegat/ release/join.html usr/share/doc/omegat/ docs/*html usr/share/omegat/html-template dist/OmegaT.jar usr/share/omegat images/*[gif|png|xpm] usr/share/omegat/images/ debian/omegat.desktop usr/share/applications debian/changelog0000644000000000000000000001567511666752401011066 0ustar omegat (2.3.0.1+dfsg-3) unstable; urgency=low * Team upload. * Update recommends for libhunspell-1.3-0 (Closes: #650968) - Thank you to Andreas Moog . * Address lintian warning about braces in debian/omegat.install -- tony mancill Sun, 04 Dec 2011 11:29:17 -0800 omegat (2.3.0.1+dfsg-2) unstable; urgency=low * Team upload. * Switch to default-jdk. (Closes: #643540). -- Miguel Landaeta Sat, 22 Oct 2011 16:19:49 -0430 omegat (2.3.0.1+dfsg-1) unstable; urgency=low * New upstream version. * Add build-arch and build-indep targets (thanks lintian). * Add plugins dir to omegat install path. * debian/watch: let's try again. -- Tiago Saboga Thu, 04 Aug 2011 16:20:28 -0300 omegat (2.2.3~beta4+dfsg-1) unstable; urgency=low * New upstream release (Closes: #558708). * Move jar files to /usr/share/omegat: they are not meant to be used by other applications * Add debian/README.Debian-plugins file. * Move debian packaging to git. * State copyright for source file src/schemas/srx20.xsd. * Disable debian/watch: unable to follow upstream naming scheme. * Add openjdk-7-jre as runtime alternative. * javahelp-filters: Remove sun proprietary dtds. * Use openjdk swingworker. * Fix deprecated global warning (thanks Satoru Kurashiki). * Regenerate files under src/gen. * Remove debian/repack-source.sh: we are now importing upstream tarball with git-import-orig. * Bug fix: "startup script choose to use openjdk, ignoring alternatives.", thanks to Satoru KURASHIKI (Closes: #526239). * Bug fix: "debhelper but no ${misc:Depends}", thanks to lintian. * Change to quilt patching system. * Switch to dpkg-source 3.0 (quilt) format: - Remove debian/README.source: not needed any more. * Acknowledge NMU (thanks to Tony Mancill) (Closes: #602267). * debian/control: - (Homepage): Point to main OmegaT page. - Package::omegat + Move libaccess-bridge-java-jni to Suggests. + Update long description. * Bump debian policy (no changes needed). -- Tiago Saboga Fri, 10 Jun 2011 12:27:21 -0300 omegat (1.8.1.2+dfsg-1.1) unstable; urgency=low * Non-maintainer upload. * debian/control - (Depends): Add ${misc:Depends}. - (Build-Depends): Update to openjdk-6-jdk. - (Homepage): Update to working URL. - (Standards-Version): Update to 3.9.1. - Package::omegat + (Depends): Remove unsupported sun-java5-jre. Add sun-java6-jre; thanks to Rolf Leggewie (important; Closes: #522655). Add libaccess-bridge-java-jni (Closes: #531416). * debian/README.source - New file. -- Jari Aalto Mon, 01 Nov 2010 16:04:25 +0200 omegat (1.8.1.2+dfsg-1) unstable; urgency=low [ Tiago Saboga ] * New upstream version. * Move to main. * Return to standard version number. * debian/repack-source.sh - Remove hunspell libraries. * Bump policy version (no changes needed). * Bump debhelper compatibility level. * Ship our own version of shell wrapper, instead of patching upstream. * debian/copyright - fix lintian warnings: - Point to GPL-2 instead of GPL. - Replace (C) by Copyright. * debian/rules - Install upstream changelog. [ Onkar Shinde ] * debian/control - Use openjdk-6-jdk as build dependency. - Use 'openjdk-6-jre | sun-java5-jre | sun-java6-jre' as runtime dependency. * debian/rules - Set JAVA_HOME corresponding to openjdk-6-jdk. * debian/ant.properties - Set default source and target values to 1.4. * debian/watch - Fix expression to match only release versions. Do not directly use specific sourceforge mirror. -- Tiago Saboga Tue, 10 Feb 2009 16:05:37 -0200 omegat (1.7.3.u2+dfsg-1) unstable; urgency=low * New upstream release. * Fix doc-base section. -- Tiago Saboga Sat, 03 May 2008 16:16:49 -0300 omegat (1.7.3.u1+dfsg-1) unstable; urgency=low * Add Vcs-Svn and Vcs-Browser fields. * New upstream release. * Change numbering scheme to accommodate update releases and rewrite watch file accordingly. * Set Debian Java Team as maintainer and myself as uploader. * Remove get-orig-source from debian/rules; use uscan instead. * repack-source.sh deletes temporary files and dirs. -- Tiago Saboga Sat, 23 Feb 2008 15:41:00 -0300 omegat (1.7.3.dfsg0-2) unstable; urgency=low * Initial release (Closes: #448867). * Bump Standards-Version to 3.7.3 (no changes required). * Change Priority to optional. * Update copyright file: new copyright holders (Tiago Saboga, Zoltan Bartko), add copyright for docs (from docs/en/legalNotices.html), remove reference to non-installed file. * Remove extra spaces from omegat.doc-base. * Add descriptions to patches. * Updated README.Debian. * Remove executable for other platform without source (see README.Debian). -- Tiago Saboga Sat, 05 Jan 2008 16:10:57 -0200 omegat (1.7.3.dfsg0-1) unstable; urgency=low * New upstream release. * Removed deprecated Encoding field from omegat.desktop. * Moved dependencies from Build-Depends to Build-Depends-Indep. * Moved Homepage pseudo-header to regular field in debian/control. * Corrected repack-source.sh. * Updated README.Debian. -- Tiago Saboga Thu, 29 Nov 2007 10:36:51 -0200 omegat (1.7.2.dfsg0-2) unstable; urgency=low * Added missing copyright holders and remove mentions to version in copyright file. -- Tiago Saboga Thu, 15 Nov 2007 16:50:20 -0200 omegat (1.7.2.dfsg0-1) unstable; urgency=low * Remove included binary-only jars (libraries). -- Tiago Saboga Thu, 08 Nov 2007 08:41:15 -0200 omegat (1.7.2-2) unstable; urgency=low * Corrected menu file; OmegaT now lies in Applications/Office. * Convert omegat icon to xpm. * Removed binary (jar) files from package. -- Tiago Saboga Thu, 01 Nov 2007 14:53:10 -0200 omegat (1.7.2-1) unstable; urgency=low * New upstream version. * Added watch file. * Added get-orig-source target to debian/rules. -- Tiago Saboga Wed, 17 Oct 2007 14:57:49 -0200 omegat (1.6.1.3-3) unstable; urgency=low * Add support to sun-java6. -- Tiago Saboga Thu, 15 Feb 2007 23:59:08 -0200 omegat (1.6.1.3-2) unstable; urgency=low * Add dependencies alternatives (thanks Andrius Aštrauskas). -- Tiago Saboga Fri, 2 Feb 2007 15:52:25 -0200 omegat (1.6.1.3-1) unstable; urgency=low * New upstream release. -- Tiago Saboga Mon, 22 Jan 2007 23:13:03 -0200 omegat (1.6.1.2-1) unstable; urgency=low * Initial release; for now it will not go into Debian (see readme). -- Tiago Saboga Sun, 10 Dec 2006 21:09:11 -0200 debian/patches/0000755000000000000000000000000011666752401010625 5ustar debian/patches/01-extra-jars-in-new-location.patch0000644000000000000000000000202311666752401017142 0ustar Author: Tiago Saboga Description: Do not specify paths in Class-path. --- a/manifest-template.mf +++ b/manifest-template.mf @@ -3,7 +3,7 @@ License: GNU Public License version 2 or later Specification-Version: 1 Implementation-Version: @version@ -Class-Path: lib/lib-mnemonics.jar lib/htmlparser.jar lib/MRJAdapter.jar lib/vldocking_2.1.4.jar lib/jna.jar lib/swing-layout-1.0.jar lib/jmyspell-core-1.0.0-beta-2.jar lib/activation.jar lib/jaxb-api.jar lib/jaxb-impl.jar lib/jsr173_1.0_api.jar lib/swing-worker-1.2.jar +Class-Path: lib-mnemonics.jar ../java/libhtmlparser.jar ../java/vldocking.jar ../java/jna.jar ../java/swing-layout.jar OmegaT-Plugin: true Name: org.omegat.filters3.xml.android.AndroidFilter --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -52,7 +52,6 @@ jnlp.enabled=false jnlp.offline-allowed=false jnlp.signed=false -libs.CopyLibs.classpath=nbproject/org-netbeans-modules-java-j2seproject-copylibstask.jar jar.compress=true javadoc.preview=true debian/patches/15-do-not-use-sun-proprietary-dtds.patch0000644000000000000000000000307011666752401020200 0ustar Description: Remove references to sun proprietary dtds. Sun dtds are shipped within javahelp-filters. They are being removed from tarball, and here we avoid looking for them locally. Forwarded: no Author: Tiago Saboga Last-Update: 2011-06-07 --- a/addons/javahelp-filters/src/org/omegat/filters2/xml2/XMLHandler2.java +++ b/addons/javahelp-filters/src/org/omegat/filters2/xml2/XMLHandler2.java @@ -143,28 +143,6 @@ write(""); } - /** Resolve an external entity to work offline or behind proxy. */ - public InputSource resolveEntity(String publicId, String systemId) - throws IOException, SAXException - { - String orig = systemId; - int lastslash = systemId.lastIndexOf('/'); - if( lastslash>=0 ) - { - String name = orig.substring(lastslash+1); - String res = "/org/omegat/filters2/javahelp/resources/"+name; - InputStream stream = getClass().getResourceAsStream(res); - return new InputSource(stream); - } - return null; - } - /** The older {@link #resolveEntity} method is overridden to call this one. */ - public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) - throws SAXException, IOException - { - return resolveEntity(publicId, systemId); - } - /** Receive notification of ignorable whitespace in element content.*/ public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { debian/patches/05-remove-jmyspell-alternative.patch0000644000000000000000000000510711666752401017541 0ustar Author: Tiago Saboga Description: Do not use jmyspell, as it is not in debian. --- omegat-2.0.5.2+dfsg.orig/src/org/omegat/core/spellchecker/SpellChecker.java +++ omegat-2.0.5.2+dfsg/src/org/omegat/core/spellchecker/SpellChecker.java @@ -45,8 +45,6 @@ import java.util.List; import java.util.logging.Logger; -import org.dts.spell.dictionary.OpenOfficeSpellDictionary; -import org.dts.spell.dictionary.SpellDictionary; import org.omegat.core.Core; import org.omegat.core.CoreEvents; import org.omegat.core.events.IProjectEventListener; @@ -79,8 +77,6 @@ private Hunspell hunspellSave; - private org.dts.spell.SpellChecker jmyspell; - /** the list of ignored words */ private List ignoreList = new ArrayList(); @@ -185,19 +181,7 @@ LOGGER .finer("Initialize SpellChecker by Hunspell for language '" + language + "' dictionary " + dictionaryName); - } else { - try { - SpellDictionary dict = new OpenOfficeSpellDictionary(new File(dictionaryName), new File(affixName), false); - jmyspell = new org.dts.spell.SpellChecker(dict); - jmyspell.setCaseSensitive(false); - } catch (Exception ex) { - Log.log("Error loading jmyspell: " + ex.getMessage()); - return; - } - LOGGER - .finer("Initialize SpellChecker by JMySpell for language '" - + language + "' dictionary " + dictionaryName); - } + } // find out the internal project directory String projectDir = Core.getProject().getProjectProperties().getProjectInternal(); @@ -240,10 +224,6 @@ saveWordLists(); pHunspell = null; } - if (jmyspell != null) { - jmyspell = null; - } - } /** @@ -326,8 +306,6 @@ Log.log("Unsupported encoding " + encoding); } return false; - } else if (jmyspell != null) { - return jmyspell.isCorrect(word); } else { return true; } @@ -389,8 +367,6 @@ } } } - } else if (jmyspell != null) { - aList.addAll(jmyspell.getDictionary().getSuggestions(word, 20)); } return aList; debian/patches/14-fix-deprecated-global.patch0000644000000000000000000000106211666752401016211 0ustar Description: Eliminate deprecated global warning. Patch has been mailed upstream, which is considering it. Forwarded: yes Author: Satoru KURASHIKI Last-Update: 2011-06-07 --- a/src/org/omegat/util/Log.java +++ b/src/org/omegat/util/Log.java @@ -50,7 +50,7 @@ private static Logger LOGGER; static { - LOGGER = Logger.global; + LOGGER = Logger.getLogger(Logger.GLOBAL_LOGGER_NAME); boolean loaded = false; File usersLogSettings = new File(StaticUtils.getConfigDir(), "logger.properties"); debian/patches/03-location-of-help-files.patch0000644000000000000000000000202611666752401016326 0ustar Author: Tiago Saboga Description: Change location of help files. --- a/src/org/omegat/gui/help/HelpFrame.java +++ b/src/org/omegat/gui/help/HelpFrame.java @@ -173,8 +173,7 @@ } else { path = filename; } - File f = new File(StaticUtils.installDir() + File.separator + OConsts.HELP_DIR + File.separator - + path); + File f = new File(OConsts.HELP_DIR + File.separator + path); try { if (f.exists()) { return f.toURI().toURL(); --- a/src/org/omegat/util/OConsts.java +++ b/src/org/omegat/util/OConsts.java @@ -58,7 +58,7 @@ // help public static final String HELP_HOME = "index.html"; public static final String HELP_INSTANT_START = "instantStartGuideNoTOC.html"; - public static final String HELP_DIR = "docs"; + public static final String HELP_DIR = "/usr/share/omegat/html-template"; public static final String HELP_LANG_INDEX = "languageIndex.html"; // status file consts debian/patches/series0000644000000000000000000000044711666752401012047 0ustar 01-extra-jars-in-new-location.patch 03-location-of-help-files.patch 04-get-rid-of-MRJAdapter.patch 06-use-external-hunspell.patch 08-use-java-swingworker.patch 10-do-not-load-jmyspell.patch 12-generate-files-with-xjc.patch 14-fix-deprecated-global.patch 15-do-not-use-sun-proprietary-dtds.patch debian/patches/10-do-not-load-jmyspell.patch0000644000000000000000000000727011666752401016044 0ustar Description: Disable JMySpell loading. JMySpell is not available on Debian. Ideally, we should patch upstream to use it only if available, but for now we disable it entirely. Author: Tiago Saboga Last-Update: 2011-06-07 --- a/src/org/omegat/core/spellchecker/SpellChecker.java +++ b/src/org/omegat/core/spellchecker/SpellChecker.java @@ -151,13 +151,6 @@ } catch (Error err) { Log.log("Error loading hunspell: " + err.getMessage()); } - if (checker == null) { - try { - checker = new SpellCheckerJMySpell(language, dictionaryName, affixName); - } catch (Exception ex) { - Log.log("Error loading jmyspell: " + ex.getMessage()); - } - } } if (checker == null) { checker = new SpellCheckerDummy(); --- a/src/org/omegat/core/spellchecker/SpellCheckerJMySpell.java +++ /dev/null @@ -1,70 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2010 Alex Buloichik - Home page: http://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - **************************************************************************/ - -package org.omegat.core.spellchecker; - -import java.io.File; -import java.util.List; -import java.util.logging.Logger; - -import org.dts.spell.dictionary.OpenOfficeSpellDictionary; -import org.dts.spell.dictionary.SpellDictionary; - -/** - * JMySpell spell checker implementation. - * - * @author Alex Buloichik (alex73mail@gmail.com) - */ -public class SpellCheckerJMySpell implements ISpellCheckerProvider { - /** Local logger. */ - private static final Logger LOGGER = Logger.getLogger(SpellCheckerJMySpell.class.getName()); - - private org.dts.spell.SpellChecker jmyspell; - - public SpellCheckerJMySpell(String language, String dictionaryName, String affixName) throws Exception { - - SpellDictionary dict = new OpenOfficeSpellDictionary(new File(dictionaryName), new File(affixName), - false); - jmyspell = new org.dts.spell.SpellChecker(dict); - jmyspell.setCaseSensitive(false); - - LOGGER.finer("Initialize SpellChecker by JMySpell for language '" + language + "' dictionary " - + dictionaryName); - } - - public void destroy() { - jmyspell = null; - } - - public boolean isCorrect(String word) { - return jmyspell.isCorrect(word); - } - - public List suggest(String word) { - return jmyspell.getDictionary().getSuggestions(word, 20); - } - - public void learnWord(String word) { - } -} debian/patches/08-use-java-swingworker.patch0000644000000000000000000000175511666752401016175 0ustar Description: Use SwingWorker from openjdk. Upstream is still bound to java 5 compatibility, what maked this patch unacceptable. Author: Tiago Saboga Last-Update: 2011-06-07 --- a/src/org/omegat/gui/main/ProjectUICommands.java +++ b/src/org/omegat/gui/main/ProjectUICommands.java @@ -28,8 +28,8 @@ import javax.swing.JOptionPane; import javax.swing.SwingUtilities; +import javax.swing.SwingWorker; -import org.jdesktop.swingworker.SwingWorker; import org.omegat.core.Core; import org.omegat.core.data.ProjectFactory; import org.omegat.core.data.ProjectProperties; --- a/src/org/omegat/gui/main/MainWindowMenuHandler.java +++ b/src/org/omegat/gui/main/MainWindowMenuHandler.java @@ -31,8 +31,8 @@ import javax.swing.JDialog; import javax.swing.JOptionPane; +import javax.swing.SwingWorker; -import org.jdesktop.swingworker.SwingWorker; import org.omegat.core.Core; import org.omegat.core.CoreEvents; import org.omegat.core.data.SourceTextEntry; debian/patches/12-generate-files-with-xjc.patch0000644000000000000000000000306011666752401016512 0ustar Description: Regenerate jaxb files with xjc. Upstream build system uses ant task, which is not working for us for unknown reasons. Author: Tiago Saboga Last-Update: 2011-06-07 --- a/build.xml +++ b/build.xml @@ -306,14 +306,27 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + debian/patches/06-use-external-hunspell.patch0000644000000000000000000000513411666752401016340 0ustar Author: Tiago Saboga Description: Use debian's libhunspell. --- a/build.xml +++ b/build.xml @@ -64,10 +64,6 @@ - - - - --- a/src/org/omegat/core/spellchecker/SpellChecker.java +++ b/src/org/omegat/core/spellchecker/SpellChecker.java @@ -115,7 +115,9 @@ // initialize the spell checker - get the data from the preferences String language = Core.getProject().getProjectProperties().getTargetLanguage().getLocaleCode(); - String dictionaryDir = Preferences.getPreference(Preferences.SPELLCHECKER_DICTIONARY_DIRECTORY); + String dictionaryDir = Preferences.getPreferenceDefault( + Preferences.SPELLCHECKER_DICTIONARY_DIRECTORY, + OConsts.SPELLCHECKER_SYSTEM_DICTIONARY_DIRECTORY); if (dictionaryDir != null) { String affixName = dictionaryDir + File.separator + language + OConsts.SC_AFFIX_EXTENSION; --- a/src/org/omegat/util/OConsts.java +++ b/src/org/omegat/util/OConsts.java @@ -100,7 +100,11 @@ public static final String LEARNED_WORD_LIST_FILE_NAME = "learned_words.txt"; /** The name of the spell checking library */ - public static final String SPELLCHECKER_LIBRARY_NAME = "hunspell"; + public static final String SPELLCHECKER_LIBRARY_NAME = "hunspell-1.2"; + + /** directory of system dictionaries */ + public static final String SPELLCHECKER_SYSTEM_DICTIONARY_DIRECTORY = + "/usr/share/myspell/dicts"; /** the native library directory */ public static final String NATIVE_LIBRARY_DIR = "native"; --- a/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java +++ b/src/org/omegat/core/spellchecker/SpellCheckerHunspell.java @@ -76,8 +76,7 @@ libraryPath = Native.getWebStartLibraryPath(OConsts.SPELLCHECKER_LIBRARY_NAME) + File.separator + mapLibraryName(OConsts.SPELLCHECKER_LIBRARY_NAME); } else { - libraryPath = StaticUtils.installDir() + File.separator + OConsts.NATIVE_LIBRARY_DIR - + File.separator + mapLibraryName(OConsts.SPELLCHECKER_LIBRARY_NAME); + libraryPath = OConsts.SPELLCHECKER_LIBRARY_NAME; } hunspell = (Hunspell) Native.loadLibrary(libraryPath, Hunspell.class); debian/patches/04-get-rid-of-MRJAdapter.patch0000644000000000000000000000325611666752401015761 0ustar Author: Tiago Saboga Description: Remove unneeded library (only useful to Mac OS). --- a/src/org/omegat/gui/main/MainWindowMenu.java +++ b/src/org/omegat/gui/main/MainWindowMenu.java @@ -45,8 +45,6 @@ import javax.swing.JRadioButtonMenuItem; import javax.swing.JSeparator; -import net.roydesign.mac.MRJAdapter; - import org.omegat.core.Core; import org.omegat.core.CoreEvents; import org.omegat.core.events.IApplicationEventListener; @@ -249,8 +247,6 @@ setActionCommands(); MainWindowMenuShortcuts.setShortcuts(mainMenu); - initMacSpecific(); - CoreEvents.registerApplicationEventListener(new IApplicationEventListener() { public void onApplicationStartup() { updateCheckboxesOnStart(); @@ -304,26 +300,6 @@ .getSettings().getDisplayModificationInfo())); } - /** - * Initialize Mac-specific features. - */ - private void initMacSpecific() { - try { - // MacOSX-specific - MRJAdapter.addQuitApplicationListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - mainWindowMenuHandler.projectExitMenuItemActionPerformed(); - } - }); - MRJAdapter.addAboutListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - mainWindowMenuHandler.helpAboutMenuItemActionPerformed(); - } - }); - } catch (NoClassDefFoundError e) { - Log.log(e); - } - } /** * Create menu instance and set title. debian/omegat.manpages0000644000000000000000000000001111666752401012157 0ustar omegat.1 debian/omegat.docs0000644000000000000000000000003511666752401011322 0ustar debian/README.Debian-plugins debian/dirs0000644000000000000000000000013111666752401010055 0ustar usr/bin usr/share/doc/omegat/html usr/share/omegat/html-template usr/share/omegat/images debian/README.Debian0000644000000000000000000000214511666752401011241 0ustar OmegaT for Debian ----------------- * The source archive available at sourceforge is not source-only, as it contains executable files for another platform and the jar files for several libraries. All binary files are removed from archive. ** find . \( -iname '*.jar' -or -iname '*.exe' -or -iname '*.dll' \ -or -iname '*.dylib' -or -iname '*.so' \) \ -exec git rm \{\} \; * Sources and licenses for third-parties libraries are also removed. ** git rm -r lib/* ** find . -iname 'mrjadapter*' -exec git rm \{\} \; * Test data contains files with unknown licenses. ** git rm -r test/data * Sun proprietary dtds ** git rm addons/javahelp-filters/src/org/omegat/filters2/javahelp/resources/* * The package does not install in fhs directories, but rather in a single dir. All installation is hence done in debian files, and some patches have to be applied as to install files in debian canonical locations. ** jar files are installed in /usr/share/java ** docs are installed in /usr/share/doc/omegat/html -- Tiago Saboga , Tue, 7 Jun 2011 11:52:06 -0300 debian/omegat.doc-base0000644000000000000000000000052711666752401012055 0ustar Document: omegat Title: OmegaT User Manual Author: Dmitri Gabinski, Jean-Christophe Helary, Samuel Murray and Maxym Mykhalchuk Abstract: This manual describes what omegat is and how it can be used to translate documents. Section: Text Format: HTML Index: /usr/share/doc/omegat/html/en/index.html Files: /usr/share/doc/omegat/html/en/*.html