Bug 90899 - Automatic line after 3 hyphens inconsistent, and broken in Chinese
Summary: Automatic line after 3 hyphens inconsistent, and broken in Chinese
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.6.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-27 21:49 UTC by Jiehong
Modified: 2017-07-27 12:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Document showing the problem with ASCII hyphens (7.90 KB, application/vnd.oasis.opendocument.text)
2015-04-28 08:15 UTC, Jiehong
Details
Document showing the problem with Chinese hyphens (7.90 KB, application/vnd.oasis.opendocument.text)
2015-04-28 08:15 UTC, Jiehong
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiehong 2015-04-27 21:49:34 UTC
Tested with LO on Fedora 21 and Archlinux for versions 4.4 and 4.3.

Currently, we can (according to the documentation), add an automatic horizontal line when starting a line with 3 hyphens followed by enter.

This functionality only works correctly for the first line of the page, and only with ASCII characters.

Part 1: only works with the first line
1. create a new writer document;
2. type "---" and followed by enter;
(Your cursor is now on a new empty line, and the previous line was turned into a horizontal line).
3. type enter again to blank another line;
4. type "---" followed by enter;
(Your cursor is on the same line, which was turned into a horizontal line)
5. every new line by hitting enter is a horizontal line.

The horizontal line should always work like with the first line of the document.

Part 2: automatic horizontal line does not work with Chinese hyphens
1. create a new writer document;
2. type "---" followed by enter;
3. No horizontal line is created.

When typing Chinese, creating an horizontal line forces the user to switch to an English keyboard layout, type the 3 hyphens, and then switch back to a Chinese IME to keep writing the document.
The "Chinese hyphens" should be recognized for entering an automatic horizontal line.
Comment 1 Urmas 2015-04-28 03:12:08 UTC
(A symbol in question is U+FF0D fullwidth hyphen)
Comment 2 Joel Madero 2015-04-28 04:36:52 UTC
Please attach a simple document demonstrating the problem. Marking as NEEDINFO. Once you attach set to UNCONFIRMED. Thanks
Comment 3 Jiehong 2015-04-28 08:15:11 UTC
Created attachment 115155 [details]
Document showing the problem with ASCII hyphens
Comment 4 Jiehong 2015-04-28 08:15:56 UTC
Created attachment 115156 [details]
Document showing the problem with Chinese hyphens
Comment 5 Gordo 2015-05-27 23:33:32 UTC
Part 1 has been fixed.

Part 2 sounds like an enhancement.  In Tools -> AutoCorrect Options -> Options tab, the Apply border is what changes the three hyphens to a border line.  You would like to change it so that instead of using English hyphens, you can use Chinese hyphens.

As a workaround, have you tried the following in the Replace tab of AutoCorrect:
In the Replace box, type three Chinese hyphens and in the With box type three English hyphens (or copy and paste) and click on New.  Now type three Chinese hyphens on a blank line and press Enter.  If that doesn't work, you could try a combination of characters to use instead of the three Chinese hyphens.  As an example, I replaced "jjj" with "---" and that worked.

Windows Vista 64
Version: 4.4.3.2
Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16

Set to NEEDINFO.
Comment 6 QA Administrators 2015-12-27 20:31:42 UTC Comment hidden (obsolete)
Comment 7 tommy27 2016-12-03 06:31:11 UTC
@ Jiehong
please answer to comment 5 before setting back status to UNCONFIRMED
I'm reverting this to NEEDINFO
Comment 8 Jiehong 2016-12-05 19:24:23 UTC
As per comment 5, part 1 is now fixed.

Part 2 workaround, aka adding a rule for that "---" should insert "---", and therefore a horizontal line, does not work, as of Writer version 5.2.3.3.

I thought that it's maybe limited to ascii combinations, so I tried "é"/"hello", but this works just fine.

Then, trying with "我"/"wo", it doesn't work either.

Therefore, it seems that the automatic replacement does not work for any Chinese characters.
Comment 9 QA Administrators 2017-06-28 12:36:36 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2017-07-27 12:02:03 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170727