Giter Site home page Giter Site logo

rmraya / tmxeditor Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 15.0 48.82 MB

TMX Editor written in Java and TypeScript

Home Page: https://www.maxprograms.com/products/tmxeditor.html

License: Eclipse Public License 1.0

CSS 3.14% HTML 17.43% Java 28.60% TypeScript 50.82%
tmx tmx-files java nodejs

tmxeditor's People

Contributors

bansp avatar rmraya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tmxeditor's Issues

Build failed

$   git clone https://github.com/rmraya/TMXEditor.git
Cloning into 'TMXEditor'...
remote: Enumerating objects: 2169, done.
remote: Counting objects: 100% (783/783), done.
remote: Compressing objects: 100% (434/434), done.
remote: Total 2169 (delta 546), reused 517 (delta 296), pack-reused 1386
Receiving objects: 100% (2169/2169), 27.50 MiB | 1.68 MiB/s, done.
Resolving deltas: 100% (1463/1463), done.

$ cd TMXEditor/

$ ant
Buildfile: /home/aerobil/TMXEditor/build.xml

distclean:

clean:

init:
    [mkdir] Created dir: /home/aerobil/TMXEditor/out
     [copy] Copying 6 files to /home/aerobil/TMXEditor/out

compile:
    [javac] Compiling 26 source files to /home/aerobil/TMXEditor/out
    [javac] error: cannot access module-info
    [javac]   bad class file: /home/aerobil/TMXEditor/jars/openxliff.jar(/module-info.class)
    [javac]     class file has wrong version 61.0, should be 55.0
    [javac]     Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] /home/aerobil/TMXEditor/src/module-info.java:13: error: module not found: java.xml
    [javac] module tmxserver {
    [javac] ^
    [javac] 2 errors

BUILD FAILED
/home/aerobil/TMXEditor/build.xml:41: Compile failed; see the compiler error output for details.

Total time: 1 second

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-44-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ m3-6Y30 CPU @ 0.90GHz
Memory: 3,6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 515

$ java -version 
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment (build 11.0.13+8-Ubuntu-0ubuntu1.20.04)
OpenJDK 64-Bit Server VM (build 11.0.13+8-Ubuntu-0ubuntu1.20.04, mixed mode, sharing)

Modernized the app

Hi, @rmraya. Appreciate your work and the tech you made

I decided to modernize the app and did some work on it:

  • updated it to Gradle builds and Java Native Images. Added Gradle wrapper to avoid Ant downloading from official site
  • dropped support for Ant
  • fixed some bootstrap issues in typescript app
  • set Java 9 as minimal required

Created it in my project/branch, so you can check it first
https://github.com/vrudikov/TMXEditor/tree/feature/gradle-build

Leave your feedback please

BUILD FAILED - TMXEditor\build.xml:46: Problem: failed to create task or type link

Hi, thanks for making TMXEditor, making it open source and providing build instructions!

I can't build. Perhaps I'm just using a too old version of something? Seems to match the readme instructions though.

PS D:\TMXEditor> node --version
v16.6.1
PS D:\TMXEditor> ant -version
Apache Ant(TM) version 1.9.16 compiled on July 10 2021
PS D:\TMXEditor> java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
PS D:\TMXEditor> ant
Buildfile: D:\TMXEditor\build.xml

distclean:

clean:
   [delete] Deleting directory D:\TMXEditor\out

init:
    [mkdir] Created dir: D:\TMXEditor\out
     [copy] Copying 6 files to D:\TMXEditor\out

compile:
   [delete] Deleting: D:\TMXEditor\jars\tmxserver.jar
    [javac] Compiling 26 source files to D:\TMXEditor\out
      [jar] Building jar: D:\TMXEditor\jars\tmxserver.jar

link:

BUILD FAILED
D:\TMXEditor\build.xml:46: Problem: failed to create task or type link
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 1 second

Lines 46-48 of build.xml are:

        <link destDir="dist" modulepath="jars:${java.home}/jmods">
            <module name="tmxserver"/>
        </link>

Not open source — incorrect use of the term

The license states:

Redistribution of this Software or parts of it in any form (source code or executable binaries) requires prior written permission from Maxprograms.

Unfortunately, this violates the point 1 of the open source definition:

  1. Free Redistribution
    The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.

The license doesn’t allow further distribution of the source code:

  1. Source Code
    The program must include source code, and must allow distribution in source code as well as compiled form. Where some form of a product is not distributed with source code, there must be a well-publicized means of obtaining the source code for no more than a reasonable reproduction cost, preferably downloading via the Internet without charge. The source code must be the preferred form in which a programmer would modify the program. Deliberately obfuscated source code is not allowed. Intermediate forms such as the output of a preprocessor or translator are not allowed.

The license also doesn’t allow derived works:

  1. Derived Works
    The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software.

While the license doesn’t explicitly say so, the README file says “Source code of TMXEditor is free for personal use”, which may or may not be discrimination against persons or groups or fields of endeavour, violating points 5 or 6 of the definition, or both.

To avoid confusion, please refrain from using the term open source to refer to your software or its license until the license changes to a compliant one, if ever. The term you may want to use instead is source available.

Thanks.

I cant convert to TMx

I exported a .csv file and wanted to convert it to .tmx, but when trying to set language it shows that no columns found, i did opened the .csv file and everything is good and words there.

`tuv/@changedate` is not modified after an edit

It is great to be able to switch to this editor, thanks so much for your work, @rmraya !

I am thinking of using it as a quick-fix tool for a little multilingual corpus that I develop. It has 6 languages in parallel, but not in every tu. I have tested it, trying to see how I can identify the modified content.

Before I made the modification, I had ingested my TMX file and immediated saved it as the same filename, in order for the editor to reshuffle the attributes and to reformat the elements -- I wanted to have a basis for file differencing.

Then I saved it again, under a modified name, and modified the content (added a translation).

The result is a file that is nearly identical to the source, but where the source has <seg/>, the new file has

<seg>This is just an ugly test.</seg>

This is, of course, as intended.

However, the attributes of the affected tuv got copied over to the new version of the TXM file, without modification, including one attribute that I think should get modified by the tool, namely the attribute @changedate.

The TMX spec says:

changedate

Change date - Specifies the date of the last modification of the element.

Value description:

Date in [ISO 8601] Format. The recommended pattern to use is: YYYYMMDDThhmmssZ
Where: YYYY is the year (4 digits), MM is the month (2 digits), DD is the day (2 digits), hh is the hours (2 digits), mm is the minutes (2 digits), ss is the second (2 digits), and Z indicates the time is UTC time. For example:

date="20020125T210600Z"

(source: https://www.gala-global.org/tmx-14b#changedate )

(There is one other attribute of tuv that should get modified, namely @changeid, which "Specifies the identifier of the user who modified the element last." But I guess that, while the former issue is arguably a bug, a modification of @changeid might be tied to a feature request -- because the editor should probably give the user a chance to input their ID into the settings.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.