最近有两位顾问希望在项目笔记中使用表情符号(emoji),因为人们已经习惯了在短信中使用它们。前几天我发现,一些表情符号包含在 Unicode 标准中,因此如果您知道 Unicode 值或设置了自动更正文件,就可以在 Paratext 中输入它们。
这些表情符号位于 Unicode 基本多文种平面(BMP)之外,因此它们的代码超过四位,这要求您在输入 ALT-X 时输入 8 位数字(使用前导 0)。对于自动更正,您必须输入所谓的代理对(surrogate pair),即两个特殊的 4 位 Unicode 值。
一些示例:
表情符号

其 Unicode 值为:1f600
自动更正中的代理对代码为:\uD83D\uDE00
表情符号

其 Unicode 值为:1f44d
代理对代码为 \uD83D\uDC4D
表情符号

其 Unicode 值为:1f606
代理对代码为 \uD83D\uDE06
自动更正文件示例:
:)–>\uD83D\uDE00
^t–>\uD83D\uDC4D
^)–>\uD83D\uDE06
Unicode 表情符号完整图表:
https://unicode.org/emoji/charts/full-emoji-list.html#1f606
使用此页面计算自动更正文件中的代理对代码
http://russellcottrell.com/greek/utilities/SurrogatePairCalculator.htm
(在自动更正文件中的每个代码前添加 \u)
Two consultants have recently wished for the ability to use emojis in project notes, since people are used to using them in text messages. I discovered the other day that some Emojis are in the Unicode standard and so they can be entered in Paratext if you know the Unicode value or set up an autocorrect file.
The emojis are outside the Basic MultiLingual Plane (BMP) of Unicode, so they have more than four digits in their code, which requires you to type 8 digits (use leading 0s) for ALT-X. For an autocorrect, you have to enter what is called the surrogate pair, which is two special 4 digit Unicode values.
Some examples:
The emoji

has a Unicode value of: 1f600
The surrogate pair code in autocorrect is: \uD83D\uDE00
The emoji

has a Unicode value of:1f44d
The surrogate code pair is \uD83D\uDC4D
The emoji

has a Unicode value of: 1f606
The surrogate code pair is \uD83D\uDE06
A sample Autocorrect file:
:)–>\uD83D\uDE00
^t–>\uD83D\uDC4D
^)–>\uD83D\uDE06
The full chart of Unicode emojis:
https://unicode.org/emoji/charts/full-emoji-list.html#1f606
Use this page to calculate the surrogate pair codes for an autocorrect file
http://russellcottrell.com/greek/utilities/SurrogatePairCalculator.htm
(add \u before each code in the Autocorrect file)
机器翻译自 English