In ancient times pictographs –wielded in the hands of the Pharaohs– ruled the world .
\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}
sile -o hieroglyphs-sile.pdf hieroglyphs-sile.sil
#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)= {([
_#(phonetics)_ ‘#translation’
#v(-0.5em)
#line(length: 100%)
#v(-0.5em)
#set text(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", "𓆣𓂋𓇋𓁛")
typst compile hieroglyphs-typst.typ hieroglyphs-typst.pdf