Stat charts with section headers tend to look weird on big screens. The problem is that the headings are centered, but the data is left-aligned.
I had a few ideas about how to handle this, and a few questions for y’all about my ideas.
Headings with *heading
*heading Chapter Seven
As I’m imagining it, when you use the *heading
command, we could show the text in bold, in a slightly larger font, and centered horizontally on the screen.
Question: Should *heading
allow left-alignment, too? How?
I could imagine allowing left-aligned headers in two ways. We could say that left-aligned headings would have a special align=left
code at the start, but normal headings would be centered.
*heading Chapter Seven (centered by default)
*heading align=left Chapter Seven (aligned left)
Or, we could require all users to specify whether they want the heading to be left-aligned or centered.
*heading center Chapter Seven
*heading left Chapter Seven
I think I kinda prefer centering by default. And maybe not even allowing left-aligned headings? (One less thing for new authors to learn about, right?)
Centered Stat Charts with *stat_chart center
When you use *stat_chart center
, the stat chart would appear horizontally centered on the screen.
text
lines would be wrapped to the width of a percent
stat bar, left aligned within the centered box.
Unlabeled text in stat charts
Stat charts have always supported three types of content:
percent
opposed_pair
text
All of these include a label and a colon each line, even text
.
*temp color "Blue"
*stat_chart
text Color
That would appear in the stat chart like this:
Color: Blue
unlabeled_text
would allow you to write anything in the stat chart, like this:
*stat_chart
unlabeled_text You have no favorite color.
You could also use variables with ${}
or @{}
, like this:
*stat_chart
unlabeled_text Your favorite color is ${color}.
Like text
, unlabeled_text
would be wrapped to the width of a percent
stat bar.
If you don’t want your text wrapped, you can write the text outside of a *stat_chart
, like this:
*stat_chart
percent Strength
You don't have a favorite color.
… but then it won’t be centered or wrapped.
Question: Should we center stat charts by default?
To the greatest extent possible, I want stat charts to look great by default, without requiring authors to learn anything or understand anything about how to make them look great (or even that there are options available to them).
In my experience, it’s fine to have just one thing centered while everything else is uncentered, but if you have even a few things centered, it probably makes sense to center everything else on the same screen.
For example, if you have dozens of stats divided into three sections, and each section has a *heading
(or a centered *image
as its heading), then I’d recommend centering the stat charts, too.
But if most of the stat screen includes centered stat charts, it will make the screen look weird if there are just a few lines of text that are uncentered. In that case, authors would need to know to include those lines in a stat chart with unlabeled_text
instead.
Is it better to center the stat charts by default?