Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Vulcans never bluff. -- Spock, "The Doomsday Machine", stardate 4202.1


devel / comp.infosystems.gemini / Declaring Language Changes within Documents?

SubjectAuthor
* Declaring Language Changes within Documents?Nick
`- Re: Declaring Language Changes within Documents?Matthew Ernisse

1
Declaring Language Changes within Documents?

<uc2sii$2gpqr$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=384&group=comp.infosystems.gemini#384

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nick+gemini@despisinggravity.com (Nick)
Newsgroups: comp.infosystems.gemini
Subject: Declaring Language Changes within Documents?
Date: Tue, 22 Aug 2023 12:51:14 -0500
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <uc2sii$2gpqr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 22 Aug 2023 17:51:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="6ec8e3c21356900d6f525da4428af207";
logging-data="2647899"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XtN0WtWVyPEVKhcW4kijRuqbb86fx/gI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:VwlF3mFg865G/Nu/fY4iuCAtpt0=
Content-Language: en-US
 by: Nick - Tue, 22 Aug 2023 17:51 UTC

Hi Geminauts,

Is there any accepted standard for declaring when the language used in a
document changes? I'd like to do this to aid screen readers in picking
the correct accent and pronunciation for text-segments.

For example, in "The Picture of Dorian Gray," Wilde writes:

> he kept saying over and over to himself:
>
>> "Devant une façade rose,
>> Sur le marbre d'un escalier."
>
> The whole of Venice was in those two lines.

Reading the French section in an English accent isn't the ideal user
experience so it would be good to be able to tell the computer how to do
better.

Since this goes beyond the Gemini standard (which only supports
declaring languages in the media type, see 5.2), is there an agreed upon
standard to indicate the language changing between paragraphs? I'd
assume just plopping a language marker before the paragraph would be
sufficient, but maybe there are better ways.

> he kept saying over and over to himself:
>
>> lang=fr
>> "Devant une façade rose,
>> Sur le marbre d'un escalier."
>
> lang=en
> The whole of Venice was in those two lines.

Thanks for your time,
Nick

Re: Declaring Language Changes within Documents?

<slrnueevbe.2ek.matt@imladris.colo.ub3rgeek.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=385&group=comp.infosystems.gemini#385

  copy link   Newsgroups: comp.infosystems.gemini
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: matt@going-flying.com (Matthew Ernisse)
Newsgroups: comp.infosystems.gemini
Subject: Re: Declaring Language Changes within Documents?
Date: Thu, 24 Aug 2023 15:55:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <slrnueevbe.2ek.matt@imladris.colo.ub3rgeek.net>
References: <uc2sii$2gpqr$1@dont-email.me>
Injection-Date: Thu, 24 Aug 2023 15:55:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c97f9e32cded65aa8d61f5d569ef68af";
logging-data="3715593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vSTQL9mRLehQc/q5Or2cihb7X40wRlxI="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:grSZUfJi0v+CXN7MY+4AsxYm9d0=
 by: Matthew Ernisse - Thu, 24 Aug 2023 15:55 UTC

On Tue, 22 Aug 2023 12:51:14 -0500, Nick wrote:
> Hi Geminauts,
>
> Is there any accepted standard for declaring when the language used in a
> document changes? I'd like to do this to aid screen readers in picking
> the correct accent and pronunciation for text-segments.

I don't believe so. There was previously some discussion around putting
some inline metadata at the start of a preformatted block to aid in
screenreaders and this is included in the spec but the particular
format of the 'alt text' is not defined.

I know you can click on a preformatted block in Lagrange and it will show
the alt text but I don't know of much other user-agent support for it.

Since gemtext doesn't have any other non-printing line-types I think that's
likely to be the only place available to attempt such a feature.

--
"The avalanche has started, it is too late for the pebbles to vote."
--Kosh

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor