Browse Prior Art Database

A testing method for bidirectional languages with Unicode control characters

IP.com Disclosure Number: IPCOM000241737D
Publication Date: 2015-May-27
Document File: 5 page(s) / 101K

Publishing Venue

The IP.com Prior Art Database

Abstract

This method adds Unicode control characters or equivalent HTML markup into English strings to change the bidirectional character type of these English characters. That is, the method forces English characters to be treated as strong right-to-left characters when these strings are displayed to users. It would simulate a real bidi test environment.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 01 of 5

A testing method for bidirectional languages with Unicode control characters

During bidi(bidirectional or bidirectional languages) test, one of the basic features for bidi enablement should be covered as follows.

The predominant direction, which is called the Base Text Direction. Base Text Direction (BTD) is appropriate for translated resource strings.

With current method, the resource files have not been translated when test is executing. Then the UI text is still in English even when language preference is changed to a bidi language such as Arabic or Hebrew. However, untranslated resource files would cause fundamental problems for bidi test.

Because English characters have different bidirectional character type from bidi language characters, in this case the order and rendering of text with English UI is different with the situation in a real bidi environment. These problems will affect the accuracy of test, and many defects would be missing during test.

Therefore, a need exists for a method to solve the problem for bidi test, which can simulate real bidi test environment with English text and resource files.

This method adds Unicode control characters or equivalent HTML markup into English strings to change the bidirectional character type of these English characters. That is, the method forces English characters to be treated as strong right-to-left characters when these strings are displayed to users. It would simulate a real bidi test environment.

The following table gives Unicode control characters or equivalent HTML markup which would be used in this method. RLO and PDF, RLE and PDF are used in pairs.


* RLO, RLE and PDF mentioned here all are Unicode control characters:
RLO: the full name is RIGHT-TO-LEFT OVERRIDE and its Unicode code is U+202E, which can force following characters to be treated as strong right-to-left characters.

RLE: the full name is RIGHT-TO-LEFT EMBEDDING and its Unicode code is U+202B, which can treat the following text as embedded right-to-left.

PDF: the full name is POP DIRECTIONAL FORMATTING and its Unicode code is U+202C, which can restore the bidirectional state to what it was before the last RLE and RLO.

Unicode control characters Unicode codes Equivalent HTML markup

dir = "rtl"

nothing there is no need when used with dir="rtl" which is

only an attribute

Comment

RLO

RLE

U+202E

U+202B

attribute on block or inline element

PDF

U+202C

when used to close

1



Page 02 of 5

The method provi...