At enWS I cheat and mostly substitute templates for the characters. <We
have templates for the set.>  Where people just use templates and not
subst:, we just run a bot through regularly/occasionally to replace. Low
tech, though highly effective,  I believe.

To note that we still have the full set in edit tools analogue too.

Billinghurst.

On Tue, 28 Jul 2015 17:00 Alex Brollo <alex.bro...@gmail.com> wrote:

> Just to inspire true developers: I'm playing with the code of a new tool,
> that replaces/adds diacritical marks of the character preceding the cursor
> into edit textarea. The trick is to decompose the character with
> .normalize("NFD"), to change what needs to be changed, and to recompose it
> with .normalize("NFC").
>
> Much faster and comfortable than the usual, painful search for the needed
> exotic character into Special characters or into a Unicode table.
>
> The code is primitive and undocumented, styling is horrible, but it runs
> and it seems to be a stand-alone code running into any project ( NOT into
> Visual Editor, I presume) , to test it simply mw.loader.load()  it  in edit
> mode from
>
>
> https://it.wikisource.org/wiki/Utente:Alex_brollo/Unicode_combining_diacritics.js
>
> and feel free to use/change/ignore it as you like: it's simply a "running
> idea".
>
> Alex
>
>
>
>
>
>
>
> _______________________________________________
> Wikisource-l mailing list
> Wikisource-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikisource-l
>
_______________________________________________
Wikisource-l mailing list
Wikisource-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikisource-l

Reply via email to