Extension:WikiHiero

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
WikiHiero

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Enables the use of hieroglyphs with additional syntaxes
Author(s)Template:Extension#username Guillaume Blanchard, Max Semenik and others
LicenseTemplate:Extension#license GPL
Download
ExampleTemplate:Extension#example
A2 B4 C6 D8
TagsTemplate:Extension#tags
<hiero>
Hooks usedTemplate:Extension#hook
ParserFirstCallInit
BeforePageDisplay

Translate the WikiHiero extension if it is available at translatewiki.net

Check usage and version matrix;

Issues:

Open tasks · Report a bug

The WikiHiero extension allows to add Ancient Egyptian hieroglyphs from a text written according to the Hieroglyph coding manual syntax.

Syntax[edit]

Look at the Hieroglyph coding manual for details.

In brief:

- separator
: subdivision
* juxtaposition
! end of line

Each hieroglyph is given a unique code:

  • A letter [A-Z + Aa] that represents the hieroglyph category (human, god, bird, etc.)
  • A number that represents the rank in this category [1-...]

This unique code is an extension of Gardiner's list of hieroglyph.
The Hieroglyph coding manual also allows using the more common phonemes as well as unique code.

For details, see WikiHiero's syntax.

Installation[edit]

  • Download and place the file(s) in a directory called wikihiero in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/wikihiero/wikihiero.php";
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Testing

Then try with some example wiki text like this:

<hiero>A1</hiero> which should produce the following output:

A1

Licence[edit]

Version history[edit]

Version number Details
0.2.0 New parser
0.2.1 Fix link to hieroglyph tables
0.2.2
  • Fix hieroglyph size when into a cartouche
  • Fix phonemes table to use 'Aa' category rather than 'J'
0.2.3 Add Swedish interface
0.2.4 Add Japanese and Dutch interface
0.2.5
  • Fix Swedish interface
  • Create a function to handle language entries lack
  • Change 'height' option by a 'scale' (in percentage)
  • Add a 'line' option to split text lines
0.2.6 * Add source annotation.
  • Support of both '-' and ' ' as separator
0.2.7
  • Add parsing process duration.
  • Add download section
0.2.8
  • Add Chinese interface.
  • Minor fix
0.2.9 This version is running at http://test.wikipedia.org/
  • Add Esperanto interface.
  • Fix cartouche size
0.2.10
  • Add Interlingua and Portuguese interface.
  • Fix cartouche images
0.2.11 XHTML 1.0 validation
0.2.12
0.2.15 incoming...
  • Add Català, Deutsch, Español and Latina interface.
  • Add a setting file for project specific features.
1.0 Major rewrite, now uses HTML5, CSS and written using OOP. Introduces a new special page, Hieroglyphs, for interactive experimentation with markup.

Todo list[edit]

  • Add number converter
  • Add space as a separator (like '-')
  • Add bracket support
  • Fix cartouche rendering (90%)
  • Optimize parser (avoid buffer reallocation)
  • Comment the source
  • Add individual glyph scale
  • Create CSS only rendering version (30%)
  • Add support for shading (need CSS)
  • Add individual glyph rotation (for image rendering)
  • Add support for comment and annotation code
  • Create image rendering (for far future)
  • Add red font

See also[edit]

External links[edit]