IPA filter: Difference between revisions
IPA filter | |
---|---|
Type | filter |
Set | N/A |
Downloads | https://moodle.org/plugins/view.php?plugin=filter_ipa |
Issues | coming soon |
Discussion | https://moodle.org/mod/forum/discuss.php?d=260164 |
Maintainer(s) | Kevin Wiliarty |
(adds details of using Gentium font) |
Tim Bahula 2 (talk | contribs) m (→Doulos: clean up, typos fixed: overriden → overridden) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
The [https://moodle.org/plugins/view.php?plugin=filter_ipa IPA Filter] (a third-party, contributed module) displays [http://en.wikipedia.org/wiki/X-sampa X-SAMPA] ASCII markup as Unicode IPA. The intent is to offer an easy and fast way to display the [ | {{Infobox plugin | ||
|type = filter | |||
|entry = https://moodle.org/plugins/view.php?plugin=filter_ipa | |||
|tracker = coming soon | |||
|discussion = https://moodle.org/mod/forum/discuss.php?d=260164 | |||
|maintainer = Kevin Wiliarty | |||
|float = right | |||
}} | |||
The [https://moodle.org/plugins/view.php?plugin=filter_ipa IPA Filter] (a third-party, contributed module) displays [http://en.wikipedia.org/wiki/X-sampa X-SAMPA] ASCII markup as Unicode IPA. The intent is to offer an easy and fast way to display the [https://www.internationalphoneticassociation.org/ International Phonetic Alphabet] in Moodle. | |||
== Usage == | |||
Enclose X-SAMPA in curly braces with hyphens outermost: "-{" opens a stretch of X-SAMPA, and "}-" closes the stretch. | |||
For example, if you enter a string like this: | |||
-{D@ "fIlt@r Iz "w@rkIN}- | |||
It should display as: | |||
ðə ˈfɪltər ɪz ˈwərkɪŋ | |||
A full list of the substitutions can be found at the [http://en.wikipedia.org/wiki/X-sampa Wikipedia X-SAMPA page] | |||
== Fonts == | == Fonts == | ||
Line 16: | Line 39: | ||
You will need to provide the root URL to your own Moodle site to replace "URL_TO_YOUR_MOODLE". | You will need to provide the root URL to your own Moodle site to replace "URL_TO_YOUR_MOODLE". | ||
=== Doulos === | |||
Doulos is a somewhat compact serif font without unnecessary flourishes. Doulos is listed second in the filter's 'font-family' so it will be overridden by Gentium if you are loading both. | |||
[http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=DoulosSILfont Doulos Sample] | |||
To use Doulos add a line like this to your Additional HTML: | |||
<code html5><link rel="stylesheet" href="URL_TO_YOUR_MOODLE/filter/ipa/doulos.css" type="text/css"></code> | |||
Make sure to replace "URL_TO_YOUR_MOODLE" with the relevant URL for your site. | |||
=== Tinos === | |||
Tinos is a stylish serif font and one of only a couple Google Web Fonts that handles the spacing for the combining marks well. To use Tinos you would add a line like this to your Additional HTML: | |||
<code html5><link rel="stylesheet" href="URL_TO_YOUR_MOODLE/filter/ipa/tinos.css" type="text/css"></code> | |||
Make sure to replace "URL_TO_YOUR_MOODLE" with the relevant URL for your site. | |||
[[Category:Filter]] | |||
[[es:Filtro IPA]] |
Latest revision as of 15:31, 11 August 2022
The IPA Filter (a third-party, contributed module) displays X-SAMPA ASCII markup as Unicode IPA. The intent is to offer an easy and fast way to display the International Phonetic Alphabet in Moodle.
Usage
Enclose X-SAMPA in curly braces with hyphens outermost: "-{" opens a stretch of X-SAMPA, and "}-" closes the stretch.
For example, if you enter a string like this:
-{D@ "fIlt@r Iz "w@rkIN}-
It should display as:
ðə ˈfɪltər ɪz ˈwərkɪŋ
A full list of the substitutions can be found at the Wikipedia X-SAMPA page
Fonts
In order to ensure that the IPA displays correctly -- especially the combining marks (diacritics) -- you will want to be sure to load at least one IPA-compatible web font. The Moodle IPA filter ships with two fonts that you can call, or you can use a carefully selected Google Web Font. In each case you will need to add a link to a particular style sheet in the HEAD area of Site administration > Appearance > Additional HTML.
Gentium
Gentium is the first font listed in the filter's 'font-family' so if you load it, it should display. Gentium is a slightly fanciful serif font that is very readable even at smaller sizes -- important when you are using unusual glyphs.
To use Gentium add something like this to your Additional HTML:
<link rel="stylesheet" href="URL_TO_YOUR_MOODLE/filter/ipa/gentium.css" type="text/css">
You will need to provide the root URL to your own Moodle site to replace "URL_TO_YOUR_MOODLE".
Doulos
Doulos is a somewhat compact serif font without unnecessary flourishes. Doulos is listed second in the filter's 'font-family' so it will be overridden by Gentium if you are loading both.
To use Doulos add a line like this to your Additional HTML:
<link rel="stylesheet" href="URL_TO_YOUR_MOODLE/filter/ipa/doulos.css" type="text/css">
Make sure to replace "URL_TO_YOUR_MOODLE" with the relevant URL for your site.
Tinos
Tinos is a stylish serif font and one of only a couple Google Web Fonts that handles the spacing for the combining marks well. To use Tinos you would add a line like this to your Additional HTML:
<link rel="stylesheet" href="URL_TO_YOUR_MOODLE/filter/ipa/tinos.css" type="text/css">
Make sure to replace "URL_TO_YOUR_MOODLE" with the relevant URL for your site.