Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] hebrew text

edited January 2013 in OpenSesame

hi

when I try to display Hebrew text in sketchpad the letters are from left to right and not right to left
am I missing something?

Dror

Comments

  • edited January 2013

    Hi Dror,

    I would like to refer you to a previous post where Ezer asked the same question:

    In this thread Sebastiaan provided a piece of Python inline code which you could place in the Prepare phase tab of an inline_script item at the beginning of your experiment. The script makes sure that all text strings are reversed before being displayed, which should give the desired right-to-left result.

    Please let us know if you have any further questions!

    Best wishes,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 8:37AM

    hi
    is there a way that the inline script will only effect certain objects?
    i.e only couple of scetchpad or forms?
    thenx
    Dror

  • edited 8:37AM

    Hi Dror,

    Of course. By adding an additional if-statement (see line 6 in the script below) you can apply the remainder of the inline code only to certain items, in this case a sketchpad called "reversed":

    [pastebin:eRffgRbP]

    For the complete example experiment, see here. Simply download and 'save as' with the extension ".opensesame".

    Hope this helps!

    Best,

    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • edited 8:37AM

    that is exactly what I needed - problem solved
    thenx
    Dror

  • Hi everyone,

    I hope it's ok to comment on a solved discussion.

    I'm facing a similar problem Dror had with writing in Hebrew. I'm using form_text and ask participants to free write in Hebrew. Unfortunately, the text box starts from left to write (and not right to left) and when the participant writes more than one row the first row goes down (instead of starting a new one in the second row).
    I tried to use the solution Sebastiaan offered in the link Lotje referred here but an error: "cannot import name QString" popped up.

    Can anyone help me with this Issue?

    Thanks,

    Shachar

  • I'm having the same problem, does anyone got a solution?

  • Hi guys,

    You'll want to take a look at this discussion:

    Cheers,
    Sebastiaan

    Buy Me A Coffee

  • Hi Sebastiaan,
    Thank you so much for your response.
    The left to right issue is not as important for me as the continuity of the rows problem.
    As S_H wrote, while writing a text in Hebrew, when the row is ended, the line moves down and the new line starts in the beginning of the text box. Are these two sides of the same coin?

    Bests,
    Dalit

  • Are these two sides of the same coin?

    Yes!

    Buy Me A Coffee

  • Ok :)
    I tried to implement the script you wrote in the discussion you referred to.
    However it didn't work for me, it seems like Hebrew font is not defined under that script as Hebrew characters are not shown at all when written. In addition, when writing in English, no new rows are created- it seems like there are no text box limits. Is it fixable? If yes, how can I combine this script with a form (either with form_base or inline script)?
    Thanks

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games