[v0.14.0 Bug] Emoji and Text Presentations do not work properly, FE0E/FE0F

Please take a look at Chapter 4 Presentation Style of Unicode Tech Standard #51

After 2016 Unicode 9.0, we can use \u{fe0e} to switch a emoji char between emoji style or text style. But it seems do not work properly in Typst, no matter what font used.

#set text(font:"Liberation Serif"/*"Noto Color Emoji"*/)
\u{2615}\u{fe0e} \u{2615}\u{fe0f}
\u{1facd}\u{fe0e} \u{1facd}\u{fe0f}
// There should be four different chars, but always two!

See Feature request: support monochrome (VS15) emoji.

@Andrew @MDLC01 @RogerBW But \u{fe0e} , \u{fe0f} can not work yet, even in new version 0.14.0.

Did you read the note mentioned?

Well that commend is mentioned 3 layers deep :neutral_face:, thanks for posting it here.

@Andrew I read them for sure! To summarize:

  • The test sets of Typst is very useful. But I read old version, the symbol.typ file totally 158 lines, and there’re no line#195.
  • The typst/pull#6875 and codex/pull#114 talk about the symbol or emoji bulti-in library, not about the markup mode [\u{}].

By “at some point”, will \u{fe0e},\u{fe0f} get work properly in the markup mode soon, e.g. v0.14.1 ?

Using dedicated Unicode code point syntax in markup is no different from using pre-defined symbols from sym/emoji modules. If they don’t work, neither will explicit Unicode code points in markup mode. E.g., sym.mars already holds 2 Unicode code points.

I don’t know when this will be fixed.

Also see How to post in the Questions category - #7 by Andrew.

1 Like