Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1// Horizontal overlap functions2import defineFunction from "../defineFunction";3import {makeSpan, makeVList} from "../buildCommon";4import {MathNode} from "../mathMLTree";5import {stretchyMathML, stretchySvg} from "../stretchy";6 7import * as html from "../buildHTML";8import * as mml from "../buildMathML";9 10import type {ParseNode} from "../parseNode";11 12defineFunction({13 type: "accentUnder",14 names: [15 "\\underleftarrow", "\\underrightarrow", "\\underleftrightarrow",16 "\\undergroup", "\\underlinesegment", "\\utilde",17 ],18 props: {19 numArgs: 1,20 },21 handler: ({parser, funcName}, args) => {22 const base = args[0];23 return {24 type: "accentUnder",25 mode: parser.mode,26 label: funcName,27 base: base,28 };29 },30 htmlBuilder: (group: ParseNode<"accentUnder">, options) => {31 // Treat under accents much like underlines.32 const innerGroup = html.buildGroup(group.base, options);33 34 const accentBody = stretchySvg(group, options);35 const kern = group.label === "\\utilde" ? 0.12 : 0;36 37 // Generate the vlist, with the appropriate kerns38 const vlist = makeVList({39 positionType: "top",40 positionData: innerGroup.height,41 children: [42 {type: "elem", elem: accentBody, wrapperClasses: ["svg-align"]},43 {type: "kern", size: kern},44 {type: "elem", elem: innerGroup},45 ],46 }, options);47 48 return makeSpan(["mord", "accentunder"], [vlist], options);49 },50 mathmlBuilder: (group, options) => {51 const accentNode = stretchyMathML(group.label);52 const node = new MathNode(53 "munder",54 [mml.buildGroup(group.base, options), accentNode]55 );56 node.setAttribute("accentunder", "true");57 return node;58 },59});60 