x 提升到 b 需要一个上标

发布于 2024-11-09 08:30:49 字数 129 浏览 5 评论 0原文

我需要一个上标来显示 x 提升到 b。

我能够显示 x raise 到 2(即 x 平方), 也 x 提高到 3 (即 x 立方体)..

但现在我需要使用上标显示 x 提高到 b ..

请帮忙..

I need a superscript for displaying x raise to b.

I was able to display x raise to 2 (i.e. x square),
also x raise to 3 (i.e. x cube)..

But now I need to display x raise to b using superscript..

Please help..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沦落红尘 2024-11-16 08:30:49

如果字体支持,您可以尝试 \u1D47 (ᵇ)。

请注意,在 Unicode 中,这并不是真正的“上标 b”,而是一个语音符号。查找富文本标签库以获得正确的解决方案。

a = ᵃ = \u1d43 (modifier letter small a)
b = ᵇ = \u1d47 (modifier letter small b)
c = ᶜ = \u1d9c (modifier letter small c)
d = ᵈ = \u1d48 (modifier letter small d)
e = ᵉ = \u1d49 (modifier letter small e)
f = ᶠ = \u1da0 (modifier letter small f)
g = ᵍ = \u1d4d (modifier letter small g)
h = ʰ = \u02b0 (modifier letter small h)
i = ⁱ = \u2071 (superscript latin small letter i)
j = ʲ = \u02b2 (modifier letter small j)
k = ᵏ = \u1d4f (modifier letter small k)
l = ˡ = \u02e1 (modifier letter small l)
m = ᵐ = \u1d50 (modifier letter small m)
n = ⁿ = \u207f (superscript latin small letter n)
o = ᵒ = \u1d52 (modifier letter small o)
p = ᵖ = \u1d56 (modifier letter small p)
q = n/a
r = ʳ = \u02b3 (modifier letter small r)
s = ˢ = \u02e2 (modifier letter small s)
t = ᵗ = \u1d57 (modifier letter small t)
u = ᵘ = \u1d58 (modifier letter small u)
v = ᵛ = \u1d5b (modifier letter small v)
w = ʷ = \u02b7 (modifier letter small w)
x = ˣ = \u02e3 (modifier letter small x)
y = ʸ = \u02b8 (modifier letter small y)
z = ᶻ = \u1dbb (modifier letter small z)

You could try \u1D47 (ᵇ) if the font supports.

Note that in Unicode this is not really intended as a "superscript b", but is a phonetic symbol. Find a rich text label library for the proper solution.

a = ᵃ = \u1d43 (modifier letter small a)
b = ᵇ = \u1d47 (modifier letter small b)
c = ᶜ = \u1d9c (modifier letter small c)
d = ᵈ = \u1d48 (modifier letter small d)
e = ᵉ = \u1d49 (modifier letter small e)
f = ᶠ = \u1da0 (modifier letter small f)
g = ᵍ = \u1d4d (modifier letter small g)
h = ʰ = \u02b0 (modifier letter small h)
i = ⁱ = \u2071 (superscript latin small letter i)
j = ʲ = \u02b2 (modifier letter small j)
k = ᵏ = \u1d4f (modifier letter small k)
l = ˡ = \u02e1 (modifier letter small l)
m = ᵐ = \u1d50 (modifier letter small m)
n = ⁿ = \u207f (superscript latin small letter n)
o = ᵒ = \u1d52 (modifier letter small o)
p = ᵖ = \u1d56 (modifier letter small p)
q = n/a
r = ʳ = \u02b3 (modifier letter small r)
s = ˢ = \u02e2 (modifier letter small s)
t = ᵗ = \u1d57 (modifier letter small t)
u = ᵘ = \u1d58 (modifier letter small u)
v = ᵛ = \u1d5b (modifier letter small v)
w = ʷ = \u02b7 (modifier letter small w)
x = ˣ = \u02e3 (modifier letter small x)
y = ʸ = \u02b8 (modifier letter small y)
z = ᶻ = \u1dbb (modifier letter small z)
抽个烟儿 2024-11-16 08:30:49

您可以通过在文本字符串中使用 html 标签,然后使用 NSAttributedString-Additions-for-HTML 可从 github 获取。

You can do this by using html <sup> tags in your text string and then having it displayed using NSAttributedString-Additions-for-HTML available from github.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文