Features

Selecting multiline text without carriage returns or new line characters

4y agoCompleted

When select multiline text and sent to translate (or copy to clipboard), remove "\n" character at the end of the line. Only when there is a dot "." or line is a title, put "\n"

and 12 others

3 comments

  1. Krzysztof Kowalczyk marked this as Completed13d ago
  2. This is in the 3.7 pre-release (https://www.sumatrapdfreader.org/prerelease). Copying a text selection (Ctrl+C) and Translate Selection now join the wrapped lines of a paragraph with a space, and keep the line break after the end of a paragraph, a heading or a line of code. So addresses and listings still copy line by line, while flowing text pastes as one paragraph. This works for PDFs, ebooks and other formats SumatraPDF renders with MuPDF; DjVu files still copy one line per line.

    1. Anonymous10d ago

      Thank you very much!

  3. TerraD3y ago

    While this might e practical for some of us others would run in big problems: I often selecte addresses to copy tehm to a different program - would not like to have my lines concatenated then...

    It could be a possibility to remove \n when you start with the selection botom-right and terminate top-left, and to keep \n when you start top-left and terminate botom-right.

    However: there are programs that use botom-right to top-left to select a block, while top-lfet to botom-right selects the complete (flow-)text (SumatraPDF selects today in both cases the complete flowtext). I for myself would love to see the block selection - this is extremely useful to select parts of a formated text (columns, tabs)!

    I hope this to be understandable, it would be hard to create a visualisation of this...