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.
Glyphs for integers larger than 24 consist of multiple smaller-value glyphs placed side by side.

Examples

Basic Examples (4) 

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]=

Glyphs for integers between 0 and 24:

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

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

In[4]:=
BaseForm[25, 25]
Out[4]=
In[5]:=
{ResourceFunction["DniIntegerForm"][1], ResourceFunction["DniIntegerForm"][0]}
Out[5]=
In[6]:=
ResourceFunction["DniIntegerForm"][25]
Out[6]=
In[7]:=
BaseForm[209, 25]
Out[7]=
In[8]:=
{ResourceFunction["DniIntegerForm"][8], ResourceFunction["DniIntegerForm"][9]}
Out[8]=
In[9]:=
ResourceFunction["DniIntegerForm"][209]
Out[9]=

Scope (2) 

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

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

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

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

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 11 February 2019

License Information