Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/Unicode-strings/M2000-Interpreter/unicode-strings.m2000
Normal file
22
Task/Unicode-strings/M2000-Interpreter/unicode-strings.m2000
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Font "Arial"
|
||||
Mode 32
|
||||
' M2000 internal editor can display left to rigtht languages if text is in same line, and same color.
|
||||
a$="لم أجد هذا الكتاب القديم"
|
||||
' We can use console to display text, using proportional spacing
|
||||
Print Part $(4), a$
|
||||
Print
|
||||
' We can display right to left using
|
||||
' the legend statement which render text at a given
|
||||
' graphic point, specify the font type and font size
|
||||
' and optional:
|
||||
' rotation angle, justification (1 for right,2 for center, 3 for left)
|
||||
'quality (0 or non 0, which 0 no antialliasing)
|
||||
' letter spacing in twips (not good for arabic language)
|
||||
move 6000,6000
|
||||
legend a$, "Arial", 32, pi/4, 2, 0
|
||||
' Variables can use any unicode letter.
|
||||
' Here we can't display it as in M2000 editor.
|
||||
' in the editor we see at the left the variable name
|
||||
' and at the right the value
|
||||
القديم=10
|
||||
Print القديم+1=11 ' true
|
||||
Loading…
Add table
Add a link
Reference in a new issue