[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Word wrap for non-whitespace-seperated language

From: Eli Zaretskii
Subject: Re: Word wrap for non-whitespace-seperated language
Date: Thu, 05 Mar 2020 06:42:20 +0200

> From: Yuan Fu <address@hidden>
> Date: Wed, 4 Mar 2020 15:34:45 -0500
> Cc: address@hidden
> > You are asking about word wrap?  It's part of the basic layout code in
> > the display engine, search xdisp.c for WORD_WRAP.
> Thanks, that’s what I meant. Seems to me that simply changing 
> IT_DISPLAYING_WHITESPACE won’t give what I want, since I want the engine to 
> wrap _anywhere_ between Chinese/Japanes/etc characters. Use fill.el and wrap 
> with overlay might be a more tractable approach.

AFAIK "anywhere" is not really correct, because kinsoku rules mandate
that some characters cannot appear at the beginning or end of a line.

I do agree that changing IT_DISPLAYING_WHITESPACE is not the right
approach for this, because it would make redisplay too slow.  We need
a smarter algorithm.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]