<?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[I don&#x27;t know whats the difference between these two lines]]></title><description><![CDATA[<p dir="auto">I’m using Notepad++ (V7.5.2) and I don’t know whats the difference between these two lines below are but only the top one works when I assemble In cc65 and rgbasm. This happens when I copy and past hex numbers from the windows calculator (Calculator 10.1905.28.0).<br />
This is what it looks like in the app:<br />
<a href="https://i.imgur.com/2dN3D3U.jpg" rel="nofollow ugc">https://i.imgur.com/2dN3D3U.jpg</a><br />
I copy and pasted the code here:<br />
ld de, $1ff5<br />
ld de, $‭1ff5‬<br />
The only fix I found was manually retyping the whole line.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17881/i-don-t-know-whats-the-difference-between-these-two-lines</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 18:12:53 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17881.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Jun 2019 15:46:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Mon, 14 Nov 2022 03:41:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <strong>All</strong>,</p>
<p dir="auto">Continuation of the <strong>previous</strong> post !</p>
<p dir="auto">You certainly noticed that, in the <strong><code>4</code></strong> <strong>last</strong> cases of the <strong>previous</strong> post, the numbers are <strong>always</strong> moved <strong>back</strong>, right after the <strong><code>ABC DEF</code></strong> string, because digits, as bi-directional <strong>weak</strong> char, are considered as belonging to the <strong>last embedded</strong> directional range. So, how to force the <strong>numbers</strong> to stay, after the <strong><code>GHI JKL MNO PQR STU</code></strong> string, already written in the <strong>Right to Left</strong> direction ?</p>
<p dir="auto">For such a task, and to <strong>compensate</strong> for the lack of the <strong>Isolates</strong> formating characters, we need to use one of the <strong>Implicit Directional Marks</strong>, below, which do work, too, with Notepad++ ;-))</p>
<pre><code>-  LEFT-TO-RIGHT MARK          LRM    200E
-  RIGHT-TO-LEFT MARK          RLM    200F
-  ARABIC LETTER MARK          ALM    061C
</code></pre>
<p dir="auto">These characters are very <strong>light-weight</strong> formatting and act, simply, as a bidirectional <strong>strong</strong> char, with the <strong><code>L</code></strong> or <strong><code>R</code></strong> type</p>
<p dir="auto">So, we get <strong><code>4</code></strong> more cases :</p>
<pre><code class="language-diff">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;123, 456 VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‎123, 456 VWX YZA  ( 47 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► The SPACE char, as a NEUTRAL char, is written in the CURRENT bi-directional direction, of level 0, so "Left to Right"

─► Finally, the INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character forces ALL remaining text, so the string "123, 456 VWX YZA", to be rewritten in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;123&lt;PDF&gt;, &lt;LRM&gt;&lt;RLO&gt;456&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮123‬, ‎‮456‬ VWX YZA  ( 52 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the FIRST &lt;RLO&gt; formating char, till the FIRST &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► The SPACE char, as a NEUTRAL char, is written in the CURRENT bi-directional direction, of level 0, so "Left to Right"

─► The INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character forces the context string "123, ", with the WEAK bidirectional digits , to be rewritten in the "Left to Right" direction

    ─► But the "123" number, from right after the SECOND &lt;RLO&gt; formating char, till the SECOND &lt;PDF&gt; formating char (level 1) is written, in the "Right to Left" direction

─► Again, the INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character forces the string "456", with the WEAK bidirectional digits , to be rewritten in the "Left to Right" direction, so AFTER the "123, " string

    ─► But the "456" number, from right after the THIRD &lt;RLO&gt; formating char, till the THIRD &lt;PDF&gt; formating char (level 1) is written, in the "Right to Left" direction
	
─► Finally, the " VWX YZA" string, after the THIRD &lt;PDF&gt; formating char, is written with the DEFAULT direction (level 0), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;123, 456&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮123, 456‬ VWX YZA  ( 49 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the FIRST &lt;RLO&gt; formating char, till the FIRST &lt;PDF&gt; formating char (level 1), is written, in the "Right to Left" direction

─► The SPACE char, as a NEUTRAL char, is written in the CURRENT bi-directional direction, of level 0, so "Left to Right"

─► The INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character forces EACH remaining block of text, to be rewritten in the "Left to Right" direction

─► However, the "123, 456" string, from right AFTER the SECOND &lt;RLO&gt; formating char, till the SECOND &lt;PDF&gt; formating char (level 1) must be written, in the "Right to Left" direction

─► Finally, the " VWX YZA" string, after the SECOND &lt;PDF&gt; formating char, is written with the DEFAULT direction (level 0), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;&lt;LRO&gt;123&lt;PDF&gt;, &lt;LRO&gt;456&lt;PDF&gt;&lt;LRM&gt;&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮‭123‬, ‭456‬‎‬ VWX YZA  ( 54 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the FIRST &lt;RLO&gt; formating char, till the FIRST &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► The SPACE char, as a NEUTRAL char, is written in the CURRENT bi-directional direction, of level 0, so "Left to Right"

─► The INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character, forces the context-numbers string to NOT depends on the FIRST &lt;RLO&gt;........&lt;PDF&gt; range

─► Then the "123, 456", right after the SECOND &lt;RLO&gt; formating char, till the FOURTH &lt;PDF&gt; formating char, is rewritten in the "Right to Left" direction (leval 1)

    ─► But the "123" number, from right after the FIRST &lt;LRO&gt; formating char, till the SECOND &lt;PDF&gt; formating char (level 1) is written, in the "Left to Right" direction (level 2)

    ─► The ", " string is written according to the CURRENT direction of the SECOND &lt;RLO&gt;........&lt;PDF&gt;range, starting at the SECOND &lt;RLO&gt; formating char, till the FOURTH (level 1), so in the "Right to Left" direction

    ─► The "456" number, from right after the SECOND &lt;LRO&gt; formating char, till the THIRD &lt;PDF&gt; formating char (level 2) is written, in the "Left to Right" direction (level 2)

─► The INVISIBLE &lt;LRM&gt; mark, acting as a STRONG "Left to Right" character, forces the " VWX YZA" string, to be written in the "Left to Right" direction (level 0) However, note that I did NOT understand WHY I had to locate the &lt;LRM&gt; mark BEFORE the LAST &lt;PDF&gt; formating char ( and NOT after ) to get the right behavior !
</code></pre>
<hr />
<p dir="auto">So, in short, starting with the <strong><code>2</code></strong> <strong>sample</strong> texts <strong><code>ABC DEF GHI JKL MNO PQR STU VWX YZA</code></strong> and <strong><code>ABC DEF GHI JKL MNO PQR STU 123, 456 VWX YZA</code></strong>, the syntaxes, below :</p>
<pre><code class="language-diff">ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL&lt;PDF&gt; MNO &lt;LRO&gt;PQR STU&lt;PDF&gt; VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL &lt;LRO&gt;MNO PQR&lt;PDF&gt; STU&lt;PDF&gt; VWX YZA

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; 123, 456 VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;RLO&gt;123, 456&lt;PDF&gt; VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRO&gt;123, 456&lt;PDF&gt; VWX YZA
ABC DEF &lt;LRO&gt;&lt;RLO&gt;123&lt;PDF&gt;, &lt;RLO&gt;456&lt;PDF&gt;&lt;PDF&gt; &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; VWX YZA

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;123, 456 VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;123&lt;PDF&gt;, &lt;LRM&gt;&lt;RLO&gt;456&lt;PDF&gt; VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;123, 456&lt;PDF&gt; VWX YZA
ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRM&gt;&lt;RLO&gt;&lt;LRO&gt;123&lt;PDF&gt;, &lt;LRO&gt;456&lt;PDF&gt;&lt;LRM&gt;&lt;PDF&gt; VWX YZA
</code></pre>
<p dir="auto">produce the <strong>corresponding</strong> results, below :</p>
<pre><code class="language-diff">( 36 chars )  ABC DEF ‮GHI JKL MNO PQR STU VWX YZA
( 37 chars )  ABC DEF ‮GHI JKL MNO PQR STU‬ VWX YZA
( 39 chars )  ABC DEF ‮GHI JKL‬ MNO ‭PQR STU‬ VWX YZA
( 39 chars )  ABC DEF ‮GHI JKL ‭MNO PQR‬ STU‬ VWX YZA

( 46 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ 123, 456 VWX YZA
( 48 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‮123, 456‬ VWX YZA
( 48 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‭123, 456‬ VWX YZA
( 52 chars )    ABC DEF ‭‮123‬, ‮456‬‬ ‮GHI JKL MNO PQR STU‬ VWX YZA

( 47 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‎123, 456 VWX YZA
( 52 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮123‬, ‎‮456‬ VWX YZA
( 49 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮123, 456‬ VWX YZA
( 54 chars )    ABC DEF ‮GHI JKL MNO PQR STU‬ ‎‮‭123‬, ‭456‬‎‬ VWX YZA
</code></pre>
<p dir="auto">As you may verify, by yourself, the <strong><code>4</code></strong> <strong>first</strong> and the <strong><code>8</code></strong> <strong>last</strong> results, of the <strong>last</strong> table, have, seemingly, the <strong>same</strong> width. This proves that, in <strong>all</strong> cases, the <strong>Unicode formating</strong> characters are <strong>zero-width</strong> chars ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">Some of my explanations may be <strong>confusing</strong>, <strong>approximate</strong> or <strong>false</strong>. It is quite natural because this is a <strong>complex</strong> area !!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/45018</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/45018</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 14 Nov 2022 03:41:35 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Mon, 14 Nov 2022 03:33:38 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@Peterjones</a> and <strong>All</strong>,</p>
<p dir="auto">Just out of curiosity and with the <strong>precious</strong> help of this <strong>Unicode</strong> article, below :</p>
<p dir="auto"><a href="http://www.unicode.org/reports/tr9/" rel="nofollow ugc">http://www.unicode.org/reports/tr9/</a></p>
<p dir="auto">I decide to explore, a bit, all these <strong>Unicode formating</strong> characters !</p>
<p dir="auto">This <strong>Unicode</strong> technical report is <strong>very</strong> difficult to be <strong>fully</strong> understood So, of course, I’ve just got a <strong>general</strong> idea of the <strong>Unicode Bidirectional</strong> algorithm !</p>
<p dir="auto">To begin with , I’ll use the <strong>simple</strong> text <strong><code>ABC DEF GHI JKL MNO PQR STU VWX YZA</code></strong></p>
<p dir="auto">In that text, I’ll insert some <strong>formating</strong> characters, using their Unicode <strong>abbreviation</strong>, surrounded with the <strong><code>&lt;</code></strong> and <strong><code>&gt;</code></strong> symbols, ( for instance <strong><code>&lt;RLO&gt;</code></strong> ). Refer to the link, below, to get all the <strong>Unicode format</strong> characters available :</p>
<p dir="auto"><a href="http://www.unicode.org/charts/PDF/U2000.pdf" rel="nofollow ugc">http://www.unicode.org/charts/PDF/U2000.pdf</a></p>
<p dir="auto">To get the <strong>formating</strong> chars themselves, in the <strong>sample</strong> text, I’ll <strong>always</strong> use the following <strong>regex</strong> S/R :</p>
<p dir="auto">SEARCH <strong><code>(?-i)(&lt;LRM&gt;)|(&lt;RLM&gt;)|(&lt;LRE&gt;)|(&lt;RLE&gt;)|(&lt;LRO&gt;)|(&lt;RLO&gt;)|(&lt;PDF&gt;)|(&lt;LRI&gt;)|(&lt;RLI&gt;)|(&lt;FSI&gt;)|(&lt;PDI&gt;)</code></strong></p>
<p dir="auto">REPLACE <strong><code>(?1\x{200E})(?2\x{200F})(?3\x{202A})(?4\x{202B})(?5\x{202D})(?6\x{202E})(?7\x{202C})(?8\x{2066})(?9\x{2067})(?10\x{2068})(?11\x{2069})</code></strong></p>
<hr />
<p dir="auto"><strong>First</strong>, the <strong>Explicit Directional Isolates</strong> formating characters, below, as well as the <strong>terminating</strong> associated character :</p>
<pre><code>-  LEFT-TO-RIGHT ISOLATE       LRI    2066
-  RIGHT-TO-LEFT ISOLATE       RLI    2067
-  FIRST STRONG ISOLATE        FSI    2068

-  POP DIRECTIONAL ISOLATE     PDI    2069
</code></pre>
<p dir="auto">do <strong>NOT</strong> work, in Notepad++ and are just inserted in text, as <strong>invisible</strong> characters</p>
<p dir="auto">For instance :</p>
<pre><code class="language-diff">ABC DEF &lt;RLI&gt;GHI JKL MNO PQR STU&lt;PDI&gt; VWX YZA
</code></pre>
<p dir="auto">does <strong>not</strong> change the display !</p>
<pre><code class="language-diff">ABC DEF ⁧GHI JKL MNO PQR STU⁩ VWX YZA  ( 37 chars )
</code></pre>
<p dir="auto">Secondly, on the same way, the <strong>Explicit Directional Embeddings</strong> formating characters, below :</p>
<pre><code>-  LEFT-TO-RIGHT EMBEDDING     LRE   202A
-  RIGHT-TO-LEFT EMBEDDING     RLE   202B
</code></pre>
<p dir="auto">produce <strong>nothing</strong> and are just inserted, in text, as <strong>invisible</strong> characters</p>
<p dir="auto">For instance :</p>
<pre><code class="language-diff">ABC DEF &lt;RLE&gt;GHI JKL MNO PQR STU&lt;PDF&gt; VWX YZA
</code></pre>
<p dir="auto">gives the <strong>unchanged</strong> text :</p>
<pre><code class="language-diff">ABC DEF ‫GHI JKL MNO PQR STU‬ VWX YZA  ( 37 chars )
</code></pre>
<hr />
<p dir="auto">Luckiky, the <strong>Explicit Directional Overrides</strong> formating characters, below :</p>
<pre><code>-  LEFT-TO-RIGHT OVERRIDE      LRO   202D
-  RIGHT-TO-LEFT OVERRIDE      RLO   202E
                                          
-  POP DIRECTIONAL FORMATTING  PDF   202C
</code></pre>
<p dir="auto">Do act as <strong>expected</strong> ;-))</p>
<p dir="auto">So, in <strong>code</strong> blocks, below, there are some <strong>examples</strong>, where :</p>
<ul>
<li>
<p dir="auto">The <strong>first</strong> line is the <strong>initial</strong> text, <strong>before</strong> running the regex S/R</p>
</li>
<li>
<p dir="auto">The <strong>second</strong> line is the <strong>resulting</strong> display of the of the <strong>formating</strong> characters, <strong>after</strong> execution of the <strong>regex</strong> S/R</p>
</li>
<li>
<p dir="auto">All the <strong>subsequent</strong> lines explain the <strong>bi-directional</strong> process !</p>
</li>
</ul>
<pre><code class="language-diff">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU VWX YZA  ( 36 chars )

ABC DEF ‮GHI JKL MNO PQR STU VWX YZA

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU VWX YZA" string, from right AFTER the &lt;RLO&gt; formating char(level 1), is written in the "Right to Left" direction till the PARAGRAPH separator ( CRLF )

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ VWX YZA  ( 37 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► The " VWX YZA" string is written, again, with the DEFAULT direction ( level 0 ), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL&lt;PDF&gt; MNO &lt;LRO&gt;PQR STU&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL‬ MNO ‭PQR STU‬ VWX YZA  ( 39 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► The " MNO " string is written with the DEFAULT direction ( level 0 ), so with the "Left to Right" direction

─► The 'PQR STU', from right AFTER the &lt;LRO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Left to Right" direction

─► The " VWX YZA" string is written with the DEFAULT direction ( level 0 ), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL &lt;LRO&gt;MNO PQR&lt;PDF&gt; STU&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL ‭MNO PQR‬ STU‬ VWX YZA  ( 39 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the LAST &lt;PDF&gt; formating char (level 1), SHOULD be written in the DEFAULT "Right to Left" direction

    ─► The "GHI JKL " string, BEFORE the &lt;LRO&gt; formating char (level 1) is written in the "Right to Left" direction

    ─► The "MNO PQR" string, from right AFTER the &lt;LRO&gt; formating char, till the NEAREST &lt;PDF&gt; formating char (level 2) is written in the "Left to Right" direction

    ─► The " STU" string, from right AFTER the FIRST &lt;PDF&gt; formating char, till the LAST &lt;PDF&gt; formating char (level 1) is written in the "Right to Left" direction

─► The " VWX YZA" string is written with the DEFAULT direction (level 0), so in the "Left to Right" direction
</code></pre>
<hr />
<p dir="auto">In the <strong>Unicode Annex #9</strong> article, it is said :</p>
<blockquote>
<p dir="auto">However, because these right-to-left scripts use digits that are written from left to right, the text is actually bidirectional: a mixture of right-to-left and left-to-right text.</p>
</blockquote>
<p dir="auto">So, let’s consider the <strong>initial</strong> text, below, <strong>slightly</strong> modified, by inserting the string <strong><code>123, 456</code></strong>, in order to <strong>test</strong> this kind of configuration :</p>
<pre><code class="language-diff">ABC DEF GHI JKL MNO PQR STU 123, 456 VWX YZA
</code></pre>
<p dir="auto"><strong>Remark</strong> : We should use, normally, <strong>Isolates</strong> formating characters, to force <strong>weak</strong> bi-directional <strong>numbers</strong> to be written in <strong>Right to Left</strong> direction. As this solution is, unfortunately, impossible in Notepad++, here are, below, some <strong>work-around</strong> to get the <strong>same</strong> results !</p>
<pre><code class="language-diff">~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; 123, 456 VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ 123, 456 VWX YZA  ( 46 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1) and the context- NUMBERS string " 123, 456" SHOULD be written in the "Right to Left" direction

    ─► The "GHI JKL MNO PQR STU" string is written in the "Right to Left" direction

    ─► The numbers, in the string " 123, 456", are written, in a "Right to Left" order, too BUT each digit is displayed in it's NATURAL "Left to Right" order

─► Then, the " VWX YZA" string is written, again, with the DEFAULT direction ( level 0 ), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;RLO&gt;123, 456&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‮123, 456‬ VWX YZA  ( 48 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► Then, the SPACE char, as a NEUTRAL bi-directional character, is written in the  CURRENT "Right to Left" direction (Level 1)

 ─► The " 123, 456" string, from right AFTER the SECOND &lt;RLO&gt; formating char, till the SECOND &lt;PDF&gt; formating char (level 1) is written, also, in the "Right to Left" direction

─► Finally, the " VWX YZA" string, after the &lt;PDF&gt; formating char, is written with the DEFAULT direction (level 0), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; &lt;LRO&gt;123, 456&lt;PDF&gt; VWX YZA

ABC DEF ‮GHI JKL MNO PQR STU‬ ‭123, 456‬ VWX YZA  ( 48 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► Then, the SPACE char, as a NEUTRAL bi-directional character, is written in the  CURRENT "Right to Left" direction (level 1)

─► The context NUMBERS string "123, 456", from right after the &lt;LRO&gt; formating char, till the &lt;PDF&gt; formating char, is also written in the 'Right to Left" direction, so BEFORE the "right to left" string "UTS RQP ONM LKJ IHG" (level 1)

    ─► But the "123, 456" string,itself, from right after the &lt;LRO&gt; char, till the &lt;PDF&gt; formating char (level 2) is written in the "Left to Right" direction

─► The " VWX YZA" string, after the &lt;PDF&gt; formating char, is written with the DEFAULT direction (level 0), so in the "Left to Right" direction

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ABC DEF &lt;LRO&gt;&lt;RLO&gt;123&lt;PDF&gt;, &lt;RLO&gt;456&lt;PDF&gt;&lt;PDF&gt; &lt;RLO&gt;GHI JKL MNO PQR STU&lt;PDF&gt; VWX YZA

ABC DEF ‭‮123‬, ‮456‬‬ ‮GHI JKL MNO PQR STU‬ VWX YZA  ( 52 chars )

─► The "ABC DEF " string is written with the DEFAULT direction of the CURRENT embedding level (level 0), so with the "Left to Right" direction

─► The context NUMBERS string "123, 456", from right after the FIRST &lt;LRO&gt; formating char (level 1), till the THIRD &lt;PDF&gt; formating char, SHOULD be written in the 'Left to Right" direction

    ─► Each digit of the "123" string, from right after a &lt;RLO&gt; formating char, till its corresponding &lt;PDF&gt; formating char (level 2), is written in the "Right to Left" direction

    ─► The sting ", " as NEUTRAL chars, are rewritten in the CURRENT direction of level 1, so in the "Left to Right" direction

    ─► Again, each digit of the "456" string, from right after a &lt;RLO&gt; formating char, till its corresponding &lt;PDF&gt; formating char (level 2), is written in the "Right to Left" direction

─► Then, the SPACE char, as NEUTRAL character, is written in the  CURRENT "Left to Right" direction (level 0)

─► The "GHI JKL MNO PQR STU" string, from right AFTER the &lt;RLO&gt; formating char, till the &lt;PDF&gt; formating char (level 1), is written in the "Right to Left" direction

─► Finally, the " VWX YZA" string, after the &lt;PDF&gt; formating char, is written with the DEFAULT direction (level 0), so in the "Left to Right" direction
</code></pre>
<p dir="auto">More on the <strong>next</strong> post !</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/45017</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/45017</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 14 Nov 2022 03:33:38 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Fri, 28 Jun 2019 11:21:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@Peterjones</a> and <strong>All</strong>,</p>
<p dir="auto">When I said :</p>
<blockquote>
<p dir="auto">Don’t ask me what these <strong>special</strong> characters mean !</p>
</blockquote>
<p dir="auto">Of course, <strong>Peter</strong>, I could have gone ahead for <strong>Google</strong> search or, even, on the site <a href="http://www.unicode.org" rel="nofollow ugc">http://www.unicode.org</a> and post some information about ! But, first, I was a bit <strong>lazy</strong> about doing so and, secondly, as you know, at the moment, in <strong>France</strong>, there is a period of <strong>heatwave</strong> ( <strong><code>45°</code></strong> forecast, this afternoon, in Nîmes ). So, everyone is <strong>extremely</strong> tired with such temperatures :-((</p>
<p dir="auto">But, luckily, you provided the right info, <strong>brilliantly</strong> and, certainly, in more <strong>fluent</strong> American-English that I could produce, anyway !</p>
<hr />
<p dir="auto">Now, regarding the <strong>heatwave</strong> period, in France, to get an idea of the situation, just have a look to these <strong>two</strong> pictures :</p>
<p dir="auto"><a href="http://www.meteociel.fr/cartes_obs/archives/27-06-2019/temp-17.png" rel="nofollow ugc">http://www.meteociel.fr/cartes_obs/archives/27-06-2019/temp-17.png</a></p>
<p dir="auto"><a href="http://www.meteociel.fr/cartes_obs/archives/27-06-2019/temp_na-22.png" rel="nofollow ugc">http://www.meteociel.fr/cartes_obs/archives/27-06-2019/temp_na-22.png</a></p>
<p dir="auto">As you see, I’m afraid that <strong>real</strong> temperature, in some parts of France, seem <strong>equivalent</strong> to the present <strong>Death valley</strong> temperature !!</p>
<p dir="auto">But, as <strong>Donald Trump</strong> says, there is <strong>no</strong> global warming underway ! Hummm ………</p>
<p dir="auto">For <strong>present</strong> France temperatures ( <strong><code>13h00</code></strong> <strong>local</strong> ), see below :</p>
<p dir="auto"><a href="http://www.meteociel.fr/observations-meteo/temperatures.php" rel="nofollow ugc">http://www.meteociel.fr/observations-meteo/temperatures.php</a></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44965</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44965</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Fri, 28 Jun 2019 11:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Thu, 27 Jun 2019 19:57:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a> said:</p>
<blockquote>
<p dir="auto">two invisible zero-length characters</p>
</blockquote>
<p dir="auto">You’re right.  I didn’t go looking for others, but the second was there.</p>
<blockquote>
<p dir="auto">Don’t ask me what these special characters mean !</p>
</blockquote>
<p dir="auto">I had a guess, but did a quick search to confirm.  See the W3C page about <a href="https://www.w3.org/International/questions/qa-bidi-unicode-controls" rel="nofollow ugc">unicode bidirectional control</a></p>
<p dir="auto">It looks like LRO forces left-to-right direction – so if you happened to be in a Right To Left language, the LRO would force these characters to be in left-to-right instead.  And the PDF (warning: acronym collision!) “pops” back out of that mode, returning to whatever directional setting was previously active.</p>
<p dir="auto">My guess is that some setting for the OP made the MS Calc want to <em><strong>ensure</strong></em> that the hex sequence was given in big-endian order for that particular copy/paste (or that the OP went through another app between MS Calc and Notepad++ which wanted to ensure that).</p>
<p dir="auto">------</p>
<h3>Off Topic Unicode Exploration</h3>
<p dir="auto">Now I want to explore those bidir characters slightly</p>
<p dir="auto">Starting with</p>
<pre><code>ABCD (&lt;LRO&gt;ABCD&lt;PDF&gt;) ABCD
ABCD (&lt;RLO&gt;ABCD&lt;PDF&gt;) ABCD
</code></pre>
<p dir="auto">Then doing three search/replace:</p>
<ul>
<li><code>&lt;PDF&gt;</code> =&gt; <code>\x{202C}</code></li>
<li><code>&lt;LRO&gt;</code> =&gt; <code>\x{202D}</code></li>
<li><code>&lt;RLO&gt;</code> =&gt; <code>\x{202E}</code></li>
</ul>
<p dir="auto">It will become:</p>
<pre><code>ABCD (‭ABCD‬) ABCD
ABCD (‮ABCD‬) ABCD
</code></pre>
<p dir="auto">which, if your browser understands unicode properly, should <em>appear to be</em></p>
<pre><code>ABCD (ABCD) ABCD
ABCD (DCBA) ABCD
</code></pre>
<p dir="auto">but will have the extra characters, and the bytes will be in ABCD order every time.  And for me, Notepad++ honored the RLO properly, and rendered the text in that order.  Nifty.</p>
<p dir="auto">Nifty stuff.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44955</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44955</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 27 Jun 2019 19:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Thu, 27 Jun 2019 19:22:52 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/15723">@sleeping-burrito</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@peterjones</a>, <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/14019">@andrecool-68</a>, and <strong>All</strong>,</p>
<p dir="auto"><strong>Quite</strong> weird, indeed ! If we just take care to the part <strong><code>$1ff5</code></strong>, we have :</p>
<ul>
<li>
<p dir="auto">The string <strong><code>$1ff5</code></strong>, of <strong><code>5</code></strong> characters long</p>
</li>
<li>
<p dir="auto">The string <strong><code>$‭1ff5‬</code></strong>, of <strong><code>7</code></strong> characters long</p>
</li>
</ul>
<p dir="auto">The <strong>former</strong> is just <strong>normal</strong> text and the <strong>later</strong> contains <strong>two invisible zero-length</strong> characters, which are :</p>
<ul>
<li>
<p dir="auto">The Unicode <strong>LEFT-TO-RIGHT OVERRIDE</strong> character ( <strong>LRO</strong> ), of code-point <strong><code>\x{202D}</code></strong>, located <strong>after</strong> the <strong><code>$</code></strong> symbol</p>
</li>
<li>
<p dir="auto">The Unicode <strong>POP DIRECTIONAL FORMATTING</strong> character ( <strong>PDF</strong> ),  of code-point <strong><code>\x{202C}</code></strong>, located between digit <strong><code>5</code></strong> and the <strong>EOL</strong> chars</p>
</li>
</ul>
<p dir="auto">Refer, for that purpose, to :</p>
<p dir="auto"><a href="http://www.unicode.org/charts/PDF/U2000.pdf" rel="nofollow ugc">http://www.unicode.org/charts/PDF/U2000.pdf</a></p>
<hr />
<p dir="auto">So, the sequence of <strong><code>7</code></strong> characters, followed with its <strong>line-break</strong>, below :</p>
<pre><code class="language-diff">$‭1ff5‬
--
</code></pre>
<p dir="auto">could be found with the regex <strong><code>\$\x{202D}1ff5\x{202C}\R</code></strong></p>
<p dir="auto">Don’t ask me what these <strong>special</strong> characters mean !</p>
<hr />
<p dir="auto">I agree, <strong>Peter</strong>, that your script is the <strong>right</strong> one to use and helps a <strong>lot</strong> to find out all these <strong>special</strong> chars ;-))</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44954</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44954</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Thu, 27 Jun 2019 19:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Thu, 27 Jun 2019 18:52:57 GMT]]></title><description><![CDATA[<p dir="auto">Thank you all for the quick and helpful response. I will keep a look out for U+202D and remove them if they come up.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44953</guid><dc:creator><![CDATA[sleeping burrito]]></dc:creator><pubDate>Thu, 27 Jun 2019 18:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Thu, 27 Jun 2019 15:59:56 GMT]]></title><description><![CDATA[<p dir="auto">This isn’t an assembly-coding forum.  There may be people here who know assembly, but this probably isn’t the right place to ask something specific to assembly.</p>
<p dir="auto">However, there are Notepad++ features which may help you figure out what’s going wrong.</p>
<ul>
<li>Firstly, good choice in showing whitespace and EOL – that’s a good use of Notepad++ to help.  Did you notice the extra whitespace on the second line before the CRLF? I don’t remember enough assembly from 25 years ago to know if that would affect things, but it jumps out as me as a difference.</li>
<li>Secondly, the syntax highlighting is different on the two lines.  I think something is going on there.  You might want to try changing fonts for the assembly style configurator… my first guess would have been you were using a font that didn’t differntiate 1 and lower-case L</li>
</ul>
<p dir="auto">Ooh, I just copied your text over, and saw the difference in highlighting myself… and noticed something funky with the second $ being slightly darker.  My font distinguishes 1 and L, so it was properlly a 1.  But I backspaced the 1 and accidentally did a second backspace, and a zero-width character was deleted: there’s something between the $ and the 1 on the second line!  I pulled up my PythonScript that’s in <a href="https://notepad-plus-plus.org/community/topic/17799/how-to-see-hex-value-of-character-next-to-cursor/5" rel="nofollow ugc">this recent post</a> to look for the unicode characters.  It tells me that, at least when I copy from your post and paste into a UTF-8 Notepad++ file, I see the <a href="http://www.fileformat.info/info/unicode/char/202d/index.htm" rel="nofollow ugc">U+202D</a>, which is apparently the <a href="http://www.fileformat.info/info/unicode/char/202d/index.htm" rel="nofollow ugc">left to right override character</a>.  I think that character is your problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44947</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44947</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 27 Jun 2019 15:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to I don&#x27;t know whats the difference between these two lines on Thu, 27 Jun 2019 15:59:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/15723">@sleeping-burrito</a> Calculate spaces</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44946</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44946</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Thu, 27 Jun 2019 15:59:21 GMT</pubDate></item></channel></rss>