mdc2html : a Manuel de Codage to HTML converter

Examples

  1. A web page with embedded MdeC - a Commemorative Scarab of Amenhotep III
  2. An email containing Manuel de Codage text

A web page with embedded MdeC

This is an extract from a description of a Commemorative Scarab of Amenhotep III. It includes the text and a translation. It is taken from a pamphlet written for the "Life and Death under the Pharaohs" exhibition from the National Museum of Antiquities in Leiden, which toured Australia in 1999. The full text can be found in the files scarab_full.txt and scarab_full.html.

It is written in HTML and the +H/-H convention is used to embed the hieroglyphic text in MdeC format. This has been expanded using mdc2html:

perl   mdc2html.pl     scarab.txt   >   scarab.html
The input looks like this -
<html>
<head>
</head>
<body>
<H1> Commemorative Scarab of Amenhotep III </H1>

<H4> NewKingdom, Dynasty 18 (c. 1390 BC) </H4>

More than 200 commemorative scarabs are known from the reign of
Amenhotep III (c. 1391-1353 BC).
They are divided into five groups according to the events that they
commemorate.
<p>
This object is an example of a marriage scarab, so called because
they bear an inscription announcing Amenhotep III's marriage to Queen Tiy.

.....

+H -M23-N41:t-G36:r-t-<-U33-Z4-i-i->-S34-U33-r:n:n-t:f:O34 -i-i-w-i-A-A42-r:n:n-(G14*t):O34-T-w -i-A-B1-N41:t-B1-p-w-t:n-M23-t:n-n:M3:x -t:D40-(t*U30):N37-(Z9*N21):f-M24-(Z4:N21)-r:D28-Z1-r:Z1 -i-i-T14-N25-V22:(t*Z4)-N21:Z4-(n:O4)-A -r:Z4-n:A-T14-N25 -H The great Royal-wife Tiy, may she live.<br> The name of her father is Yuia, the name of her mother is Tjuia.<br> She is the wife of the mighty king whose southern boundary is as far as Karoy, whose northern is as far as Naharin.<br> </body>

The result looks like this:

Commemorative Scarab of Amenhotep III

NewKingdom, Dynasty 18 (c. 1390 BC)

More than 200 commemorative scarabs are known from the reign of Amenhotep III (c. 1391-1353 BC). They are divided into five groups according to the events that they commemorate.

This object is an example of a marriage scarab, so called because they bear an inscription announcing Amenhotep III's marriage to Queen Tiy.

.....

M23
N41
t (X1)
G36
r (D21)
t (X1)
<1
U33
Z4
i (M17)
i (M17)
2>
S34
U33
r (D21)
n (N35)
n (N35)
t (X1)
f (I9)
O34
i (M17)
i (M17)
w (G43)
i (M17)
A (G1)
A42
r (D21)
n (N35)
n (N35)
G14
t (X1)
O34
T (V13)
w (G43)
i (M17)
A (G1)
B1
N41
t (X1)
B1
p (Q3)
w (G43)
t (X1)
n (N35)
M23
t (X1)
n (N35)
n (N35)
M3
x (Aa1)
t (X1)
D40
t (X1)
U30
N37
Z9
N21
f (I9)
M24
Z4
N21
r (D21)
D28
Z1
r (D21)
Z1
i (M17)
i (M17)
T14
N25
V22
t (X1)
Z4
N21
Z4
n (N35)
O4
A (G1)
r (D21)
Z4
n (N35)
A (G1)
T14
N25
The great Royal-wife Tiy, may she live.
The name of her father is Yuia, the name of her mother is Tjuia.
She is the wife of the mighty king whose southern boundary is as far as Karoy, whose northern is as far as Naharin.

An Email

Here is an email from the Ancient Egyptian Mailing List that contains embedded MdeC. It is from a prolific contributor, Stephen Fryer:
Here is a (reasonably) straightforward passage for you to read.  It is in
Manuel de Codage format, and should be able to display OK with WinGlyph or
MacScribe.

Admiral Ahmose relates his deeds

