Actually, thinking about it more, not only should a user-content wrapper include the "dir" attribute, but it should also include the "lang" attribute - which could relate to things like spell checking. In that sense there should really then be a lang drop down list to add a lang attribute to an element / span if it differs from the surrounding text (just as a dir button).
I'm assuming this also has the potential to improve accessibility
?... though not being a user of a screen reader (or anything similar) I'm not sure of exactly the impact here.
P.S. A related "bee in my bonnet" is the lack of a focus on atto being organised around the use of "styles" (classes) to style text (which could be used in language / direction situations) similar to styles in any word processor (headings etc. in word) - this is in relation to authors / teachers rather than, say, forum posts.
While "themes" were introduced, there is no support in atto to "really" make use the themes (one can't easily add to the "headings" drop down menu, for example)... or in Moodle generally for any local styling (css
). And then people wonder why author's want to have buttons to style their text red, large etc!
There is a styles plugin but this is a bandaid (and needs improving... also looking at doing this) and my use of this is why I came across a bug in the "styles" plugin which I'm currently trying to get fixed, and beefing up it's functionality.
A "local theme" (e.g. a place to add css on, say, a course level... similar to additional html for the site) could be implemented for a language course to be able to style any, say, spanish text to distinguish it from the surrounding english text. The styles drop down list would then have a "spanish style" defined which would apply things like lang, dir (if necessary) etc. to any text styled in this way. It needs to be local as there are too many possibilities to include in a theme and local authors may need to implement their local styles e.g. they want to match the styling in a textbook related to the course they're running.
Moodle talks about wanting to be html 5 and then does not provide the tools for authors to be semantic with the html and allow the easy addition of styling in other ways - themes are a useful sledgehammer, but people also want hammers, screwdrivers etc. for minor local work, rather than having to ring up the builder to bring their heavy tools every time.
P.P.S. I don't want to derail this conversation with one about "styles", so please don't (even though one could argue I have!... but I did use a P.S.
)... but I'll open another thread at some point... but if you can't wait and/or if you're interested, you're obviously free to do so yourself.