久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      1. <tfoot id='v3D6T'></tfoot>
      2. <legend id='v3D6T'><style id='v3D6T'><dir id='v3D6T'><q id='v3D6T'></q></dir></style></legend>
        • <bdo id='v3D6T'></bdo><ul id='v3D6T'></ul>
      3. <small id='v3D6T'></small><noframes id='v3D6T'>

      4. <i id='v3D6T'><tr id='v3D6T'><dt id='v3D6T'><q id='v3D6T'><span id='v3D6T'><b id='v3D6T'><form id='v3D6T'><ins id='v3D6T'></ins><ul id='v3D6T'></ul><sub id='v3D6T'></sub></form><legend id='v3D6T'></legend><bdo id='v3D6T'><pre id='v3D6T'><center id='v3D6T'></center></pre></bdo></b><th id='v3D6T'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='v3D6T'><tfoot id='v3D6T'></tfoot><dl id='v3D6T'><fieldset id='v3D6T'></fieldset></dl></div>

        阿拉伯語文本的 Kivy 文本輸入

        Kivy Text Input for Arabic Text(阿拉伯語文本的 Kivy 文本輸入)

        <small id='HVF2Q'></small><noframes id='HVF2Q'>

          <i id='HVF2Q'><tr id='HVF2Q'><dt id='HVF2Q'><q id='HVF2Q'><span id='HVF2Q'><b id='HVF2Q'><form id='HVF2Q'><ins id='HVF2Q'></ins><ul id='HVF2Q'></ul><sub id='HVF2Q'></sub></form><legend id='HVF2Q'></legend><bdo id='HVF2Q'><pre id='HVF2Q'><center id='HVF2Q'></center></pre></bdo></b><th id='HVF2Q'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='HVF2Q'><tfoot id='HVF2Q'></tfoot><dl id='HVF2Q'><fieldset id='HVF2Q'></fieldset></dl></div>
          <tfoot id='HVF2Q'></tfoot>
            <bdo id='HVF2Q'></bdo><ul id='HVF2Q'></ul>

              <legend id='HVF2Q'><style id='HVF2Q'><dir id='HVF2Q'><q id='HVF2Q'></q></dir></style></legend>

                    <tbody id='HVF2Q'></tbody>
                1. 本文介紹了阿拉伯語文本的 Kivy 文本輸入的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試將 Kivy 的文本輸入用于阿拉伯文本.我用我的文本輸入設置了一個阿拉伯字體,但是當我輸入輸入(阿拉伯語)時,我只是得到從左到右出現的阿拉伯字母(并且它們沒有連接,因為阿拉伯字母應該是相鄰的彼此).

                  有沒有辦法讓 Kivy/文本輸入支持我缺少的 RTL 語言輸入(尤其是阿拉伯語).

                  這是我的代碼,

                  從 kivy.app 導入 App從 kivy.uix.floatlayout 導入 FloatLayoutConfig.set('圖形', '寬度', '300')Config.set('圖形', '高度', '500')記錄器 = logging.getLogger('')從 kivy.uix.textinput 導入 TextInput類編輯器應用程序(應用程序):定義構建(自我):f = 浮動布局()textinput = TextInput(text='Hello world', font_name='DroidKufi-Regular.ttf')#導入pdb;pdb.set_trace()f.add_widget(文本輸入)返回 f如果 __name__ == '__main__':EditorApp().run()

                  這段代碼的結果:

                  解決方案

                  不幸的是,Kivy TextInput 對從右到左的支持是 的公開嘗試.另一個封閉的:從右到左的標簽支持.

                  I'm trying to use Kivy's text input for Arabic text. I have an Arabic font set up with my text input but when I type into the input (in Arabic) I just get Arabic letters appearing from left to right (and they're not connected as Arabic letters should be when they're adjacent to each other).

                  Is there a way to get Kivy/text input to support RTL languages input that I'm missing (esp Arabic).

                  Here's my code,

                  from kivy.app import App
                  from kivy.uix.floatlayout import FloatLayout
                  
                  Config.set('graphics', 'width', '300')
                  Config.set('graphics', 'height', '500')
                  
                  
                  logger = logging.getLogger('')
                  
                  from kivy.uix.textinput import TextInput
                  
                  
                  class EditorApp(App):
                      def build(self):
                          f = FloatLayout()
                          textinput = TextInput(text='Hello world', font_name='DroidKufi-Regular.ttf')
                          # import pdb; pdb.set_trace()
                  
                          f.add_widget(textinput)
                  
                          return f
                  
                  
                  if __name__ == '__main__':
                      EditorApp().run()
                  

                  The result of this code:

                  解決方案

                  Unfortunately, Kivy TextInput support for right-to-left is an open issue (checked 29/05/2015). Actually, Kivy is not supporting right-to-left not only to TextInput.

                  For static texts like labels , there is a hack by using arabic_reshaper and python-bidi (reference):

                  import arabic_reshaper
                  from bidi.algorithm import get_display
                  
                  reshaped_text = arabic_reshaper.reshape(u'????? ??????? ?????')
                  bidi_text = get_display(reshaped_text)
                  

                  Yet, as for TextInput with a dynamic input, you had to override most of class methods to support RTL and you will end up like implementing the whole RTL support to kivy.

                  Here is an open attempt to implement Kivy bidi support. Another closed one: Right-to-left labels support.

                  這篇關于阿拉伯語文本的 Kivy 文本輸入的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                  1. <i id='ZVZpW'><tr id='ZVZpW'><dt id='ZVZpW'><q id='ZVZpW'><span id='ZVZpW'><b id='ZVZpW'><form id='ZVZpW'><ins id='ZVZpW'></ins><ul id='ZVZpW'></ul><sub id='ZVZpW'></sub></form><legend id='ZVZpW'></legend><bdo id='ZVZpW'><pre id='ZVZpW'><center id='ZVZpW'></center></pre></bdo></b><th id='ZVZpW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ZVZpW'><tfoot id='ZVZpW'></tfoot><dl id='ZVZpW'><fieldset id='ZVZpW'></fieldset></dl></div>
                    • <small id='ZVZpW'></small><noframes id='ZVZpW'>

                        1. <legend id='ZVZpW'><style id='ZVZpW'><dir id='ZVZpW'><q id='ZVZpW'></q></dir></style></legend>
                        2. <tfoot id='ZVZpW'></tfoot>
                            <bdo id='ZVZpW'></bdo><ul id='ZVZpW'></ul>
                              <tbody id='ZVZpW'></tbody>

                            主站蜘蛛池模板: 国产精品日产欧美久久久久 | 日韩电影免费在线观看中文字幕 | 日日操夜夜操天天操 | 日韩国产中文字幕 | av在线一区二区 | 精品欧美一区免费观看α√ | 亚洲精品视频免费看 | 国产成人精品免费 | 国产精品一区二区三区免费观看 | 久在草| 亚洲a视频| 亚洲国产精选 | 国产乱码久久久 | 欧美一级黄色片在线观看 | 亚洲精品视频一区二区三区 | 成人av电影免费在线观看 | 毛片在线视频 | 精品一区久久 | 2018天天干天天操 | 中文字幕一区二区三区精彩视频 | 国产999精品久久久久久 | 日日夜夜免费精品 | www亚洲成人 | 欧美久久国产 | 日本欧美国产在线观看 | 中文字幕第100页 | 免费一级毛片 | 成年女人免费v片 | 超碰在线亚洲 | 特级毛片爽www免费版 | 成人免费视频网站在线看 | 国产区在线 | 久久精品国产99国产精品 | 日韩二三区 | av网站在线播放 | 久久51 | 国产成人高清视频 | 成人精品在线 | 福利一区二区 | 亚洲网址| 北条麻妃99精品青青久久主播 |