在Inno Setup中的标准文本中的文字换行

huangapple go评论55阅读模式
英文:

Word wrapping in standard texts in Inno Setup

问题

我注意到一些语言,如英语和法语,在标准文本(欢迎屏幕等)中有自动换行,而一些使用西里尔字母的语言似乎没有。是否可以为这些语言启用自动换行,或者这是一个未实现的功能?

以下是保加利亚语的示例:
在Inno Setup中的标准文本中的文字换行

更新:对于上面的屏幕截图,我使用了向导创建的默认脚本。屏幕分辨率为2560x1440,缩放比例为150%。以下是代码:

#define MyAppName "我的程序"
#define MyAppVersion "1.5"
#define MyAppPublisher "我的公司,有限公司"
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
AppId={{B43BB5B0-E21B-4692-AD97-2E48B7680201}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Dev\Inno Setup 6\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: 不要在任何共享系统文件上使用 "Flags: ignoreversion"

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

更新 2:Inno Setup 编译器的版本是 6.2.1。

英文:

I noticed that some languages, e.g. English and French, have word wrapping in standard texts (Welcome screen, etc.), and some - I suppose, which use Cyrillic - haven't. Is it possible to enable word wrapping for such languages or it is an unrealized function?

Here is example in Bulgarian:
在Inno Setup中的标准文本中的文字换行

Update: For the screenshot above I used default script created with wizard. Screen resolution is 2560x1440 and 150% scaling. Here is the code:

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
AppId={{B43BB5B0-E21B-4692-AD97-2E48B7680201}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Dev\Inno Setup 6\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

Update 2: version of Inno Setup compiler is 6.2.1.

答案1

得分: 2

只需关闭这个Windows设置:设置->时间与语言->语言和区域->管理语言设置->更改系统区域->复选框 "Beta: Use Unicode UTF-8 for worldwide language support"。(适用于Win11)

英文:

Some devil pulled me to check one thing, and it works)
在Inno Setup中的标准文本中的文字换行

Just turn off this Windows setting: Settings->Time & language->Language & Region->Administrative language settings->Change system locale->Checkbox "Beta: Use Unicode UTF-8 for worldwide language support". (It's on Win11)

huangapple
  • 本文由 发表于 2023年6月22日 00:07:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/76525224.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定