Community
    • Login

    is there any add-on or regex or macro to split long text to sentence boundary

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 2.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V S RawatV Offline
      V S Rawat
      last edited by

      I am doing translation work that requires me to break long pages or paragraphs at sentence boundary, that is full-stop (.) for English, and Poorn-Viraam (।) for Hindi.

      It is called "align"ing or (probably) tokenizing.

      For Notepad++ (w9-32 bit), is there any add-on or regex or macro to split long text to sentences. (in plain text txt files).,

      In regex, I can’t just find . and replace with .\r\n because . is also used as abbreviation indication, say, in i.e., e.g., pvt., ltd., inc., etc… so it would replace there also, that is not desirable. Also, if several sentences are there wihtin parentheses () [] {}, then also, these should not be broken.

      So, I guess a single regex command just woundn’t do, or it will become too complex to take care of all the possibilities.

      it has to be a set of regex executed one after another, or a macro,

      or if someone has developed some add-on for that?

      Thanks.

      Rawat

      1 Reply Last reply Reply Quote 0
      • V S RawatV Offline
        V S Rawat
        last edited by

        oops! w9-32 bit -> w8-32 bit. sorry.

        1 Reply Last reply Reply Quote 0
        • Per IsaksonP Offline
          Per Isakson
          last edited by

          Did you try Google? See Python - RegEx for splitting text into sentences (sentence-tokenizing)

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors