Bug 158168 - add UNO command for Hidden font effect of characters in Writer
Summary: add UNO command for Hidden font effect of characters in Writer
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) Linux (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New Formatting-Mark
  Show dependency treegraph
 
Reported: 2023-11-10 15:58 UTC by Jeroným klimeš
Modified: 2023-11-23 09:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroným klimeš 2023-11-10 15:58:00 UTC
Description:
There is not Hidden text in Format or other categories, so it is impossible to hide text via keyboard shortcut. 

Actual Results:
Cannot create a keyboard shortcut for "Hidden text"

Expected Results:
Any humble one in this not small Universe will be able to create a simple keyboard shortcut for "Hidden text", and so that a tiny part of this tremendous Universe will became invisible for a man, but not for the Almighty. 


Reproducible: Always


User Profile Reset: No

Additional Info:
It should create a keyboard shortcut for "Hidden text". 
Just really simple, but working keyboard shortcut for changing this Universe.
Comment 1 Stéphane Guillou (stragu) 2023-11-12 21:59:38 UTC Comment hidden (obsolete)
Comment 2 Jeroným klimeš 2023-11-13 07:50:56 UTC
Dear Mr. Guillou, 

there is a attribute of text so called "hidden text" similar as say "bold" or "italic". I wanted to mark text hidden the same way as CTRL+B marks Bold text. I could not to do it because in Custumization there is not a category "hidden text". 

Is it clearer? 

Thank you anyway for you help.

Sincerely

JK
Comment 3 Stéphane Guillou (stragu) 2023-11-13 09:01:39 UTC
Ah, I see, thanks for clarifying!

I assume we would need a new UNO command to expose this feature to the Customise dialog > Keyboard tab (and for addition to toolbar if wanted).

See also request to add a UNO command for toggling the _visibility_ of such hidden character, in bug 107722.
Comment 4 Heiko Tietze 2023-11-13 09:18:14 UTC
Please consider using a character style where you set the attribute. You can customize a shortcut for it. Save the document as template and make it the default if you want it to persist over sessions.

It still does not allow toggling the visibility but I assume bug 107722 asks for temporarily show the hidden text like non-printable characters, for example. Different topic.

The question is whether this should work out of the box. To me it is just an attribute like many other and adding UNO commands to control everything per shortcut is somewhat over-engineering. Hiding text is not a very often used feature. Or am I wrong? Please describe your workflow.
Comment 5 Jeroným klimeš 2023-11-13 19:52:19 UTC
Dear Sirs, 

Exactly, I think you are right. There should be a UNO command for switching or setting on/off visibility of simple text (not fields or paragraphs), and an option for this in the Customise dialog > Keyboard tab or Toolbar tab. 

If there is a command for bold so it should be no problem to copy it and modify it for hidden text or other attributes of text. I would not complicate it any more. 

My philosophy is to use mouse as little as possible. Keyboard shortcuts are hard to remember, but boost effectivity of writing a lot. As well as writing with all ten fingers. 

For Mr. Heiko Tietze:
My workflow is very simple and of course it could by done by other means as comments or tracking changes. I go through text and there are part of it I want temporary hide - say personal infos, paragraphs that are particular for only some readers, so I hide them and CTRL-M unhides them. I think it is a useful feature. I appreciate it is a simple text attribute, nothing inserted in text as field or so.

So thank you indeed for your afford! 

Sincerely

jk

PS. I have a couple of macros in Calc and Writer but I find programming in UNO objects and dispatcher extremly confusing and tricky. So it is good when macro recorder records as much UNO commands, so a not-skilled user (as I am) can only modify it a bit. That's why I appreciate simply UNO commands without many options and conditions.
Comment 6 Heiko Tietze 2023-11-23 09:37:59 UTC
We discussed the topic in the design meeting.

The proposed character style might be a workaround but wouldn't be effective if the text has a CS applied, eg. Emphasis. Switching to "Hidden" CS overwrites the actual style - and duplicating every CS makes no sense too.

So we propose to add the command and apply the hidden attribute as direct formatting.