smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 244 forks source link

[SDL 0335] Limit TextField Length According to HMI Capabilities #3716

Open theresalech opened 3 years ago

theresalech commented 3 years ago

Proposal: Limit TextField Length According to HMI Capabilities

This proposal defines how Core should limit the length of TextFields sent to the HMI according to the HMI Capabilities.

Review: https://github.com/smartdevicelink/sdl_evolution/issues/1142

Steering Committee Decision: The Steering Committee voted to accept this proposal with the following revision: modify "Truncation Process" section, replacing

If this configuration option is defined, the suffix will replace the final characters in any truncated string right up to the null terminating character.

with

If this configuration option is defined, the original string will be truncated to the maximum length allowed by the HMI minus the length of the suffix, and the suffix will be appended to the string. Core will take special care to ensure this suffix is appended correctly by checking whether the app's HMI Display Language is written as left to right or right to left.

The proposal .md file was updated to reflect these revisions on 6/9/21