community icon indicating copy to clipboard operation
community copied to clipboard

TextInput component, seem not support khmer language

Open dev-ohyes opened this issue 1 year ago • 6 comments

Software Versions

  • Python:3.10.11
  • OS: window
  • Kivy: v2.3.0
  • Kivy installation method:

Describe the bug A clear and concise description of what the bug is.

The issue tracker is a tool to address bugs only (search known bugs: https://git.io/vM1iE). Please use the #support Discord channel at https://chat.kivy.org/ or Stack Overflow for support questions, more information at https://git.io/vM1yQ.

Expected behavior A clear and concise description of what you expected to happen.

To Reproduce A short, runnable example that reproduces the issue with latest kivy master.

Code and Logs and screenshots

class MyApp(App):
    def build(self):
        layout = BoxLayout()
        self.text_input = TextInput(
            multiline=True,
            font_name='KhmerOS.ttf',
            font_size=24
        )
        layout.add_widget(self.text_input)
        return layout


if __name__ == '__main__':
    import kivy
    MyApp().run()

Additional context Add any other context about the problem here.

dev-ohyes avatar Sep 23 '24 15:09 dev-ohyes

​អ្នក​ចាំ​ទី​របស់​ក្រុម​អ្នក​មាន​បុណ្យ​​​Barcelaona​គឺ​​​កីឡាករ​​​Marc-Andre​ter​Stegen​​បាន​ធ្វើ​ការ​វះកាត់​របួស​ជង្គង់​​ដោយ​ជោគជ័យ​និង​ត្រូវ​បន្ត​សម្រាក​ព្យាបាល​ចំនួន​៧​ខែ​។ image

dev-ohyes avatar Sep 24 '24 06:09 dev-ohyes

Since most of us are located within the EU. Can you explain what's wrong?

kuzeyron avatar Sep 25 '24 10:09 kuzeyron

Dear Team,

I try to implement kivy with Khmer language, but after load file then display on textinput component then the character was displayed not properly.

Thank you for your understanding and supporting

On Wed, 25 Sep 2024 at 17:24 Mathias Lindström @.***> wrote:

Since most of us are located within the EU. Can you explain what's wrong?

— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8834#issuecomment-2373685395, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJ4GKZRA4UNBRZHBM3TZYKFOTAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGY4DKMZZGU . You are receiving this because you authored the thread.Message ID: @.***>

dev-ohyes avatar Sep 25 '24 11:09 dev-ohyes

Dear Team, I try to implement kivy with Khmer language, but after load file then display on textinput component then the character was displayed not properly. Thank you for your understanding and supporting On Wed, 25 Sep 2024 at 17:24 Mathias Lindström @.> wrote: Since most of us are located within the EU. Can you explain what's wrong? — Reply to this email directly, view it on GitHub <#8834 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJ4GKZRA4UNBRZHBM3TZYKFOTAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGY4DKMZZGU . You are receiving this because you authored the thread.Message ID: @.>

image does this look correct?

wishrohitv avatar Sep 27 '24 06:09 wishrohitv

I'm not familiar with Khmer, but there are a number of resources that can help with your issues. Here is an article about kivy with arabic. The element that is relevant here is about using a reshaper. https://medium.com/@ahmedfgad/supporting-arabic-alphabet-in-kivy-for-building-cross-platform-applications-7a1e7c14a068

This repository contains a number of resources for working with Khmer: https://github.com/seanghay/awesome-khmer-language The resources that seems most relevant for this issue is; https://github.com/sillsdev/khmer-normalizer

Looking at the image you posted, the english characters did not print. Look for a font that includes both the english characters and the khmer characters.

I hope this helps.

ElliotGarbus avatar Sep 27 '24 14:09 ElliotGarbus

yes, that's correct, how to modify it ?

On Fri, Sep 27, 2024 at 1:18 PM Rohit Vishwakarma @.***> wrote:

Dear Team, I try to implement kivy with Khmer language, but after load file then display on textinput component then the character was displayed not properly. Thank you for your understanding and supporting … <#m_8310796836033546848_> On Wed, 25 Sep 2024 at 17:24 Mathias Lindström @.> wrote: Since most of us are located within the EU. Can you explain what's wrong? — Reply to this email directly, view it on GitHub <#8834 (comment) https://github.com/kivy/kivy/issues/8834#issuecomment-2373685395>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJ4GKZRA4UNBRZHBM3TZYKFOTAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGY4DKMZZGU https://github.com/notifications/unsubscribe-auth/A6M6RJ4GKZRA4UNBRZHBM3TZYKFOTAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGY4DKMZZGU . You are receiving this because you authored the thread.Message ID: @.>

image.png (view on web) https://github.com/user-attachments/assets/e01f2537-43e2-44b8-a242-8224c92ff5f8 does this look correct?

— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8834#issuecomment-2378483795, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJ4MPDV5FRTAETHKQXTZYT2DFAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZYGQ4DGNZZGU . You are receiving this because you authored the thread.Message ID: @.***>

dev-ohyes avatar Oct 06 '24 06:10 dev-ohyes

@dev-ohyes source code - demo.zip

i have added font_script_name property to textinput widget line number 2697(textinput.py), for detail read this https://kivy.org/doc/stable/api-kivy.uix.label.html#kivy.uix.label.Label.font_script_name

wishrohitv avatar Oct 28 '24 14:10 wishrohitv

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Feb 06 '25 05:02 github-actions[bot]

Dear Team,

Thank you for your prompt response,

Here is the result: we found that the character display is still not well

[image: image.png]

On Thu, Feb 6, 2025 at 12:05 PM github-actions[bot] < @.***> wrote:

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.

— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8834#issuecomment-2638834489, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJYIZNM75QNSS6I4OLT2OLUSZAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZYHAZTINBYHE . You are receiving this because you were mentioned.Message ID: @.***>

dev-ohyes avatar Feb 22 '25 08:02 dev-ohyes

Dear Team,

Are there any options to apply multiple fonts for TextInput?

Thank you for your understanding and support.

On Sat, Feb 22, 2025 at 3:09 PM BOREY HOUNG @.***> wrote:

Dear Team,

Thank you for your prompt response,

Here is the result: we found that the character display is still not well

[image: image.png]

On Thu, Feb 6, 2025 at 12:05 PM github-actions[bot] < @.***> wrote:

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.

— Reply to this email directly, view it on GitHub https://github.com/kivy/kivy/issues/8834#issuecomment-2638834489, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJYIZNM75QNSS6I4OLT2OLUSZAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZYHAZTINBYHE . You are receiving this because you were mentioned.Message ID: @.***>

dev-ohyes avatar Feb 22 '25 08:02 dev-ohyes

Dear Team, I try to implement kivy with Khmer language, but after load file then display on textinput component then the character was displayed not properly. Thank you for your understanding and supporting On Wed, 25 Sep 2024 at 17:24 Mathias Lindström @.> wrote: Since most of us are located within the EU. Can you explain what's wrong? — Reply to this email directly, view it on GitHub <#8834 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6M6RJ4GKZRA4UNBRZHBM3TZYKFOTAVCNFSM6AAAAABOWLJ7DWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZTGY4DKMZZGU . You are receiving this because you authored the thread.Message ID: _@**.**_>

image does this look correct?

Which component did you use to display the content label or text input?

dev-ohyes avatar Feb 24 '25 17:02 dev-ohyes