Open bobjacobsen opened 3 months ago
If possible, a standard set of these icons should be made available in SVG/JPG/PNG format.
Rail Community TN-218 defines a number of icon numbers by name in section 3, but it doesn't provide icons for them. Is there a corresponding set of icons anywhere?
I think that is an interesting idea.
Can we just use unicode? eg: https://www.unicode.org/charts/nameslist/n_1F680.html
David
On Wed, Aug 21, 2024 at 11:29 AM Bob Jacobsen @.***> wrote:
Rail Community TN-218 https://normen.railcommunity.de/TN-218.pdf defines a number of icon numbers by name in section 3, but it doesn't provide icons for them. Is there a corresponding set of icons anywhere?
— Reply to this email directly, view it on GitHub https://github.com/openlcb/documents/issues/161#issuecomment-2302711114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEDQSTDMFRPDADDISABFWDZSTMBZAVCNFSM6AAAAABM4O3H4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBSG4YTCMJRGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Unicode would work fine as long as they can be embedded into the throttle in a format that it can use. I've used a few icons from LVGL (which uses FontAwesome internally for many icons) but some of the options are slightly limited (due to licensing primarily).
I am not in favor of normative standards for graphics. The primary reason for this is that there is a diversity of throttles in the market, and all throttle market segments are valid segments for both existing and designs. UI capabilities can differ in interesting ways:
Not all of these UI designs are going to be capable of displaying the same image, but many of them are capable of display some image.
That said, I am in favor of normative standards that enumerate function types, and to use the same values that are in TN-218, which are planned to eventually be harmonized into NMRA DCC standards. The NMRA will likely use a Standard or Recommended Practice document type for these enumerations since TN documents are not normative for the NMRA.
I am also okay with informative suggestions for graphics in a TN or TI document, so long as they are not understood to be normative.
If I understand the existing FDI correctly, we only provide "string" text, which is not ideal for a diverse set of UI capabilities. For the CS-105 and UWT throttles, there is an assumption of certain strings being used for certain function types, but these are not standardized in any way. Because the UWT falls into the "low resolution, small screen, monochrome" category, there is an internal mapping between these "well known" strings and what actually gets displayed. It is not ideal, and an enumeration would actually be better.
I suggest:
<iconNumber>
element in a function definition in the FDI.<iconNumber>
element in the FDI OpenLCB Standard via icon names
@bobjacobsen I agree on all points.
For the CS-105 and UWT throttles, there is an assumption of certain strings being used for certain function types, but these are not standardized in any way.
If you can, please send these my direction so I can confirm compatibility from my side. I'm considering exposing an editor for function strings and have tested portions of it (UWT was displaying the custom string value) but want to ensure compatibility out-of-box.
@bobjacobsen I agree on providing references to potentially suitable icons or Unicode data points that might work. But I agree, it's a challenge and likely well beyond the scope of OpenLCB (even NMRA) to create/manage this.
@bakerstu I agree on your points about standardizing icons, I was more intending it as a "here are a few options to consider" and not as "you must use X for compliance" for many of the same reasons you indicate.
It was raised in conversation that either the NMRA, Rail Community or both have defined a set of standard icons and their numbers. This could be referenced in the FDI, via a new element, to hint to a throttle that it can display one of these icons.