cut here
------------------------------------------------------
Hr:r:pt  D33:n-i-t-i-A1-Z3  N12:ms*s D&d-f D&d-A1-n-t:n:Z2 r:T-A1-Z3
nb:t  D37-A1 r:x:Y1-t:n:Z2 Hz-Hz-Hz xpr-r:t n:A1  E9-w-a:D40-k-w-i !
M nbw:N33A z:p*zp 4-3 x*t:f Hr:1 n N16 r Dr:r-f Hm-A1-Z3 Hm*t*B1:Z2 !
r mi-t:t i-r:Z2  D63-Y1v-k-w-i M A-H-t*N21:Z2 aSA:Z2 wr:r-t !
i-w r:n-A1 n q:n:D40 M ir:t n:f  D35:n H-t:tm-m wr M !
N16 p:n D&t&tA ini-n:A1 wr:r-i-t-i-T17 z:z-m-E6-s n:t*y Hr:r-s M !
s-q:Aa7-A13-anx !!
-------------------------------------------------------
cut here


Stephen Fryer
Lund Computer Services


We can use mdc2html thus:
perl   mdc2html.pl     FORMATTED=Y   PRINT_MdeC=Y   fryer.txt   >   fryer.html
to generate the HTML below.

We have used two options here:
FORMATTED=Y means add a <BR> after every input line to preserved the line formatting of the text file in the HTML.
PRINT_MdeC=Y means output the original MdeC as well as the hieroglyphs.

Result:

Here is a (reasonably) straightforward passage for you to read. It is in
Manuel de Codage format, and should be able to display OK with WinGlyph or
MacScribe.

Admiral Ahmose relates his deeds

cut here
------------------------------------------------------
Hr:r:pt D33:n-i-t-i-A1-Z3 N12:ms*s D&d-f D&d-A1-n-t:n:Z2 r:T-A1-Z3
Hr (D2)
r (D21)
pt (N1)
D33
n (N35)
i (M17)
t (X1)
i (M17)
A1
Z3
N12
ms (F31)
s (S29)
D&d
f (I9)
D&d
A1
n (N35)
t (X1)
n (N35)
Z2
r (D21)
T (V13)
A1
Z3
nb:t D37-A1 r:x:Y1-t:n:Z2 Hz-Hz-Hz xpr-r:t n:A1 E9-w-a:D40-k-w-i !
nb (V30)
t (X1)
D37
A1
r (D21)
x (Aa1)
Y1
t (X1)
n (N35)
Z2
Hz (W14)
Hz (W14)
Hz (W14)
xpr (L1)
r (D21)
t (X1)
n (N35)
A1
E9
w (G43)
a (D36)
D40
k (V31)
w (G43)
i (M17)
M nbw:N33A z:p*zp 4-3 x*t:f Hr:1 n N16 r Dr:r-f Hm-A1-Z3 Hm*t*B1:Z2 !
M (Aa13)
nbw (S12)
N33A
z (O34)
p (Q3)
zp (O50)
x (Aa1)
t (X1)
f (I9)
Hr (D2)
Z1
n (N35)
N16
r (D21)
Dr (M36)
r (D21)
f (I9)
Hm (U36)
A1
Z3
Hm (U36)
t (X1)
B1
Z2
r mi-t:t i-r:Z2 D63-Y1v-k-w-i M A-H-t*N21:Z2 aSA:Z2 wr:r-t !
r (D21)
mi (W19)
t (X1)
t (X1)
i (M17)
r (D21)
Z2
D63
Y1v (Y1V)
k (V31)
w (G43)
i (M17)
M (Aa13)
A (G1)
H (V28)
t (X1)
N21
Z2
aSA (I1)
Z2
wr (G36)
r (D21)
t (X1)
i-w r:n-A1 n q:n:D40 M ir:t n:f D35:n H-t:tm-m wr M !
i (M17)
w (G43)
r (D21)
n (N35)
A1
n (N35)
q (N29)
n (N35)
D40
M (Aa13)
ir (D4)
t (X1)
n (N35)
f (I9)
D35
n (N35)
H (V28)
t (X1)
tm (U15)
m (G17)
wr (G36)
M (Aa13)
N16 p:n D&t&tA ini-n:A1 wr:r-i-t-i-T17 z:z-m-E6-s n:t*y Hr:r-s M !
N16
p (Q3)
n (N35)
D&t&tA
ini (W25)
n (N35)
A1
wr (G36)
r (D21)
i (M17)
t (X1)
i (M17)
T17
z (O34)
z (O34)
m (G17)
E6
s (S29)
n (N35)
t (X1)
y (Z4)
Hr (D2)
r (D21)
s (S29)
M (Aa13)
s-q:Aa7-A13-anx !!
s (S29)
q (N29)
Aa7
A13
anx (S34)
-------------------------------------------------------
cut here

Stephen Fryer
Lund Computer Services