Auto non-breaking space filter

Filters ::: filter_vowels
Maintained by Kamil ŁuczakKamil Łuczak
Auto change spaces after chosen one-letter conjunctions and prepositions or words into non-breaking space -   You can specify single characters and words after wchich space will be changed into non-breaking space.

Auto non-breaking space filter 1.2 (Build: 2020041501)

Moodle 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8
Released: Thursday, 16 April 2020, 6:06 AM

Vowels Filter

Description

One-letter conjunctions and prepositions (a, i, u, w, etc.) may remain at the end of the line in continuous text, while in book titles and their chapters they should be moved to the next line.

This principle is generally known. If a one-letter conjunction or preposition (i.e. so-called orphan, pendant, or hanging conjunction), type a, i, u, w, etc., appears at the end of a line. - It is better to move it to the next line. Leaving such words at the end of the line is not a mistake, but in practice it has been accepted to always move them, not only in the titles. It simply looks more aesthetic.

This filter changes all spaces between single character (like a i o u w z) to an   It is specially non-estetic on Polish sites.

So paragraph like this:

The quick brown fox jumps over a lazy dog.

Will be displayed as:

The quick brown fox jumps over a lazy dog.

Release notes

1.2

  • Code cleanup
  • Added unicode letters support (że,się,ów)
  • Optimized regex for better plugin filtering
  • Released for newer versions of Moodle

1.1

  • filtering inside html tags parameters bug fixed
  • added new function to change space into hard-space before selected words

1.0

This is first release of this filter so please report any bugs You found.

Requirements

There is no any special requirements for this filter.

Installation

Install the plugin like any other plugin to folder /filter/vowels.

If You're installing with Plugin installer using zip archive choose plugin type: Text filter (filter).

See http://docs.moodle.org/en/Installing_plugins for details on installing Moodle plugins.

Usage

First, activate the filter_vowels plugin in Site Administration -> Plugins -> Filters -> Manage filters then use filter settings to choose what letter/words should be glued to next word with non breaking character.

Settings

filter_vowels has a settings page to allow you to change the filter to only certain letters. You can also enable function that changes spaces after or/and before selected words into hard spaces.

Copyright

Written by Kamil Łuczak. kamil@limsko.pl www.limsko.pl

Version information

Version build number
2020041501
Version release name
1.2 (Build: 2020041501)
Can be updated from
1.0 (Build: 20150619) (2015061901), 1.1 (Build: 2015070901) (2015070901), 1.2 (Build: 2020041500) (2020041500)
Maturity
Stable version
MD5 Sum
20f60481a5e571fcab82da5e91784f81
Supported software
Moodle 2.6, Moodle 2.7, Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8
  • Latest release for Moodle 2.6
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1
  • Latest release for Moodle 3.2
  • Latest release for Moodle 3.3
  • Latest release for Moodle 3.4
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Filters

  1. Make sure you have all the required versions.
  2. Download and unpack the filter plugin.
  3. Place the folder (eg "myfilter") in the "filter" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation