Bug 150375 - Render non-printing line numbers with faint gray
Summary: Render non-printing line numbers with faint gray
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on: 150237
Blocks: Line-Numbering
  Show dependency treegraph
 
Reported: 2022-08-11 18:17 UTC by Eyal Rozenberg
Modified: 2024-04-22 09:41 UTC (History)
3 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 Eyal Rozenberg 2022-08-11 18:17:22 UTC
When a user enables line numbering, they are somewhat interested in the relative number of each line on the page/within the document. Often, they don't want the final printed document to have a number on every line, but when working on the document, the balance probably tilts more towards in the benefit of more line numbers being visible (but not intrusively so). This is somewhat similar to table cell boundaries: Many of them usually don't get printed as lines, but are useful to help the user while editing the document.

I therefore suggest that when displaying line numbers, at the set frequency we will see a fully-realized number (typically black-color; current default is once every 5 lines); but on every line we'll have a faint/semi-transparent number, which doesn't get printed. The user will have the option to make the faint per-line numbers disappear, either through the line numbering dialog, or by toggling non-printing marks, or both. They will be on by default to help avoid the confusion described in issue 150237.
Comment 1 V Stuart Foote 2022-08-11 19:26:06 UTC
Seems feasible, but not really necessary as we already have ability via Tools -> Line Numbering... dialog to easily enable/disable line numbering for printing and to set LN interval to something other than 5, e.g. 1 if desired. 

Adding feature to keep the LN print interval enabled, and add a non-printing "fill" for screen preview/active editing would be neat but is its utility worth the dev effort?

The current control seems sufficient.
Comment 2 Eyal Rozenberg 2022-08-11 19:42:42 UTC
(In reply to V Stuart Foote from comment #1)
> Adding feature to keep the LN print interval enabled, and add a non-printing
> "fill" for screen preview/active editing would be neat but is its utility
> worth the dev effort?

That's a good question. I can't say, at least for the reason of not knowing how popular the use of line numbering in LO actually is.
Comment 3 Heiko Tietze 2022-08-12 09:26:09 UTC
The faint grey would require another option to adjust the color to the system theme (or we hijack one of the existing). The use case to know what line you are currently in could be better solved via statusbar having bug 123083 in mind.
Comment 4 Eyal Rozenberg 2022-08-12 18:42:06 UTC
(In reply to Heiko Tietze from comment #3)
> The faint grey would require another option to adjust the color to the
> system theme (or we hijack one of the existing).

We don't have that for the table "non-borders". So why have it here?

> The use case to know what line you are currently in

That's not the use case... you want to know the line numbers of multiple pieces of content at once. Otherwise - you could say the same about the Line Numbering feature in general.
Comment 5 Heiko Tietze 2022-08-18 07:40:01 UTC
We discussed this topic in the design meeting as a potential solution for bug 150237.

Starting with a text would show no line number unless line 5. But since the dialog runs manually users should be aware of what they do (line numbering can be set in templates too, however).

One use case for line numbers is minutes where seeing all numbers is relevant (so having an info in the status bar is not a sufficient solution).

The "faint gray numbers" could be drawn similar to line numbers using the same algorithm. When it comes to print preview and print it would be suppressed. True line numbers could overwrite the grey "virtual line numbers". The function could therefore be implemented as a view option, if the effort is acceptable. It might also be an easy hack. Alternatively we could change the dialogs default to 1. => needsDevAdvice