Page MenuHomePhabricator

template to facilitate inserting accented characters and IPA symbols
Closed, ResolvedPublic

Description

Author: Rainbow

Description:
Since it's not allowed anymore to insert javascript code in templates, Brion
said maybe we can have a Mediawiki extension, where it can be static in a
controlled fashion. I created a comprehensive template that allows to add any
and all accented character covering most languages that use the Latin alphabet
and IPA notation. It is meant to be shown on the edit pages of all the Wiktionaries.

Here you have it: (I hope it passes through OK, it needs UTF-8)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>accented characters</title>
</head>
<body>

This is were it really starts:

<table align="center" border="1" cellpadding="5">
<tbody>
<tr>
<td>
<table align="center" cellpadding="1">
<tbody>
<tr>
<td><a href="javascript:insertTags('�','','')">á</a></td>
<td><a href="javascript:insertTags('�','','')">é</a></td>
<td><a href="javascript:insertTags('�','','')">í</a></td>
<td><a href="javascript:insertTags('�','','')">ó</a></td>
<td><a href="javascript:insertTags('�','','')">ú</a></td>
<td><a href="javascript:insertTags('ć','','')">ć</a></td>
<td><a href="javascript:insertTags('ǵ','','')">ǵ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ḱ','','')">ḱ</a></td>
<td><a href="javascript:insertTags('ĺ','','')">ĺ</a></td>
<td><a href="javascript:insertTags('ḿ','','')">ḿ</a></td>
<td><a href="javascript:insertTags('ń','','')">ń</a></td>
<td><a href="javascript:insertTags('ṕ','','')">ṕ</a></td>
<td><a href="javascript:insertTags('ŕ','','')">ŕ</a></td>
<td><a href="javascript:insertTags('ś','','')">ś</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ẃ','','')">ẃ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">ý</a></td>
<td><a href="javascript:insertTags('ź','','')">ź</a></td>
<td><a href="javascript:insertTags('�','','')">Á</a></td>
<td><a href="javascript:insertTags('�','','')">É</a></td>
<td><a href="javascript:insertTags('�','','')">Í</a></td>
<td><a href="javascript:insertTags('�','','')">Ó</a></td>
<td><a href="javascript:insertTags('�','','')">Ú</a></td>
<td><a href="javascript:insertTags('Ć','','')">Ć</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ḱ','','')">Ḱ</a></td>
<td><a href="javascript:insertTags('Ĺ','','')">Ĺ</a></td>
<td><a href="javascript:insertTags('Ḿ','','')">Ḿ</a></td>
<td><a href="javascript:insertTags('Ń','','')">Ń</a></td>
<td><a href="javascript:insertTags('Ṕ','','')">Ṕ</a></td>
<td><a href="javascript:insertTags('Ŕ','','')">Ŕ</a></td>
<td><a href="javascript:insertTags('Ś','','')">Ś</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ẃ','','')">Ẃ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">Ý</a></td>
<td><a href="javascript:insertTags('Ź','','')">Ź</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('�','','')">à</a></td>
<td><a href="javascript:insertTags('�','','')">è</a></td>
<td><a href="javascript:insertTags('�','','')">ì</a></td>
<td><a href="javascript:insertTags('�','','')">ò</a></td>
<td><a href="javascript:insertTags('�','','')">ù</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ǹ','','')">ǹ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ẁ','','')">ẁ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ỳ','','')">ỳ</a></td>
<td style="vertical-align: top;"><br>
</td>
<td><a href="javascript:insertTags('�','','')">À</a></td>
<td><a href="javascript:insertTags('�','','')">È</a></td>
<td><a href="javascript:insertTags('�','','')">Ì</a></td>
<td><a href="javascript:insertTags('�','','')">Ù</a></td>
<td><a href="javascript:insertTags('�','','')">Ù</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ǹ','','')">Ǹ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ẁ','','')">Ẁ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ỳ','','')">Ỳ</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('�','','')">ä</a></td>
<td><a href="javascript:insertTags('�','','')">ë</a></td>
<td><a href="javascript:insertTags('�','','')">ï</a></td>
<td><a href="javascript:insertTags('�','','')">ö</a></td>
<td><a href="javascript:insertTags('�','','')">ü</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ḧ','','')">ḧ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ẗ','','')">ẗ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ẅ','','')">ẅ</a></td>
<td><a href="javascript:insertTags('ẍ','','')">ẍ</a></td>
<td><a href="javascript:insertTags('�','','')">ÿ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">Ä</a></td>
<td><a href="javascript:insertTags('�','','')">Ë</a></td>
<td><a href="javascript:insertTags('�','','')">Ï</a></td>
<td><a href="javascript:insertTags('�','','')">Ö</a></td>
<td><a href="javascript:insertTags('�','','')">Ü</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ḧ','','')">Ḧ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ẅ','','')">Ẅ</a></td>
<td><a href="javascript:insertTags('Ẍ','','')">Ẍ</a></td>
<td><a href="javascript:insertTags('Ÿ','','')">Ÿ</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('�','','')">â</a></td>
<td><a href="javascript:insertTags('�','','')">ê</a></td>
<td><a href="javascript:insertTags('�','','')">î</a></td>
<td><a href="javascript:insertTags('�','','')">ô</a></td>
<td><a href="javascript:insertTags('�','','')">û</a></td>
<td><a href="javascript:insertTags('ĉ','','')">ĉ</a></td>
<td><a href="javascript:insertTags('ĝ','','')">ĝ</a></td>
<td><a href="javascript:insertTags('ĥ','','')">ĥ</a></td>
<td><a href="javascript:insertTags('ĵ','','')">ĵ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ŝ','','')">ŝ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ŵ','','')">ŵ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ŷ','','')">ŷ</a></td>
<td><a href="javascript:insertTags('ẑ','','')">ẑ</a></td>
<td><a href="javascript:insertTags('�','','')">Â</a></td>
<td><a href="javascript:insertTags('�','','')">Ê</a></td>
<td><a href="javascript:insertTags('�','','')">Î</a></td>
<td><a href="javascript:insertTags('�','','')">Ô</a></td>
<td><a href="javascript:insertTags('�','','')">Û</a></td>
<td><a href="javascript:insertTags('Ĉ','','')">Ĉ</a></td>
<td><a href="javascript:insertTags('Ĝ','','')">Ĝ</a></td>
<td><a href="javascript:insertTags('Ĥ','','')">Ĥ</a></td>
<td><a href="javascript:insertTags('Ĵ','','')">Ĵ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ŝ','','')">Ŝ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ŵ','','')">Ŵ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ŷ','','')">Ŷ</a></td>
<td><a href="javascript:insertTags('Ẑ','','')">Ẑ</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('�','','')">ã</a></td>
<td><a href="javascript:insertTags('ẽ','','')">ẽ</a></td>
<td><a href="javascript:insertTags('ĩ','','')">ĩ</a></td>
<td><a href="javascript:insertTags('�','','')">õ</a></td>
<td><a href="javascript:insertTags('ũ','','')">ũ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">ñ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ṽ','','')">ṽ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ỹ','','')">ỹ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">Ã</a></td>
<td><a href="javascript:insertTags('Ẽ','','')">Ẽ</a></td>
<td><a href="javascript:insertTags('Ĩ','','')">Ĩ</a></td>
<td><a href="javascript:insertTags('�','','')">Õ</a></td>
<td><a href="javascript:insertTags('Ũ','','')">Ũ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">Ñ</a></td>
<td style="vertical-align: top;"><br>
</td>
<td style="vertical-align: top;"><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ṽ','','')">Ṽ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ỹ','','')">Ỹ</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('ą','','')">ą</a></td>
<td><a href="javascript:insertTags('ȩ','','')">ȩ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">ç</a></td>
<td><a href="javascript:insertTags('ģ','','')">ģ</a></td>
<td><a href="javascript:insertTags('ḩ','','')">ḩ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ķ','','')">ķ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ņ','','')">ņ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ş','','')">ş</a></td>
<td><a href="javascript:insertTags('ţ','','')">ţ</a></td>
<td><a href="javascript:insertTags('�','','')">¸</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ą','','')">Ą</a></td>
<td><a href="javascript:insertTags('Ȩ','','')">Ȩ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">Ç</a></td>
<td><a href="javascript:insertTags('Ģ','','')">Ģ</a></td>
<td><a href="javascript:insertTags('Ḩ','','')">Ḩ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ņ','','')">Ņ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ş','','')">Ş</a></td>
<td><a href="javascript:insertTags('Ţ','','')">Ţ</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('ă','','')">ă</a></td>
<td><a href="javascript:insertTags('ĕ','','')">ĕ</a></td>
<td><a href="javascript:insertTags('ĭ','','')">ĭ</a></td>
<td><a href="javascript:insertTags('ŏ','','')">ŏ</a></td>
<td><a href="javascript:insertTags('ŭ','','')">ŭ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ğ','','')">ğ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ă','','')">Ă</a></td>
<td><a href="javascript:insertTags('Ĕ','','')">Ĕ</a></td>
<td><a href="javascript:insertTags('Ĭ','','')">Ĭ</a></td>
<td><a href="javascript:insertTags('Ŏ','','')">Ŏ</a></td>
<td><a href="javascript:insertTags('Ŭ','','')">Ŭ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ğ','','')">Ğ</a></td>
</tr>
<tr>
<td><br>
</td>
<td><a href="javascript:insertTags('ė','','')">ė</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ṡ','','')">ṡ</a></td>
<td><a href="javascript:insertTags('ṫ','','')">ṫ</a></td>
<td style="vertical-align: top;"><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ẋ','','')">ẋ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('ż','','')">ż</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ė','','')">Ė</a></td>
<td><a href="javascript:insertTags('İ','','')">İ</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ṡ','','')">Ṡ</a></td>
<td><a href="javascript:insertTags('Ṫ','','')">Ṫ</a></td>
<td style="vertical-align: top;"><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ẋ','','')">Ẋ</a></td>
<td><br>
</td>
<td><a href="javascript:insertTags('Ż','','')">Ż</a></td>
</tr>
<tr>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('ı','','')">ı</a></td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><br>
</td>
<td><a href="javascript:insertTags('�','','')">ß</a></td>
</tr>
<tr>
<td><a href="javascript:insertTags('ɑ','','')">ɑ</a></td>
<td><a href="javascript:insertTags('ɛ','','')">ɛ</a></td>
<td><a href="javascript:insertTags('ɪ','','')">ɪ</a></td>
<td><a href="javascript:insertTags('ɔ','','')">ɔ</a></td>
<td><a href="javascript:insertTags('ʊ','','')">ʊ</a></td>
<td><a href="javascript:insertTags('ə','','')">ə</a></td>
<td><a href="javascript:insertTags('�','','')">æ</a></td>
<td><a href="javascript:insertTags('ɜ','','')">ɜ</a></td>
<td><a href="javascript:insertTags('ɯ','','')">ɯ</a></td>
<td><a href="javascript:insertTags('ʌ','','')">ʌ</a></td>
<td><a href="javascript:insertTags('ʏ','','')">ʏ</a></td>
<td><a href="javascript:insertTags('�','','')">ø</a><br>
</td>
<td><a href="javascript:insertTags('ɐ','','')">ɐ</a></td>
<td><a href="javascript:insertTags('ɵ','','')">ɵ</a></td>
<td><a href="javascript:insertTags('ɒ','','')">ɒ</a> </td>
<td><a href="javascript:insertTags('ː','','')">ː</a> </td>
<td><a href="javascript:insertTags('ɨ','','')">ɨ</a></td>
<td><a href="javascript:insertTags('ɔ̃','','')">ɔ̃</a></td>
<td><a href="javascript:insertTags('ɜ̃','','')">ɜ̃</a></td>
<td><a href="javascript:insertTags('œ̃','','')">œ̃</a></td>
<td><a href="javascript:insertTags('ʉ','','')">ʉ</a></td>
<td><a href="javascript:insertTags('ʀ','','')">ʀ</a> </td>
<td><a href="javascript:insertTags('ɻ','','')">ɻ</a> </td>
<td><a href="javascript:insertTags('ɾ','','')">ɾ</a> </td>
<td><a href="javascript:insertTags('ɴ','','')">ɴ</a> </td>
<td><a href="javascript:insertTags('ŋ','','')">ŋ</a> </td>
<td><a href="javascript:insertTags('ɲ','','')">ɲ</a> </td>
<td><a href="javascript:insertTags('ɱ','','')">ɱ</a> </td>
<td><a href="javascript:insertTags('γ','','')">γ</a> </td>
<td><a href="javascript:insertTags('ɦ','','')">ɦ</a> </td>
<td><a href="javascript:insertTags('ʝ','','')">ʝ</a></td>
<td><a href="javascript:insertTags('ɫ','','')">ɫ</a> </td>
<td><a href="javascript:insertTags('ʎ','','')">ʎ</a> </td>
<td><a href="javascript:insertTags('œ','','')">œ</a></td>
<td><a href="javascript:insertTags('ʃ','','')">ʃ</a> </td>
<td><a href="javascript:insertTags('�','','')">ð</a> </td>
<td><a href="javascript:insertTags('θ','','')">θ</a> </td>
<td><a href="javascript:insertTags('ɟ','','')">ɟ</a> </td>
<td><a href="javascript:insertTags('φ','','')">φ</a> </td>
<td><a href="javascript:insertTags('β','','')">β</a> </td>
<td><a href="javascript:insertTags('�','','')">æ</a></td>
<td><a href="javascript:insertTags('ʤ','','')">ʤ</a> </td>
<td><a href="javascript:insertTags('ʧ','','')">ʧ</a> </td>
<td><a href="javascript:insertTags('ʒ','','')">ʒ</a> </td>
<td><a href="javascript:insertTags('ɥ','','')">ɥ</a> </td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="vertical-align: top;"><br>
</td>
</tr>
</tbody>
</table>

Here it ends.

</body>
</html>

Polyglot


Version: unspecified
Severity: normal

Details

Reference
bz1151

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:05 PM
bzimport added a project: CharInsert.
bzimport set Reference to bz1151.
bzimport added a subscriber: Unknown Object (MLST).

Please don't cut and paste large amounts of code into the comment field; it damages formatting and
makes it hard to read.

Instead, attach it as a file. (You have to file the bug first, then attach files.)

  • Bug 1167 has been marked as a duplicate of this bug. ***

I've added a <charinsert> extension which can be used to add the inserter tags. A complete table like this can be built from those.

See the simpler example at: http://en.wikipedia.org/wiki/MediaWiki:Copyrightwarning

On en.wiktionary I've added some javascript to select via dropdown list a subset
of all the characters available for charinsert:

http://en.wiktionary.org/wiki/MediaWiki_talk:Monobook.js
http://en.wiktionary.org/wiki/MediaWiki_talk:Copyrightwarning

epriestley added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:21 AM