[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Line wrap reconsidered
From: |
Eli Zaretskii |
Subject: |
Re: Line wrap reconsidered |
Date: |
Tue, 26 May 2020 22:50:36 +0300 |
> From: Yuan Fu <address@hidden>
> Date: Tue, 26 May 2020 13:34:01 -0400
> Cc: address@hidden,
> address@hidden
>
> I fixed the problems and it now works. If you apply the patch below and load
> kinsaku.el, open the test.txt and M-x toggle-word-wrap. You should see the
> text properly wrapped: wrapping between CJK characters and whitespaces but
> not between ASCII characters. Also according to kinsoku rules, CJK comma will
> not be placed at the beginning of a line; CJK “《” will not be place at the
> end of a line, etc.
>
> It determines whether we can wrap before/after a character by looking at “<“,
> “>” and “|” categories, roughly corresponding to “don’t wrap before”, “don’t
> wrap after” and “wrap before and after”.
Thanks.
This still doesn't support strings, only buffer text.
Also, why are you putting a text property, instead of just examining
the category as part of IT_CAN_WRAP? What do you need the property
for?
And finally, this feature must be optional, so some customization
knobs are missing. But we could defer this until the basic code is in
good shape.
- Re: Line wrap reconsidered, (continued)
- Re: Line wrap reconsidered, Lars Ingebrigtsen, 2020/05/25
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/25
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/25
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/25
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/25
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/26
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered,
Eli Zaretskii <=
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/26
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/27
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/28
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/28
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/28
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/28
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/29
- Re: Line wrap reconsidered, Eli Zaretskii, 2020/05/29
- Re: Line wrap reconsidered, Yuan Fu, 2020/05/29