Skip to content

Commit

Permalink
Full path to fonts. Escape double quotes. Update 05ab1e, Actually, Hu…
Browse files Browse the repository at this point in the history
…sk, and Jelly content.
  • Loading branch information
abrudz committed Apr 24, 2018
1 parent 89d235d commit a0c1093
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 22 deletions.
4 changes: 2 additions & 2 deletions 05ab1e.dyalog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
infoBuild info;i;where;t;dual;prefixed;main
lbsBuild info;i;where;t;dual;prefixed;main
⍵ is https://github.com/Adriandmen/05AB1E/blob/master/docs/info.txt
t⎕UCS 9 tab

Expand Down Expand Up @@ -29,4 +29,4 @@
info((,t t,1)/)¨info merge them
info,'',¨2¨1dual append leftover duals
info'\t *$'⎕R''info trim whitespace
info'\t'⎕R'\n'¨info convert tabs to newlines
lbs'\t'⎕R'\n'¨info convert tabs to newlines
6 changes: 3 additions & 3 deletions 05ab1e.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions actually.dyalog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
allBuild(commands nice_names);symbols;n
lbsBuild(commands nice_names);symbols;n
⍵[1] is https://github.com/Mego/Seriously/blob/master/docs/commands.txt
⍵[2] is https://github.com/Mego/Seriously/blob/master/docs/nice_names.txt
n⎕UCS 10 newline
Expand All @@ -9,5 +9,5 @@
commands256commands remove comments
commands¨¯2+commands¨')' symbol is last in parens

allnice_names{[1 1],n,,n,3}¨commands construct
all/3<¨commands~¨' ' only those with meaning
lbsnice_names{[1 1],n,,n,3}¨commands construct
lbs/3<¨commands~¨' ' only those with meaning
6 changes: 3 additions & 3 deletions actually.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions brachylog.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ let lbh='';for(let i=0;i<lbs.length;i++){
let ks=[]
for(let j=0;j<tcs.length;j+=3)if(lbs[i][0]===tcs[j+2])ks.push('\n'+tcs[j]+' '+tcs[j+1]+' <tab>')
for(let j=0;j<bqk.length;j++)if(lbs[i][0]===bqv[j])ks.push('\n` '+bqk[j])
lbh+='<b title="'+he(lbs[i].slice(1))+(ks.length?'\n'+ks.join(''):'')+'">'+lbs[i][0]+'</b>'
lbh+='<b title="'+he(lbs[i].slice(1)+(ks.length?'\n'+ks.join(''):''))+'">'+lbs[i][0]+'</b>'
}
let d=document,el=d.createElement('div');el.innerHTML=
`<div class=ngn_lb><span class=ngn_x title=Close>❎</span>${lbh}</div>
<style>@font-face{font-family:"DVSM";src:local("DejaVu Sans Mono"),url(DejaVuSansMono.ttf)format('truetype');}</style>
<style>@font-face{font-family:"DVSM";src:local("DejaVu Sans Mono"),url(//abrudz.github.io/lb/DejaVuSansMono.ttf)format('truetype');}</style>
<style>
.ngn_lb{position:fixed;top:0;left:0;right:0;background-color:#eee;color:#000;cursor:default;z-index:2147483647;
font-family:"DVSM",monospace;border-bottom:solid #999 1px;padding:2px 2px 2px 2px;word-wrap:break-word;}
Expand Down
8 changes: 4 additions & 4 deletions husk.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion jelly.dyalog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(comp all)comp Build(atoms quicks syntax);i;atomsOut;type;t;now;duals;n;all;where;remaining;Tr;Split;dq;Format
(tcs lbs)comp Build(atoms quicks syntax);i;atomsOut;type;t;now;duals;n;all;where;remaining;Tr;Split;dq;Format
⍺ is https://gist.github.com/cairdcoinheringaahing/b24ab7802c5979ab9ce398fedb811795
⍵ is https://github.com/DennisMitchell/jelly/wiki/Atoms ./Quicks ./Syntax
t n⎕UCS 9 10 tab newline
Expand Down Expand Up @@ -58,3 +58,5 @@
duals¨duals prefixes
duals{ n,'SYNTAX',n,'Begins two-byte ',,'.'}¨((1duals)'atom'),'Quick' construct
all,(Formatsyntax),duals format

(tcs lbs)comp all
4 changes: 2 additions & 2 deletions jelly.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lb.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ let lbh='';for(let i=0;i<lbs.length;i++){
let ks=[]
for(let j=0;j<tcs.length;j+=3)if(lbs[i][0]===tcs[j+2])ks.push('\n'+tcs[j]+' '+tcs[j+1]+' <tab>')
for(let j=0;j<bqk.length;j++)if(lbs[i][0]===bqv[j])ks.push('\n` '+bqk[j])
lbh+='<b title="'+he(lbs[i].slice(1))+(ks.length?'\n'+ks.join(''):'')+'">'+lbs[i][0]+'</b>'
lbh+='<b title="'+he(lbs[i].slice(1)+(ks.length?'\n'+ks.join(''):''))+'">'+lbs[i][0]+'</b>'
}
let d=document,el=d.createElement('div');el.innerHTML=
`<div class=ngn_lb><span class=ngn_x title=Close>❎</span>${lbh}</div>
<style>@font-face{font-family:"APL385 Unicode";src:local("APL385 Unicode"),url(Apl385.woff)format('woff');}</style>
<style>@font-face{font-family:"APL385 Unicode";src:local("APL385 Unicode"),url(//abrudz.github.io/lb/Apl385.woff)format('woff');}</style>
<style>
.ngn_lb{position:fixed;top:0;left:0;right:0;background-color:#eee;color:#000;cursor:default;z-index:2147483647;
font-family:"Apl385 Unicode",monospace;border-bottom:solid #999 1px;padding:2px 2px 0 2px;word-wrap:break-word;}
Expand Down

0 comments on commit a0c1093

Please sign in to comment.