Join the effort to localize the Sahla programming language into chinese for chinese users #118
dynamicboy
started this conversation in
General
Replies: 4 comments 1 reply
-
Start by Changing the RightToLeft property to False for all controls (including the MainMenu in the menu designer), or simply remove all tines containing RightToLeft = True in the main form, to return the default LTR direction.
…________________________________
From: dynamicboy ***@***.***>
Sent: Friday, April 4, 2025 12:26 AM
To: VBAndCs/sVB-Small-Visual-Basic ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [VBAndCs/sVB-Small-Visual-Basic] Join the effort to localize the Sahla programming language into chinese for chinese users (Discussion #118)
I'm using DeepSeek to translate the Arabic keywords and hint messages of the Sahla programming language into Chinese. I'm then using this translated Chinese version of Sahla to develop example code. While the original Sahla language is Arabic and inherently right-to-left, the translated Chinese version should be left-to-right.
2025-04-04_035305.png (view on web)<https://github.com/user-attachments/assets/a578ed00-5d44-41bd-83e8-709af8716306>
I'm encountering several related issues:
Incorrect Input/Deletion Behavior (Assuming LTR): Although the target language is Chinese (LTR), character input and deletion sometimes behave inconsistently. The cursor position is often incorrect, appearing one character behind the character being operated on, lagging behind the point of insertion/deletion. This makes editing cumbersome, especially with backspace and delete.
Incorrect Completion Listbox Position (Assuming LTR): The code completion listbox should appear adjacent to the cursor. However, it consistently appears on the right side of the window, which is potentially problematic regardless of the language direction.
Line Focus Text Shift: When a line receives focus (via clicking or arrow keys), the text shifts too far to the left, causing it to be partially obscured beyond the left edge of the editor.
I attempted to influence text direction and resolve the LTR issue by modifying the RightToLeft property in the source code, but this has not affected any of these problems. How can I properly configure the Sahla programming environment to provide consistent and correct left-to-right support for the translated Chinese version, ensuring correct cursor positioning, input/deletion behavior, and completion listbox placement?
—
Reply to this email directly, view it on GitHub<#118>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVSB5FJ3UQVPM7W37JL2XXGUHAVCNFSM6AAAAAB2NPOXGOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGE3DINRSGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
You should also correct the position calculations in the AdjustLabels and ShowAutoComp subroutines.
…________________________________
From: dynamicboy ***@***.***>
Sent: Friday, April 4, 2025 12:26 AM
To: VBAndCs/sVB-Small-Visual-Basic ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [VBAndCs/sVB-Small-Visual-Basic] Join the effort to localize the Sahla programming language into chinese for chinese users (Discussion #118)
I'm using DeepSeek to translate the Arabic keywords and hint messages of the Sahla programming language into Chinese. I'm then using this translated Chinese version of Sahla to develop example code. While the original Sahla language is Arabic and inherently right-to-left, the translated Chinese version should be left-to-right.
2025-04-04_035305.png (view on web)<https://github.com/user-attachments/assets/a578ed00-5d44-41bd-83e8-709af8716306>
I'm encountering several related issues:
Incorrect Input/Deletion Behavior (Assuming LTR): Although the target language is Chinese (LTR), character input and deletion sometimes behave inconsistently. The cursor position is often incorrect, appearing one character behind the character being operated on, lagging behind the point of insertion/deletion. This makes editing cumbersome, especially with backspace and delete.
Incorrect Completion Listbox Position (Assuming LTR): The code completion listbox should appear adjacent to the cursor. However, it consistently appears on the right side of the window, which is potentially problematic regardless of the language direction.
Line Focus Text Shift: When a line receives focus (via clicking or arrow keys), the text shifts too far to the left, causing it to be partially obscured beyond the left edge of the editor.
I attempted to influence text direction and resolve the LTR issue by modifying the RightToLeft property in the source code, but this has not affected any of these problems. How can I properly configure the Sahla programming environment to provide consistent and correct left-to-right support for the translated Chinese version, ensuring correct cursor positioning, input/deletion behavior, and completion listbox placement?
—
Reply to this email directly, view it on GitHub<#118>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVSB5FJ3UQVPM7W37JL2XXGUHAVCNFSM6AAAAAB2NPOXGOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGE3DINRSGM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @dynamicboy
I created the English version of Sahla (Sahla-En) to be easier to convert to other left to right languages. I organized the error messages and language keywords at the top of the global.sb to be easy to translate at one place. I succeeded to create the Frensh Sahal in 2 minutes using AI to translate the tokens (but I didn't translate the menu names), and it worked!
There are also some new interesting features, and Sahla can convert code from the English dialect to the native dialect and vice versa. It also can translate and Sahla dialect to sVB. This makes easy for kids to communicate to each other by converting their codes to the English dialect. You will find a step by step guide to create your native Sahla in the Help menu.
The source code of this updated version included in the sVB 3.5.5.6 samples folder:
https://marketplace.visualstudio.com/items?itemName=ModernVBNET.sVBInstaller
…________________________________
From: dynamicboy ***@***.***>
Sent: Friday, April 4, 2025 12:26 AM
To: VBAndCs/sVB-Small-Visual-Basic ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [VBAndCs/sVB-Small-Visual-Basic] Join the effort to localize the Sahla programming language into chinese for chinese users (Discussion #118)
I'm using DeepSeek to translate the Arabic keywords and hint messages of the Sahla programming language into Chinese. I'm then using this translated Chinese version of Sahla to develop example code. While the original Sahla language is Arabic and inherently right-to-left, the translated Chinese version should be left-to-right.
2025-04-04_035305.png (view on web)<https://github.com/user-attachments/assets/a578ed00-5d44-41bd-83e8-709af8716306>
I'm encountering several related issues:
Incorrect Input/Deletion Behavior (Assuming LTR): Although the target language is Chinese (LTR), character input and deletion sometimes behave inconsistently. The cursor position is often incorrect, appearing one character behind the character being operated on, lagging behind the point of insertion/deletion. This makes editing cumbersome, especially with backspace and delete.
Incorrect Completion Listbox Position (Assuming LTR): The code completion listbox should appear adjacent to the cursor. However, it consistently appears on the right side of the window, which is potentially problematic regardless of the language direction.
Line Focus Text Shift: When a line receives focus (via clicking or arrow keys), the text shifts too far to the left, causing it to be partially obscured beyond the left edge of the editor.
I attempted to influence text direction and resolve the LTR issue by modifying the RightToLeft property in the source code, but this has not affected any of these problems. How can I properly configure the Sahla programming environment to provide consistent and correct left-to-right support for the translated Chinese version, ensuring correct cursor positioning, input/deletion behavior, and completion listbox placement?
—
Reply to this email directly, view it on GitHub<#118>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVSB5FJ3UQVPM7W37JL2XXGUHAVCNFSM6AAAAAB2NPOXGOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGE3DINRSGM>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
No. I am not planning to add any more syntax (nor arrays, no subroutines, and no string manipulation). The goal is to be so easy for kids in their tongue, not to stick with it but to motivate them to move on to Shala-En then to sVB. In Arabic, syntax will be more complex as we go further, I am using direct commands to do things, to avoid OOP syntax, which will be quite challenging in Arabic. But you have the source code, so feel free to take Sahla-Ch in any direction you see better. For me, it is important to keep up with mainstream programming languages. Unfortunately, most of parents will not let them children learn Sahal if they think that will make them stuck with programming in Arabic only. This may ne the reason that makes all previous programming languages fail. So, I have to compromise, to provide an easy start, but let the kids move on.
…________________________________
From: dynamicboy ***@***.***>
Sent: Sunday, April 13, 2025 6:48 AM
To: VBAndCs/sVB-Small-Visual-Basic ***@***.***>
Cc: Mohammad Hamdy Ghanem ***@***.***>; Comment ***@***.***>
Subject: Re: [VBAndCs/sVB-Small-Visual-Basic] Join the effort to localize the Sahla programming language into chinese for chinese users (Discussion #118)
Hi @dynamicboy<https://github.com/dynamicboy> I created the English version of Sahla (Sahla-En) to be easier to convert to other left to right languages. I organized the error messages and language keywords at the top of the global.sb to be easy to translate at one place. I succeeded to create the Frensh Sahal in 2 minutes using AI to translate the tokens (but I didn't translate the menu names), and it worked! There are also some new interesting features, and Sahla can convert code from the English dialect to the native dialect and vice versa. It also can translate and Sahla dialect to sVB. This makes easy for kids to communicate to each other by converting their codes to the English dialect. You will find a step by step guide to create your native Sahla in the Help menu. The source code of this updated version included in the sVB 3.5.5.6 samples folder: https://marketplace.visualstudio.com/items?itemName=ModernVBNET.sVBInstaller
…
________________________________ From: dynamicboy @.> Sent: Friday, April 4, 2025 12:26 AM To: VBAndCs/sVB-Small-Visual-Basic @.> Cc: Subscribed @.***> Subject: [VBAndCs/sVB-Small-Visual-Basic] Join the effort to localize the Sahla programming language into chinese for chinese users (Discussion #118<#118>) I'm using DeepSeek to translate the Arabic keywords and hint messages of the Sahla programming language into Chinese. I'm then using this translated Chinese version of Sahla to develop example code. While the original Sahla language is Arabic and inherently right-to-left, the translated Chinese version should be left-to-right. 2025-04-04_035305.png (view on web)https://github.com/user-attachments/assets/a578ed00-5d44-41bd-83e8-709af8716306 I'm encountering several related issues: Incorrect Input/Deletion Behavior (Assuming LTR): Although the target language is Chinese (LTR), character input and deletion sometimes behave inconsistently. The cursor position is often incorrect, appearing one character behind the character being operated on, lagging behind the point of insertion/deletion. This makes editing cumbersome, especially with backspace and delete. Incorrect Completion Listbox Position (Assuming LTR): The code completion listbox should appear adjacent to the cursor. However, it consistently appears on the right side of the window, which is potentially problematic regardless of the language direction. Line Focus Text Shift: When a line receives focus (via clicking or arrow keys), the text shifts too far to the left, causing it to be partially obscured beyond the left edge of the editor. I attempted to influence text direction and resolve the LTR issue by modifying the RightToLeft property in the source code, but this has not affected any of these problems. How can I properly configure the Sahla programming environment to provide consistent and correct left-to-right support for the translated Chinese version, ensuring correct cursor positioning, input/deletion behavior, and completion listbox placement? — Reply to this email directly, view it on GitHub<#118<#118>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALQ5MVSB5FJ3UQVPM7W37JL2XXGUHAVCNFSM6AAAAAB2NPOXGOVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGE3DINRSGM. You are receiving this because you are subscribed to this thread.
I've already tweaked the code to get it working, but I'll try the new version of Sahla later. By the way, will the new Sahla have a Sub or Function Routine block?"
—
Reply to this email directly, view it on GitHub<#118 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALQ5MVUICHZCWJDGTWLK74T2ZICDZAVCNFSM6AAAAAB2NPOXGOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOBRG4YTSNY>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using DeepSeek to translate the Arabic keywords and hint messages of the Sahla programming language into Chinese. I'm then using this translated Chinese version of Sahla to develop example code. While the original Sahla language is Arabic and inherently right-to-left, the translated Chinese version should be left-to-right.
I'm encountering several related issues:
Incorrect Input/Deletion Behavior (Assuming LTR): Although the target language is Chinese (LTR), character input and deletion sometimes behave inconsistently. The cursor position is often incorrect, appearing one character behind the character being operated on, lagging behind the point of insertion/deletion. This makes editing cumbersome, especially with backspace and delete.
Incorrect Completion Listbox Position (Assuming LTR): The code completion listbox should appear adjacent to the cursor. However, it consistently appears on the right side of the window, which is potentially problematic regardless of the language direction.
Line Focus Text Shift: When a line receives focus (via clicking or arrow keys), the text shifts too far to the left, causing it to be partially obscured beyond the left edge of the editor.
I attempted to influence text direction and resolve the LTR issue by modifying the RightToLeft property in the source code, but this has not affected any of these problems. How can I properly configure the Sahla programming environment to provide consistent and correct left-to-right support for the translated Chinese version, ensuring correct cursor positioning, input/deletion behavior, and completion listbox placement?
Beta Was this translation helpful? Give feedback.
All reactions