Hi, I am sorry to say that RTL-support in LON-CAPA is very limited. I had build a prototype of a new system,
https://github.com/gerdkortemeyer/loncapa which has full RTL-support for all output, homework, editors, etc. Unfortunately, we do not have enough funding to develop that prototype into a real system or even to integrate aspects into the production system. If anybody wants to look what’s done in the prototype and integrate that into the production system, that would be great. And yes, funding would be nice … BTW: something that might help for at least option-response is the <drawoptionlist />-tag, which at least allows you to move around where the dropdown-menu appears. - Gerd. > On Jun 5, 2018, at 9:35 AM, Itay <it...@nospammail.net> wrote: > > Hi > > We are interested in developing content in Hebrew which is a Right-to-left > (RTL) language. > We have authored several test problems in order to see the extent of RTL > support. > To achieve correct directionality of the text within sentences we have used > the <span> tags with the RTL attribute. > However, this does not provide good support for RTL alignment of paragraphs. > For example, in a radiobutton response, the radio buttons appear on the wrong > side, see minimal example below. > > We haven’t found in the manuals any instructions for authoring content in RTL > languages. > We wonder if full RTL support is available for Lon-Capa content and interface > (including menus, etc.). > If such support is not available built-in, we would appreciate any > information as regard to implementing such support. > > Minimal examples follow below. > (Note: this message was sent to the developers' list but did not receive any > response. So we try our luck here.) > Thank you in advance. > > Itay Furman & Yair Naveh > Jerusalem College of Engineering, Israel > > > <problem> > <!-- Test full RTL support : demonstrate wrong placement of submission > field. --> > <script type="loncapa/perl"> > $a=&random(1,10,1); $b=&random(1,10,1); $c=$a+$b; > </script> > <startouttext /> > <translated> > <span dir="rtl">חשבו: כמה זה $a + $b?</span> > </translated> > <endouttext /> > <numericalresponse answer="$c"> > <textline /> > </numericalresponse> > </problem> > > > <problem> > <!-- Test full RTL support : > demonstrate wrong placement of radiobuttions, and wrong alignment of > margins. --> > <span dir="rtl"> > <startouttext /> > כמה זה 1+1? > <endouttext /> > <radiobuttonresponse max="10" randomize="yes"> > <foilgroup> > <foil location="random" value="true" name="foil1"> > <startouttext />2 (זוהי תשובה נכונה).<endouttext /> > </foil> > <foil location="random" value="false" name="foil2"> > <startouttext />4 (זוהי תשובה שקרית).<endouttext /> > </foil> > <foil location="random" value="false" name="foil3"> > <startouttext />5.5 (זוהי תשובה שקרית).<endouttext /> > </foil> > </foilgroup> > </radiobuttonresponse> > </span> > </problem> > > > <problem> > <!-- Test full RTL support : demonstrates correct mixture of RTL and LTR > pieces. --> > <startouttext /> > <span dir="rtl"> > לפני המשוואה <!-- This text precedes the equation (on the right). --> > <m>\(c = a + b \)</m> > אחרי המשוואה. <!-- This text follows the equation (on the left). --> > <br /> > לפני האנגלית, <!-- This text precedes the english text. --> > english text between hebrew text, > אחרי האנגלית. <!-- This text follows the english text. --> > </span> > <endouttext /> > </problem> > > > Done minimal examples. > > > > > > > _______________________________________________ > LON-CAPA-users mailing list > LON-CAPA-users@mail.lon-capa.org > https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_mailman_listinfo_lon-2Dcapa-2Dusers&d=DwICAg&c=nE__W8dFE-shTxStwXtp0A&r=eJriEjbucRYp5T72QIzOAQ&m=NIk5NZr_V6zkP9TZlUby_iQ6QEwkvTADfHwtbRLX1q0&s=nUH7rFceJFBEsGx_QtWq_rjF3mG2tPqNJ7ZrOJ_IYFU&e= _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users