community
community copied to clipboard
TextInput component, seem not support khmer language
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.
អ្នកចាំទីរបស់ក្រុមអ្នកមានបុណ្យBarcelaonaគឺកីឡាករMarc-AndreterStegenបានធ្វើការវះកាត់របួសជង្គង់ដោយជោគជ័យនិងត្រូវបន្តសម្រាកព្យាបាលចំនួន៧ខែ។
Since most of us are located within the EU. Can you explain what's wrong?
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: @.***>
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: @.>
does this look correct?
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.
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 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
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.
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: @.***>
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: @.***>
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: _@**.**_>
does this look correct?
Which component did you use to display the content label or text input?