https://bugs.freedesktop.org/show_bug.cgi?id=57983

          Priority: medium
            Bug ID: 57983
          Assignee: [email protected]
           Summary: Cannot search for tab, and yen key also disabled
          Severity: normal
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: [email protected]
          Hardware: Other
            Status: UNCONFIRMED
           Version: 3.5.2 release
         Component: Writer
           Product: LibreOffice

Search and replace for tab fails in two different ways.

1. Typing the tab key in the source text area of the search and replace dialog
(or in the Find toolbar) does not work, though it should.

2. Typing the yen key (used as backslash in Japanese computers) and t to
compose the tab regex does not work, though it should.

Background: 

I discovered this by pasting text from an excel chart which inserted tons of
tabs. I was surprised I could not easily delete all tabs.

Just typing a tab does not work!

The background of #2 above is as follows.

It has always been the case that on Japanese keyboards, the backslash symbol is
replaced with a Yen mark symbol (Y with two lines through it). They are the
same ASCII code and when you type a regex in perl for example, you are typing
the yen key.

The characters in question (this may not render correctly on your screen) are
"¥" (yen) and "\" (backslash).

LibreOffice breaks this so that it is not possible to search for a tab or other
regex using the backslash. It is also inexplicably impossible to search for a
tab by typing a tab.

(I finally was able to search for a regex by copying the backslash from the
help window.)

There is at least on the mac a little-known way (option + yen key) to create a
backslash character, but nobody knows/understands backslash. On a MacBook Pro,
the delete key is at the upper right below the eject key. To the left of the
delete key is the Yen key. Shift-Yen gives a pipe symbol. Option-Yen gives a
backslash (which I didn't know until today after owning it and programming for
over three years).

Therefore both the yen key + t and backslash + t should work as a regex, since
different keyboards/computers may have a backslash key.

Recommendation:
A. Allow user to type a tab with the tab key and search for it.
B. Interpret the half-width yen mark (I believe it is ascii 92) plus a regex
symbol (n,t,s,r…) as a backslash.

Additional enhancement recommendation:
C. This kind of problem, i.e. searching for glyphs in other languages, or deep
in the unicode tables, might be common problem. It would be useful for LO to
include a Keyboard Substitutions page in the LO global preferences area
(perhaps linked from the Search and Replace dialog as well) that would allow
the user to designate substitute keys or macro strings such as [:space:] or
_unicodesnowman_ to search for things that would be really difficult for most
users to figure out how to input.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to