Swordfish and maxprograms.com apps are now open source/free to use [Eclipse Public License - v 1.0]
Thread poster: Jean Dimitriadis
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
Nov 26, 2021

In case you have missed this, Swordfish CAT tool (and other maxprograms.com applications) have been open sourced (source code can be found in the developer's Github repositories) under the Eclipse Public License v 1.0.

Swordfish, Fluenta, RemoteTM, TMXEditor and Stingray installers will let you use these products on Linux, Windows and MacOS without restrictions during the (30 day) evaluation period. You can use the software afte
... See more
In case you have missed this, Swordfish CAT tool (and other maxprograms.com applications) have been open sourced (source code can be found in the developer's Github repositories) under the Eclipse Public License v 1.0.

Swordfish, Fluenta, RemoteTM, TMXEditor and Stingray installers will let you use these products on Linux, Windows and MacOS without restrictions during the (30 day) evaluation period. You can use the software after the trial period has expired simply registering a license key purchased in the online store.

Buying the licence key lets you use the ready-to use binary executables/installers and benefit from direct official support.

The open source license means that you can also download the source code, build the binaries yourself and run the software on your computer for free. Peer support: https://groups.io/g/maxprograms/

The building requirements and steps are outlined at the Github repository: https://github.com/rmraya/Swordfish

This commitment to open source software should be commended!

Available open source cross-platform software include:
Swordfish (CAT tool), Fluenta (DITA Translation Manager), Stingray (document aligner), RemoteTM (Share TMs on LAN and over the Internet), TMXEditor (TMX Translation Memories editor), SRXEditor (Segmentation Rules editor), XLIFF Manager (graphical user interface for OpenXLIFF Filters) and TMXValidator, among others.

[Edited at 2021-11-26 16:02 GMT]
Collapse


 
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
TOPIC STARTER
Swordfish building requirements and steps Nov 26, 2021

These are outlined at the official Github repo: https://github.com/rmraya/Swordfish

Currently, they are as follows:

Requirements
- JDK 17 or newer is required for compiling and building. Get it from Adoptium.
- Apache Ant 1.10.10 or newer. Get it from https://ant.apache.org/
... See more
These are outlined at the official Github repo: https://github.com/rmraya/Swordfish

Currently, they are as follows:

Requirements
- JDK 17 or newer is required for compiling and building. Get it from Adoptium.
- Apache Ant 1.10.10 or newer. Get it from https://ant.apache.org/
0 Node.js 16.13.0 LTS or newer. Get it from https://nodejs.org/

Building
- Checkout this repository.
- Point your JAVA_HOME environment variable to JDK 17
- Run ant to compile the Java code
- Run npm install to download and install NodeJS dependencies
- Run npm start to launch Swordfish

Steps for building
git clone https://github.com/rmraya/Swordfish.git
cd Swordfish
ant
npm install
npm start
Collapse


 
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
TOPIC STARTER
Building Swordfish (Ubuntu 20.04) Nov 26, 2021

I am no expert, but here are in more details the steps that I followed to build Swordfish IV on GNU/Linux with Regolith Linux, which uses the Ubuntu 20.04 as a base.

Note: The same instructions should work for Windows 10/11 users if they install WLS (Windows Linux Subsystem) to run Linux alongside windows.

Prerequisite to this tutorial: If you don't have "sudo" enabled on Ubuntu, you will need to do so before completing
... See more
I am no expert, but here are in more details the steps that I followed to build Swordfish IV on GNU/Linux with Regolith Linux, which uses the Ubuntu 20.04 as a base.

Note: The same instructions should work for Windows 10/11 users if they install WLS (Windows Linux Subsystem) to run Linux alongside windows.

Prerequisite to this tutorial: If you don't have "sudo" enabled on Ubuntu, you will need to do so before completing the steps. In this case, you can check: https://linuxize.com/post/how-to-enable-and-disable-root-user-account-in-ubuntu/

Preparation

JAVA

Java JDK 17 or newer is required.

Java 17 is not available in the official Ubuntu repositories, but can be installed by adding a PPA (Personal Package Archive) repository:

I used the instructions in this article: https://techviewleo.com/install-java-openjdk-on-ubuntu-linux/

The article explains how to install either (1) OpenJDK or (2) Oracle JDK/JRE. I chose the later, but both steps should work. For this tutorial, please use the second option too.

Once installed, 17 should be the default version, which you can check by typing (and pressing ENTER):

java -version

in a Terminal window.

To list all available versions, or to set the default version, open a Terminal and copy the following:
sudo update-alternatives --config java

APACHE ANT

For Ant, I noticed that the Ant version offered by the official Ubuntu repositories is lower than the one defined in the Swordfish requirements. To get the appropriate version, I used the Snap command (in the terminal) to download it from the Snap store.

https://snapcraft.io/install/ant/ubuntu

The command is the following (in a Terminal window):

sudo snap install ant --classic

NODE.JS

Node.js can be installed from the official Ubuntu repositories. Just run the following commands:

sudo apt update

sudo apt install nodejs

That's it, now we are ready to build:

Building

Step 1: Checkout this repository

Checkout is an action related to git/GitHub.

In effect, you use a command to download the content of a repository on your computer.

A simple alternative, is to just download the ZIP archive containing all the source code.

To do so:
1. Go to https://github.com/rmraya/Swordfish
2. Under the default tab (Code), click the green Code button and select Download ZIP.
3. Uncompress the ZIP, which will create a folder named Swordfish-master.

Step 2: Point your JAVA_HOME environment variable to JDK 17

This step is described in: https://techviewleo.com/install-java-openjdk-on-ubuntu-linux/ (look under Setting JAVA_HOME Environment Variable).

One method is (in a Terminal) to run the following:

sudo gedit /etc/profile

This will open a Gedit window with the content of the /etc/profile text file.

Just add the following line at the end of the file (if you used the Oracle Java version):

JAVA_HOME="/usr/lib/jvm/java-17-oracle"

Then, log out from your user (or restart) and log back in.

If you run the following command:

echo $JAVA_HOME

it should show:

/usr/lib/jvm/java-17-oracle

This means you have the correct JAVA_HOME version.

Step 3: cd Swordfish

cd is a terminal action that just means you should be inside the Swordfish directory.

To do that in a simple way, just open the extracted folder containing the Swordfish code. By default, it is called Swordfish-master.

Right-click inside it, and select "Open in terminal". The terminal opens, and you are in the Swordfish directory.

Then you just run the following commands (press ENTER each time, and wait until the process finishes). :

ant

This compiles the Java code

npm install

This downloads and installs the NodeJS dependencies

npm start

The last option will launch Swordfish.

Enjoy!

---

Optional: Making a simple executable.

Once you have built Swordfish, you can create a simple bash script to make Swordfish run without opening the terminal.

Inside the Swordfish folder, create a text file, open it and paste the following two lines:

#!/bin/bash
npm start

Save it with a name like "Swordfish.sh".

Then, right-click on the file and select Properties>Permissions.

Under Permissions, tick the box to render the file Executable.

Now, you can double-click the file and it should ask you if want to run this file.

Doing so will open Swordfish.


[Edited at 2021-11-26 15:54 GMT]
Collapse


 
Hans Lenting
Hans Lenting
Netherlands
Member (2006)
German to Dutch
Sounds complicated Nov 27, 2021

Did someone actually manage to build a working version, e.g. of the TMX editor?

 
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
TOPIC STARTER
Not too complicated Nov 27, 2021

German Dutch Engineering Translation wrote:

Did someone actually manage to build a working version, e.g. of the TMX editor?


https://github.com/rmraya/TMXEditor

TMXEditor has the same prerequisites and building instructions as Swordfish, which I have built and run successfully. The lengthy instructions above are there to complement the developer's short description, but the actual process is not too complicated.

I am not in front of my computer right now, but since I already have the required Java, Ant and NodeJS versions, all I have to do is download the GitHub code as a ZIP file, uncompress it, open a terminal at the location of the created directory and run the following instructions (hit ENTER after each one):

ant
npm install
npm start

If any of the instructions is unclear, please let me know.

[Edited at 2021-11-27 15:35 GMT]


 
Hans Lenting
Hans Lenting
Netherlands
Member (2006)
German to Dutch
Nov 30, 2021



[Edited at 2021-11-30 21:31 GMT]


 
Hans Lenting
Hans Lenting
Netherlands
Member (2006)
German to Dutch
Nov 30, 2021



[Edited at 2021-11-30 21:32 GMT]


 
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
TOPIC STARTER
TMXEditor // Getting support for maxprograms Dec 1, 2021

I too get an error when I try to run (npm start) TMXEditor.

To clarify, the detailed instructions above have been tested for Swordfish and Ubuntu 20.04. They may need to be adjusted for other Linux distributions or earlier Ubuntu versions.

MacOS or Windows (via WLS) users are welcome to share instructions to get Swordfish or other maxprograms to launch.

For the free/open source versions, peer support is avai
... See more
I too get an error when I try to run (npm start) TMXEditor.

To clarify, the detailed instructions above have been tested for Swordfish and Ubuntu 20.04. They may need to be adjusted for other Linux distributions or earlier Ubuntu versions.

MacOS or Windows (via WLS) users are welcome to share instructions to get Swordfish or other maxprograms to launch.

For the free/open source versions, peer support is available at https://groups.io/g/maxprograms/ or (I guess) the Swordfish support ProZ forum page.


[Edited at 2021-12-01 00:56 GMT]
Collapse


Hans Lenting
 
Hans Lenting
Hans Lenting
Netherlands
Member (2006)
German to Dutch
Peer support Dec 1, 2021

Jean Dimitriadis wrote:

For the free/open source versions, peer support is available at https://groups.io/g/maxprograms/ or (I guess) the Swordfish support ProZ forum page.


The admittance to the mailing list seems to be slow: I've requested for admittance months ago.


 
Jean Dimitriadis
Jean Dimitriadis  Identity Verified
English to French
+ ...
TOPIC STARTER
Try again? Dec 1, 2021

It was quick for me and it seems quite active. I suggest you try again.

 


To report site rules violations or get help, contact a site moderator:

Moderator(s) of this forum
Prachya Mruetusatorn[Call to this topic]

You can also contact site staff by submitting a support request »

Swordfish and maxprograms.com apps are now open source/free to use [Eclipse Public License - v 1.0]






Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

Buy now! »