Menu

#403 Hebrew not shown

Closed
closed-fixed
None
5
2025-01-31
2025-01-04
limelect
No

Hebrew not shown in ASCII chart with any font

Related

Bugs: #403

Discussion

  • Thomas Mueller

    Thomas Mueller - 2025-01-04
    • status: open --> pending
    • assigned_to: Thomas Mueller
    • Group: New --> Need_More_Info
     
    • limelect

      limelect - 2025-01-05

      I am sending you my name in picture and DFM

      done with D10.2.3

      On second dfm it is from D7 look at edit

      The picture shows my name in Hebrew

      On 04/01/2025 12:48, Thomas Mueller wrote:

      • status: open --> pending
      • assigned_to: Thomas Mueller
      • Group: New --> Need_More_Info
      • Comment:

      The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?


      [bugs:#403] Hebrew not shown

      Status: pending
      Group: Need_More_Info
      Created: Sat Jan 04, 2025 10:17 AM UTC by limelect
      Last Updated: Sat Jan 04, 2025 10:17 AM UTC
      Owner: Thomas Mueller

      Hebrew not shown in ASCII chart with any font


      Sent from sourceforge.net because you indicated interest inhttps://sourceforge.net/p/gexperts/bugs/403/

      To unsubscribe from further messages, please visithttps://sourceforge.net/auth/subscriptions/

      להתראות

      0505-444457 *שלמה אבייצחק *

      *לים אלקטרוניקה
      *

      *הגנה 60 הרצליה


      מיקוד 4635621

      limelect@gmail.com

      http://www.limelect.com http://www.limelect.com/

       

      Related

      Bugs: #403

    • limelect

      limelect - 2025-01-05

      On D7 mistake with spelling on first mail

      On 04/01/2025 12:48, Thomas Mueller wrote:

      • status: open --> pending
      • assigned_to: Thomas Mueller
      • Group: New --> Need_More_Info
      • Comment:

      The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?


      [bugs:#403] Hebrew not shown

      Status: pending
      Group: Need_More_Info
      Created: Sat Jan 04, 2025 10:17 AM UTC by limelect
      Last Updated: Sat Jan 04, 2025 10:17 AM UTC
      Owner: Thomas Mueller

      Hebrew not shown in ASCII chart with any font


      Sent from sourceforge.net because you indicated interest inhttps://sourceforge.net/p/gexperts/bugs/403/

      To unsubscribe from further messages, please visithttps://sourceforge.net/auth/subscriptions/

      להתראות

      0505-444457 *שלמה אבייצחק *

      *לים אלקטרוניקה
      *

      *הגנה 60 הרצליה


      מיקוד 4635621

      limelect@gmail.com

      http://www.limelect.com http://www.limelect.com/

       

      Related

      Bugs: #403

      • Thomas Mueller

        Thomas Mueller - 2025-01-05

        The dfm file seems to contain only captions with English text. The screenshot results in an error message. Also, this does not help me. I need some Delphi code.

         
        • limelect

          limelect - 2025-01-06

          Any Code will not help as I do not understand what code you need?

          You can always take the DFM and use it on creating your need

          I am sending you the DFM that hold the text

          object Label1: TLabel
              Left = 31
              Top = 121
              Width = 36
              Height = 16
              Caption = #1513#1500#1510#1492  <<< hebrew name

          object Edit1: TEdit
              Left = 28
              Top = 67
              Width = 443
              Height = 24
              TabOrder = 0
              Text = 'Edit '#1513#1500#1502#1492' my name'  <<< Mix hebrew and
          english
            end

          On 05/01/2025 11:56, Thomas Mueller wrote:

          The dfm file seems to contain only captions with English text. The screenshot results in an error message. Also, this does not help me. I need some Delphi code.


          [bugs:#403] Hebrew not shown

          Status: pending
          Group: Need_More_Info
          Created: Sat Jan 04, 2025 10:17 AM UTC by limelect
          Last Updated: Sat Jan 04, 2025 10:48 AM UTC
          Owner: Thomas Mueller

          Hebrew not shown in ASCII chart with any font


          Sent from sourceforge.net because you indicated interest inhttps://sourceforge.net/p/gexperts/bugs/403/

          To unsubscribe from further messages, please visithttps://sourceforge.net/auth/subscriptions/

          Yours

          Shlomo Abuisak 0505-444457

          Lim Electronics

          Hagana street 60
          Herzelia
          Zip 4635621

          Israel

          limelect@gmail.com

          http://www.limelect.com http://www.limelect.com/

           

          Related

          Bugs: #403

  • Thomas Mueller

    Thomas Mueller - 2025-01-04

    The ASCII chart shows all characters with codes from 0 to 255 for the selected font. It does not support UNICODE. I have no idea how to make it display Hebrew characters. I always assumed that it can be done by selecting a font that contains them. Could you provide me with a code sample that shows the Hebrew characters on e.g. a label?

     
  • Thomas Mueller

    Thomas Mueller - 2025-01-12

    Some findings:

    • In order to display Hebrew characters we need to use the code page 862.
    • A one character RawByteString containing a Hewbrew character can be set to that code page by calling: System.SetCodePage

    So this code should work:

    var
      r: RawByteString;
      s: string; // Unicode string
    begin
      SetLength(r, 1);
      Byte(r[1]) := 154; // character code for 'ת' (Hewbrew letter Tav)
      SetCodePage(r, 862, False);
      s := r;
      // s should now contain the character #1513 which is Unicode for 'ת'
    end;
    

    Setting the code page before assigning the character did not work for me.

    No idea how to fix this for older, non Unicode aware versions of Delphi. Maybe just not fix it at all?

     
  • Thomas Mueller

    Thomas Mueller - 2025-01-12

    Apparently there are multiple Hebrew code pages in Windows. There is a list of code pages under Windows at https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers

    And since this is problem not only exists for Hebrew characters but also for Kyrillic or Arabic, the ASCII chart (which is not an ASCII chart any more then) should contain a list for selecting them.

    To get this list there is the WinAPI function EnumSystemCodePages.

     
  • Thomas Mueller

    Thomas Mueller - 2025-01-12
    • status: pending --> closed-fixed
    • Group: Need_More_Info --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2025-01-12

    implemented in revision #4424

     
  • limelect

    limelect - 2025-01-16

    I have send a program source on your private mail wirh ascii chart
    showing Heberw
    I hopy you got it

     
    • Thomas Mueller

      Thomas Mueller - 2025-01-31

      I got it.
      Did you check the latest sources? Does Hebrew work now?

       

Log in to post a comment.