User:PerfektesChaos/js/superscriptMagnifier/SuMag

SuMag is an independent subsystem applicable to any HTML document out of wiki context.

Any version of the jQuery library in 2010’s is required.

Superscript and subscript character magnification will be performed.

Allocation
A code copy  is to be loaded or copied into source code.

Then, function call as follows is required: The  parameter is a library object.

Then,  is ready to be used.

Execution
The following functions are available:


 * SuMag.factory( assign, apply )
 * Initialization
 * – string with keyword, or false.
 * – true: include non-ANSI ranges.
 * – false: include greek and asiatic letters.
 * – number of characters to limit processing.
 * – string with aditional class selector for non-ANSI ranges.
 * Triggers.
 * Only in addition to.
 * – string with keyword for generated CSS selectors.
 * – value assigned to keyword.
 * After configuration calls, a final call without parameters is required to put option collection into effect.


 * SuMag.fire( $assembly )
 * Perform character magnification
 * – jQuery element set to be processed
 * Afterwards $assembly has changed.


 * SuMag.found( alter )
 * Statistics of exchanged characters
 * – false: ANSI range – true: beyond ANSI (UCS)
 * Returns number of changed characters.