Hieroglyphs

In ancient times pictographs –wielded in the hands of the Pharaohs– ruled the world .

sile

Download: ( source | pdf )

Input document

\begin[papersize=a6]{document}
\use[module=packages.rules]
\nofolios
\neverindent
\set[parameter="document.parskip",value="1bs"]
\font[family=Libertinus Serif,size=16pt]
\begin{lua}
local package = pl.class(SILE.packages.base)
package._name = "hieroglyphics"

function package:registerCommands ()
   self:registerCommand("egyp-sample", function (_, content)
      SILE.call("font", { language = "und", style = "Italic" }, { content[1] })
      SILE.call("font", { language = "en" }, { " ‘" .. content[2] .. "’" })
      SILE.call("skip", { height = "-4ex" })
      SILE.call("hrule", { height = "1pt", width = "100%lw" })
      SILE.call("skip", { height = "1ex" })
      SILE.call("font", { family = "Egyptian Text", language = "egyp", size = "3ex" }, { content[3] })
   end)
end

return package
\end{lua}

\begin{raggedright}
\egyp-sample{{mdw.t-km.t}{Egyptian language}{𓌃𓂧𓐰𓏏𓐱𓏯𓀁𓏪𓆎𓅓𓊖}}

\egyp-sample{{nfr}{fine, beautiful}{𓄤𓆑𓐰𓂋}}

\egyp-sample{{ḫprj}{Khepri}{𓆣𓐰𓂋𓇋𓁛}}
\end{raggedright}
\end{document}

Render command

$ sile -o hieroglyphs-sile.pdf hieroglyphs-sile.sil

typst

Download: ( source | pdf )

Input document

#set page(
  paper: "a6",
)
#set par(
  first-line-indent: 0pt,
  justify: false,
)
#set text(
  font: "Libertinus Serif",
  size: 16pt,
)

#let egyp-sample(phonetics, translation, str) = {
  (
    [
      #set text(lang: "und");_#(phonetics)_
      #set text(lang: "en");‘#translation’
      #v(-0.5em)
      #line(length: 100%)
      #v(-1em)
      #set text(lang: "egy", font: "Egyptian Text", size: 1.5em, fallback: false);#str
    ]
  )
}

#egyp-sample("mdw.t-km.t", "Egyptian language", "𓌃𓂧𓐰𓏏𓐱𓏯𓀁𓏪𓆎𓅓𓊖")

#egyp-sample("nfr", "fine, beautiful", "𓄤𓆑𓐰𓂋")

#egyp-sample("ḫprj", "Khepri", "𓆣𓐰𓂋𓇋𓁛")

Render command

$ typst compile hieroglyphs-typst.typ hieroglyphs-typst.pdf

glu

Download: ( source | pdf )

Input document

<html>
<head>
<style>
@page { size: A6; margin: 1cm; }
body { font-family: "Libertinus Serif"; font-size: 16pt; }
.label { border-bottom: 1pt solid black; margin-bottom: 0.5em; }
.egy { font-family: "Egyptian Text"; font-size: 1.5em; }
</style>
</head>
<body>
<p class="label"><i>mdw.t-km.t</i> ‘Egyptian language’</p>
<p class="egy">𓌃𓂧𓐰𓏏𓐱𓏯𓀁𓏪𓆎𓅓𓊖</p>

<p class="label"><i>nfr</i> ‘fine, beautiful’</p>
<p class="egy">𓄤𓆑𓐰𓂋</p>

<p class="label"><i>ḫprj</i> ‘Khepri’</p>
<p class="egy">𓆣𓐰𓂋𓇋𓁛</p>
</body>
</html>

Render command

$ glu --css all-system-fonts.css -o hieroglyphs-glu.pdf hieroglyphs-glu.html

pagedjs

Download: ( source | pdf )

Input document

<html>
    <head>
        <style>
          @page {
            size: A6;
            bleed: 0;
            margin: 1cm;
          }
          body {
            font-family: "Libertinus Serif";
            font-size: 16pt;
          }
          p.label {
            border-bottom: 1pt solid black;
            padding-bottom: 0.5em;
          }
          p[lang=egy] {
            font-family: "Egyptian Text";
            font-size: 1.5em;
            margin: 0;
          }
        </style>
    </head>
    <body>
        <p class="label"><i lang="und">mdw.t-km.t</i> 'Egyptian language'</p>
        <p lang="egy">𓌃𓂧𓐰𓏏𓐱𓏯𓀁𓏪𓆎𓅓𓊖</p>

        <p class="label"><i lang="und">nfr</i> 'fine, beautiful'</p>
        <p lang="egy">𓄤𓆑𓐰𓂋</p>

        <p class="label"><i lang="und">ḫprj</i> 'Khepri'</p>
        <p lang="egy">𓆣𓐰𓂋𓇋𓁛</p>
    </body>
</html>

Render command

$ pagedjs-cli -i hieroglyphs-pagedjs.html -o hieroglyphs-pagedjs.pdf