Differences between revisions 1 and 2
Revision 1 as of 2006-12-31 20:58:44
Size: 2851
Editor: KaiJaeger
Comment:
Revision 2 as of 2006-12-31 20:59:29
Size: 2876
Editor: KaiJaeger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

[[TableOfContents]]

SpecialCharacters

TableOfContents

Looking at special characters in this Wiki

This Wiki is a Unicode Wiki. This means that you will see the special characters used by Dyalog (for historical reasons also known as APL characters) as long as you use a Unicode font. If you tell your browser explicitly to use a particular non-Unicode font regardless what sites tell the browser to use, you won't see these special characters, of course.

Is all okay for you?

If this code:

Prim←{all/⍨2=+⌿0=all∘.|all←⍳⍵}

displays the same code as this image:

attachment:Code_Prim.jpg

everything should be okay.

Copying code between a Dyalog session and this Wiki and vice versa

It's all about Unicode: Since version 11 you can copy code from the Dyalog session and paste it into this Wiki and vice versa - it works. With versions prior to 11 this cannot work, sorry!

Marking code as such

Also any Unicode font will display the special characters properly that does not mean that they will look nice! Normally you want have a monospaced font. This Wiki try to use the "Apl385 Unicode" font by default. If this font is not installed on your local machine, the Wiki tries to use "Causeway" instead. Both fonts comes with a standard Dyalog version 11 installation on your machine.

If neither of them is installed on your computer, "Courier New" or "Courier" is used.

However, you have to tell the Wiki explicitly to process a piece of text as code. For this, prefix and postfix the code with 3 "curlies" (curly brackets):

This is: {{{anycode}}} an inline example BRwhich leads to this output: BR This is: anycode an inline example

Another example with the same piece of code but with newline characters between the curlies and the code iself:

{{{ BR anycode BR }}}

which leads to this output:

anycode

Entering special characters directly into this Wiki

If Microsofts Input Editor is installed on your machine in theory you should be able to enter Dyalog's special characters into the Wiki directly.

However, most keyboard layouts uses the Ctrl key to create some of the special characters. That works fine within a Dyalog session but conflicts with your browser which apparently uses a number of them as shortcuts. Typical candidates are Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+A, Ctrl+P more. And because the browser takes them first and do not let them thru to the Input Editor, all characters accessible by those keys only cannot be entered into this Wiki directly, of course. The same is true for application like Word, who use even more keys as shortcuts.

There *are* applications available acting more intelligent. For example, UltraEdit passes those shortcuts thru to the Input editor first. Don't know how they do it but it works.

SpecialCharacters (last edited 2009-05-06 09:31:06 by KaiJaeger)