veAutocorrect – autocorrect script for VisualEditor. It can automate replacing any sequence of characters into a special character (examples below).
In short
edit- License: CC-BY-SA 3.0
- Authors: Schnark, Maciej „Nux” Jaros.
- Script: User:Nux/veAutocorrect.js
- Quick install:
Open your common.js and add:
importScript('User:Nux/veAutocorrect.js');
Predefined sequences
editsequence | replacement |
---|---|
--
|
–
|
---
|
—
|
...
|
…
|
<<
|
«
|
>>
|
»
|
->
|
→
|
1/2
|
½ (requires space after "2")
|
1/4
|
¼ (requires space after "4")
|
3/4
|
¾ (requires space after "4")
|
+-
|
±
|
Note. There was also a quotes sequence that is added based on content language of the Wikipedia being used. But it is disabled as per MOS:PUNCT.
See also
edit- Polish version of the script: pl:User:Nux/veAutocorrect.
- Script of a first author: de:User:Schnark/js/veAutocorrect.