Help:WikiHiero_syntax

Help:WikiHiero syntax

Help:WikiHiero syntax


"WikiHiero" is a PHP script to render Egyptian hieroglyphs as PNG images. Since Egyptian hieroglyphs are currently only partially supported by Unicode, this is the only way of rendering hieroglyphs in article texts short of uploading custom images.

The script is invoked by the <hiero> tag. For example, <hiero>A</hiero> gets you the "Aleph" hieroglyph,

A

The <hiero> tag produces an HTML table (of class='mw-hierotable') that will separate the surrounding text into paragraphs. For inline WikiHiero images, manually add <div> tags around the paragraph and <span> tags around the hieroglyphs.

For example, the code:

<div>[[Aleph]] is thought to be derived from the West Semitic word for "[[ox]]", and its shape is ultimately based on a [[Egyptian hieroglyphs|hieroglyph]] depicting an ox's head, <span style="display:inline-block"><hiero>F1</hiero></span>, in Egyptian reading a [[Egyptian biliteral signs|biliteral sign]] with the phonetic value {{lang|egy-Latn|ı͗ḥ}}.</div>

produces:

Aleph is thought to be derived from the West Semitic word for "ox", and its shape is ultimately based on a hieroglyph depicting an ox's head,
F1
, in Egyptian reading a biliteral sign with the phonetic value ı͗ḥ.

(If the paragraph is set off with a colon, pound sign or asterisk, the <div> tags are not necessary.)

Template {{hiero}} is intended for boxes containing hieroglyphic script.

See mw:Extension:WikiHiero for the project page on MediaWiki.

Hieroglyphs

There are two ways of encoding hieroglyphs:

  • using Gardiner's sign list code (e.g. A12)
  • with the more frequent phonemes (e.g. xA)

Gardiner's sign list

A hieroglyph is encoded by:

  • a letter that represents the category
  • a number that represents rank within the category

NB until the appropriate software is enabled, the encoding will be displayed instead of the hieroglyph.

A. Man and his Occupations

Expected quantity: 55

More information A1, A2 ...

B. Woman and her Occupations

Expected quantity: 7

More information B1, B2 ...

C. Anthropomorphic Deities

Expected quantity: 9

More information C1, C2 ...

D. Parts of the Human Body

Expected quantity: 63

More information D1, D2 ...

E. Mammals

Expected quantity: 34

More information E1, E2 ...

F. Parts of Mammals

Expected quantity: 52

More information F1, F2 ...

G. Birds

Expected quantity: 54

More information G1, G2 ...

H. Parts of Birds

Expected quantity: 8

More information H1, H2 ...

I. Amphibious Animals, Reptiles, etc.

Expected quantity: 15

More information I1, I2 ...

J. None

There is no J category, perhaps to avoid confusion with I.

K. Fish and Parts of Fish

Expected quantity: 7

More information K1, K2 ...

L. Invertebrates and Lesser Animals

Expected quantity: 7

More information L1, L2 ...

M. Trees and Plants

Expected quantity: 44

More information M1, M2 ...

N. Sky, Earth, Water

Expected quantity: 42

More information N1, N2 ...

O. Buildings, Parts of Buildings, etc.

Expected quantity: 51

More information O1, O2 ...

P. Ships and Parts of Ships

Expected quantity: 11

More information P1, P2 ...

Q. Domestics and Funerary Furniture

Expected quantity: 7

More information Q1, Q2 ...

R. Temple Furniture and Sacred Emblems

Expected quantity: 25

More information R1, R2 ...

S. Crowns, Dress, Staves, etc.

Expected quantity: 45

More information S1, S2 ...

T. Warfare, Hunting, Butchery

Expected quantity: 35

More information T1, T2 ...

U. Agriculture, Crafts, and Professions

Expected quantity:

More information U1, U2 ...

V. Rope, Fiber, Baskets, Bags, etc.

Expected quantity: 38

More information V1, V2 ...

W. Vessels of Stone and Earthenware

Expected quantity: 25

More information W1, W2 ...

X. Loaves and Cakes

Expected quantity: 8

More information X1, X2 ...

Y. Writings, Games, Music

Expected quantity: 8

More information Y1, Y2 ...

Z. Strokes, Signs derived from Hieratic, Geometrical Figures

Expected quantity: 11

More information Z1, Z2 ...

Aa. Unclassified

Expected quantity: 31

More information Aa1, Aa2 ...

Phonemes

Codes

Codes are characters that:

  • Separate hieroglyphs
  • Indicate the organization of the hieroglyphs in space (that is, the position of hieroglyphs in a block)

Separator

The official hieroglyph separator is the hyphen character ("-", also called block separator) but you are also allowed to use a space because it is a widespread practice.

Example

More information correct, allowed ...

Superposition

To superpose hieroglyphs, use the colon character (":") instead of the hyphen.

Example

More information normal layout, superposed ...

Juxtaposition

To juxtapose hieroglyphs, use the asterisk character ("*"). Juxtaposing hieroglyphs is only relevant when they are part of a block which is superposed.

Example

More information normal layout, juxtaposed (same as normal layout) ...

End of line

To make a new line of text, use the exclamation character ("!"). Normally, the "end-of-line" must be surrounded by separators (as -!-), but space or nothing are also allowed.

Examples

More information correct, allowed ...

Orientation

Asymmetrical characters may be reversed by appending the virgule /. This does not change the direction of the text.

A few characters may be rotated by appending 'V' for 'vertical'.

A character may be raised or lowered by pairing it with H_SPACE.

Examples

More information Default, Reversed orientation ...

Note that the Gardiner number for the rotated form, "Y1a", is not supported.

Cartouche

A cartouche is created with <-...->.

Examples

More information Default ...

See also


Share this article:

This article uses material from the Wikipedia article Help:WikiHiero_syntax, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.