-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4223d5b
commit a1c5e08
Showing
47 changed files
with
5,851 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,80 @@ | ||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
*.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
.DS_Store | ||
.idea/shelf | ||
/confluence/target | ||
/dependencies/repo | ||
/android.tests.dependencies | ||
/dependencies/android.tests.dependencies | ||
/dist | ||
/local | ||
/gh-pages | ||
/ideaSDK | ||
/clionSDK | ||
/android-studio/sdk | ||
out/ | ||
/tmp | ||
/intellij | ||
workspace.xml | ||
*.versionsBackup | ||
/idea/testData/debugger/tinyApp/classes* | ||
/jps-plugin/testData/kannotator | ||
/js/js.translator/testData/out/ | ||
/js/js.translator/testData/out-min/ | ||
/js/js.translator/testData/out-pir/ | ||
.gradle/ | ||
build/ | ||
!**/src/**/build | ||
!**/test/**/build | ||
*.iml | ||
!**/testData/**/*.iml | ||
.idea/remote-targets.xml | ||
.idea/libraries/Gradle*.xml | ||
.idea/libraries/Maven*.xml | ||
.idea/artifacts/PILL_*.xml | ||
.idea/artifacts/KotlinPlugin.xml | ||
.idea/modules | ||
.idea/runConfigurations/JPS_*.xml | ||
.idea/runConfigurations/_JPS_*.xml | ||
.idea/runConfigurations/PILL_*.xml | ||
.idea/runConfigurations/_FP_*.xml | ||
.idea/runConfigurations/_MT_*.xml | ||
.idea/libraries | ||
.idea/modules.xml | ||
.idea/gradle.xml | ||
.idea/compiler.xml | ||
.idea/inspectionProfiles/profiles_settings.xml | ||
.idea/.name | ||
.idea/artifacts/dist_auto_* | ||
.idea/artifacts/dist.xml | ||
.idea/artifacts/ideaPlugin.xml | ||
.idea/artifacts/kotlinc.xml | ||
.idea/artifacts/kotlin_compiler_jar.xml | ||
.idea/artifacts/kotlin_plugin_jar.xml | ||
.idea/artifacts/kotlin_jps_plugin_jar.xml | ||
.idea/artifacts/kotlin_daemon_client_jar.xml | ||
.idea/artifacts/kotlin_imports_dumper_compiler_plugin_jar.xml | ||
.idea/artifacts/kotlin_main_kts_jar.xml | ||
.idea/artifacts/kotlin_compiler_client_embeddable_jar.xml | ||
.idea/artifacts/kotlin_reflect_jar.xml | ||
.idea/artifacts/kotlin_stdlib_js_ir_* | ||
.idea/artifacts/kotlin_test_js_ir_* | ||
.idea/artifacts/kotlin_dom_api_compat_* | ||
.idea/artifacts/kotlin_stdlib_wasm_* | ||
.idea/artifacts/kotlin_test_wasm_* | ||
.idea/artifacts/kotlinx_atomicfu_runtime_* | ||
.idea/artifacts/kotlinx_cli_jvm_* | ||
.idea/artifacts/plugin_annotations_*.xml | ||
.idea/jarRepositories.xml | ||
.idea/csv-plugin.xml | ||
.idea/libraries-with-intellij-classes.xml | ||
.idea/misc.xml | ||
.idea/protoeditor.xml | ||
node_modules/ | ||
.rpt2_cache/ | ||
libraries/tools/kotlin-test-js-runner/lib/ | ||
local.properties | ||
buildSrcTmp/ | ||
distTmp/ | ||
outTmp/ | ||
/test.output | ||
/kotlin-native/dist | ||
kotlin-ide/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# SwfTranslator | ||
Translate swf files with DeepL | ||
|
||
## Usage | ||
Translate swf automatically | ||
``` | ||
java -jar SwfTranslator.jar translate "test.swf" -k <DeepL auth key> -t ru | ||
``` | ||
|
||
Parse text from swf to json, translate json with DeepL (and then edit it manually), add changes to swf | ||
``` | ||
java -jar SwfTranslator.jar parse "test.swf" | ||
java -jar SwfTranslator.jar translate "test.json" -k <DeepL auth key> -s en-US -t ru | ||
java -jar SwfTranslator.jar patch "test.swf" "test-translated.json" -f Arial | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
kotlin("jvm") version "1.8.22" | ||
kotlin("plugin.serialization") version "1.8.22" | ||
application | ||
} | ||
|
||
group = "ru.megageorgio.utils" | ||
version = "0.1" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("com.deepl.api:deepl-java:1.3.0") | ||
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5") | ||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") | ||
implementation(fileTree("dir" to "lib", "includes" to listOf("*.jar"))) | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform() | ||
} | ||
|
||
tasks.withType<KotlinCompile> { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
|
||
application { | ||
mainClass.set("ru.megageorgio.utils.swftranslator.MainKt") | ||
} | ||
|
||
tasks.jar { | ||
manifest.attributes["Main-Class"] = application.mainClass | ||
val dependencies = configurations | ||
.runtimeClasspath | ||
.get() | ||
.map(::zipTree) | ||
from(dependencies) | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kotlin.code.style=official |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.