Replacement of middle dot

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Replacement of middle dot

Post by highend »

Don, in v16.80.0001
* Info Panel | Raw View: Replaced substitution character (for non-displayed
low ASCII chars) "mid dot" character by normal dot. The mid dot is no good
on some code pages, and it does not play easily with HTML and other ASCII
contexts.
* Info Panel | Raw View: Now many more lower ASCII (< ord 32) are shown
unsubstituted.
There is one case where I find this change totally disturbing:
In the "stepping through a script" window

When a regexreplace / match produces empty matches that were represented through the middle dot
before they are now displayed as normal dots. Could you make an exception from the new rule
and display these as middle dots again, please (only for this window)?

v16.80.0000
16.80.000.png
v16.80.0001
16.80.001.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Replacement of middle dot

Post by admin »

Got some code? I'm a regexp idiot.

Got it. :)

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Replacement of middle dot

Post by highend »

Code: Select all

 $list1 = <<<HEREDOC
x?tag1
a?tag1
b?tag1
HEREDOC;

    $matches = regexmatches($list1, "^.*\?tag1", "<crlf>");
    step; // DEBUG
    $list = regexreplace($matches, "\?.*");
Just execute this one. It'll display what's on the second screenshot from my last post. And this is... Em, hard to grasp, because you think it captured dots... which are in fact empty matches (formerly represented by middle dots)
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Replacement of middle dot

Post by admin »

OK, I'll try the BEL character (ASCII 7):
https://en.wikipedia.org/wiki/Bell_character

It looks like a big black middle dot in the fonts I tested (Segoe and Courier).
I just hope it does not ring the bell.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Replacement of middle dot

Post by highend »

I just hope it does not ring the bell
:)
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Replacement of middle dot

Post by highend »

v0204 looks fine, thanks!
0206.png
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Replacement of middle dot

Post by PeterH »

Works:fine.

Wouldn't it also be fine to do the same in Preview, so we can distinguish unprintables (like chr(00)) from dots?
(That's why I loved the middle-dot :titter: )

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Replacement of middle dot

Post by admin »

Well, dot is a bit of a defacto standard here when I think of various Hex Viewers. OTOH, it's certainly not a good standard. So I'm open for improving it.

Now, what about this:
http://www.fileformat.info/info/unicode ... /index.htm

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Replacement of middle dot

Post by Marco »

admin wrote:Well, dot is a bit of a defacto standard here when I think of various Hex Viewers. OTOH, it's certainly not a good standard. So I'm open for improving it.

Now, what about this:
http://www.fileformat.info/info/unicode ... /index.htm
Imho it's perfect.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Replacement of middle dot

Post by admin »

I thought so, too, but there is a problem: It does not look good in small font size. IMO this middot is still the best. And I found one that should be safe with codepages (U+2219):
To see the attached files, you need to log into the forum.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Replacement of middle dot

Post by Marco »

It doesn't look bad to me...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 66672
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Replacement of middle dot

Post by admin »

I made it customizable. Next beta you can tweak:

Code: Select all

LowAsciiReplacementChar=� 

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Replacement of middle dot

Post by Marco »

:tup:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Post Reply