Adapting UsiXML User Interfaces to Cultural Background

26
Adapting UsiXML User Interfaces to Cultural Background Iyad Khaddam, Jean Vanderdonckt

description

Adapting a user interface to the end user's cultural background today remains an open challenge since many underlying issues are not yet solved. This paper addresses this challenge by reporting on a selected series of these issues, by structuring them according to Nielsen's linguistic model of interaction, and by discussing how each issue can be supported by incorporating its solution into a User Interface Description Language, such as User Interface eXtensible Markup Language (UsiXML), at the level of a Concrete User Interface (CUI). In particular, the problem of right-to-left (RTL) versus left-to-right languages (LTR) languages is discussed through a series of adaptations of algorithms and techniques that support the automated generation of Arabain graphical user interfaces based on UsiXML.

Transcript of Adapting UsiXML User Interfaces to Cultural Background

Page 1: Adapting UsiXML User Interfaces to Cultural Background

Adapting UsiXML User Interfaces to Cultural Background

Iyad Khaddam, Jean Vanderdonckt

Page 2: Adapting UsiXML User Interfaces to Cultural Background

Outlines

• Right To Left UI: What is it?• Awareness/support for RTL UI in SW products • Current RTL UI support in UsiXML• Suggested Updates to UsiXML• Towards Culturally-aware UsiXML UI

Page 3: Adapting UsiXML User Interfaces to Cultural Background

Right To Left UI: What is it?

Page 4: Adapting UsiXML User Interfaces to Cultural Background

Right To Left UI: What is it?

Page 5: Adapting UsiXML User Interfaces to Cultural Background

Right To Left UI: What is it?

Summary of RTL Effect on UI:• Orientation• Localization:

– Text localization• Text localization: language encoding and character set (alphabet).• Direction switching: direction of text writing.

– Graphics localization• RTL sensitive graphics (non-horizontally symmetrical)• Images with text inside• Other localizable images (country flag…)

– Control localization• Control rendering: ex: label control should support writing from right to left.• Control behaviour: controls should be aware of special behavior for special keys

(like pressing “enter” key in a text area)

Page 6: Adapting UsiXML User Interfaces to Cultural Background

Outlines

• Right To Left UI: What is it?• Awareness/support for RTL UI in SW products • Current RTL UI support in UsiXML• Suggested Updates to UsiXML• Towards Culturally-aware UsiXML UI

Page 7: Adapting UsiXML User Interfaces to Cultural Background

Awareness/support for RTL UI in SW products

• OS Support• ERP Products• UI Languages:

– XUL (XML User Interface)

Page 8: Adapting UsiXML User Interfaces to Cultural Background

XUL

Page 9: Adapting UsiXML User Interfaces to Cultural Background

Awareness/support for RTL UI in SW products

• OS Support• ERP Products• UI Languages:

– XUL (XML User Interface)– XAML

Page 10: Adapting UsiXML User Interfaces to Cultural Background

XAML

Page 11: Adapting UsiXML User Interfaces to Cultural Background

Outlines

• Right To Left UI: What is it?• Awareness/support for RTL UI in SW products • Current RTL UI support in UsiXML• Suggested Updates to UsiXML• Towards Culturally-aware UsiXML UI

Page 12: Adapting UsiXML User Interfaces to Cultural Background

Current RTL UI support in UsiXML

• Orientation: – UsiXML Supports Alignment (right, left, center).– UsiXML Supports Positioning

Positioning != Orientation

Page 13: Adapting UsiXML User Interfaces to Cultural Background

Current RTL UI support in UsiXML

• Localization:– Text localization

• Text Translation: Resource Model. Support for Unicode is needed.• Direction switching: Not Supported.

– Graphics localization• Supported• Number of localized images may be larger than LTR localized ones..

– Control localization• Not Supported.• All controls are direction-insensitive. Left to the FUI.• Problems: Reverse engineering, mixed UI with both LTR and RTL

controls.

Page 14: Adapting UsiXML User Interfaces to Cultural Background

Outlines

• Right To Left UI: What is it?• Awareness/support for RTL UI in SW products • Current RTL UI support in UsiXML• Suggested Updates to UsiXML• Towards Culturally-aware UsiXML UI

Page 15: Adapting UsiXML User Interfaces to Cultural Background

