abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r600417 - /incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java
Date Mon, 03 Dec 2007 01:47:44 GMT
Author: jmsnell
Date: Sun Dec  2 17:47:39 2007
New Revision: 600417

URL: http://svn.apache.org/viewvc?rev=600417&view=rev
Log:
Additional tweaks to the bidi display algorithm for the template

Modified:
    incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java

Modified: incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java?rev=600417&r1=600416&r2=600417&view=diff
==============================================================================
--- incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java
(original)
+++ incubator/abdera/java/trunk/dependencies/i18n/src/main/java/org/apache/abdera/i18n/templates/Template.java
Sun Dec  2 17:47:39 2007
@@ -81,7 +81,7 @@
         token, 
         forDisplay(token));
     }
-    return CharUtils.bidiLRE(pattern);
+    return CharUtils.bidiLRO(pattern);
   }
   
   private static String forDisplay(String token) {
@@ -90,25 +90,25 @@
     buf.append('{');
     if (splits.length == 1) {
       String[] pair = splits[0].split("\\s*=\\s*");
-      buf.append(CharUtils.bidiLRM(pair[0]));
+      buf.append(CharUtils.bidiLRE(pair[0]));
       if (pair.length > 1) {
         buf.append('=');
-        buf.append(CharUtils.bidiLRO(pair[1]));
+        buf.append(pair[1]);
       }
     } else {
       buf.append(splits[0]);
       buf.append('|');
-      buf.append(CharUtils.bidiLRO(splits[1]));
+      buf.append(splits[1]);
       buf.append('|');
       String[] vars = splits[2].split("\\s*,\\s*");
       int i = 0;
       for (String var : vars) {
         if (i++ > 0) buf.append(",");
         String[] pair = var.split("\\s*=\\s*");
-        buf.append(CharUtils.bidiLRM(pair[0]));
+        buf.append(CharUtils.bidiLRE(pair[0]));
         if (pair.length > 1) {
           buf.append('=');
-          buf.append(CharUtils.bidiLRO(pair[1]));
+          buf.append(pair[1]);
         }
       }
     }



Mime
View raw message