From 08c67c97b2c9d5028471a6b37ee3efc322a5549e Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Sun, 23 Jul 2017 12:19:13 +0200 Subject: [PATCH] Removed local translator in favor of github project by myself, and changed away from Intellij's designer layout. --- README.md | 4 +- pom.xml | 63 +++ src/{ => main/java}/net/agspace/Main.java | 3 +- src/{ => main/java}/net/agspace/Utils.java | 0 src/{ => main/java}/net/agspace/Window.form | 49 ++- src/main/java/net/agspace/Window.java | 408 ++++++++++++++++++ .../resources/EnglishOneToOneTengwarV2-1.pdf | Bin src/{ => main}/resources/clear.png | Bin src/{ => main}/resources/icon.png | Bin src/{ => main}/resources/tngan.ttf | Bin src/{ => main}/resources/tnganb.ttf | Bin src/{ => main}/resources/tnganbi.ttf | Bin src/{ => main}/resources/tngani.ttf | Bin src/{ => main}/resources/toEnglish.png | Bin src/{ => main}/resources/toTengwar.png | Bin src/net/agspace/Window.java | 236 ---------- 16 files changed, 506 insertions(+), 257 deletions(-) create mode 100644 pom.xml rename src/{ => main/java}/net/agspace/Main.java (96%) rename src/{ => main/java}/net/agspace/Utils.java (100%) rename src/{ => main/java}/net/agspace/Window.form (82%) create mode 100644 src/main/java/net/agspace/Window.java rename src/{ => main}/resources/EnglishOneToOneTengwarV2-1.pdf (100%) rename src/{ => main}/resources/clear.png (100%) rename src/{ => main}/resources/icon.png (100%) rename src/{ => main}/resources/tngan.ttf (100%) rename src/{ => main}/resources/tnganb.ttf (100%) rename src/{ => main}/resources/tnganbi.ttf (100%) rename src/{ => main}/resources/tngani.ttf (100%) rename src/{ => main}/resources/toEnglish.png (100%) rename src/{ => main}/resources/toTengwar.png (100%) delete mode 100644 src/net/agspace/Window.java diff --git a/README.md b/README.md index fd22609..d755d52 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # TengwarTranslator -![icon.png](/src/resources/icon.png "TengwarTranslator Icon") +![icon.png](/icon.png "TengwarTranslator Icon") ### About the Program @@ -11,7 +11,7 @@ Java's Built-in *Swing* library is used to provide the cross-platform user inter ### Translation -Since Tengwar is inherently a phonetic script, converting english to Tengwar would be almost impossible, and would require extremely advanced software to detect how individual words are pronounced. To avoid this, I created my [own Tengwar mode](/src/resources/EnglishOneToOneTengwarV2-1.pdf "English to Tengwar") which can be used to transcribe to and from English in a way that no information is lost in the transcription, as would be the case with normal Tengwar. I do this by including characters to represent every English letter, while still obeying the rules concerning placement of vowel diacritics and compound characters. The characters are shown below. +Since Tengwar is inherently a phonetic script, converting english to Tengwar would be almost impossible, and would require extremely advanced software to detect how individual words are pronounced. To avoid this, I created my [own Tengwar mode](/EnglishOneToOneTengwarV2-1.pdf "English to Tengwar") which can be used to transcribe to and from English in a way that no information is lost in the transcription, as would be the case with normal Tengwar. I do this by including characters to represent every English letter, while still obeying the rules concerning placement of vowel diacritics and compound characters. The characters are shown below. ![Tengwar](https://puu.sh/vtyfi/598ad704e1.png "Tengwar Characters") diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c67d3b4 --- /dev/null +++ b/pom.xml @@ -0,0 +1,63 @@ + + + 4.0.0 + + com.github.andrewlalis + TengwarTypewriter + 1.0 + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.6.1 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-assembly-plugin + 3.0.0 + + + jar-with-dependencies + + + + net.agspace.Main + + + + + + package + + single + + + + + + + jar + + + + jitpack.io + https://jitpack.io + + + + + + com.github.andrewlalis + TengwarTranslatorLibrary + 1.3 + + + + \ No newline at end of file diff --git a/src/net/agspace/Main.java b/src/main/java/net/agspace/Main.java similarity index 96% rename from src/net/agspace/Main.java rename to src/main/java/net/agspace/Main.java index 3ac603b..ed48171 100644 --- a/src/net/agspace/Main.java +++ b/src/main/java/net/agspace/Main.java @@ -3,7 +3,6 @@ package net.agspace; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; import java.awt.event.InputEvent; import java.awt.event.KeyEvent; @@ -14,7 +13,7 @@ import java.awt.event.KeyEvent; public class Main { private static final String TITLE = "Tengwar Typewriter"; - private static final String ICON_PATH = "resources/icon.png"; + private static final String ICON_PATH = "icon.png"; public static void main(String[] args){ JFrame f = new JFrame(TITLE); diff --git a/src/net/agspace/Utils.java b/src/main/java/net/agspace/Utils.java similarity index 100% rename from src/net/agspace/Utils.java rename to src/main/java/net/agspace/Utils.java diff --git a/src/net/agspace/Window.form b/src/main/java/net/agspace/Window.form similarity index 82% rename from src/net/agspace/Window.form rename to src/main/java/net/agspace/Window.form index 1cf4680..1b357f6 100644 --- a/src/net/agspace/Window.form +++ b/src/main/java/net/agspace/Window.form @@ -1,7 +1,6 @@
- - + @@ -10,30 +9,34 @@ - - + + - - + + - + + + + + @@ -42,6 +45,7 @@ + @@ -58,10 +62,10 @@ - - + + @@ -69,21 +73,28 @@ - - + + - + + + + + + + + @@ -92,6 +103,7 @@ + @@ -108,10 +120,10 @@ - - + + @@ -119,9 +131,10 @@ + - +