Suggested Updates to UsiXML

• Add a new property to Context Model. The “dir” property. Values in [RTL, LTR]. Optional prop.

• Add a new property to class 2DgraphicalCio: “dir” property. Inherits value from objects trees.

• Properties Usage.

Page 16: Adapting UsiXML User Interfaces to Cultural Background

Suggested Updates to UsiXML

• Optional: Minimized localized images• Image Component class: Add new property:

ImageDir [LTR, RTL, empty(null)]

ImageDir

LTR RTL empty

dir LTR Rotate

RTL Rotate

Page 17: Adapting UsiXML User Interfaces to Cultural Background

Suggested Updates to UsiXML

• Optional: Fixing the Direction switching• Add direction tags to text: <LTR/> and <RTL/>.

<RTL> في <RTL><LTR>Paris</LTR><RTL/>تقابلنا الماضية <RTL/>السنة

Page 18: Adapting UsiXML User Interfaces to Cultural Background

Outlines

• Right To Left UI: What is it?• Awareness/support for RTL UI in SW products • Current RTL UI support in UsiXML• Suggested Updates to UsiXML• Towards Culturally-aware UsiXML UI

Page 19: Adapting UsiXML User Interfaces to Cultural Background

Towards Culturally-aware UsiXML UI

• Usability:Tip 1: Align fields effectively: left-justify edit

fields. The corresponding labels should be right-justified and placed immediately beside the field.

Tips 2: Justify data appropriately: For columns of data: right-justify numbers, and left-justify strings.

Page 20: Adapting UsiXML User Interfaces to Cultural Background

Towards Culturally-aware UsiXML UI

• Revisit existing techniques for selecting and placing widgets in a GUI.– Automatic selection of widgets– Automatic laying out of widgets

• Cultural Dimensions

Page 21: Adapting UsiXML User Interfaces to Cultural Background

Towards Culturally-aware UsiXML UI

• Automatic selection of widgetsNsv Exp Cont Npo Precision Orientation CIO

>0 list box with right aligned items =0 yes combination box with right aligned edit field

no no [2,3] radio-button with Npo items[4,7] radio-button with Npo items + group box

[8,Tm] list box with right aligned items[Tm+1,2Tm] scrolling list box with right aligned items

>2Tm scrolling drop-down list box with right aligned boxes

yes [1,10] low vertical scroll barhorizontal Scale

circular pie diagram in counterclockwise presentation

undefined scalehigh vertical vertical thermometer

horizontal horizontal thermometercircular dial with Arabian presentation

undefined horizontal thermometer[11,Tm] high spin button

low scale >Tm high spin button

low vertical scroll barhorizontal scale

circular dial with Arabian presentationundefined scale

Page 22: Adapting UsiXML User Interfaces to Cultural Background

Towards Culturally-aware UsiXML UI

• Automatic laying out of widgetsif the total length does not exceed the limitthen

place Si+1 with horizontal sequencing from left to rightthree cases are to be considered1. height (Si) = height (Si+1)

apply proportional uniformity2. height (Si) > height (Si+1)

if Si+1 = edit boxthen

if Si = list box or edit boxthen apply bottom upper justificationelse apply upper bottom justification

3. height (Si) < height (Si+1)if available space is sufficientthen apply bottom upper justificationelse maximize upper bottom justification

elseplace Si+1 with vertical sequencing.

Page 23: Adapting UsiXML User Interfaces to Cultural Background

Towards Culturally-aware UsiXML UI

• Cultural DimensionsPDI    IDV    MAS    UAI    LTO   

  rank  score 

rank  score 

rank  score 

rank  score 

rank  score 

Arab Countries  7  80  26/27 

38  23  53  27  68     

Argentina  35/36 

49  22/23 

46  20/21 

56  10/15 

86     

Australia  41  36  2  90  16  61  37  51  15  31 

Austria  53  11  18  55  2  79  24/25 

70     

Bangladesh                 11  40 

Belgium  20  65  8  75  22  54  5/6  94     

Page 24: Adapting UsiXML User Interfaces to Cultural Background
Page 25: Adapting UsiXML User Interfaces to Cultural Background
Page 26: Adapting UsiXML User Interfaces to Cultural Background

Questions and Discussion

Thank you