ICU-1472 fixes for halfwidth (also iteration mark)

X-SVN-Rev: 6839
This commit is contained in:
Mark Davis 2001-11-13 21:13:58 +00:00
parent 624dd35963
commit 4cceee4270
2 changed files with 16 additions and 6 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/dev/test/translit/WriteCharts.java,v $
* $Date: 2001/11/13 20:03:51 $
* $Revision: 1.7 $
* $Date: 2001/11/13 21:13:58 $
* $Revision: 1.8 $
*
*****************************************************************************************
*/
@ -67,7 +67,7 @@ public class WriteCharts {
scripts = UScript.getCode(target);
int targetScript = scripts[0];
if (targetScript == UScript.INVALID_CODE
|| targetScript < sourceScript) {
|| priority(targetScript) < priority(sourceScript)) {
// skip doing both directions
System.out.println("[Skipping '" + source + "-" + target + "']");
continue;
@ -94,6 +94,11 @@ public class WriteCharts {
return results;
};
public int priority(int script) {
if (script == UScript.LATIN) return -2;
return script;
}
public static String showScripts(int[] scripts) {
StringBuffer results = new StringBuffer();
for (int i = 0; i < scripts.length; ++i) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/test/translit/Attic/WriteCharts.java,v $
* $Date: 2001/11/13 20:03:51 $
* $Revision: 1.7 $
* $Date: 2001/11/13 21:13:58 $
* $Revision: 1.8 $
*
*****************************************************************************************
*/
@ -67,7 +67,7 @@ public class WriteCharts {
scripts = UScript.getCode(target);
int targetScript = scripts[0];
if (targetScript == UScript.INVALID_CODE
|| targetScript < sourceScript) {
|| priority(targetScript) < priority(sourceScript)) {
// skip doing both directions
System.out.println("[Skipping '" + source + "-" + target + "']");
continue;
@ -94,6 +94,11 @@ public class WriteCharts {
return results;
};
public int priority(int script) {
if (script == UScript.LATIN) return -2;
return script;
}
public static String showScripts(int[] scripts) {
StringBuffer results = new StringBuffer();
for (int i = 0; i < scripts.length; ++i) {