News for hackers. Stuff that matters.
Re:gemini:// space by Mediterraneo10 on Monday February 01, 2021 @03:08AM (#25986604)
I really like the idea of having a more bare-bones text-only web, but I can't get onboard with Gemini until it offers the same support for screenreaders as HTML. (For example, an equivalent of span lang=XX tags is missing, so if you quote a foreign-language word(s) in your text, you can't let screenreaders know what language to read it in). The visually impaired should not be second-class citizens in any new internet community.
Re:gemini:// space by simias on Monday February 01, 2021 @06:00AM (#25987574)
Multilingual accessibility seems to be a niche within a niche. I'm bilingual but I seldom read mixed-language content. And even when I do I wonder how often the author can/bothers to include the markup for it.

If I write "ceci n'est pas du français" here for instance it'll remain untagged.

I think the only websites where you can reliably expect the text to be tagged correctly are dictionaries and the like, where it can be done unambiguously and at scale (wiktionary seems to do it for instance: https://en.wiktionary.org/wiki/coin ). In these case it seems like it could genuinely be useful.

I've also looked at a few language learning apps (such as Duolingo) and none of them appear to use the lang attribute at all, even though it seems like it would be a perfect use case for it.

I guess my point is that I'm not sure it's fair to blame a format that strives to be minimalist for having such a shortcoming for lacking such a very specific feature.

Of course if you're a blind linguist you might have a very different opinion on the subject...

Re:gemini:// space by madeofpalk on Monday February 01, 2021 @07:21AM (#25988022)
Just to be really clear here - accessibility isnt a "niche". People being able to use software (which presumably is what gemini is about??) is important for everyone, obviously.

Imagine saying accessability hardware - like corrective lenses - is niche.

Re:gemini:// space by jrochkind1 on Monday February 01, 2021 @08:21AM (#25988408)
By "niche" here, we mean affecting very few people, I think?

Then "accessiblity" in general is not niche, it effects everyone or almost everyone.

But "accessibilty" is a broad concept, applying to all sorts of different unrelated needs. Vision impairment, cognitive differences, mobility needs, etc.

Some of them effect more people than others. Some of them will be "niche", effecting few people. it is just a fact, right? It is faulty logic to say that because "accessibility" effects everyone, every single accessibility accomodation is also therefore of use to everyone. It's not so.

How much need is there for multi-lingual screen-reading? I have no idea. It's obviously not universal -- I don't need it for instance, although I may need other kinds of accessibility attention -- but there may be lots of need for it! But we can't prove it one way or another just from language games around the general concept of "accessiblity".

Whether developers ought to accomodate even niche accessibility needs is a separate ethical or practical argument.

Re:gemini:// space by danShumway on Monday February 01, 2021 @10:27AM (#25989441)
> By "niche" here, we mean affecting very few people, I think?

A text only web is pretty niche. Can this project really afford to start slicing off additional portions of its userbase? I agree that multilingual blind users are in the minority, but those users are probably the most likely of anyone to be interested in a text-only web.

And even ignoring blind users, it's just... what's the point of any of this if Gemini is not going to be semantic? It's like religiously adhering to the GNU principles of always printing human-readable text on the command line, and then not shipping a shell with a pipe command or any text parsing capabilities. From just about any perspective, whether you're worried about accessibility, or parsing, or search -- it's useful to know what language a document/section is in.

One of the few advantages of having a limited, well-defined, non-extensible spec is that it's easy to work with and write parsers around. And immediately Gemini is just saying, "filtering sections by language? Good text-to-speech support? No need for that."

If nothing else, Gemini is theoretically built specifically for generality[0], and it's already guaranteeing out of the box that it can't be used well with voice assistants. Those things aren't a fad, a general-purpose document format kind of needs to support them. And trying to have a voice assistant that intuits the current language is just a really bad system for everyone.

[0]: https://gemini.circumlunar.space/docs/faq.html

Re:gemini:// space by andai on Monday February 01, 2021 @02:39PM (#25992705)
One of Gemini's explicit goals is for client implementation to be so simple as to be a weekend project for the average developer.

That's one reason inline links are not allowed (they have to be a separate line): it would complicate the parser.

It shouldn't be too hard to add a "language switch" line, so that sections (but not words within sections) can be different languages.

Making Wiktionary or Etymonline in Gemini would require you to add a line break for each foreign word, which seems annoying to read.

I don't see though, why the spec can't allow links that are written on a newline for markup simplicity but displayed inline? And then the same could be done for foreign words.

Re:gemini:// space by spwhitton on Monday February 01, 2021 @01:03PM (#25991304)
You could still do multi-lingual content just by having it in separate .gmi pages and then linking between then. And your screenreader could follow links by embedding the text in the other language in the first page.

I agree with you that those behind Gemini should take this issue seriously, but maybe something like what I've mentioned is what they have in mind as their answer. Not sure.

Re:gemini:// space by arbitrage on Monday February 01, 2021 @10:10AM (#25989289)
you seem to be confusing "any" with "all".

it would be nice to have more accesible interfaces for everyone. helping one person doesn't mean you fail to help everyone, in fact, helping one person in terms of accessibility generally has the effect of helping everyone.

we're asking for some access. not all the access. scoped properly, it doesn't seem to be that insurmountable of a development goal, honestly.

Re:gemini:// space by jrochkind1 on Monday February 01, 2021 @10:17AM (#25989351)
> in fact, helping one person in terms of accessibility generally has the effect of helping everyone.

How does facilitating multilingual screen-reading help someone who is neither multilingual nor uses a screen-reader? How can it possibly help everyone? (like literally 100% of people, you are suggesting?) What am I missing?

Re:gemini:// space by danShumway on Monday February 01, 2021 @10:35AM (#25989538)
- better client displays (allowing a user client to switch out fonts based on the language, for example)

- better support for users who are not multi-lingual (a client could try to auto-translate sections that are not in the user's native language)

- better search capabilities (find me all documents that contain a French passage)

- better voice-assistant support (if a document is being read out loud for any reason, it would be nice to be able to handle multiple languages well. This also combines with the auto-translate capabilities above.)

Basically, all of the reasons why Gemini includes a "lang" attribute in the first place, except recognizing that parsers and clients want to be able to make use of that on a section-by-section basis rather than purely at the document level.

Sometimes documents are big and expand across multiple languages. It's just a bad abstraction in general to assume that each document would only have one language type[0]. Documents/books in the real world don't work that way, and a document format that can't accurately represent a giant portion of classic literature isn't a very good general-purpose format.

[0]: yes, technically Gemini allows you to specify multiple top-level languages, but that's not useful for anything. If I'm parsing a document, I don't want it to tell me "hey, there's some French in here somewhere, good luck!" Tell me where it is.

Re:gemini:// space by CoolGuySteve on Monday February 01, 2021 @10:17AM (#25989350)
I'm not necessarily a fan of your tone, seems pretty shrill.

But at Apple we were well aware that accessibility features like closed captions were often used by people with no disabilities. We would add stuff knowing that all sorts of people would find uses for it.

I can easily imagine a language tag would also be useful for filtering out a German-language gemini for instance.

This was a double edged sword however. Like with closed captions/subtitles, we knew that many people using them that had hearing issues were older and also likely had out of date glasses prescriptions.

But this didn't stop the AppleTV designers from lowering the contrast of the font by displaying it over a transparent background, lowering the font size, using Helvetica instead of an accessible font, and removing the positional text feature that indicated who was speaking. And in typical Apple style, there was no option to make the text more legible.

All of these choices were made to appease people without disability who were using the feature for whatever reason. I didn't like it.

So I guess what I'm saying is, accessibility features are good for all sorts of reasons but don't lose sight of the much, much smaller group of users who require the feature in order to use the product at all.

Re:gemini:// space by madeofpalk on Monday February 01, 2021 @11:29AM (#25990096)
> I'm not necessarily a fan of your tone, seems pretty shrill.

I think it is important to be honest and upfront when we talk about accessability in software because I've seen so many times when developers and product owners dismiss it entirely. I really want to stress the point that thinking about accessebility as a niche is exclusionary and unethical.

I think about my time working at Net a Porter - UK upmarket online fashion retailer - where I brought up some accessability concerns especially around their terrible in-house captcha and it was dismissed as "they arent our target market" which is so blanetly untrue, but all stems from this myth that accessability is only for a small group of users.

> don't lose sight of the much, much smaller group of users who require the feature in order to use the product at all.

The people who need to use captions/subtitles are not a "much smaller group". I think about foreign language media, where i need the subtitles (like when I watched Dark on Netflix), or even primarily English media but has some forign language (I watched Lost recently - there's a fair bit of Korean and Arabic in that). Or even when you're watching TV around someone who's sleeping.

Everyone needs "accessability", and if you don't now, you will eventually.

Re:gemini:// space by buttercraft on Monday February 01, 2021 @10:59AM (#25989748)
> Just to be really clear here - accessibility isnt a "niche".

This is uncharitable. They were specifically talking about multilingual accessibility. You responded to something they didn't write.

Re:gemini:// space by madeofpalk on Monday February 01, 2021 @11:15AM (#25989943)
I specifically responded to the "niche within a niche" comment, which I interpreted as referring to multi-lingual documentments as a niche within the niche of "accessibility" in general.
Re:gemini:// space by timknauf on Monday February 01, 2021 @01:35PM (#25991739)
I read “niche within a niche” as referring to multi-lingual accessibility within the ‘niche’ of Gemini.
Re:gemini:// space by efsavage on Monday February 01, 2021 @09:49AM (#25989124)
Also, accessibility numbers are almost always measured very low because people who need those affordances aren't even attempting to use it, since so much software ignores it. Years ago when browsers let you lock font sizes, I heard many times from both designers and usability "experts" alike, "well, it's not a big deal nobody ever changes the font anyways", not realizing their own self-fulfilling prophecies.

I've always loved that the Kindle, even with such a simple use case as reading a book, supports so many ways to see it and interact with it, so even people without vision or motor problems can use it the way they like best.

Re:gemini:// space by simias on Monday February 01, 2021 @08:38AM (#25988543)
A quick internet search tells me that between 50 and 74% of adults (depending on the source) need some for of vision correction. That's very much not niche. Also it's a pretty bad example because very rarely do you need to worry about "corrective lense accessibility", except maybe for things like VR helmets.

A better example would be things like wheelchair accessibility for instance, which is indeed very much not implemented everywhere.

To be clear I'm not saying that it's a bad idea to implement accessibility features, It's actually quite commendable. I just feel like in practice it's a lot of additional work to get it right and even then it may not do much good at all. Again, while the "lang" attribute is technically supported by HTML, I struggle to find places where it's used in the wild, even in places where it doesn't seem like it would be technically difficult to do it (like dictionaries and language learning websites).

If I was a gemini developer I'd definitely listen when people complain about bad accessibility, but I would also take the time to understand how people deal with things like multilingual content in practice and how to make it easier, because clearly at the moment "lang=" is not it.

Re:gemini:// space by madeofpalk on Monday February 01, 2021 @10:03AM (#25989232)
> A quick internet search tells me that between 50 and 74% of adults (depending on the source) need some for of vision correction. That's very much not niche.

That's my point :)

> Also it's a pretty bad example because very rarely do you need to worry about "corrective lense accessibility", except maybe for things like VR helmets.

Ahh, but what corrective lesnses points to is degregation in eyesight. So ways to make viewing/experiencing content _without_ glasses is definitely a concern to between 50%-70% of adults.

Re:gemini:// space by leesalminen on Monday February 01, 2021 @01:43PM (#25991856)
I’ve been wearing glasses full time for 25 years and have never wished a website was designed for me to use without glasses. Ever.
Re:gemini:// space by madeofpalk on Monday February 01, 2021 @02:31PM (#25992603)
On the other hand, my parents have the font size turned up on their phones because their eyesight degraded with time. I imagine, within time, my eyes will fail more and that'll be me.
Re:gemini:// space by grosswait on Monday February 01, 2021 @07:53AM (#25988189)
Except it currently is even if it should not be. The number of people that know how to make documents or websites 508 compliant is surprisingly low
Re:gemini:// space by Symbiote on Monday February 01, 2021 @08:17AM (#25988356)
Accessibility in the web standards and specifications isn't a niche, even if most implementations don't bother.
Re:gemini:// space by zamadatix on Monday February 01, 2021 @02:34PM (#25992639)
How so?
Re:gemini:// space by Chris2048 on Monday February 01, 2021 @05:33PM (#25995036)
> People being able to use software (which presumably is what gemini is about??) is important for everyone, obviously.

Yes, and a minority of those users are visually impaired, hence it is a niche. Maybe you considered "niche" to mean "preference" or "novelty"?

" niche, adjective

denoting products, services, or interests that appeal to a small, specialized section of the population. "

Re:gemini:// space by computeruser000 on Monday February 01, 2021 @09:57AM (#25989185)
Fair in general, but for this example accessible writing is maybe more the issue - whoever made the content should avoid mixing languages if they want to be accessible.
Re:gemini:// space by cabalamat on Monday February 01, 2021 @07:08AM (#25987948)
> but I can't get onboard with Gemini until it offers the same support for screenreaders as HTML. (For example, an equivalent of span lang=XX tags is missing, so if you quote a foreign-language word(s) in your text, you can't let screenreaders know what language to read it in).

The problem with this you'll get a million other people saying "Gemini is a really good simple format that the internet needs, but you need to just add feature X". But if Gemini added all those features, it would become as bloated as HTML/CSS/JS!

Re:gemini:// space by Mediterraneo10 on Monday February 01, 2021 @07:13AM (#25987985)
Gemini is to a large degree a reaction to the commercialization of the web, all that huge load of Javascript etc. arose through the ad economy. Accessibility isn't that, accessibility is something that people trying to do business would prefer to avoid. But letting the disabled be first-class citizens in an online community alongside the rest of the population is a matter of justice. Adding accessibility features isn’t making a standard "bloated", it is simply doing the right thing.
Re:gemini:// space by cabalamat on Monday February 01, 2021 @07:50AM (#25988166)
> Adding accessibility features isn’t making a standard "bloated", it is simply doing the right thing.

Yes, and the other million people are going to say their proposed features are "simply doing the right thing".

It may be that marking up what language a short except of text is in is a good feature to have (and would be fairly easy to achieve if Gemini used the Markdown format as you could simply us a <span> tag). A counterargument would be that traditional text doesn't do this, so a text file format ought not to unless it is aiming at being something more than what text does.

But add too many features, the project becomes something else, is maybe less useful & doesn't gain traction. A Gemini project that is too bloated and thus gains no traction helps no-one, disabled or otherwise.

Re:gemini:// space by danShumway on Monday February 01, 2021 @10:57AM (#25989730)
> so a text file format ought not to unless it is aiming at being something more than what text does.

Gemini does aim at being more than text[0]:

> The "first class" application of Gemini is human consumption of predominantly written material - to facilitate something like gopherspace, or like "reasonable webspace" (e.g. something which is comfortably usable in Lynx or Dillo). But, just like HTTP can be, and is, used for much, much more than serving HTML, Gemini should be able to be used for as many other purposes as possible without compromising the simplicity and privacy criteria above. This means taking into account possible applications built around non-text files and non-human clients.

Lots of documents and books contain passages in other languages, it's reasonably common -- I don't get why people are saying this is a niche concern. Books get around that problem because they have controls around presentation, and they're not designed to be consumed visually, not as a semantic, parseable format. But Gemini, at least in theory, is designed to be parseable.

[0]: https://gemini.circumlunar.space/docs/faq.html

Re:gemini:// space by zamadatix on Monday February 01, 2021 @08:09PM (#25996350)
If you surveyed people on what features were missing from Gemini and got 10,000 responses how many people do you think would mention "semantic tags for when the language switches mid document" and at what priority when mentioned? Now the same for the top item on the list? Now pick 5 random responses only mentioned once, do you think there is one that could theoretically be used by a large percentage of the population if implemented but even if you had thrown it in the survey itself but still wouldn't have been selected by many people or as a high priority?

I.e. it's not enough for something to be possibly usable by a large portion of people - the userbase have to actually be interested in utilizing it and consider it more important than other things instead. I strongly think if you follow this logic you'll find it's a very niche group that cares this deeply about the semantic language tags. Maybe you truly strongly don't and consider it something everyone would love if only it was there.

Re:gemini:// space by danShumway on Tuesday February 02, 2021 @01:19AM (#25997930)
That is a really good point, and a really good way of phrasing that point, but I still have two semi-objections.

First, I do think this kind of thing falls into a category of... maybe 'polish', for lack of a better word?

This is something that you're not going to notice you're missing until you think "I want to write one of these quick and dirty display clients that I've been encouraged to build over the weekend, and wow, embedded Japanese is just literally impossible to render well." If you have a document format that's designed to be adaptable and flexible, predicting what you're going to need is difficult.

So maybe the idea is that you're not going to throw transcriptions for comics/manga into this, and nobody would need to search documents for embedded passages in other languages, and stuff like auto-translations in a client wouldn't be useful. But to me it kind of just smacks of, "this is designed for the use cases we could think of right now." I don't know what features will be critically important until I try to do something creative, that's why I value a tightly constrained format that's simple to understand but still offers at least some flexibility.

The other objection that keeps coming up in my mind is: is Gemini actually swamped for feature requests right now? Are they being forced to prioritize features? I'll definitely concede that if you surveyed 10,000 people using Gemini, stuff like a hard limit of 2 subheaders is very likely annoying more people right now than anything to do with language types. But Gemini also doesn't look like it's trying to fix its subheader limit. The impression I get from the FAQ is that this is not a spec that's actively evolving much right now.

And that kind of loops me back around to thinking about polish again. On one hand, I'm inclined to think you're right, this is probably not the first thing on anyone's mind. But on the other hand, "a document with multiple languages in it" is a reasonably common thing that will show up in multiple settings. So I'm still looking at a text format that even just on the surface level doesn't seem to be very good at describing text, even in cases where the solutions seem pretty simple. Having a language switch tag in the spec or just allowing multiple top-level media types in the document doesn't seem like it would complicate the parser spec or make it any harder for me to build a client.

Part of this is, if I'm going to adopt a format, I want it to be well thought out -- I want the authors to have spent more time thinking about it than I have. So if I can immediately see problems before I even start using the spec, it makes me wonder what else I'm going to run into where I'll just be scratching my head over why it was designed that way.

On some level I get where you're coming from, and rendering multiple languages is not the end of the world. You can even potentially work around it, maybe. But it would also be very, very easy to get this right, and I don't understand why the first thought from a spec designer putting together a content type header wouldn't be "what if the content type changes mid-document". This is maybe unfair, but the immediate thing that it makes me think is, "these are people who have not spent much time considering how text documents work, even for simple cases."

But if Gemini was in heavy active development, my opinion would probably be different. I don't know, maybe it is? Are they actively evolving the spec right now? Maybe I'm just being over-critical. But I feel like I shouldn't be able to immediately think of use cases involving basic text that Gemini just can't handle, it should take me longer to see the limitations of a general-purpose text format.

Re:gemini:// space by cabalamat on Wednesday February 03, 2021 @02:22AM (#26011384)
> Lots of documents and books contain passages in other languages, it's reasonably common

Yes they do, and since Gemini allows Unicode, it can cope with this. Note that books typically don't mark what language foreign words/phrases are in.

> But Gemini, at least in theory, is designed to be parseable.

If I was designing Gemini I'd design the source format as something very like Markdown and have it compile to a format which would be a subset of HTML. This would allow <span lang=...> constructs.

Re:gemini:// space by Jtsummers on Monday February 01, 2021 @11:09AM (#25989875)
> A counterargument would be that traditional text doesn't do this, so a text file format ought not to unless it is aiming at being something more than what text does.

Other text-centric media often emphasize foreign words in some fashion. For instance, in an English language novel foreign language text is often italicized. Same in many articles.

Re:gemini:// space by mattmanser on Monday February 01, 2021 @09:39AM (#25989044)
Really feel you're on the wrong side of this one. It's not the same at all in my book. Especially if, as the author of the blog claims, it will never be able to be changed.
Re:gemini:// space by bzb6 on Monday February 01, 2021 @09:40AM (#25989054)
> a matter of justice

Ooof. This kind of wording makes me flinch away.

Re:gemini:// space by Symbiote on Monday February 01, 2021 @07:57AM (#25988216)
The lang attribute is also required for embedding Simplified Chinese/Traditional Chinese/Japanese/Korean text in a document containing two or more of those.

There are differences in the display (font) of the same Unicode character.

https://en.wikipedia.org/wiki/Han_unification#Examples_of_la...

Re:gemini:// space by miki123211 on Monday February 01, 2021 @10:46AM (#25989636)
As a screen reader user, automatic language switching is the first thing I disable. A lot of HTML templates just include 'lang="en"', and developers rarely notice that, even if their website is in another language.

I find Gemini pretty accessible overall. There are no images, so including alt descriptions isn't even a concern. There's no CSS, so you can't make controls that visually look like check boxes, but are much less accessible. In fact, it's way harder to make an inaccessible Gemini site than to make an inaccessible website. The only gripe I have is the possibility to introduce ASCII diagrams, which usually aren't accessible.

Re:gemini:// space by alexwennerberg on Monday February 01, 2021 @12:57PM (#25991221)
> I find Gemini pretty accessible overall. There are no images, so including alt descriptions isn't even a concern. There's no CSS, so you can't make controls that visually look like check boxes, but are much less accessible. In fact, it's way harder to make an inaccessible Gemini site than to make an inaccessible website. The only gripe I have is the possibility to introduce ASCII diagrams, which usually aren't accessible.

The provides an alt text tag to preformatted text blocks for this purpose:

> Any text following the leading "```" of a preformat toggle line which toggles preformatted mode on MAY be interpreted by the client as "alt text" pertaining to the preformatted text lines which follow the toggle line. Use of alt text is at the client's discretion, and simple clients may ignore it. Alt text is recommended for ASCII art or similar non-textual content which, for example, cannot be meaningfully understood when rendered through a screen reader or usefully indexed by a search engine.

Re:gemini:// space by genewitch on Monday February 01, 2021 @04:17PM (#25994096)
> The only gripe I have is the possibility to introduce ASCII diagrams, which usually aren't accessible.

CAD software exports .stl files which can be processed into instructions for machines. That is, there is already software that can take lines on a screen and convert it to instructions for a machine. There's probably a way to annotate ASCII images of drawings (schematics, architectural) and output text "text* drawing of an object 14 centimeters by 5 centimeters, ..." Stuff like vinyl cutters (and even the proprietary cricut) can take vector graphics and convert them to instructions for a machine. so it, in theory, might be possible to just paste the ascii drawing text into some software: render ascii as .svg/vector, convert to 2d stl ("a layer"), convert stl to descriptive text. Since the software renders, you don't need OCR for the annotations, which are mostly instructions.

if there's no annotation, assume the '-', '_', '|', etc are to scale, and just use "units" as the dimensions instead of centimeters or whatever. |----| = 'two verticals separated with a 4 unit line'

Am i crazy?

Re:gemini:// space by GoblinSlayer on Monday February 01, 2021 @11:04AM (#25989823)
The specification supports images, any mime types, video, pdf, html and javascript, in theory.
Re:gemini:// space by miki123211 on Monday February 01, 2021 @12:43PM (#25991006)
Sorry, I meant embedded images, like the img tag in HTML.
Re:gemini:// space by senkora on Monday February 01, 2021 @03:15AM (#25986635)
I would argue that that complexity should be handled by the screenreader through heuristics rather than the .gemini format itself, based on the desire to keep basic clients very simple (~100 loc). But that’s a really good point!
Re:gemini:// space by Mediterraneo10 on Monday February 01, 2021 @03:16AM (#25986645)
Heuristics might work for longer text where the sample is large enough to uniquely identify the language, but for single words there is not enough information. If I write "coin" in my text, for example, am I using an English word, French word, or Irish word? The pronunciation varies drastically, and screenreaders have to know what to say.
Re:gemini:// space by microtherion on Monday February 01, 2021 @03:37AM (#25986755)
My go to anecdote on this is when I returned to Switzerland after several years in the US and walked by a bakery displaying a sign advertising a "Pain Surprise".

If anybody ever opens an S&M themed bakery, the problem will be accentuated.

Re:gemini:// space by eternalban on Monday February 01, 2021 @04:47AM (#25987188)
Not strictly S&M :) but fresh out of the oven Sangak bread of Iran can offer a "pain surprise" followed by culinary pleasure! Picking those hot pebbles off the back of the flatbread on the way home in the morning is a cherished memory of my childhood in Iran.
Re:gemini:// space by StavrosK on Monday February 01, 2021 @04:46AM (#25987181)
Oh that bakery has a gimmick where they throw a loaf of bread at your face when you enter.
Re:gemini:// space by knorker on Monday February 01, 2021 @05:42AM (#25987490)
Spoiler! :-(

Now it won't be a surprise.

Re:gemini:// space by StavrosK on Monday February 01, 2021 @06:48AM (#25987832)
At least the pain remains.
Re:gemini:// space by nkoren on Monday February 01, 2021 @04:52AM (#25987222)
Forwarding this to a friend of mine who owns a BDSM-themed coffeeshop...
Re:gemini:// space by amadsen on Monday February 01, 2021 @03:41AM (#25986778)
My vision is good and I also don't know if the word you quoted was supposed to be in English, French of Irish? The point being, a screen reader has no more or less information than a human reader.

It might be better then to invest effort in improving language inference heuristics, which would help in all applications (pdf documents, text files) than to try to build in support in each underlying protocol.

Re:gemini:// space by progval on Monday February 01, 2021 @04:42AM (#25987165)
But the screen reader needs to say the word, and the pronounciation of "coin" isn't the same in every language. I don't know about Irish, but it's radically different between French and English, the only sound in common is the "k".

This means that if the screenreader picks the wrong language, then the user has to guess the spelling from the way it's pronounced to understand the text.

Though I'll concede that right now on the web it isn't much better; but that's a failing of publishing tools, not the format.

Re:gemini:// space by Snarwin on Monday February 01, 2021 @06:42AM (#25987797)
Seems like the simplest fix is to allow the user to ask the screen reader how a word is spelled.
Re:gemini:// space by GoblinSlayer on Monday February 01, 2021 @11:28AM (#25990088)
Not unthinkable that's how a human will read foreign language too.
Re:gemini:// space by alpaca128 on Monday February 01, 2021 @09:30AM (#25988961)
> a screen reader has no more or less information than a human reader.

Indeed, so why not let the human writer clarify it?

Why do you prefer a resource intensive guessing algorithm that will never have a 100% accuracy over just having an annotation that takes less than 10 bytes and is trivial to parse?

In my opinion there's no reason to even consider the first option, especially with gemini's focus on simplicity in mind. This "what can another little JS library hurt" attitude is what lead to gemini in the first place.

Add language inference heuristics to cover all kinds of formats and now you've got a dependency. Then some people need different settings so you add config files and parsers/dependencies for those. At some point you update the model and now it can't properly differentiate Mandarin, Cantonese and short Japanese phrases anymore. You start adding cross-platform support and other features, and now some people say it's too slow on their Raspberry Pi Zero setup. Bloggers complain as they have to rearrange some quotes via trial-and-error so the heuristics pick up the correct language. Unfortunately that makes it worse for people running the older version 0.7.

After this rant it should be obvious, but: I prefer just adding a ["en"] or similar and stop worrying about it.

Re:gemini:// space by Mediterraneo10 on Monday February 01, 2021 @03:46AM (#25986805)
PDF actually has support for language tagging, and using it is a recommended part of any guide to accessibility for the visually impaired.

It may be that the language which a quoted foreign-language word is meant to read in was mentioned far back in the text. Human sighted readers will know how to read it, but computers won't yet (and perhaps won't for many years if not decades). However, there are visually impaired people now who need to be guaranteed the same Gemini experience as sighted users.

Re:gemini:// space by _wolfie_ on Monday February 01, 2021 @08:53AM (#25988675)
But some unicode characters are supposed to be rendered differently based on the language of the text that contains them. So this (language tagging) is required even for getting the thing rendered correctly.
Re:gemini:// space by mlyle on Monday February 01, 2021 @03:30AM (#25986724)
Humans need to know what to read, though, too, right?

Obviously humans are a bit better at contextual clues, but.. the information has to be there for a human user to make the distinction.

Re:gemini:// space by contravariant on Monday February 01, 2021 @04:55AM (#25987238)
Well if 'readable by a human' would be enough for screen readers then we wouldn't have to worry about accessibility surely?
Re:gemini:// space by mlyle on Monday February 01, 2021 @02:35PM (#25992653)
Sure. But computers spotting foreign words in context similarly to how humans do is a lot more likely than getting most foreign words appropriately semantically tagged.
Re:gemini:// space by Mediterraneo10 on Monday February 01, 2021 @03:31AM (#25986730)
Sure. A quoted foreign word might (but not always) appear in some context where any reader will know how to read it. However, for the time being, computers won't, and a screenreader won't manage without adequate semantic tagging.
Re:gemini:// space by wwn_se on Monday February 01, 2021 @03:50AM (#25986833)
How would a user not using a screen reader know?
Re:gemini:// space by detaro on Monday February 01, 2021 @04:15AM (#25986993)
The difference is that the screen reader has to pick a pronounciation which could be wrong, a sighted user reading matches on the letters. Mentally matching from a wrongly-spoken word is harder.
Re:gemini:// space by fckthisguy on Monday February 01, 2021 @08:58AM (#25988704)
In multilingual text, a foreign word/phrase/snippet is often shown between << and >>.

Not always, but often enough that it's an informal standard.

Re:gemini:// space by jl6 on Monday February 01, 2021 @05:27AM (#25987389)
Gemini does support a `lang` parameter to its mime types, which can be used to indicate a document is in a mixture of languages. That could be enough of a hint for a client to tune its pronunciation.

I do agree though that this is a far bigger problem space than HTML's `lang` attribute is capable of solving. It's not like knowing the language of the text always tells you the unique pronunciation of a string of characters.

Re:gemini:// space by mysterydip on Monday February 01, 2021 @05:49AM (#25987519)
Fair point, for example is it read or read? Maybe a better option would be a phonics tag or attribute followed by phonemes that no matter the language of the following word(s) would be able to be spoken by a reader?
Re:gemini:// space by ignoranceprior on Monday February 01, 2021 @10:49AM (#25989658)
I can't wait until I have to annotate all my documents like:

  <sentence lang="en-US-x-Pittsburgh" intonation="falling"><word pos="subject-pronoun" ipa="hi">He</word> <word pos="verb-simple-past" ipa="ɹɛd">read</word> ... </sentence>
Re:gemini:// space by carapace on Monday February 01, 2021 @11:34AM (#25990161)
That sounds like a fun challenge: make a voice-to-text widget that also generates phonetic or semantic annotations...
Re:gemini:// space by jl6 on Monday February 01, 2021 @06:42AM (#25987796)
That would surely place too great a burden on authors to do it and to get it right.

Reading, as a discipline, is hard at the edges, and lots of humans don’t get it right either!

Re:gemini:// space by CamouflagedKiwi on Monday February 01, 2021 @03:56AM (#25986871)
Not having the ability to do this forces the screenreader to solve the problem, and it's a really hard problem in general - something like "real" that already exists in English but crops up in Spanish contexts fairly frequently is tough, let alone all the proper nouns etc.

On the other hand, there will also be a bunch of cases where people don't do the work to mark this up (maybe not even realising they need to)...

Re:gemini:// space by TheDong on Monday February 01, 2021 @03:50PM (#25993733)
Did you know the chinese character '男' and japanese '男' are spoken totally differently?

Okay, now try to read this comment with a screen reader accurately. Someone who knows chinese, japanese, and english will be able to pronounced both of those words correctly. There's no heuristic that can do the same.

I should be able to annotate each of those characters with whether it's meant to be chinese or japanase.

Re:gemini:// space by robryk on Monday February 01, 2021 @04:50AM (#25987205)
This is first I'm hearing about the lang attribute (edit: for something smaller than the whole document), so I'm curious how commonly is it used in the "web at large". Do you know?
Re:gemini:// space by jayphen on Monday February 01, 2021 @04:56AM (#25987242)
It’s very common to use it on the HTML element, less common to use it on elements further down the tree. Like many accessibility features of the web, it’s often neglected by developers.
Re:gemini:// space by fckthisguy on Monday February 01, 2021 @09:02AM (#25988736)
I live in a multilingual country and don't see it used as often as I would hope, even if it's more common here than elsewhere.

I often see it on elements/sections of sites that link to content in another language.

Here, German is the "main" language and lots of documents are available in German but not English. If you need to link to a German page/doc from an English one, it's not uncommon for the link text to be in German too.

Re:gemini:// space by eznzt on Monday February 01, 2021 @06:21AM (#25987688)
If you like the idea of having bare-bones text-only web then you will see how everybody and their granny have a feature that they won't get onboard until it is implemented. Then at that point we will have HTML again.
Re:gemini:// space by MaxBarraclough on Monday February 01, 2021 @06:54AM (#25987866)
I'm more optimistic, I think it might be able to find its niche. I agree it would be hard to outright replace the web, but there's room for more than one way of delivering text. man pages are still around, for instance.