Issue 114199 - selection (and positioning) of text with special unicode characters have bad bounds
Summary: selection (and positioning) of text with special unicode characters have bad ...
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO320m19
Hardware: PC (x86_64) Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 10:24 UTC by user318
Modified: 2017-05-20 11:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
file, i created with "bad" line (7.84 KB, application/vnd.oasis.opendocument.text)
2010-08-30 10:25 UTC, user318
no flags Details
writer, whole line is selected (32.81 KB, image/png)
2010-08-30 14:55 UTC, user318
no flags Details
calc overlapping letters (39.80 KB, image/png)
2010-08-30 14:55 UTC, user318
no flags Details
calc in-cell edit (43.37 KB, image/png)
2010-08-30 14:56 UTC, user318
no flags Details
Fedora 13, OO 3.3.0 beta, "DejaVu Sans Mono" (35.34 KB, image/png)
2010-08-31 10:49 UTC, user318
no flags Details
Fedora 13, OO 3.3.0 beta, "WenQuanYi Zen Hei Sharp" (33.77 KB, image/png)
2010-08-31 10:50 UTC, user318
no flags Details
Windows, OO 3.3.0 beta (104.98 KB, application/octet-stream)
2010-08-31 10:51 UTC, user318
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description user318 2010-08-30 10:24:46 UTC
Hi. I have inserted this string to an empty document into Write:

Дми́трий Оле́гович Рого́зин

Then I try to select whole line by double-clicking with mouse. I see bound
without 3 last characters. But really the whole line is selected.
Also, when I tried to press "End" on the line, cursor is positioned before 3
last characters.
This string was copied from source of this page: http://flibusta.net/a/10433
I tried to copy this string from the rendered page by Firefox and the result was
different. All worked fine.
Comment 1 user318 2010-08-30 10:25:41 UTC
Created attachment 71475 [details]
file, i created with "bad" line
Comment 2 michael.ruess 2010-08-30 13:36:15 UTC
Cannot reproduce using OOo downloaded from openoffice.org.  Do you work with
this build or the one provided by your distri?
Comment 3 user318 2010-08-30 14:47:20 UTC
I made more testing:
1) my copmuter have openoffice-base-3.2.1-1 on ArchLinux (OOO320m19)
2) my colleague have OpenOffice on FreeBSD 7.2 from ports (OOO310m19)
3) other colleague have OpenOffice on CentOS from their repo (OOO310m19)

All bad position end of line of the attached file "bad.odt". (1) and (2) have 3
symbols before real EOL. (3) have likely 3 "space" after EOL.

Also, I noticed that this is so with "DejaVu Sans Mono" font. Most other fonts I
have here works OK. Bad results also with: "Inconsolata" (have EOL near 1 symbol
before EOL).

I have also tried to insert this string into cell in Calc. With "DejaVu Sans
Mono" input line looks OK, but in the cell letters near accents overalp. And
when doing in-cell editing, accetns was shown like backqoute between letters and
occupy one symbol place.

I'll make and post screenshots in a while.
Comment 4 user318 2010-08-30 14:55:03 UTC
Created attachment 71478 [details]
writer, whole line is selected
Comment 5 user318 2010-08-30 14:55:48 UTC
Created attachment 71479 [details]
calc overlapping letters
Comment 6 user318 2010-08-30 14:56:25 UTC
Created attachment 71480 [details]
calc in-cell edit
Comment 7 eric.savary 2010-08-30 16:05:44 UTC
To surround the problem we need to know if this is a problem on in build, in the
build of your distro or maybe something else (font?).

Please download the current 3.3.0 Beta and check if this still happens there.
Else, as I said, you might have a problem with the font itself.
Check that you have DejaVu Sans Mono and which version of it.

¨workforme¨ on SuSE Linux with DejaVu Sans Mono installed and OOo330m5.
The sentence looks good in Writer and the selection too:
[Дми́трий Оле́гович Рого́зин]
Comment 8 user318 2010-08-30 16:29:55 UTC
> Please download the current 3.3.0 Beta and check if this still happens there.

I'll try. But I do not understand at this time how to install it and not to harm
my own system. Can You give some "directions", please? Or VirtualBox is the only
way?

> Else, as I said, you might have a problem with the font itself.

May be font is broken, but I think that rendering and positioning any way should
be consistent.

> Check that you have DejaVu Sans Mono and which version of it.
Of course I have this font. It versioned 2.30. Here is md5sum if needed:
cce98df04a091fac185e235fb507c056  /usr/share/fonts/TTF/DejaVuSansMono.ttf
Comment 9 user318 2010-08-31 10:48:17 UTC
I have tested now 3.3.0 beta downloaded from openoffice.org on Windows and
Fedora 13.
On Fedora "DejaVu Sans Mono" showed same picture. Also there was other "bad" font.
On Windows "DejaVu Sans Mono" was worse - it showed accents as own symbols.
"Courier New" did so too. Also there was other fonts, that have bad EOL
positioning: "Arial Black", "Comic Sans", "Georgia", "Impact", "Liberation Sans
Narrow".
Comment 10 user318 2010-08-31 10:49:35 UTC
Created attachment 71499 [details]
Fedora 13, OO 3.3.0 beta, "DejaVu Sans Mono"
Comment 11 user318 2010-08-31 10:50:17 UTC
Created attachment 71500 [details]
Fedora 13, OO 3.3.0 beta, "WenQuanYi Zen Hei Sharp"
Comment 12 user318 2010-08-31 10:51:27 UTC
Created attachment 71501 [details]
Windows, OO 3.3.0 beta
Comment 13 michael.ruess 2010-09-02 09:34:56 UTC
On Windows it is definitely a problem of the font itself - other applications
also show the same behavior with Cyrillic characters in DejaVu Sans Mono.

MRU->HDU: there seems to be a problm on 64-bit Linux with font "DejaVu Sans
Mono". I can reproduce the described behavior on Ubuntu using our own builds of
OOo3.2.1 and OOO330m6. 
With SUSE 11 and 32 bit OOo there is no problem.
Comment 14 user318 2010-09-02 10:03:44 UTC
For the note. Fedora 13 was 32-bit run in VirtualBox on 64-bit Linux.
Comment 15 Marcus 2017-05-20 11:18:16 UTC
Reset assigne to the default "issues@openoffice.apache.org".