Open arasaac-dga opened 2 years ago
I've started working on this (as part of replacing the whole grid layout library with something better). Now I'm wondering about the details for the options of showing the text. See this screenshot, original at the top, my new experiments at the bottom:
For now I'm just using a fixed font size at the bottom. My questions are: what should be default behavious and what should be configurable with which options?
A suggestion for possible options:
automatic
- automatic sizes text to fit in the available spacefixed
- uses a fixed configurable font size and truncates it, if too long (e.g. with dots like Longer text be...
)1
, if set to 2
, there could be 1-2 lines of text below the image (consuming 20-40% of the height with "line-height" of 20%). For only-text elements this would be ignored and the number of lines would be determined by the font-size and the size of the whole element.@ms-mialingvo and @arasaac-dga please tell me what you think.
Thank you!
automatic
as default.
It would be good if these things were available as options, both for the whole set as well as for individual buttons. For example, for single-word-buttons - which are most of the buttons - I'd want to see a word like "expressions" fully but maybe I have a subpage with some buttons with long phrases for quick conversation, where the full text would take too much space so fixed font-size would be better there.font(-family) probably is whatever the browser's font is so it would be possible to change that there?
Great!!! Good addtion. Our comments:
font-size: automatic as default. We agree. About adding the font-size option on each cell we consider that, at the moment, adding more options in cell edit makes it more complex. We consider that iniciatilly with the other options could be enough for most of the cases.
line-height: ok, actual configuration is correct for us. Anyway, could be neccesary is some cases adjust the percentage. So, 20% as default, and possibility to adjust manually.
maximum lines: for us, 2 must be the default option and offer only 1 as another option. Three lines we don't see.
font-family: if it's possible to change font-family we consider that must offer a limited number of fonts prioricing "print fonts" like Roboto, Arial,... and fonts specially created for dyslexic for example (Open Dyslexic). But no more than 5-6 fonts. The most important for the fonts is that they are as legible as possible.
We add two more options one of them, the most requested:
Text position: under or above the pictogram. This is the most requested option for our users.
Font color: focusing in high contrast we would offer three options for color: black, white or yellow. No more options.
In case of long long texts if after all the settings are longer than cell space, the best would be to truncate and add ...
I made an error in reasoning, I think. If the maximum lines is set to two, I guess the system recognizes if a second line is needed and only adds it if it's needed? For some reason I thought having two lines as default would mean it would add an empty second line if the word was too short, which is why I said 1 line as default. If the system adapts automatically, though, I too am for 2 lines as default.
If setting up font-family is a possibility, it would be important for me that one of the font is a font with the double-storey |a| and one is one with the single-storey |ɑ| (e.g. Futura) and that it still would automatically switch to the needed non-latin font (e.g. arab, devanagari) depending on the language of the board.
I didn't mention text position as it's listed in the first post but that sure would be an important option too.
Font-family and text position would be enough to have as global option only, I think.
And then maybe font-size, line-height and maximum lines as both global option both as well as option on individual cells? I'm not quite sure if all 3 would be needed for individual cells. What do you think, arasaac-dga?
Would the line-height automatically fix issue #403, @klues ?
If the maximum lines is set to two, I guess the system recognizes if a second line is needed and only adds it if it's needed?
We also understand that although is set by default in two lines, the system automatically will use only one if two are not needed. The idea is set the max number of lines but not the lines that must be used.
If setting up font-family is a possibility, it would be important for me that one of the font is a font with the double-storey |a| and one is one with the single-storey |ɑ| (e.g. Futura) and that it still would automatically switch to the needed non-latin font (e.g. arab, devanagari) depending on the language of the board.
Yes we agree. It's neccesary to offer fonts that are suitable for some languages as you comment. Perhaps it would be interesting that the system sets, by default, a font-family for some content languages or that, the font-family list of fonts, list only the font that are suitable for those languages.
Font-family and text position would be enough to have as global option only, I think.
And then maybe font-size, line-height and maximum lines as both global option both as well as option on individual cells? I'm not quite sure if all 3 would be needed for individual cells. What do you think, arasaac-dga?
We are worried about introducing more complexity in communicator management. That's why we think that font-size, line-height and maximum lines must be only as global options. Introducing more configurations in cells makes everything more complex for managers that, in our experience, have low technical level.
So, I just casually stumbled upon a board set that has the labels to the right of the image. I don't know what the reason is for that person to create it like that. However it reminded me of #57 and for that one, it would be helpful to have that option. Like for some users, it will be more helpful to have the different steps not from left to right (or right to left in Arab) but from top to bottom. And then it would be better if the text was on the right of the image (or left in Arab). The question is, should right/left position only be possible for such procedure plans or for all buttons, like is it easier to just programm it right from the start as option for all buttons? (Also, at that point the position should also become editable not just per set but per button)
We are worried about introducing more complexity in communicator management. That's why we think that font-size, line-height and maximum lines must be only as global options. Introducing more configurations in cells makes everything more complex for managers that, in our experience, have low technical level.
I think the way the editor is re-arranged and set up will have a big impact on that. Like for example in TD, most options are editable on set level, on page level and on button level. These are therefore a lot of options. However, because the settings are organised visually exactly the same for each level, it's really easy to understand and quite intuitive.
Thanks for all your comments and thoughts! 👍
Instead of answering to everything separately I'll try to summarize all options and possibilities (also for me to have something to look at while implementing):
top
(default) / bottom
, maybe also left
/ right
, if not too complicated to implementautomatic
(default) or fixed
to a specific value with truncated texts if too long (...
)20%
as default, adaptable, maybe 60%
default for elements with no symbols?!2
as default, only uses 2 lines if text doesn't fit to one lineblack
, white
and yellow
, but maybe simply freely definable like grid and element background colors (probably even easier to implement)color background
or color border
(not directly related to text, but I'm adding it here, so that I can implement it along with all of this, see https://github.com/asterics/AsTeRICS-Grid/issues/259 )What should be default for text position
and color mode
? My feeling is that position top
and color border
are preferred for most people, but probably we shouldn't automatically change it for users with the update, should we?!
Would the line-height automatically fix issue https://github.com/asterics/AsTeRICS-Grid/issues/403, @klues ?
Currently I have some extra logic, which tries to increase the font-size of single character elements which is intended for keyboards. I would like to remove this extra logic and only use the new options. For this case 2 questions:
80%
), but maybe there are elements with longer text, where it shouldn't be too big (e.g. 30%). For the question of how to arrange options and settings, I have opened a new issue to discuss this separately: https://github.com/asterics/AsTeRICS-Grid/issues/452
- font-color: at least
black
,white
andyellow
, but maybe simply freely definable like grid and element background colors (probably even easier to implement)
Yes, we consider that, for other colors, different to black, white and yellow must be defined at grid or cell level only. Globally has no sense.
What should be default for
text position
andcolor mode
? My feeling is that positiontop
andcolor border
are preferred for most people, but probably we shouldn't automatically change it for users with the update, should we?!
For us, text position on bottom by default as is now and color mode with backgroud color as is now too. Most of the commercial communicators use background color by default and is most used option (although we understand the need of frame color as option).
Anyway, IMPORTANT, when you update Asterics with format text, the most important is that people don't see changes in their actual design. So, for example, if you decide, finally to set as default text on top, when you update don't chage this option for people. The same with others like line-height,font-size,.... It's important that the update is the most transparent as possible without generate "important" changes.
- probably the most coherent solution would be to add the possibility to set line-heigt / font-size also for grid-level and therefore being able to increase the font size only for keyboard grids.
Yes, although we are not in favour of introducing more settings in order not to introduce more complexity, we agree that some formatting (appearance) configuration of the grid specifically will be necessary by modifying, as you propose in the other issue #452 the current resizing window of the grid. It is important that boards like the keyboard ones, for example, look good and have their own specific configuration since they can be single-letter keyboards, multi-letter keyboards (in Spanish no more than 3) or keyboards where we use pictograms/images.
All the other options for format text/cell we agree with the proposal.
- text position:
top
(default) /bottom
, maybe alsoleft
/right
, if not too complicated to implement
We forgot to comment that we don't see the need of right/left text as global option for any case and in any case as global option.
We are talking about font-size, but might image-size instead with automatic adaptation of font-size give more flexibility? "Let user define 0-100% of height of image/symbol, the font-size of the label adapts automatically to fit within the remaining space." #28 (0% image-size would then also equal to "hide all images", there was an issue open for that) Or does it end up being the same as it needs to add to 100% anyway?
We forgot to comment that we don't see the need of right/left text as global option for any case and in any case as global option.
As I don't know why pagesets with left/right text do exist, I'd have to ask actual AAC users first. It's a pity that there aren't more AAC users active in here.
For us, text position on bottom by default as is now and color mode with backgroud color as is now too.
Same.
We are talking about font-size, but might image-size instead with automatic adaptation of font-size give more flexibility? "Let user define 0-100% of height of image/symbol, the font-size of the label adapts automatically to fit within the remaining space." #28 (0% image-size would then also equal to "hide all images", there was an issue open for that) Or does it end up being the same as it needs to add to 100% anyway?
We consider more transparent for users config line-height as is planned (inside a global text configuration) and don't consider it useful to change the configuration to the image. We don't see the need to configure images globally and their size (don't see the need to set it to 0% to hide all the images). So, we prefer to continue with the actual way to configure Text-Images from Line-Height. It's more logical for us.
I also think that line-height
makes more sense, since it's more clear what happens if there is more than one line (property maximum lines
):
20%
and one line => image height 80%
20%
and two lines => image height 60%
But in the end it makes no difference regarding flexibility, you could still set line-height to 100%
in order to hide images.
Totally agree @klues !!!
But in the end it makes no difference regarding flexibility, you could still set line-height to 100% in order to hide images.
Alright.
I've been trying to figure out about the right/left labels and haven't been able to get any proper answer as to why this could be useful in some cases. So for me then, it also wouldn't be necessary to have right/left labels as global option, just for individual cells.
The idea is to add the following cell text customisation options next to the current "Convert element labels" option to "Element labels":
1) Position of the text in the cell (top or bottom). 2) Font Family 3) Font size (in factor mode as in accumulated phrase) 4) Font colour (with black and white as a main colours and a simple optional palette to choose)