Instructions from right to left instead of left to right


Author
Message
amey1
amey1
Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)
Group: Forum Members
Posts: 5, Visits: 17

Hello,
I would like to have the instructions page in arabic and therefore they need to be aligned on the right. 
 Currently, the instructions before each block are:

<item instructions>
/1= "Put your right finger on the 'I' response key for items that belong to the category '<%expressions.leftTarget%>'.
Put your left finger on the 'E' response key for items that belong to the category '<%expressions.rightTarget%>'.
~nItems will appear one-by-one in the middle of the screen.
~nIf you make an error, a red X will appear - to continue, press the other response key.
~nGo as fast as you can while making as few errors as possible."

but of course they read left to right and are aligned on the left. When I translate them into arabic the would need to be aligned on the right. Is there a way that I could change the alignment? 


Thank you very much in advance I appreciate your help.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
amey1 - Friday, September 15, 2017

Hello,
I would like to have the instructions page in arabic and therefore they need to be aligned on the right. 
 Currently, the instructions before each block are:

<item instructions>
/1= "Put your right finger on the 'I' response key for items that belong to the category '<%expressions.leftTarget%>'.
Put your left finger on the 'E' response key for items that belong to the category '<%expressions.rightTarget%>'.
~nItems will appear one-by-one in the middle of the screen.
~nIf you make an error, a red X will appear - to continue, press the other response key.
~nGo as fast as you can while making as few errors as possible."

but of course they read left to right and are aligned on the left. When I translate them into arabic the would need to be aligned on the right. Is there a way that I could change the alignment? 


Thank you very much in advance I appreciate your help.


You should be able to simply enter the Arabic text and it should be displayed correctly (right to left) on systems with Arabic language settings. You can also -- or in addition -- force right-to-left display via the <defaults> element's /bidirectional attribute:

<defaults >
/ bidirectional = true
</defaults>

Example:

<defaults >
/ bidirectional = true
</defaults>

<text mytext>
/ items = myitems
/ size = (90%, 90%)
/ txbgcolor = lightgrey
/ hjustify = left
</text>

<item myitems>
/ 1 = "ن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار  النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، فلا أحد يرفض أو يكره أو يتجنب الشعور بالسعادة، ولكن بفضل هؤلاء الأشخاص الذين لا يدركون بأن السعادة لا بد أن نستشعرها بصورة أكثر عقلانية ومنطقية فيعرضهم هذا لمواجهة الظروف الأليمة، وأكرر بأنه لا يوجد من يرغب في الحب ونيل المنال ويتلذذ بالآلام، الألم هو الألم ولكن نتيجة لظروف ما قد تكمن السعاده فيما نتحمله من كد وأسي.

و سأعرض مثال حي لهذا، من منا لم يتحمل جهد بدني شاق إلا من أجل الحصول على ميزة أو فائدة؟ ولكن من لديه الحق أن ينتقد شخص ما أراد أن يشعر بالسعادة التي لا تشوبها عواقب أليمة أو آخر أراد أن يتجنب الألم الذي ربما تنجم عنه بعض المتعة ؟
علي الجانب الآخر نشجب ونستنكر هؤلاء الرجال المفتونون بنشوة اللحظة الهائمون في رغباتهم فلا يدركون ما يعقبها من الألم والأسي المحتم، واللوم كذلك يشمل هؤلاء الذين أخفقوا في واجباتهم نتيجة لضعف إرادتهم فيتساوي مع هؤلاء الذين يتجنبون وينأون عن تحمل الكدح والألم ."
</item>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<block myblock>
/ trials = [1=mytrial]
</block>





amey1
amey1
Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)Respected Member (483 reputation)
Group: Forum Members
Posts: 5, Visits: 17
Dave - Friday, September 15, 2017
amey1 - Friday, September 15, 2017

Hello,
I would like to have the instructions page in arabic and therefore they need to be aligned on the right. 
 Currently, the instructions before each block are:

<item instructions>
/1= "Put your right finger on the 'I' response key for items that belong to the category '<%expressions.leftTarget%>'.
Put your left finger on the 'E' response key for items that belong to the category '<%expressions.rightTarget%>'.
~nItems will appear one-by-one in the middle of the screen.
~nIf you make an error, a red X will appear - to continue, press the other response key.
~nGo as fast as you can while making as few errors as possible."

but of course they read left to right and are aligned on the left. When I translate them into arabic the would need to be aligned on the right. Is there a way that I could change the alignment? 


Thank you very much in advance I appreciate your help.


You should be able to simply enter the Arabic text and it should be displayed correctly (right to left) on systems with Arabic language settings. You can also -- or in addition -- force right-to-left display via the <defaults> element's /bidirectional attribute:

<defaults >
/ bidirectional = true
</defaults>

Example:

<defaults >
/ bidirectional = true
</defaults>

<text mytext>
/ items = myitems
/ size = (90%, 90%)
/ txbgcolor = lightgrey
/ hjustify = left
</text>

<item myitems>
/ 1 = "ن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار  النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، فلا أحد يرفض أو يكره أو يتجنب الشعور بالسعادة، ولكن بفضل هؤلاء الأشخاص الذين لا يدركون بأن السعادة لا بد أن نستشعرها بصورة أكثر عقلانية ومنطقية فيعرضهم هذا لمواجهة الظروف الأليمة، وأكرر بأنه لا يوجد من يرغب في الحب ونيل المنال ويتلذذ بالآلام، الألم هو الألم ولكن نتيجة لظروف ما قد تكمن السعاده فيما نتحمله من كد وأسي.

و سأعرض مثال حي لهذا، من منا لم يتحمل جهد بدني شاق إلا من أجل الحصول على ميزة أو فائدة؟ ولكن من لديه الحق أن ينتقد شخص ما أراد أن يشعر بالسعادة التي لا تشوبها عواقب أليمة أو آخر أراد أن يتجنب الألم الذي ربما تنجم عنه بعض المتعة ؟
علي الجانب الآخر نشجب ونستنكر هؤلاء الرجال المفتونون بنشوة اللحظة الهائمون في رغباتهم فلا يدركون ما يعقبها من الألم والأسي المحتم، واللوم كذلك يشمل هؤلاء الذين أخفقوا في واجباتهم نتيجة لضعف إرادتهم فيتساوي مع هؤلاء الذين يتجنبون وينأون عن تحمل الكدح والألم ."
</item>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<block myblock>
/ trials = [1=mytrial]
</block>





Dear Dave. Thank you very much for your prompt reply! I will try it right away.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search