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
//def res = new sun.awt.resources.awt_ja() | |
def res = new sun.awt.resources.awt() | |
res.getContents().each {console.println "${it[0]}, ${it[1]}"} |
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
org.omegat.tokenizer.LuceneEnglishTokenizer | |
-------------------- | |
0. "fooled" | |
1. "by" | |
2. "a" | |
3. "smile" | |
org.omegat.tokenizer.LuceneJapaneseTokenizer | |
-------------------- | |
0. "fooled" |
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
console.println 'Enumerate filtered segments.' | |
def entries = project.allEntries | |
def filter = editor.filter ?: [allowed: {true}] | |
def found = entries.findAll { filter.allowed it } | |
// Do something for each SourceTextEntry here | |
found.each { | |
// get translation info | |
def info = project.getTranslationInfo(it) |
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
/* | |
* PoC for segment shortcut | |
* | |
* Related RFE : http://sourceforge.net/p/omegat/feature-requests/1038/ | |
* Hint : Put this script to <ScriptsDir>/application_startup folder | |
* to automatically execution at every time OmT launching. | |
* | |
* @author Yu Tang | |
* @date 2014-12-21 | |
* @version 0.1 |
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
/* | |
* Allow to support Jython for OmegaT Scripting | |
* | |
* Usage: step 1. Get embedding Jython from http://www.jython.org/ | |
* step 2. Adjust config setting and run this script | |
* Note : It's enabling Jython just while current session. | |
* Hint : Put this script to <ScriptsDir>/application_startup folder | |
* to automatically execution at every time OmT launching. | |
* Caution: This script is very hacky. Proceed at your own risk. | |
* |
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
/** :name=.trc を TMX に変換 :description=翻訳Atlas の対訳ファイル(.trc)を TMX ファイルに変換する | |
* | |
* 翻訳Atlas の対訳ファイル(.trc)を TMX ファイルに変換する OmegaT 用スクリプト | |
* | |
* .trc のデータ形式は、下記を参照した。 | |
* | |
* ATLAS で gettext PO ファイルの翻訳をしたい その2 | |
* http://ta-memo.blogspot.jp/2011/05/atlas-gettext-po-2.html | |
* | |
* 使い方: |
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
/*** | |
* required: OmegaT 3.1.3 or later | |
* this file must be saved at the inside of <your-scripts-folder>/application_startup/ folder. | |
***/ | |
new ConfigSlurper().parse(""" | |
// ***** CONFIG START: EDIT BELOW ***** | |
/*** Google Translate v2 API key ***/ | |
//google.api.key='xxxxx' |
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
'********************************************************************* | |
' MergeDocs.vbs | |
' Merge two .docx files paragraph-by-paragraph. | |
'--------------------------------------------------------------------- | |
' Author : Yu Tang | |
' Version : 0.1.1 | |
' Lisence : GPLv3 | |
' Required : Microsoft Word installed. | |
' Usage : 1. D&D source file from OmegaT project source dir. | |
' or |
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
VERSION 1.0 CLASS | |
BEGIN | |
MultiUse = -1 'True | |
END | |
Attribute VB_Name = "BinaryReader" | |
Attribute VB_GlobalNameSpace = False | |
Attribute VB_Creatable = False | |
Attribute VB_PredeclaredId = False | |
Attribute VB_Exposed = False | |
Option Compare Binary |