Rename maketext tool to make-keyboard-text

Change-Id: Icceda22aec75f9e3602da8775c0e94b110283575
main
Tadashi G. Takaoka 2013-08-13 12:34:01 +09:00
parent 0adc8a2ad3
commit ca6acfdd6b
63 changed files with 23 additions and 23 deletions

View File

@ -27,18 +27,18 @@ import java.util.HashMap;
/** /**
* !!!!! DO NOT EDIT THIS FILE !!!!! * !!!!! DO NOT EDIT THIS FILE !!!!!
* *
* This file is generated by tools/maketext. The base template file is * This file is generated by tools/make-keyboard-text. The base template file is
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl * tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
* *
* This file must be updated when any text resources in keyboard layout files have been changed. * This file must be updated when any text resources in keyboard layout files have been changed.
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions, * These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
* and should be defined in * and should be defined in
* tools/maketext/res/values-<locale>/donottranslate-more-keys.xml * tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml
* *
* To update this file, please run the following commands. * To update this file, please run the following commands.
* $ cd $ANDROID_BUILD_TOP * $ cd $ANDROID_BUILD_TOP
* $ mmm packages/inputmethods/LatinIME/tools/maketext * $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
* $ maketext -java packages/inputmethods/LatinIME/java/src * $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
* *
* The updated source file will be generated to the following path (this file). * The updated source file will be generated to the following path (this file).
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ * packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/

View File

@ -19,7 +19,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES += $(call all-java-files-under,src) LOCAL_SRC_FILES += $(call all-java-files-under,src)
LOCAL_JAR_MANIFEST := etc/manifest.txt LOCAL_JAR_MANIFEST := etc/manifest.txt
LOCAL_JAVA_RESOURCE_DIRS := res LOCAL_JAVA_RESOURCE_DIRS := res
LOCAL_MODULE := maketext LOCAL_MODULE := make-keyboard-text
include $(BUILD_HOST_JAVA_LIBRARY) include $(BUILD_HOST_JAVA_LIBRARY)
include $(LOCAL_PATH)/etc/Android.mk include $(LOCAL_PATH)/etc/Android.mk

View File

@ -15,6 +15,6 @@
LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_PREBUILT_EXECUTABLES := maketext LOCAL_PREBUILT_EXECUTABLES := make-keyboard-text
include $(BUILD_HOST_PREBUILT) include $(BUILD_HOST_PREBUILT)

View File

@ -33,7 +33,7 @@ progdir=`pwd`
prog="${progdir}"/`basename "${prog}"` prog="${progdir}"/`basename "${prog}"`
cd "${oldwd}" cd "${oldwd}"
jarfile=maketext.jar jarfile=make-keyboard-text.jar
frameworkdir="$progdir" frameworkdir="$progdir"
if [ ! -r "$frameworkdir/$jarfile" ] if [ ! -r "$frameworkdir/$jarfile" ]
then then

View File

@ -0,0 +1 @@
Main-Class: com.android.inputmethod.keyboard.tools.MakeKeyboardText

View File

@ -27,18 +27,18 @@ import java.util.HashMap;
/** /**
* !!!!! DO NOT EDIT THIS FILE !!!!! * !!!!! DO NOT EDIT THIS FILE !!!!!
* *
* This file is generated by tools/maketext. The base template file is * This file is generated by tools/make-keyboard-text. The base template file is
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl * tools/make-keyboard-text/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
* *
* This file must be updated when any text resources in keyboard layout files have been changed. * This file must be updated when any text resources in keyboard layout files have been changed.
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions, * These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
* and should be defined in * and should be defined in
* tools/maketext/res/values-<locale>/donottranslate-more-keys.xml * tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml
* *
* To update this file, please run the following commands. * To update this file, please run the following commands.
* $ cd $ANDROID_BUILD_TOP * $ cd $ANDROID_BUILD_TOP
* $ mmm packages/inputmethods/LatinIME/tools/maketext * $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
* $ maketext -java packages/inputmethods/LatinIME/java/src * $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
* *
* The updated source file will be generated to the following path (this file). * The updated source file will be generated to the following path (this file).
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ * packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
import java.io.PrintStream; import java.io.PrintStream;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;

View File

@ -14,14 +14,14 @@
* the License. * the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
import java.util.Arrays; import java.util.Arrays;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.NoSuchElementException; import java.util.NoSuchElementException;
import java.util.jar.JarFile; import java.util.jar.JarFile;
public class LabelText { public class MakeKeyboardText {
static class Options { static class Options {
private static final String OPTION_JAVA = "-java"; private static final String OPTION_JAVA = "-java";
@ -31,7 +31,7 @@ public class LabelText {
if (message != null) { if (message != null) {
System.err.println(message); System.err.println(message);
} }
System.err.println("usage: makelabel " + OPTION_JAVA + " <java_output_dir>"); System.err.println("usage: make-keyboard-text " + OPTION_JAVA + " <java_output_dir>");
System.exit(1); System.exit(1);
} }
@ -58,7 +58,7 @@ public class LabelText {
public static void main(final String[] args) { public static void main(final String[] args) {
final Options options = new Options(args); final Options options = new Options(args);
final JarFile jar = JarUtils.getJarFile(LabelText.class); final JarFile jar = JarUtils.getJarFile(MakeKeyboardText.class);
final MoreKeysResources resources = new MoreKeysResources(jar); final MoreKeysResources resources = new MoreKeysResources(jar);
resources.writeToJava(options.mJava); resources.writeToJava(options.mJava);
} }

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
import java.io.Closeable; import java.io.Closeable;
import java.io.File; import java.io.File;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
public class StringResource { public class StringResource {
public final String mName; public final String mName;

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package com.android.inputmethod.latin.maketext; package com.android.inputmethod.keyboard.tools;
import org.xml.sax.Attributes; import org.xml.sax.Attributes;
import org.xml.sax.SAXException; import org.xml.sax.SAXException;

View File

@ -1 +0,0 @@
Main-Class: com.android.inputmethod.latin.maketext.LabelText