<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need to, in steps, copy&#x2F;cut&#x2F;paste]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I’m only reaching out to see if my problem could be solved with Notepad++. Otherwise i need to check other solutions.</p>
<p dir="auto">I’ve downloaded a software i would like to try out but it does not come in my native swedish language, and no surprice, there are 3 huge files with each around 13000 rows to translate. :o</p>
<p dir="auto">To my problem.</p>
<ol>
<li>I’m trying to use Notepad++ to copy what ever is in the noteID (nid) to the notestring (nstr).</li>
<li>Now when the nid and the nstr are identical i then need to remove/save nid (temporarly to another location/notepad) in order to be able to translate the nstr into swedish which im quickly doing with google translate (i will correct the far lesser percentage faults later). Why i need to remove nid is because when i do a translate ‘batch-style’ both nid and nstr will be translated, and that cannot happen.</li>
<li>When nstr is translated i then need to put back/add the nid what i previously in step 2 removed, back to where it previously was locate (the row over nstr) which the software use to work properly.</li>
</ol>
<p dir="auto">If i’ve complicated things with my steps above then feel free to advice me a better way.</p>
<p dir="auto">Example:<br />
1.<br />
nid “Name”<br />
nstr “”</p>
<p dir="auto">nid “Address”<br />
nstr “”</p>
<p dir="auto">nid “City”<br />
nstr “”</p>
<p dir="auto">nid “E-mail address”<br />
nstr “”</p>
<p dir="auto">nid “Phone number”<br />
nstr “”</p>
<ol start="2">
<li></li>
</ol>
<p dir="auto">nid “Name”<br />
nstr “Name”</p>
<p dir="auto">nid “Address”<br />
nstr “Address”</p>
<p dir="auto">nid “City”<br />
nstr “City”</p>
<p dir="auto">nid “E-mail address”<br />
nstr “E-mail address”</p>
<p dir="auto">nid “Phone number”<br />
nstr “Phone number”</p>
<ol start="3">
<li></li>
</ol>
<p dir="auto">nid “Name”<br />
nstr “Namn”</p>
<p dir="auto">nid “Address”<br />
nstr “Adress”</p>
<p dir="auto">nid “City”<br />
nstr “Stad”</p>
<p dir="auto">nid “E-mail address”<br />
nstr “E-postadress”</p>
<p dir="auto">nid “Phone number”<br />
nstr “Telefon nummer”</p>
<p dir="auto">Any help appreciated.<br />
Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24830/need-to-in-steps-copy-cut-paste</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 06:58:44 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24830.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Aug 2023 08:42:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need to, in steps, copy&#x2F;cut&#x2F;paste on Fri, 18 Aug 2023 20:49:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bertil-wallman" aria-label="Profile: Bertil-Wallman">@<bdi>Bertil-Wallman</bdi></a> said in <a href="/post/88696">Need to, in steps, copy/cut/paste</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
Hi Peter…</p>
<ol>
<li><em>(?-s)^nid (".</em>“)\r\nnstr “”* didn’t work for me, so i tried it bit by bit and this &gt; <em>(?-s)^nid (".</em>”)\nnstr “”* worked much better.</li>
</ol>
</blockquote>
<p dir="auto">Notepad++ is a Windows text editor, so assuming Windows line endings is natural, and works for the majority of the people; if you had mentioned that you were using Linux line endings, I would have customized the expression for your actual data.</p>
<blockquote>
<ol start="2">
<li>That instruction… "initial = 1, increase = ``, leading = none… the increase part didn’t work for me either, the box didn’t allow me to add those characters,</li>
</ol>
</blockquote>
<p dir="auto">That was a typo on my part.  It should have said “increase = <code>1</code>” – I just missed the 1 in between the ` characters for trying to make the 1 red like <code>1</code> .</p>
<blockquote>
<ol start="3">
<li>And that \bnstr \b didn’t work too, so i removed the last \b then i was back on track. :)</li>
</ol>
</blockquote>
<p dir="auto">There was no space between the <code>str</code> and the <code>\b</code> in my example.  In my testing, I literally used <code>\bnstr\b</code> and it worked.  If you used <code>\bnstr \b</code>, it would not work, because the next character after the space is a <code>"</code> , and between the space and the quote mark is <em>not</em> a word-boundary.</p>
<blockquote>
<p dir="auto">But i had some other problems with the file to deal with first,  …</p>
</blockquote>
<p dir="auto">Glad you figured it out.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88697</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88697</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 18 Aug 2023 20:49:51 GMT</pubDate></item><item><title><![CDATA[Reply to Need to, in steps, copy&#x2F;cut&#x2F;paste on Fri, 18 Aug 2023 20:35:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
Hi Peter…</p>
<p dir="auto">A huge thank you to a very well done job, i cannot thank you enough. Your instructions worked like a charm with some minor tweaks on the regex you gave me…</p>
<ol>
<li><em>(?-s)^nid (".</em>“)\r\nnstr “”* didn’t work for me, so i tried it bit by bit and this &gt; <em>(?-s)^nid (".</em>”)\nnstr “”* worked much better.</li>
<li>That instruction… "initial = 1, increase = ``, leading = none… the increase part didn’t work for me either, the box didn’t allow me to add those characters, so when i tried without i only got 1’s all the way down… that didn’t work so the most logic for me was to give increase the value of 1, then it worked.</li>
<li>And that \bnstr \b didn’t work too, so i removed the last \b then i was back on track. :)</li>
</ol>
<p dir="auto">I was slightly curious about how the end would look like, but there was no problems at all… everything went smooth as butter… :)</p>
<p dir="auto">But i had some other problems with the file to deal with first, after copying some rows in the beginning i noticed the english was messed up, where 450 rows were not inside the quotation marks… like this…</p>
<p dir="auto">nid “”<br />
“Are you sure”<br />
“you want to clear the reportings”<br />
nstr “”</p>
<p dir="auto">nid “”<br />
“Are you sure”<br />
“you want to clean”<br />
“up duplicates”<br />
nstr “”</p>
<p dir="auto">nid “”<br />
“Are you sure”<br />
“you want to "clear”\ or "save"<br />
“expired items”<br />
nstr “”</p>
<p dir="auto">nid “”<br />
“Are you sure”<br />
“you want to”<br />
“clear offensive”<br />
“items”<br />
nstr “”</p>
<p dir="auto">so i needed to take care that first… removing all the extra quotation marks… when i did that i noticed half way in the file im editing everything wrong… you see i removed all the quotation marks, even those inside sentences ("%s" and target="_blank")… which is bad… so i had to start all over again… it was the first step of 4 instead of 3.</p>
<p dir="auto">Ja, ja… as we say here… “When head is stupid, body will suffer” (hence the unnecessary extra job)… :/</p>
<p dir="auto">A huge thx again Peter… :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88696</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88696</guid><dc:creator><![CDATA[Bertil Wallman]]></dc:creator><pubDate>Fri, 18 Aug 2023 20:35:47 GMT</pubDate></item><item><title><![CDATA[Reply to Need to, in steps, copy&#x2F;cut&#x2F;paste on Thu, 17 Aug 2023 13:24:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bertil-wallman" aria-label="Profile: Bertil-Wallman">@<bdi>Bertil-Wallman</bdi></a> ,</p>
<p dir="auto">Make a backup of your data in case something goes wrong.</p>
<ol>
<li>duplicate string contents
<ul>
<li>FIND WHAT = <code>(?-s)^nid (".*")\r\nnstr ""</code><br />
REPLACE WITH = <code>nid $1\r\nnstr $1</code><br />
SEARCH MODE = Regular Expression</li>
<li>REPLACE ALL</li>
</ul>
</li>
<li>Number the lines:
<ul>
<li><code>Ctrl+Home</code></li>
<li><strong>Edit &gt; Begin/End Select in Column Mode</strong></li>
<li><code>Ctrl+End</code></li>
<li>If you aren’t at the end of a line, hit ENTER to create a new blank line at the end of the document</li>
<li><strong>Edit &gt; Begin/End Select in Column Mode</strong> to finish the column selection – you should have a tall, super-thin rectangle selected</li>
<li>Type a space character to indent by one</li>
<li>Down Arrow to leave column-selection, then left arrow to get to the left edge of the last line</li>
<li><strong>Edit &gt; Begin/End Select in Column Mode</strong></li>
<li><code>Ctrl+Home</code></li>
<li><strong>Edit &gt; Begin/End Select in Column Mode</strong> to end selection, again giving a zero-width but tall selection</li>
<li><code>Alt+C</code> (or <strong>Edit &gt; Column Editor</strong>) to pop up the Column Editor dialog.</li>
<li>Insert number, initial = <code>1</code>, increase = ``, leading = <code>None</code></li>
<li>the file should be numbered, with one or more spaces to the right of each number (depending on the number of digits)</li>
</ul>
</li>
<li>Bookmark and cut the <code>nstr</code> lines
<ul>
<li><code>Ctrl+M</code> (<strong>Search &gt; Mark</strong>)</li>
<li>FIND WHAT = <code>\bnstr\b</code> (the <code>\b</code> make sure that <code>nstr</code> will be a whole word, not part of some other word)<br />
☑ BOOKMARK LINE<br />
MARK ALL</li>
<li>There should now be a dot on each line with <code>nstr</code> highlighted<br />
<img src="/assets/uploads/files/1692278199243-54353888-fd7b-4808-a67b-e686cf34f1c1-image.png" alt="54353888-fd7b-4808-a67b-e686cf34f1c1-image.png" class=" img-fluid img-markdown" /></li>
<li><strong>Search &gt; Bookmark &gt; Cut Bookmarked Lines</strong></li>
</ul>
</li>
<li>Put the <code>nstr</code> lines in a new doc
<ul>
<li><code>Ctrl+N</code></li>
<li><code>Ctrl+V</code></li>
</ul>
</li>
<li>Outside of Notepad++: Translate that new document (making sure they are still numbered; spaces don’t matter, as long as there’s at least one space after the number)</li>
<li>Copy the translated lines</li>
<li>Paste at the end of your original document (which currently just has numbered <code>nid</code> lines)</li>
<li><strong>Edit &gt; Line Operations &gt; Sort Lines as Integers Ascending</strong></li>
<li>remove the line numbering
<ul>
<li>FIND WHAT = <code>^\d+\h+</code><br />
REPLACE WITH = delete the field, so you will replace with empty string<br />
SEARCH MODE = Regular Expression<br />
REPLACE ALL</li>
</ul>
</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/post/88664</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88664</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 17 Aug 2023 13:24:48 GMT</pubDate></item></channel></rss>