Lines Matching refs:n

19 function skip(){while(Self.I<Self.N&&member(Self.L[Self.I]," \t\n"))
21 function comment(){while("%"==peek()){while(peek()&&"\n"!=peek())
23 function text(){xchar();var L=[];var N=1;while(0<N&&peek()){var C=xchar();switch(C){case"(":N++;break;case")":N--;if(N<=0)C=false;break;case"\\":C=xchar();switch(C){case"(":break;case")":break;case"\\":break;case"n":C="\n";break;case"r":C="\r";break;case"t":C="\t";break;default:C=false}
27 function symbol(){var C=xchar();if(member(C,"()<>/% \t\n"))throw new Error("Symbol expected, got "+C);var N=member(C,"+-0123456789.");var F="."==C;var L=[C];while(peek()&&!member(peek(),"()<>[]{}/% \t\n")){C=xchar();L.push(C);if(N&&!member(C,"0123456789")){if(!F&&"."==C)F=true;else N=false}}
84 svgbuf+=' style="color:'+gcur.rgb+'"';svgbuf+=">\n";g=1}
108 setg(1);gcur.px=gcur.cx;gcur.py=gcur.cy;path='<path d="m'+(gcur.xoffs+gcur.cx).toFixed(1)+' '+(gcur.yoffs-gcur.cy).toFixed(1)+'\n'}
110 function setg(newg){if(g==2){svgbuf+="</text>\n";g=1}
111 if(newg==0){if(g){g=0;svgbuf+="</g>\n"
133 (y2-y1).toFixed(2)+'\n';gcur.cx=x1;gcur.cy=y1}else{x2=x+r*Math.cos(a2*Math.PI/180);y2=y+r*Math.sin(a2*Math.PI/180);path+='a'+r.toFixed(2)+' '+r.toFixed(2)+' 0 0 '+
136 (y1-y2).toFixed(2)+'\n';gcur.cx=x2;gcur.cy=y2}}
146 (gcur.xoffs+x).toFixed(1)+" "+(gcur.yoffs-y).toFixed(1)+"\n";gcur.cx=x;gcur.cy=y}
147 Psvg.prototype.eofill=function(){path_end();svgbuf+='" fill-rule="evenodd" fill="currentColor"/>\n'}
148 Psvg.prototype.fill=function(){path_end();svgbuf+='" fill="currentColor"/>\n'}
153 path+="\tv"+(gcur.cy-y).toFixed(1)+"\n"
155 path+="\th"+(x-gcur.cx).toFixed(1)+"\n"
158 (gcur.cy-y).toFixed(1)+"\n";gcur.cx=x;gcur.cy=y}
161 (gcur.yoffs-gcur.cy).toFixed(1)+"\n"}else if(g==2){svgbuf+="</text>\n";g=1}}
166 x.toFixed(1)+" "+(-y).toFixed(1)+"\n";gcur.cx+=x;gcur.cy+=y}
169 path+="\tv"+(-y).toFixed(1)+"\n"
171 path+="\th"+x.toFixed(1)+"\n"
174 (-y).toFixed(1)+"\n";gcur.cx+=x;gcur.cy+=y}
176 (-y).toFixed(1)+"\n"}else if(g==2){svgbuf+="</text>\n";g=1}
187 Psvg.prototype.setdash=function(a,o){var n=a.length,i
188 if(n==0){gcur.dash=''
192 if(--n==0)
208 if(span){svgbuf+="<tspan\n\t";output_font(true);svgbuf+=">"}else if(g!=2){if(!g)
220 svgbuf+='" stroke-width="'+gcur.linewidth.toFixed(1);svgbuf+='" stroke="currentColor" fill="none"'+gcur.dash+'/>\n'}
262 currentdict/systemdict currentdict put\n\
263 systemdict/{/mark cvx put\n\
264 systemdict/[/mark cvx put\n\
265 systemdict/]\n\
266 /counttomark cvx\n\
267 /array cvx\n\
268 /astore cvx\n\
269 /exch cvx\n\
270 /pop cvx\n\
271 5 array astore cvx put\n\
272 systemdict/}/] cvx/cvx cvx 2 array astore cvx put\n\
273 systemdict/def{currentdict 2 index 2 index put pop pop}put\n\
274 \n\
275 /maxlength 1000 def % TODO\n\
276 /.bdef{bind def}bind def\n\
277 /.xdef{exch def}.bdef\n\
278 /dup{0 index}.bdef\n\
279 /load{dup where pop exch get}.bdef\n\
280 /.ldef{load def}.bdef\n\
281 /if{{}ifelse}.bdef\n\
282 /cleartomark{array pop}.bdef\n\
283 /known{exch begin where{currentdict eq}{false}if end}.bdef\n\
284 /store{1 index where{3 1 roll put}{def}ifelse}.bdef\n\
285 /not{{false}{true}ifelse}.bdef\n\
286 %/.logand{{{true}{false}ifelse}{pop false}ifelse}.bdef\n\
287 %/and/.logand .ldef % TODO numeric and\n\
288 /.logor{{pop true}{{true}{false}ifelse}ifelse}.bdef\n\
289 /or/.logor .ldef % TODO numeric or\n\
290 /ne{eq not}.bdef\n\
291 /ge{lt not}.bdef\n\
292 /le{1 index 1 index eq 3 1 roll lt or}.bdef\n\
293 /gt{le not}.bdef\n\
294 /.repeat{1 1 4 2 roll for}.bdef\n\
295 \n\
296 %% math\n\
297 \n\
298 /floor{.math(floor)1 .call}.bdef\n\
299 \n\
300 /neg{0 exch sub}.bdef\n\
301 /add{neg sub}.bdef\n\
302 /idiv{div floor}.bdef\n\
303 \n\
304 /.pi{.math(PI)get}.bdef\n\
305 \n\
306 /abs{.math(abs)1 .call}.bdef\n\
307 %/.acos{.math(acos)1 .call}.bdef\n\
308 %/.asin{.math(asin)1 .call}.bdef\n\
309 /atan{.math(atan2)2 .call 180 mul .pi div}.bdef\n\
310 %/.atan2{.math(atan2)2 .call}.bdef\n\
311 %/ceiling{.math(ceil)1 .call}.bdef\n\
312 /cos{.pi mul 180 div .math(cos)1 .call}.bdef\n\
313 %/.exp{.math(exp)1 .call}.bdef\n\
314 %/log{.math(log)1 .call}.bdef\n\
315 %/.max{.math(max)2 .call}.bdef\n\
316 %/.min{.math(min)2 .call}.bdef\n\
317 %/.pow{.math(pow)2 .call}.bdef\n\
318 %/.random{.math(random)0 .call}.bdef\n\
319 %/rand{.random}.bdef % TODO follow spec\n\
320 %/round{.math(round)1 .call}.bdef\n\
321 %/sin{.math(sin)1 .call}.bdef\n\
322 %/sqrt{.math(sqrt)1 .call}.bdef\n\
323 %/.tan{.math(tan)1 .call}.bdef\n\
324 %/truncate{.math(truncate)1 .call}.bdef % TODO Math.truncate does not exist!\n\
325 \n\
326 % graphic\n\
327 /arc{.svg(arc)5 .call0}.bdef\n\
328 /arcn{.svg(arcn)5 .call0}.bdef\n\
329 /closepath{.svg(closepath)0 .call}.bdef\n\
330 /currentpoint{.svg(cx)0 .call .svg(cy)0 .call}.bdef\n\
331 /curveto{.svg(curveto)6 .call0}.bdef\n\
332 /eofill{.svg(eofill)0 .call0}.bdef\n\
333 /fill{.svg(fill)0 .call0}.bdef\n\
334 /grestore{.svg(grestore)0 .call0}.bdef\n\
335 /gsave{.svg(gsave)0 .call0}.bdef\n\
336 /lineto{.svg(lineto)2 .call0}.bdef\n\
337 /moveto{.svg(moveto)2 .call0}.bdef\n\
338 /newpath{.svg(newpath)0 .call0}.bdef\n\
339 /rcurveto{.svg(rcurveto)6 .call0}.bdef\n\
340 /rlineto{.svg(rlineto)2 .call0}.bdef\n\
341 /rmoveto{.svg(rmoveto)2 .call0}.bdef\n\
342 /rotate{.svg(rotate)1 .call0}.bdef\n\
343 /scale{.svg(scale)2 .call0}.bdef\n\
344 /selectfont{.svg(selectfont)2 .call0}.bdef\n\
345 /setdash{.svg(setdash)2 .call0}.bdef\n\
346 /setlinewidth{.svg(setlinewidth)1 .call0}.bdef\n\
347 /setrgbcolor{.svg(setrgbcolor)3 .call0}.bdef\n\
348 /show{.svg(show)1 .call0}.bdef\n\
349 /stroke{.svg(stroke)0 .call0}.bdef\n\
350 /stringwidth{.svg(strw)1 .call 1}.bdef %fixme: height KO\n\
351 /translate{.svg(translate)2 .call0}.bdef\n\
352 \n\
353 /setgray{255 mul dup dup setrgbcolor}.bdef\n\
354 % abcm2ps syms.c\n\
355 /!{bind def}bind def\n\
356 /T/translate load def\n\
357 /M/moveto load def\n\
358 /RM/rmoveto load def\n\
359 /L/lineto load def\n\
360 /RL/rlineto load def\n\
361 /C/curveto load def\n\
362 /RC/rcurveto load def\n\
363 /SLW/setlinewidth load def\n\
364 /defl 0 def\n\
365 /dlw{0.7 SLW}!\n\
366 /xymove{/x 2 index def/y 1 index def M}!\n\
367 /showc{dup stringwidth pop .5 mul neg 0 RM show}!\n\
368 %\n\
369 % abcm2ps internal glyphs\n\
370 /arp{.svg(arp)3 .call0}.bdef\n\
371 /ltr{.svg(ltr)3 .call0}.bdef\n\
372 /ft0{(acc-1).svg(xygl)3 .call0}.bdef\n\
373 /nt0{(acc3).svg(xygl)3 .call0}.bdef\n\
374 /sh0{(acc1).svg(xygl)3 .call0}.bdef\n\
375 /dsh0{(acc2).svg(xygl)3 .call0}.bdef\n\
376 /trl{(trl).svg(xygl)3 .call0}.bdef\n\
377 /lmrd{(lmrd).svg(xygl)3 .call0}.bdef\n\
378 /turn{(turn).svg(xygl)3 .call0}.bdef\n\
379 /umrd{(umrd).svg(xygl)3 .call0}.bdef\n\
380 /y0{.svg(y0)1 .call}.bdef\n\
381 /y1{.svg(y1)1 .call}.bdef\n")}