Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Display whitespace characters" view mode in output pane #11

Closed
ferdnyc opened this issue Dec 25, 2014 · 2 comments
Closed

"Display whitespace characters" view mode in output pane #11

ferdnyc opened this issue Dec 25, 2014 · 2 comments

Comments

@ferdnyc
Copy link
Contributor

ferdnyc commented Dec 25, 2014

The output pane's intelligent newline removal and whitespace cleanup functions are incredibly handy for reflowing paragraphs of text from the OCR'd document. However, especially since the output pane comes up rather narrow by default (so that nearly all recognized text is displayed wrapped, in the pane), it can sometimes be difficult to determine the line length of the text or where the existing hard newlines are.

I wonder if it wouldn't be helpful to have a display mode (either optional, or just the standard view) which displays "hidden" whitespace characters — something similar to GEdit's "Draw Spaces" plugin, perhaps.

I have my GEdit configured so that:

  • All breaks, tabs, and non-breaking spaces are shown,
  • Leading and trailing spaces on each line are also drawn,
  • Spaces within the line are not displayed. (I find the visible dots between words distracting, and they make the text harder to read. Plus, inline spaces are generally less of a formatting concern.)

If the output pane had a display mode similar to the GEdit screenshot below (I'm not sure that line numbers are necessary), it would make it much easier to locate areas in the text where there are hard line breaks and other whitespace issues present that need to be cleaned up with the "Strip line breaks..." tool, as well as visibly see the effects of using it on the text. Manual cleanup and editing would also be easier with visible formatting characters.

screenshot from 2014-12-25 03 17 32

@manisandro
Copy link
Owner

I agree this would be useful, but I'll need to see what is the best way to implement this. For the Gtk interface, GtkSourceView provides the functionality (which is what gedit uses), however, I'd need to get GtkSpell working with GtkSourceView first. For Qt, a quick internet search did not reveal much...

@manisandro
Copy link
Owner

This is implemented in gimagereader-3.1, thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants