Quick Brown Fox

We've coded this little exercise a number of times. This time we try in a Mech to see how short that might be.

the quick brown fox jumped over the lazy dogs back

CLICK CODE quick PREVIEW synopsis items

export function quick() { let item = this.context.page.story[1] let dot = item.text .split('') .map((c,i,v) => `"${c}"->"${v[i+1]||'.'}";`) let graph = { type:'graphviz', text:`digraph { node [style=filled fillcolor=gold]; ${dot.join("\n")} }`} this.items = [item,graph] }

Tip: try shift-CLICK to see how the blocks talk to each other. Try shift-hover over the quote to see that it is faithfully copied to the new page. Compare with the older version to see how Mech helps us out.

This tiny sentence is an English-language pangram – a sentence that contains all 26 letters of the English alphabet. The phrase is commonly used for touch-typing practice, testing typewriters and computer keyboards, displaying examples of fonts, and other applications involving text where all letters in the alphabet is desired. wikipedia