You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2006/12/07 04:56:51 UTC
svn commit: r483340 -
/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java
Author: jmsnell
Date: Wed Dec 6 19:56:50 2006
New Revision: 483340
URL: http://svn.apache.org/viewvc?view=rev&rev=483340
Log:
Updating to the latest bidi draft
Modified:
incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java
Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java?view=diff&rev=483340&r1=483339&r2=483340
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java (original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java Wed Dec 6 19:56:50 2006
@@ -29,7 +29,7 @@
* still details being worked out on the Atom WG list and it's likely that
* at least one other impl (mozilla) will do something slightly different.</p>
*
- * <p>Based on http://www.ietf.org/internet-drafts/draft-snell-atompub-bidi-01.txt</p>
+ * <p>Based on http://www.ietf.org/internet-drafts/draft-snell-atompub-bidi-02.txt</p>
*
* <p>Example:</p>
* <pre>
@@ -39,14 +39,14 @@
* </pre>
*
* <p>The getBidi___ elements use the in-scope direction to wrap the text with
- * the appropriate Unicode control characters. e.g. if dir="rlo", the text is
- * wrapped with the RLO and PDF controls. If the text already contains the
+ * the appropriate Unicode control characters. e.g. if dir="rtl", the text is
+ * wrapped with the RLE and PDF controls. If the text already contains the
* control chars, the dir attribute is ignored.</p>
*
* <pre>
* org.apache.abdera.Abdera abdera = new org.apache.abdera.Abdera();
* org.apache.abdera.model.Feed feed = abdera.getFactory().newFeed();
- * feed.setAttributeValue("dir", "rlo");
+ * feed.setAttributeValue("dir", "rtl");
* feed.setTitle("Testing");
* feed.addCategory("foo");
*
@@ -56,12 +56,6 @@
* System.out.println(
* BidiHelper.getBidiAttributeValue(
* feed.getCategories().get(0),"term"));
- *
- * // Output:
- * //
- * // > gnitseT
- * // > oof
- * //
* </pre>
*
*/
@@ -71,7 +65,7 @@
BidiHelper() {}
- public enum Direction { UNSPECIFIED, LTR, RTL, LRO, RLO };
+ public enum Direction { UNSPECIFIED, LTR, RTL};
/**
* Set the value of dir attribute
@@ -119,8 +113,6 @@
switch (direction) {
case LTR: return CharUtils.bidiLRE(text);
case RTL: return CharUtils.bidiRLE(text);
- case LRO: return CharUtils.bidiLRO(text);
- case RLO: return CharUtils.bidiRLO(text);
default: return text;
}
}