{"id":63,"date":"2013-07-17T14:50:32","date_gmt":"2013-07-17T14:50:32","guid":{"rendered":"http:\/\/www.w3.org\/community\/html5spec\/?p=63"},"modified":"2013-07-17T14:52:27","modified_gmt":"2013-07-17T14:52:27","slug":"directionality-in-text-fields","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/html5spec\/2013\/07\/17\/directionality-in-text-fields\/","title":{"rendered":"Directionality in text fields"},"content":{"rendered":"<p>I did a project on numeracy for my IT degree in 2010. \u00a0There are two directionality attributes for text fields in HTML, left to right (ltr) and right to left (rtl). \u00a0Mathematical sums are processed from right to left. \u00a0It was my interpretation\/understanding at the time that the rtl directional attribute behaved in the opposite way to that of ltr. \u00a0 In the development of my project, I found that with the rtl directional attribute, the cursor had a default right alignment, but remained to the right of the last character entered. \u00a0This was as I subsequently learned was to preserve the way characters were read in the English language, from left to right. \u00a0This did not help me in any way with my project. When multiplying long numbers, after multiplying each column, I had to manually move the cursor to the left of the last (numerical) character entered.<\/p>\n<p>It would have been useful at the time, and I still think it would be useful, to create a directionality attribute for mathematical processing. \u00a0With this attribute (call it &#8216;maths&#8217; for example), the cursor in a text field would default aligned right, but move one character space to the left of the previously entered character.<\/p>\n<p>When multiplying two numbers like 12345 and 77, as on paper, it would be useful to be able to create a vertical stack of text boxes, right aligned directly under each other. \u00a0 This would I feel greatly enhance web-based learning of basic mathematics.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I did a project on numeracy for my IT degree in 2010. \u00a0There are two directionality attributes for text fields in HTML, left to right (ltr) and right to left (rtl). \u00a0Mathematical sums are processed from right to left. \u00a0It &hellip; <a href=\"https:\/\/www.w3.org\/community\/html5spec\/2013\/07\/17\/directionality-in-text-fields\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4764,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[1],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/users\/4764"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":2,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/63\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}