Bug#481115: justify plug-in don't work with 2-byte's UTF-8 texts.

Dmitry E. Oboukhov dimka at avanto.org
Tue May 13 19:20:17 UTC 2008


Package: vim-runtime
Version: 1:7.1.293
Severity: important
Tags: l10n

There is no result with pressing  keys	_j  with  using  the
justify plug-in  for  aligning	for  example  Russian  text.

My investigation shows that if page width (tw) set to  value
50 (N) and press _j for Russian  text  with  string  lengths
less than 25 (N/2) then some  spaces  appears  between	some
words i.e. plug-in tries to align text.

It's evidently that plug-in compute words and strings length
wrong.	 The  most  probability  is  that  plug-in   compute
words/strings  length	in   bytes   but   not	 in   chars.
(1 Russian char takes 2 bytes in UTF-8) And because of	this
plug-in "thinks" that strings with length more than  25  (N)
chars are more long then setting tw=50 (2*N) and  skip	such
strings.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080513/d5108d79/attachment.pgp 


More information about the pkg-vim-maintainers mailing list