unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthias Meulien <orontee@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: ruijie@netyu.xyz, emacs-devel@gnu.org
Subject: Re: [NonGNU Elpa] New package: electric-french
Date: Mon, 5 Jun 2023 23:22:09 +0200	[thread overview]
Message-ID: <CAFEQCfCh9vMF=s3LxPv8fPvN578jeyW8c0K1xpg_+zn7SQyX1Q@mail.gmail.com> (raw)
In-Reply-To: <8335354u3g.fsf@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 1224 bytes --]

>
> > French text typed in Emacs is not necessary rendered in Emacs only: An
> HTML page written in Emacs
> > but rendered in Firefox will have it's line breaks at different places
> and non-breaking spaces will apply
> > for Firefox as well as Emacs.
>
> Isn't it the job of a Web browser to display French text correctly,
> breaking lines only where a French reader would expect?  I didn't know
> browsers needed help in that by inserting NBSP.  Do they?
>

I am not an HTML expert but I played with "lang=en" and "lang=fr"
attributes on "html", "body" and "p" elements, and in all three cases
Firefox, Chrome and EWW broke lines at strange places from my point of
view, unrelated to the lang attribute:

[image: Capture d’écran du 2023-06-05 23-03-03.png]


> > Other example: I use to type text in Emacs and later copy-paste in word
> processing applications; I am
> > happy to have non-breaking spaces already in place.
>
> Same here: isn't it the job of the word processor to break lines
> correctly for French?
>

AFAIU they do by inserting non-breaking spaces when the punctuation
characters are inserted; This doesn't apply when copy-pasting...
[image: image.png]

-- 
Matthias

[-- Attachment #1.2: Type: text/html, Size: 1954 bytes --]

[-- Attachment #2: Capture d’écran du 2023-06-05 23-03-03.png --]
[-- Type: image/png, Size: 525174 bytes --]

[-- Attachment #3: image.png --]
[-- Type: image/png, Size: 116975 bytes --]

  reply	other threads:[~2023-06-05 21:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-04 14:15 [NonGNU Elpa] New package: electric-french Ruijie Yu via Emacs development discussions.
2023-06-04 19:31 ` Matthias Meulien
2023-06-05 11:03   ` Eli Zaretskii
2023-06-05 18:20     ` Matthias Meulien
2023-06-05 18:55       ` Eli Zaretskii
2023-06-05 21:22         ` Matthias Meulien [this message]
2023-06-05  8:34 ` Philip Kaludercic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFEQCfCh9vMF=s3LxPv8fPvN578jeyW8c0K1xpg_+zn7SQyX1Q@mail.gmail.com' \
    --to=orontee@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ruijie@netyu.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).