Welcome, Guest. Please login or register.


Author Topic: Switching Between Keyboard Languages? (Read 5731 times)

Online gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Switching Between Keyboard Languages?
« Reply #15 on: 2020.January.12. 21:34:45 »
A hacked VIDEO: device is needed.


I think it is more an EDITOR: task.

Offline Tech

  • Newbie
  • Posts: 22
Re: Switching Between Keyboard Languages?
« Reply #16 on: 2020.January.14. 00:54:12 »
To make an Arabic character set is not a difficult task, redefining every character with a Basic listing.
Hmm, any documents about this "Basic listing" please? I'd like to try with some characters and see.

Offline Tech

  • Newbie
  • Posts: 22
Re: Switching Between Keyboard Languages?
« Reply #17 on: 2020.January.14. 00:58:13 »
But making the Arabic characters type right-to-left would be a bit more of a challenge!
In addition to this RtL, Arabic characters change their shapes based on their positions in words. For example, a character such as م can be at least written in 4 different shapes (isolated, initial, middle & end)!

Offline tofro

  • Beginner
  • *
  • Posts: 31
  • Country: de
Re: Switching Between Keyboard Languages?
« Reply #18 on: 2020.January.14. 08:53:39 »
In addition to this RtL, Arabic characters change their shapes based on their positions in words. For example, a character such as م can be at least written in 4 different shapes (isolated, initial, middle & end)!
Arabic is indeed a complicated language. Proper Arabic support on modern computer also needs to support diacritics, where characters change their shape according to their neighbors (that was apparently what you meant).
The Sinclair ZX Spectrum actually was available with an Arabic ROM as well, supporting RTL writing, but no diacritics. It's fun to at least try that out in an Emulator (Right-toLeft BASIC programs do look weird!). The ROMs are available from WoS.

Tobias
« Last Edit: 2020.January.14. 10:36:13 by tofro »

Offline BruceTanner

  • EP lover
  • *
  • Posts: 607
  • Country: gb
Re: Switching Between Keyboard Languages?
« Reply #19 on: 2020.January.14. 09:28:00 »
Am I correct in thinking that although the letters/words are written right-to-left, numbers are written left-to-right?

Online gflorez

  • EP addict
  • *
  • Posts: 3607
  • Country: es
    • Támogató Támogató
Re: Switching Between Keyboard Languages?
« Reply #20 on: 2020.January.14. 09:30:18 »
Hmm, any documents about this "Basic listing" please? I'd like to try with some characters and see.


On page 105 of the Basic manual you can read how. On the easy example made with binary numbers you can see that the 0s will be seen as paper, and the 1s as ink on every of the 9 lines of every character. Avoid using the outer bits on every line, 0 and 7, because on the TEXT80 mode they are used to represent colours and will not be seen.

You can use only one line to define a character, without DATA and READ statements:

Try on immediate mode:    SET CHARACTER 142,126,66,66,66,66,66,66,66,126          Then press ENTER.

(There are other 2 methods to define characters. With a Scape sequence written to the text channel, usually #102: ESC, K, n, r1, r2, r3, r4, r5, r6, r7, r8, r9. And the other, writing directly to the memory positions  B480h...B8FFh on segment FFh.)

Remember that the definitions will remain only until the next hard reset or the CLEAR FONT direct command being executed.

The "definable" characters are 128, from 32 to 159. If you try to define over 159 then you will be defining again on the lower numbers and if under 32 you will be defining a higher number. For example 160=>32, and 0=>128. The cursor you see on the Basic editor is defined on character 142.

Try your redefined characters executing something like this on immediate mode:

PRINT CHR$(XXX)        and then the ENTER key.

Or print all the set with:

10 FOR A=32 TO 159
20 PRINT A,CHR$(A)
30 NEXT
« Last Edit: 2020.January.15. 07:59:46 by gflorez »