How can I enter Unicode bold Fraktur math characters with LuaTeX?

I want to write a paper with Old/Biblical-Hebrew (Tiro) and Old-Greek words in it. Now I have made my first experience with LuaTeX and it worked well. But I also want to use this symbol http://codepoints.net/U+1D578 - and I totally fail. Which way would you recommend? Only type it into the editor doesn't work. There is no error, but in the PDF is an empty space and no "MATHEMATICAL BOLD FRAKTUR CAPITAL M". I need exactly this one, because it stands for an old source.

\documentclass{scrartcl}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\newfontfamily\hebfont[Script=Hebrew, Scale=MatchUppercase, Ligatures=TeX]{Ezra SIL}
\newcommand{\textheb}[1]{\bgroup\luatextextdir TRT\hebfont #1\egroup}

\begin{document}

𝕸  which is U+1D578 MATHEMATICAL BOLD FRAKTUR CAPITAL M

some Hebrew: \textheb{ יִשְׁאַג }

\end{document}

-
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Christian Hupfer Mar 8 '14 at 15:33
Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – Christian Hupfer Mar 8 '14 at 15:39
Try using the math symbol between \$ signs (ie in math mode). Otherwise you need to define a fallback font for Times New Roman that has the math glyph (I don't know how to define fallback fonts in latex) – Aditya Mar 8 '14 at 16:19
if you want to use this in its mathematical context just use that character and include a suitable math font (eg stix). If you want a bold text fractur just use a normal M and choose a bold fraktur font. – David Carlisle Mar 8 '14 at 16:21

1 Answer

You have to use a font that has the glyph, for instance STIX. For just a few characters, the simplest way is to use newunicodechar:

\documentclass{scrartcl}
\usepackage{fontspec,newunicodechar}
\setmainfont{Times New Roman}
\newfontfamily\stix[Ligatures=TeX]{STIX}

\newunicodechar{𝕸}{{\stix𝕸}}

\begin{document}

𝕸  which is U+1D578 MATHEMATICAL BOLD FRAKTUR CAPITAL M

\end{document}


I removed the Hebrew part, which is irrelevant.

-
I had to change "STIX" in "STIXGeneral" - but then it works perfectly - thanks a lot! – nomis Mar 8 '14 at 17:07
@nomis In the last release, the font is called STIX – egreg Mar 8 '14 at 17:11