Live data from Hacker News

Add dir=“auto” to your inputs and textareas

mough.xyz

61–70 of 114 posts

Re: Add dir=“auto” to your inputs and textareas

#61
To the people wondering why this is still an issue: Most tech is very US- or west-centered. My name contains an Umlaut (ü), which causes me trouble much more often than should be the case. A colleague of mine even changed their name by substituting ä foe ae, to avoid this issue. We still have the benefit of mostly ASCII names mind you. It can get a lot worse.

Re: Add dir=“auto” to your inputs and textareas

#63
post #42

or don't, because using fancy quotes in your HTML will have it not render properly. mods, pls fix the title.

? What does this have to do with anything

Not OP, but… the article title (correctly for this purpose) uses standard quote characters, so you could presumably copypasta the attribute straight from the title into HTML. The title as currently posted on HN uses curly quotes, so copypasta from there would produce invalid HTML. It’s a weird nitpick, for sure! Approximately nobody is going to copypasta straight from a substring of an HN title/link into HTML, of course. But it is technically both correct and pertinent.

Re: Add dir=“auto” to your inputs and textareas

#64

To the people wondering why this is still an issue: Most tech is very US- or west-centered. My name contains an Umlaut (ü), which causes me trouble much more often than should be the case. A colleague of mine even changed their name by substituting ä foe ae, to avoid this issue. We still have the benefit of mostly ASCII names mind you. It can get a lot worse.

Hello, Jürgen.

Re: Add dir=“auto” to your inputs and textareas

#65
post #8

There is also this shortcut of ctrl+shift+x to switch to RTL. Which is really funny when you do it on Twitter since it flips the entire user interface.

I used to work on web RTS game and one of the FE guys before my time had used scaleX(-1) for virtually every RTL case. First he flipped the viewport, then flip back everything that shouldn't have been flipped. I threw pretty much all his html, CSS and JS once I was allowed to render most of the game with WebGL

thats kinda comedic, def adding to the list of naive RTL handling approaches

Re: Add dir=“auto” to your inputs and textareas

#66
dir is a global attribute that can be set on any HTML element:

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...

What I don’t understand is why dir="auto" isn’t set as the default value, allowing browsers to choose text direction based on the lang attribute or the text content.

Re: Add dir=“auto” to your inputs and textareas

#67

This should be the operating systems problem to solve not developers of every website ever. Same with spellchecking, emojis, copy/paste etc.

This should be the operating systems problem to solve not developers of every website ever. Same with spellchecking, emojis, copy/paste etc. From from your mouth to God's ear. I wish every program would default to system-wide settings. But unfortunately, too many do their own things. Why does Microsoft Office need a separate dictionary from the rest of my computer? Why does Wrike intercept ⇧⌘N? Why doesn't Adobe Phot…

To be fair, it also wouldn't make sense for Office to have different dictionaries between its Mac and PC (and web) versions. So one or the other has got to give.

Users want OS's to be consistent across apps, but users also want apps to be consistent across OS's. And so the reality is each feature is going to be decided on a case by case basis and the end result will be somewhere in the middle.

Re: Add dir=“auto” to your inputs and textareas

#68
post #60

Earlier quoted context omitted.

Just support English and eventually it won’t be a problem. Also put all your dates in UTC. Any other low hanging fruit we can knock out?

always export files in UTF-8

only lowercase alphabetic ascii for any path or file name, excluding space.

i will die on this hill.

Re: Add dir=“auto” to your inputs and textareas

#69

To the people wondering why this is still an issue: Most tech is very US- or west-centered. My name contains an Umlaut (ü), which causes me trouble much more often than should be the case. A colleague of mine even changed their name by substituting ä foe ae, to avoid this issue. We still have the benefit of mostly ASCII names mind you. It can get a lot worse.

Reminds me of a story where a persons first or last name is “Null” and the system couldn’t handle it. Apparently a very common name in Lebanon or some other non-Western country

Re: Add dir=“auto” to your inputs and textareas

#70

dir is a global attribute that can be set on any HTML element: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att... What I don’t understand is why dir="auto" isn’t set as the default value, allowing browsers to choose text direction based on the lang attribute or the text content.

Probably to not break existing sites.
Post reply on HN