windows NSIS 的上标文本格式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3283953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 14:52:32  来源:igfitidea点击:

Superscript text formatting for NSIS

windowsunicodensissuperscript

提问by Lucas

I am developing an NSIS installer for a product that has a superscript in its name. Is it possible to encode superscript text in the installer script?

我正在为名称中带有上标的产品开发 NSIS 安装程序。是否可以在安装程序脚本中对上标文本进行编码?

In particular, I'd like to get the Name, BrandingText and Caption to display the superscript.

特别是,我想让 Name、BrandingText 和 Caption 显示上标。

I would be willing to switch to the NSIS Unicodebuild if that would definitively solve the issue.

如果这能最终解决问题,我愿意切换到NSIS Unicode版本。

回答by Chris Morgan

? ??????'? ???? ??, ? ???? ????? ????? ?????????????.?? ???? ? ????? ??? ????!

? ??????'? ???? ??, ? ???? ????? ????? ??????????????????.?? ???? ? ????? ???????!

?? ????, ??. ???????, ????? ??? ??????? ?????? ??? ??????? ??????????. ???? ??? ??? ?????????? ???'?? ???? ?????? ?? ????, ????? ???? ????://??.?????????.???/????/S????????_???_???????????#???????:

?? ????, ??. ???????, ????? ?????????? ???????????????? ???????????????? ??????????????????'?? ???? ???????? ????, ????? ???? ????://??.?????????.???/????/S????????_???_??????? ????#???????

??????? ??? ?????? ???????????? ???????: ? 1 2 3 ? ? ? ? ? ? ? ? ? ? ?

??????? ????????????????????? ???????: ? 1 2 3 ? ? ? ? ? ? ? ? ? ? ?

????????? ???????? ?????? q: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

????????? ???????? ??????问:?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

??????? ????????? ????? ????????: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??? C, F, Q, S, X, Y, Z?

??????? ????????? ????? ????????: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???C、F、Q、S、X、Y、Z?

???'? ??? ?? ??? ??????? ?????????? ???? ???????; ? ???? ?? ???? ??????????.

???'? ????? ?????????? ????????????? ???????; ? ???? ?? ???? ????????????

?? ??? ??? ?????? ???? ??????? ?? ??? ??? ? ????, ??? ??????? ????????? ?? ??? ?????? ?????? ????? ?? ??? ???? ???? ?? ?????? ???? ??? ??? ???? ????'?? ???????? ??. ????????? ?'? ?????? ??? ?? ??? ??????? ???? ????????? ?? ???? ?2??? ?? X?? ??? ?????? ?? ??, ?????????? ???? ?????? ??? ????? ???? ?????, ?? ???? ??? ??? ? ???? ?? ???? ??'? ????? ?? ???? ???? ? ??? ??? ?????? ?? ????? ?????? ??? ???????????.

?? ???????????????? ??????? ?? ??????? ????, ??? ??????? ????????? ?? ???????????????????? ?? ??????? ???? ?? ?????????? ?????????? ????'?? ???????? ??. ????????? ?'? ??????????? ?????????? ???? ????????? ?? ???? ?2????? X????????????? ??, ?????????? ???? ?????????????? ???? ?????, ?? ???? ??????? ???? ?? ???? ??'? ????? ?? ???? ???? ? ?????????????? ????? ??????????????????????



English translation:

英文翻译:

As such, no. However, there are Unicode glyphs for certain characters. Here are the characters you're most likely to want, taken from http://en.wikipedia.org/wiki/Subscript_and_superscript#Unicode:

因此,没有。但是,某些字符有 Unicode 字形。以下是您最可能想要的字符,取自http://en.wikipedia.org/wiki/Subscript_and_superscript#Unicode

Numbers and common mathematical symbols: ? 1 2 3 ? ? ? ? ? ? ? ? ? ? ?

数字和常用数学符号: ? 1 2 3 ? ? ? ? ? ? ? ? ? ? ?

Lowercase alphabet except q: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

除 q 外的小写字母:?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

Limited uppercase latin alphabet: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (no C, F, Q, S, X, Y, Z)

有限的大写拉丁字母:?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (无 C、F、Q、S、X、Y、Z)

Don't ask me why certain characters were omitted; I have no idea whatsoever.

不要问我为什么省略了某些字符;我什么都不知道。

As you may notice (try zooming in and out a bit), the precise rendering of the glyphs varies based on the font used to render them and the size they're rendered at. Therefore I'd advise you to try running your installer on both (2000 or XP) and (Vista or 7), preferably with normal and large font sizes, so that you get a feel of what it's going to look like - you may decide it looks better not superscript.

您可能会注意到(尝试稍微放大和缩小),字形的精确渲染根据用于渲染它们的字体和它们渲染的大小而有所不同。因此,我建议您尝试在(2000 或 XP)和(Vista 或 7)上运行安装程序,最好使用普通字体和大字体,以便您了解它的外观 - 您可以决定最好不要上标。

????? ??? ?????????? ?????????.?

????? ?????????????????????.?



Summary:these glyphs of themselves will work fine in Unicode NSIS, but check to see how good font support is.

总结:这些自身的字形在 Unicode NSIS 中可以正常工作,但请检查字体支持有多好。