layout: post title: | Quick Tip: A11y und eine kurze Einführung in Numeronyme description: Das Numeronym "a11y" steht für "accessibility" author: Scott O'Hara translator: Peter Krautzberger date: 2017-11-27
published: true
// add to User:YOURNAME/common.js to get smooth MathJax rendering | |
var mathTags = $('.mwe-math-mathml-a11y'); | |
if (mathTags.length > 0){ //only do something when there's math on the page | |
window.MathJax = { | |
SVG: {blacker: 1}, // clearer SVG output, in case people switch to SVG output | |
AuthorInit: function () { | |
MathJax.Hub.Register.StartupHook("End",function () { //when MathJax is done... | |
MathJax.Hub.Queue( | |
function(){ | |
mathTags.removeClass('mwe-math-mathml-a11y'); // .. make the span around MathML (now MathJax output) visible |
const fs = require('fs'); | |
const mjnode = require('mathjax-node-sre'); | |
const jsdom = require('jsdom'); | |
const { JSDOM } = jsdom; | |
process.on('unhandledRejection', r => console.log(r)); | |
mjnode.config({ | |
MathJax: { | |
// your config | |
} |
javascript:(function(){function%20e(e){var%20i=e.createElement('script'),o;i.src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML-full.js';i.type='text/javascript';o='MathJax.Hub.Config({tex2jax:{inlineMath:[[\'$\',\'$\'],[\'\\\\(\',\'\\\\)\']],displayMath:[[\'\\\\[\',\'\\\\]\']],processEscapes:true}});MathJax.Hub.Startup.onload();';%20i.text=o;e.getElementsByTagName('head')[0].appendChild(i)}function%20t(t){if(t.MathJax===undefined){e(t.document)}else{t.MathJax.Hub.Queue(new%20t.Array('Typeset',t.MathJax.Hub))}}var%20a=document.getElementsByTagName('iframe'),n,i;t(window);for(n=0;n<a.length;n++){i=a[n].contentWindow||a[n].contentDocument;if(!i.document)i=i.parentNode;t(i)}})(); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Math.SE extracted Samples</title> | |
</head> | |
<body> |
// modified from https://developers.google.com/apps-script/articles/sending_emails#section2, cf https://developers.google.com/site-policies | |
// Licensed under Apache 2.0 License http://www.apache.org/licenses/LICENSE-2.0, | |
// Copyright (c) Google Inc, MathJax Consortium | |
// | |
function sendEmails() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var startRow = 1; // First row of data to process | |
var numRows = 1; // Number of rows to process | |
// Fetch the range of cells |
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; | |
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++}; | |
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(th |