lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal


From: Henry
Subject: Re: [Lynx-dev] Japanese line wrap patch for UTF-8 terminal
Date: Sun, 27 Mar 2022 23:07:04 +0900

Thank you very much.  (It is no wonder why I could not write patch!)

Does "document_charset" come from charset defined within <head> of web
page, e.g., <meta charset="UTF-8">?

Henry

2022年3月26日(土) 13:16 KIHARA Hideto <deton@m1.interq.or.jp>:
>
> > Does Lynx still add a space wherever there is a line break in the
> > text?
>
> Yes. My Japanese line wrap patch does not change this behavior.
>
> > is rendered as JJJJJJ[space]JJJJJJ[space]JJJJJJ,
> > but I hope for JJJJJJJJJJJJJJJJJJ, i.e., continuous  text without spaces.
>
> I wrote an additional patch to avoid adding spaces
> when joining lines after Japanese characters.
>
> But the patch has some issues
> if display_charset is not UTF-8 (EUC-JP or Shift_JIS):
>   (1) Space is still added for some Kanji characters
>       if document_charset is Shift_JIS.
>   (2) Space is still added for all Kanji characters
>       if document_charset is ISO-20220-JP.
>
> display_charset |           document_charset               |
>                 | UTF-8 | EUC-JP | Shift_JIS | ISO-2022-JP |
>                 |-------|--------|-----------|-------------|
> UTF-8           | Good  |  Good  |   Good    |    Good     |
> EUC-JP          | Good  |  Good  |   (1)     |    (2)      |
> Shift_JIS       | (not tested. probably same as EUC-JP display_charset)
>



reply via email to

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