BRT Community

General Category => Discussion - EVE => Topic started by: iv_pb on October 09, 2020, 02:48:01 PM

Title: UTF 8 characters with Keys widget
Post by: iv_pb 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?
Title: Re: UTF 8 characters with Keys widget
Post by: Rudolph 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.
Title: Re: UTF 8 characters with Keys widget
Post by: iv_pb 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.
Title: Re: UTF 8 characters with Keys widget
Post by: BRT Community 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
Title: Re: UTF 8 characters with Keys widget
Post by: Rudolph 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.
Title: Re: UTF 8 characters with Keys widget
Post by: iv_pb 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.