Merge "Rename maketext tool to make-keyboard-text"
commit
d03e5bd761
|
@ -27,18 +27,18 @@ import java.util.HashMap;
|
|||
/**
|
||||
* !!!!! DO NOT EDIT THIS FILE !!!!!
|
||||
*
|
||||
* This file is generated by tools/maketext. The base template file is
|
||||
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
|
||||
* This file is generated by tools/make-keyboard-text. The base template file is
|
||||
* 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.
|
||||
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
|
||||
* 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.
|
||||
* $ cd $ANDROID_BUILD_TOP
|
||||
* $ mmm packages/inputmethods/LatinIME/tools/maketext
|
||||
* $ maketext -java packages/inputmethods/LatinIME/java/src
|
||||
* $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
|
||||
* $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
|
||||
*
|
||||
* The updated source file will be generated to the following path (this file).
|
||||
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
|
||||
|
|
|
@ -19,7 +19,7 @@ include $(CLEAR_VARS)
|
|||
LOCAL_SRC_FILES += $(call all-java-files-under,src)
|
||||
LOCAL_JAR_MANIFEST := etc/manifest.txt
|
||||
LOCAL_JAVA_RESOURCE_DIRS := res
|
||||
LOCAL_MODULE := maketext
|
||||
LOCAL_MODULE := make-keyboard-text
|
||||
|
||||
include $(BUILD_HOST_JAVA_LIBRARY)
|
||||
include $(LOCAL_PATH)/etc/Android.mk
|
|
@ -15,6 +15,6 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_PREBUILT_EXECUTABLES := maketext
|
||||
LOCAL_PREBUILT_EXECUTABLES := make-keyboard-text
|
||||
|
||||
include $(BUILD_HOST_PREBUILT)
|
|
@ -33,7 +33,7 @@ progdir=`pwd`
|
|||
prog="${progdir}"/`basename "${prog}"`
|
||||
cd "${oldwd}"
|
||||
|
||||
jarfile=maketext.jar
|
||||
jarfile=make-keyboard-text.jar
|
||||
frameworkdir="$progdir"
|
||||
if [ ! -r "$frameworkdir/$jarfile" ]
|
||||
then
|
|
@ -0,0 +1 @@
|
|||
Main-Class: com.android.inputmethod.keyboard.tools.MakeKeyboardText
|
|
@ -27,18 +27,18 @@ import java.util.HashMap;
|
|||
/**
|
||||
* !!!!! DO NOT EDIT THIS FILE !!!!!
|
||||
*
|
||||
* This file is generated by tools/maketext. The base template file is
|
||||
* tools/maketext/res/com/android/inputmethod/keyboard/internal/KeyboardTextsSet.tmpl
|
||||
* This file is generated by tools/make-keyboard-text. The base template file is
|
||||
* 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.
|
||||
* These text resources are referred as "!text/<resource_name>" in keyboard XML definitions,
|
||||
* 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.
|
||||
* $ cd $ANDROID_BUILD_TOP
|
||||
* $ mmm packages/inputmethods/LatinIME/tools/maketext
|
||||
* $ maketext -java packages/inputmethods/LatinIME/java/src
|
||||
* $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text
|
||||
* $ make-keyboard-text -java packages/inputmethods/LatinIME/java/src
|
||||
*
|
||||
* The updated source file will be generated to the following path (this file).
|
||||
* packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.latin.maketext;
|
||||
package com.android.inputmethod.keyboard.tools;
|
||||
|
||||
import java.io.PrintStream;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.latin.maketext;
|
||||
package com.android.inputmethod.keyboard.tools;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
|
@ -14,14 +14,14 @@
|
|||
* the License.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.latin.maketext;
|
||||
package com.android.inputmethod.keyboard.tools;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.LinkedList;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.jar.JarFile;
|
||||
|
||||
public class LabelText {
|
||||
public class MakeKeyboardText {
|
||||
static class Options {
|
||||
private static final String OPTION_JAVA = "-java";
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class LabelText {
|
|||
if (message != null) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ public class LabelText {
|
|||
|
||||
public static void main(final String[] 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);
|
||||
resources.writeToJava(options.mJava);
|
||||
}
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.latin.maketext;
|
||||
package com.android.inputmethod.keyboard.tools;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.File;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.inputmethod.latin.maketext;
|
||||
package com.android.inputmethod.keyboard.tools;
|
||||
|
||||
public class StringResource {
|
||||
public final String mName;
|
|
@ -14,7 +14,7 @@
|
|||
* 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.SAXException;
|
|
@ -1 +0,0 @@
|
|||
Main-Class: com.android.inputmethod.latin.maketext.LabelText
|
Loading…
Reference in New Issue