Return-Path: Delivered-To: apmail-incubator-abdera-commits-archive@locus.apache.org Received: (qmail 10675 invoked from network); 7 Dec 2006 03:57:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 03:57:34 -0000 Received: (qmail 98498 invoked by uid 500); 7 Dec 2006 03:57:43 -0000 Delivered-To: apmail-incubator-abdera-commits-archive@incubator.apache.org Received: (qmail 98471 invoked by uid 500); 7 Dec 2006 03:57:43 -0000 Mailing-List: contact abdera-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-commits@incubator.apache.org Received: (qmail 98462 invoked by uid 99); 7 Dec 2006 03:57:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 19:57:42 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 19:57:34 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 643A11A984E; Wed, 6 Dec 2006 19:56:52 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r483340 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/bidi/BidiHelper.java Date: Thu, 07 Dec 2006 03:56:51 -0000 To: abdera-commits@incubator.apache.org From: jmsnell@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061207035652.643A11A984E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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.

* - *

Based on http://www.ietf.org/internet-drafts/draft-snell-atompub-bidi-01.txt

+ *

Based on http://www.ietf.org/internet-drafts/draft-snell-atompub-bidi-02.txt

* *

Example:

*
@@ -39,14 +39,14 @@
  * 
* *

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.

* *
  *    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
- *    //
  * 
* */ @@ -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; } }