on c19bc7a help sign in
222 lines 4.3 kB history raw
1:- :~ navhome/'/docs/'
2 sort/'28'
3 title/'4a: Exotic Bases'
4 ==
6;>
10# 4a: exotic bases
12### `++po`
14Phonetic base
16Container core for providing phonetic syllables and name generators for the
17Urbit naming system. The two faces, `sis` and `dex`, are available to the
18contained arms.
20#### Source
22```
23 ~/ %po
24 =+ :- ^= sis :: prefix syllables
25 'dozmarbinwansamlitsighidfidlissogdirwacsabwissib\
26 /rigsoldopmodfoglidhopdardorlorhodfolrintogsilmir\
27 /holpaslacrovlivdalsatlibtabhanticpidtorbolfosdot\
28 /losdilforpilramtirwintadbicdifrocwidbisdasmidlop\
29 /rilnardapmolsanlocnovsitnidtipsicropwitnatpanmin\
30 /ritpodmottamtolsavposnapnopsomfinfonbanmorworsip\
31 /ronnorbotwicsocwatdolmagpicdavbidbaltimtasmallig\
32 /sivtagpadsaldivdactansidfabtarmonranniswolmispal\
33 /lasdismaprabtobrollatlonnodnavfignomnibpagsopral\
34 /bilhaddocridmocpacravripfaltodtiltinhapmicfanpat\
35 /taclabmogsimsonpinlomrictapfirhasbosbatpochactid\
36 /havsaplindibhosdabbitbarracparloddosbortochilmac\
37 /tomdigfilfasmithobharmighinradmashalraglagfadtop\
38 /mophabnilnosmilfopfamdatnoldinhatnacrisfotribhoc\
39 /nimlarfitwalrapsarnalmoslandondanladdovrivbacpol\
40 /laptalpitnambonrostonfodponsovnocsorlavmatmipfip'
41 ^= dex :: suffix syllables
42 'zodnecbudwessevpersutletfulpensytdurwepserwylsun\
43 /rypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnex\
44 /lunmeplutseppesdelsulpedtemledtulmetwenbynhexfeb\
45 /pyldulhetmevruttylwydtepbesdexsefwycburderneppur\
46 /rysrebdennutsubpetrulsynregtydsupsemwynrecmegnet\
47 /secmulnymtevwebsummutnyxrextebfushepbenmuswyxsym\
48 /selrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpel\
49 /syptermebsetdutdegtexsurfeltudnuxruxrenwytnubmed\
50 /lytdusnebrumtynseglyxpunresredfunrevrefmectedrus\
51 /bexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermer\
52 /tenlusnussyltecmexpubrymtucfyllepdebbermughuttun\
53 /bylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmyl\
54 /wedducfurfexnulluclennerlexrupnedlecrydlydfenwel\
55 /nydhusrelrudneshesfetdesretdunlernyrsebhulryllud\
56 /remlysfynwerrycsugnysnyllyndyndemluxfedsedbecmun\
57 /lyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes'
58 |%
59```
61---
62### `++ind`
64Parse suffix
66Produces the byte of the right-hand syllable `a`.
68#### Accepts
70`a` is an atom.
72#### Produces
74A `unit`.
76#### Source
78```
79 ++ ind ~/ %ind
80 |= a=@tas
81 =+ b=0
82 |- ^- (unit @)
83 ?:(=(256 b) ~ ?:(=(a (tod b)) [~ b] $(b +(b))))
84```
86#### Examples
88```
89 > (ind:po 'zod')
90 [~ u=0]
92 > (ind:po 'zam')
93 ~
95 > (ind:po 'del')
96 [~ u=37]
97```
99---
100### `++ins`
102Parse prefix
104Produces the byte of the left-hand phonetic syllable `a`.
106#### Accepts
108`a` is an atom.
110#### Produces
112A `unit` of an atom.
114#### Source
116```
117 ++ ins ~/ %ins
118 |= a=@tas
119 =+ b=0
120 |- ^- (unit @)
121 ?:(=(256 b) ~ ?:(=(a (tos b)) [~ b] $(b +(b))))
122```
124#### Examples
126```
127 > (ins:po 'mar')
128 [~ u=1]
130 > (ins:po 'son')
131 [~ u=164]
133 > (ins:po 'pit')
134 [~ u=242]
136 > (ins:po 'pok')
137 ~
138```
140---
141### `++tod`
143Fetch suffix
145Produces the phonetic suffix syllable from index `a` within `dex` as an atom.
147#### Accepts
149`a` is an atom
151#### Produces
153An atom.
155#### Source
157```
158 ++ tod ~/ %tod
159 |=(a=@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] dex)))
160```
162#### Examples
164```
165 > `@t`(tod:po 1)
166 'nec'
168 > `@t`(tod:po 98)
169 'dec'
171 > `@t`(tod:po 0)
172 'zod'
174 > `@t`(tod:po 150)
175 'ryg'
177 > `@t`(tod:po 255)
178 'fes'
180 > `@t`(tod:po 256)
181 ! exit
182```
184---
185### `++tos`
187Fetch prefix
189Produces the phonetic prefix syllable from index `a` within `sis` as an atom.
191#### Accepts
193`a` is an atom.
195#### Produces
197An atom.
199#### Source
201```
202 ++ tos ~/ %tos
203 |=(a=@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] sis)))
204```
206#### Examples
208```
209 > `@t`(tos:po 0)
210 'doz'
212 > `@t`(tos:po 120)
213 'fab'
215 > `@t`(tos:po 43)
216 'pid'
218 > `@t`(tos:po 253)
219 'mat'
220```
222---