Wolfram Research

Function Repository Resource:

DniIntegerForm

Source Notebook

The D’ni glyph corresponding to a base-10 integer

Contributed by: Jeff Bryant

ResourceFunction["DniIntegerForm"][int]

displays int as a glyph or set of glyphs in the D’ni numbering system.

Details and Options

Results are Graphics expressions.
The D’ni numbering system is a base-25 numbering system that was designed for the game Riven, sequel to Myst.
Glyphs for 0 through 4 are unique.
Glyphs for integers between 5 and 24 are obtained by rotation and/or overlaying a pair of glyphs.

Examples

Basic Examples

D’ni glyph for 3 is a unique glyph:

In[1]:=
ResourceFunction["DniIntegerForm"][3]
Out[1]=

Integers 0 through 4 are unique glyphs:

In[2]:=
Table[ResourceFunction["DniIntegerForm"][i], {i, 0, 4}]
Out[2]=

Above 24, multiple glyphs are used and placed side by side:

In[3]:=
ResourceFunction["DniIntegerForm"][25]
Out[3]=
In[4]:=
ResourceFunction["DniIntegerForm"][209]
Out[4]=

Scope

The symbol for 5 is just the symbol for 1, but rotated 90 degrees:

In[5]:=
{ResourceFunction["DniIntegerForm"][1], ResourceFunction["DniIntegerForm"][5]}
Out[5]=

The symbol for 6 is obtained by overlaying the symbols for 5 and 1:

In[6]:=
ResourceFunction["DniIntegerForm"][6]
Out[6]=

Glyphs for integers between 0 and 24:

In[7]:=
Table[With[{n = i*5^1 + j*5^0}, Grid[{{ResourceFunction["DniIntegerForm"][n]}, {n}}]], {i, 0, 4}, {j, 0, 4}] // TableForm
Out[7]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

License Information