[texworks] Hard wrapping

Dohyun Kim nomosnomos at gmail.com
Thu May 7 08:53:10 CEST 2009


2009/5/7 Stefan Löffler <st.loeffler at gmail.com>:
>
> BTW: A few minor issues I've found:
> 1) Wrapping at the current window size doesn't work properly (at least
> on Linux). First of all it doesn't subtract the width of the scroll bar
> (so the text is to wide if there is enough text so that a scrollbar is
> shown), and secondly some lines are still too long. It's probably just a
> few pixels, and may be related to the fact that on X the window
> decoration (borders, etc.) happens asynchronously, IIRC. But it could
> also be related to using the wrong rectangle (e.g. window rect instead
> of client rect or something), but I didn't have time to look into the
> code for that, yet.
>

Moreover, we should also consider CJK characters:
The width of CJK characters is twice as wide as Latin characters,
so that the width of "漢" or "あ" or "가" (one CJK character) is
the same as "AA" (two Latin characters).

Under current implementation of hard wrap, wrapping at
"current window size" is useless for CJK documents, because
TeXworks treats all characters as having the same width as Latin characters.

Dohyun Kim


More information about the texworks mailing list