News for hackers. Stuff that matters.
Re:In the Turkish locale, "INFO".lower() != "info" by phonebanshee on Sunday August 16, 2020 @01:00PM (#24179317)
toUpper is definitely language-dependent. For example, in Irish there are initial letters that are written as lower-case even in all caps. Wikipedia's example is amusing, since it's a photo of a government passport office sign - the all-caps version of Oifig na bPasanna is OIFIG NA bPASANNA (photo https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/AL..., article https://en.wikipedia.org/wiki/Irish_orthography#Capitalisati...). It would look utterly bizarre to write OIFIG NA BPASANNA. And this isn't at all an unusual construction in Irish, it happens in personal names all the time.

Plus, there's the issue of diacritical marks. Irish keeps long marks over capitals, but French drops accents. Do you plan to do é => É (required for Irish - POBLACHT NA hÉIREANN is the all-caps version of Poblacht na hÉireann [the Republic of Ireland]) or é => E (common practice for French)? You have to get it right, and you have to know the language to do that. (Poblacht na hÉireann also illustrates the fact that initial caps is also a language-dependent idea; you absolutely can't write Poblacht Na Héireann - that makes my eyes burn just looking at it.)

(And before you say, well, Irish isn't a language spoken by very many people, remember that it's an official language of the European Union. If you're writing software to be used by EU agencies, you're going to have to care.)

Re:In the Turkish locale, "INFO".lower() != "info" by smnrchrds on Sunday August 16, 2020 @02:01PM (#24179782)
> French drops accents

Official position of both Académie française and Office québécois de la langue française is that accents must be preserved in capital letters. However, it is common in France to drop them, while they are almost always preserved in Québéc. I have heard that the reason is that European French keyboard layout makes it difficult to type accented capital letters, unlike Québécois French layout which makes writing them easy. But I am not sure if this is the cause rather than the effect of the practice.

Re:In the Turkish locale, "INFO".lower() != "info" by forty on Sunday August 16, 2020 @02:55PM (#24180205)
I confirm that in French capital letters should have accents.

I have an anecdote on this: on birth certificates, family names are written in capital letters. It turns out my partner name ends with a É which was written as E in her birth certificate. She never noticed (it had never prevented her to get national ID with her name properly accented) until we had our first kid which has both our names, and they refused to have the name accented until we had my partner's birth certificate updated (which as you can imagine is quite an adventure, since you need to dig ancient family birth certificates to prove it was originally written with an accent...).

Re:In the Turkish locale, "INFO".lower() != "info" by ccccc0 on Sunday August 16, 2020 @05:46PM (#24181636)
French here, I recall my primary school textbook where they said something along the lines of "sometimes accents are dropped, that's sort of fine as long as it doesn't change the meaning". They gave the example of a fictitious newspaper whose headline was "UN POLICIER TUE": depending on the accent (tué/tue) it means either "a policeman kills" or "a policeman killed".
Re:In the Turkish locale, "INFO".lower() != "info" by dongvsascript on Sunday August 16, 2020 @10:28PM (#24183299)
american here who's lived in france and still use an azerty keyboard because it lets me type in both languages. how do you get a capital A with an accent on an azerty keyboard?
Re:In the Turkish locale, "INFO".lower() != "info" by nargek on Monday August 17, 2020 @06:58AM (#24186006)
Easily ? You don't, with the most common azerty keyboard you have to use : Ctrl+Alt+7 Shift+A. That's why there is a new standard for azerty keyboard the "NF Z 71-300" that is better with accent and stuff like æ,œ,Æ,Œ,«» etc.
Re:In the Turkish locale, "INFO".lower() != "info" by dongvsascript on Monday August 17, 2020 @02:12PM (#24190018)
Damn it. That's why I couldn't figure it out for years. You can't.. Is the new keyboard standard being used anywhere? Like if I walk into a common office in france and sit down at a laptop - is it likely to be using the new keyboard layout?

What's weird is I sometimes, even 10 years ago, would get an email from people in France, and it would have an accented A. Like, how did they do that..

Re:In the Turkish locale, "INFO".lower() != "info" by nargek on Monday August 17, 2020 @05:27PM (#24192369)
i know that LDLC is selling one of these [1] ... and that's it, i don't even think it's coming to laptop anytime soon.

[1] https://www.ldlc.com/fiche/PB00279741.html

Re:In the Turkish locale, "INFO".lower() != "info" by smnrchrds on Sunday August 16, 2020 @10:52PM (#24183416)
Not the answer to your question, but this is why I think Quebec uses accented capitals more than France. In Canadian French layout, there is a key for à. Simply using Shift+à gives you À.
Re:In the Turkish locale, "INFO".lower() != "info" by dongvsascript on Sunday August 16, 2020 @11:02PM (#24183455)
classic canada, fixing the keyboard. now all that's left is above 69.

korean is worse. they base off of 10k, not 1000. so a million is hundred ten_thousand. bagman. but as bad as that is, it's no 97 amirite.

Re:In the Turkish locale, "INFO".lower() != "info" by phonebanshee on Sunday August 16, 2020 @03:19PM (#24180410)
Interesting that I was wrong - another data point in the "it's more complicated than you think it is" column. I always thought you were supposed to drop them (because I was explicitly told so by a French engineer I worked with in the 90s, talking about one particular poster, and many years later still assume that one hallway conversation was enough to make that THE OFFICIAL RULE without bothering to actually check...)
Re:In the Turkish locale, "INFO".lower() != "info" by kergonath on Sunday August 16, 2020 @07:09PM (#24182181)
It’s been a pet peeve of mine for quite a while, and an urban legend for quite a lot more. It was tolerated when all we had was typewriters (and even then you were supposed to add them, but it was cumbersome).
Re:In the Turkish locale, "INFO".lower() != "info" by hocuspocus on Sunday August 16, 2020 @03:15PM (#24180376)
Wrongly dropping accents on uppercase letters predates computer keyboards; the French azerty layout puts accented letters on the first level of number row:

http://j.poitou.free.fr/pro/img/tkn/tw-image.jpg

This idiocy carried over. The recent layout update makes dead accents more accessible:

https://norme-azerty.fr/

But I haven't seen much adoption yet.

Re:In the Turkish locale, "INFO".lower() != "info" by zorked on Sunday August 16, 2020 @03:40PM (#24180581)
That button to the right of the P that contains four different forms of dashes is... interesting.

Even more if you consider that the minus sign there is not the character - that is used by every programming language.

Re:In the Turkish locale, "INFO".lower() != "info" by masklinn on Sunday August 16, 2020 @04:25PM (#24180964)
> That button to the right of the P that contains four different forms of dashes is... interesting.

And there are two more on the 8 key.

I like the mac international keyboard layout, but it still only provides for 4 of those: the non-breaking hyphen and the "proper" minus sign are lacking.

I like that the "new azerty" provides for pretty much every diacritic, even those which are not in use in french.

Re:In the Turkish locale, "INFO".lower() != "info" by kergonath on Sunday August 16, 2020 @07:06PM (#24182152)
I blame the horrendous default settings of MS Word and Outlook for this, and the maddeningly convoluted way to enter accented caps on Windows. There is no context in which it is correct to omit accents in French, caps or otherwise.