BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: UTF 8 characters with Keys widget  (Read 10417 times)

iv_pb

  • Newbie
  • *
  • Posts: 6
    • View Profile
UTF 8 characters with Keys widget
« on: October 09, 2020, 02:48:01 PM »

Has anyone tried using the Keys, CMD_KEYS,  widget with custom (UTF8) characters?
I am able to display international characters (Ä ö Ü ü ß â é è î ô) in Text and Button, but not in the Keys widget.  BT81X Is there anything special needed to be done for the Keys widget?
Logged

Rudolph

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: UTF 8 characters with Keys widget
« Reply #1 on: October 09, 2020, 04:10:35 PM »

Just tried this with an EVE3-50G which has a BT815 and CMD_KEYS does not seem to support UTF-8 chars.
The three UTF-8 chars I put in the string are displayed as two buttons each.

But then CMD_KEYS also is not documented to support UTF-8 chars.
Logged

iv_pb

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: UTF 8 characters with Keys widget
« Reply #2 on: October 13, 2020, 07:43:40 PM »

@Rudloph - Thank you for checking.

Am I reading this wrong?

//BRT_AN_033_BT81X_Series_Programming_Guide.pdf

5.5 ROM and RAM Fonts
In the BT815/6, fonts are treated as a set of bitmap-graphics with metrics block and used by the
following co-processor commands, indexed by bitmap handles 0 to 31:
- CMD_BUTTON
- CMD_KEYS
- CMD_TOGGLE
- CMD_TEXT
- CMD_NUMBER

For any EVE series ICs before BT81X Series, each font supports up to 128 ASCII characters.
In addition to ASCII character support, BT81X Series introduces extended font metrics format to
support a full range of Unicode characters with UTF-8 coding points.
« Last Edit: October 14, 2020, 12:54:14 PM by iv_pb »
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 734
    • View Profile
Re: UTF 8 characters with Keys widget
« Reply #3 on: October 14, 2020, 11:42:12 AM »

Hello Imtiaz,

We are currently in discussion with the development team regarding this issue.
I will post any resolution to this issue within this thread.

Best Regards,
BRT Community
Logged

Rudolph

  • Sr. Member
  • ****
  • Posts: 389
    • View Profile
Re: UTF 8 characters with Keys widget
« Reply #4 on: October 14, 2020, 04:17:42 PM »

@Rudloph - Thank you for checking.

Am I reading this wrong?

//BRT_AN_033_BT81X_Series_Programming_Guide.pdf

5.5 ROM and RAM Fonts
In the BT815/6, fonts are treated as a set of bitmap-graphics with metrics block and used by the
following co-processor commands, indexed by bitmap handles 0 to 31:
- CMD_BUTTON
- CMD_KEYS
- CMD_TOGGLE
- CMD_TEXT
- CMD_NUMBER

For any EVE series ICs before BT81X Series, each font supports up to 128 ASCII characters.
In addition to ASCII character support, BT81X Series introduces extended font metrics format to
support a full range of Unicode characters with UTF-8 coding points.

Yes, I do agree that this strongly implies that CMD_KEYS supports UTF-8 chars.
However, every other command explicitly states that it supports UTF-8, like in chapter 5.12 on page 105.
The only exceptions are CMD_KEYS which does suprise me a little, and CMD_NUMBER which should never use anything else than numeric chars.

As evidently UTF-8 does not work with CMD_KEYS my guess would be that this is an oversight in the programming guide for chapter 5.5., unless there is something else to activate it, like an undocumented flag for the options field.
Logged

iv_pb

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: UTF 8 characters with Keys widget
« Reply #5 on: October 21, 2020, 02:30:58 PM »

@Rudloph - Thank you for checking.

Am I reading this wrong?

//BRT_AN_033_BT81X_Series_Programming_Guide.pdf

5.5 ROM and RAM Fonts
In the BT815/6, fonts are treated as a set of bitmap-graphics with metrics block and used by the
following co-processor commands, indexed by bitmap handles 0 to 31:
- CMD_BUTTON
- CMD_KEYS
- CMD_TOGGLE
- CMD_TEXT
- CMD_NUMBER

For any EVE series ICs before BT81X Series, each font supports up to 128 ASCII characters.
In addition to ASCII character support, BT81X Series introduces extended font metrics format to
support a full range of Unicode characters with UTF-8 coding points.

Yes, I do agree that this strongly implies that CMD_KEYS supports UTF-8 chars.
However, every other command explicitly states that it supports UTF-8, like in chapter 5.12 on page 105.
The only exceptions are CMD_KEYS which does suprise me a little, and CMD_NUMBER which should never use anything else than numeric chars.

As evidently UTF-8 does not work with CMD_KEYS my guess would be that this is an oversight in the programming guide for chapter 5.5., unless there is something else to activate it, like an undocumented flag for the options field.

Thank you Rudolph.
I too agree as I have run in to other document errors, but was hoping to get a definitive answer from the BRT dev team.
Logged