/usr/share/SuperCollider/HelpSource/Overviews/Methods.html is in supercollider-common 1:3.8.0~repack-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | <html>
<head>
<title>Methods</title>
<link rel='stylesheet' href='../scdoc.css' type='text/css' />
<link rel='stylesheet' href='../custom.css' type='text/css' />
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
<script src="../docmap.js" type="text/javascript"></script>
<script src="../scdoc.js" type="text/javascript"></script>
<noscript>
<p>The method index needs JavaScript.
</noscript>
<script type="text/javascript">
var methods;
var subclassCache = {};
function buildMethodList() {
methods = {};
for(var k in docmap) {
var doc = docmap[k];
var mets = doc.methods;
if(mets) {
for(var j=0;j<mets.length;j++) {
var m = mets[j];
var mname = m.slice(2);
var pfx = m[1];
var undoc = m[0]=="?";
if(!methods.hasOwnProperty(mname))
methods[mname] = [];
methods[mname].push({doc:doc,pfx:pfx,undoc:undoc});
}
}
}
}
function getSubClasses(doc) {
var a = [];
if(doc.subclasses) {
for(var i=0;i<doc.subclasses.length;i++) {
var x = doc.subclasses[i];
var v = docmap["Classes/"+x];
a.push(x);
if(v)
a = a.concat(getSubClasses(v));
}
}
return a;
}
function showMethod(mname, node) {
var div = document.createElement("div");
div.className = "method_item";
var x = document.createElement("div");
x.className = "method_name";
x.appendChild(document.createTextNode(mname));
div.appendChild(x);
var x = methods[mname].sort(function(a,b) {
a = a.pfx + a.doc.title;
b = b.pfx + b.doc.title;
if(a<b) return -1;
else
if(a>b) return +1;
else
return 0;
});
for(var i=0;i<x.length;i++) {
var m = x[i];
var v = m.doc;
var div2 = document.createElement("div");
div2.className = "method_doc";
div.appendChild(div2);
var p = m.pfx;
if(p==".") p=" ";
div2.appendChild(document.createTextNode(p+" "));
var a = document.createElement("a");
a.setAttribute("href",helpRoot+"/"+v.path+".html#"+m.pfx+mname);
a.innerHTML = v.title;
if(m.undoc)
a.className = "undoc";
div2.appendChild(a);
div2.appendChild(document.createTextNode(" - "+v.summary+" "));
var n = document.createElement("span");
n.className = "soft";
var res = "["+v.path.split("/")[0];
if(v.installed=="extension")
res += " +";
else if(v.installed=="missing")
res += " - missing!";
n.innerHTML = res+"]";
div2.appendChild(n);
if(v.path=="Classes/Object") {
var n = document.createElement("div");
n.className = "met_subclasses";
n.appendChild(document.createTextNode("Inherited by: All classes"));
div2.appendChild(n);
} else {
if(v.subclasses && v.subclasses.length>0) {
var n;
if(subclassCache[v.path]) {
n = subclassCache[v.path].cloneNode(true);
} else {
var subs = getSubClasses(v);
n = document.createElement("div");
var m = n;
n.className = "met_subclasses";
n.appendChild(document.createTextNode("Inherited by: "));
for(var j=0;j<subs.length;j++) {
var a = document.createElement("a");
a.setAttribute("href", helpRoot+"/Classes/"+subs[j]+".html");
if(j==10 && subs.length > 14) {
m = document.createElement("span");
m.className = "hiddenspan";
m.style.display = "none";
n.appendChild(m);
var a2 = document.createElement("a");
a2.setAttribute("href","#");
a2.className = "seemore";
a2.innerHTML = "… see "+(subs.length-10)+" more";
n.appendChild(document.createTextNode(" "));
n.appendChild(a2);
}
if(j>0)
m.appendChild(document.createTextNode(", "));
a.innerHTML = subs[j];
m.appendChild(a);
}
subclassCache[v.path] = n;
}
(function() {
var a = n.getElementsByClassName("seemore")[0];
if(a) {
var m = n.getElementsByClassName("hiddenspan")[0];
a.onclick = function() {
m.style.display = "";
a.parentNode.removeChild(a);
return false;
}
}
})();
div2.appendChild(n);
}
}
}
node.appendChild(div);
}
function did_load() {
var hash = unescape(window.location.hash.slice(1));
helpRoot=".."; fixTOC();
buildMethodList();
showmethods();
}
function showmethods() {
var hash = unescape(window.location.hash.slice(1));
var res = document.getElementById("methods");
res.innerHTML = "";
var section = undefined;
if(/^section_/.test(hash))
section = hash[8];
else if(hash) {
var div = document.createElement("p");
div.className = "searchlink";
div.appendChild(document.createTextNode("Do you want to "));
var a = document.createElement("a");
a.setAttribute("href","../Search.html#"+hash);
a.appendChild(document.createTextNode("search for '"+hash+"'"));
div.appendChild(a);
div.appendChild(document.createTextNode(" instead?"));
res.appendChild(div);
document.getElementById("total_count").innerHTML = "Showing single method:";
document.getElementById("method_note").innerHTML = "";
if(methods[hash]) {
showMethod(hash,res);
return;
}
var div = document.createElement("p");
div.appendChild(document.createTextNode("Method not found: "+hash));
res.appendChild(div);
window.location = "../Search.html#"+hash;
return;
}
var cap = undefined;
var div = document.createElement("p");
div.className = "jump";
div.innerHTML = "Show section: ";
var mets = [];
for(var k in methods) {
mets.push(k);
}
mets = mets.sort();
for(var i=0;i<mets.length;i++) {
var k = mets[i];
if(cap != k[0]) {
cap = k[0];
if(section == undefined)
section = cap;
var a = document.createElement("a");
a.setAttribute("href","#section_"+cap);
a.innerHTML=cap.toUpperCase();
div.appendChild(a);
div.appendChild(document.createTextNode(" "));
}
}
res.appendChild(div);
var x = document.createElement("h2");
x.innerHTML = section.toUpperCase();
res.appendChild(x);
var count = 0;
for(var i = 0; i<mets.length;i++) {
var k = mets[i];
if(k[0]==section) {
showMethod(k, res);
count++;
}
}
document.getElementById("total_count").innerHTML = count + " methods (" + mets.length + " total)";
}
window.onhashchange = showmethods;
</script>
</head>
<ul id="menubar"></ul>
<body onload="did_load()">
<div class='contents'>
<div class='header'>
<div id='label'>SuperCollider OVERVIEWS</div>
<h1>Methods</h1>
<div id='summary'>Alphabetical index of all methods</div>
</div>
<div id="total_count"></div>
<div id='methods'>
Generating method index, please wait...
</div>
<div id='method_note'>
You can show a specific method by appending '#NAME' to this page url, where NAME is the name of the method.
</div>
</div>
</body>
</html>
|