[alreq] text/plain for RTL (#257)

ebraminio has just created a new issue for https://github.com/w3c/alreq:

== text/plain for RTL ==
Hopefully not that out of scope for this repository, I had this for awhile and now that I just saw https://www.curiositry.com/blog.txt a blogging platform just in a text file, somehow a novel way of using browser I guess, I was wondering what if there was someway to indicate indicate directionality of plain text file.

Right now for example we have

data:text/plain;charset=utf8,سیب.

(paste the whole line in browser url bar)

which shows as

<img width="61" alt="image" src="https://user-images.githubusercontent.com/833473/188626358-599593d0-01ef-4fdb-abb7-80b03215a96f.png">

And I drop charset=utf8 it will become 

data:text/plain,سیب

<img width="96" alt="image" src="https://user-images.githubusercontent.com/833473/188626428-9395a938-1293-4030-ba54-3519072c14d9.png">

And I wish there was a standardized way in browsers to specify direction in MIME also say like this,

data:text/plain;direction=rtl;charset=utf8,سیب.

or

data:text/plain;dir=rtl;charset=utf8,سیب.

so it can show it like this

<img width="122" alt="image" src="https://user-images.githubusercontent.com/833473/188626611-1e2438a5-f575-4add-8383-133c9bb9ca14.png">

(which currently shows it like the first screenshot and puts the dot in the wrong place)

So maybe suggesting dir=auto,rtl,ltr to MIME extension so RTL documents written in plain text can be shown correctly in the browser.

And maybe `writing-mode={horizontal-tb,vertical-rl,vertical-lr,sideways-rl,sideways-lr}` later also but vertically written language but guess that isn't that needed.

Or maybe the whole thing doesn't worth the hassle and that https://www.curiositry.com/blog.txt blogging mechanism is niche and should only be kept for LTR scripts, but at least it is discussed somewhere.

Please view or discuss this issue at https://github.com/w3c/alreq/issues/257 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 September 2022 11:51:28 UTC