久久久久久久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>

                            主站蜘蛛池模板: 国产精品久久久久久吹潮 | 久久国产精品久久国产精品 | 1000部精品久久久久久久久 | 一级毛片视频在线观看 | h视频免费在线观看 | 欧美精品乱码久久久久久按摩 | 999精品视频| 久久久九九 | 一区二区三 | 亚洲一区二区av | 国产免费福利小视频 | 国产91丝袜在线熟 | 精品国产网 | 国产一区三区在线 | 一区二区三区不卡视频 | 少妇一级淫片免费播放 | 久久激情网 | 色秀网站 | 精品视频一区二区三区在线观看 | 国产色网 | 亚洲一区在线播放 | 亚洲国产成人精 | 一级毛片免费看 | 玖玖综合网 | 午夜免费电影 | 欧美成人一区二区三区片免费 | 欧美日韩精品久久久免费观看 | 水蜜桃亚洲一二三四在线 | 麻豆国产一区二区三区四区 | 亚洲欧美综合精品久久成人 | 国产三区在线观看视频 | 国产日韩欧美精品一区二区 | 爱综合| 免费看的黄网站 | 97精品超碰一区二区三区 | 久久久夜| 天天操天天干天天曰 | 午夜影院视频在线观看 | 天天插天天狠天天透 | 国产在线精品一区二区三区 | 天堂av在线影院 |