↔️ 居中 Unicode 文本Center Unicode
按显示宽度(中日韩文字和 Emoji 占 2 列)用空格把每一行居中到指定宽度。本地处理。Center every line to a target width using spaces, measuring display columns (CJK and emoji count as 2). Processed locally.
使用说明与常见问题How-to & FAQ
「居中 Unicode 文本」是什么?What is the Center Unicode tool?
按显示宽度(中日韩文字和 Emoji 占 2 列)用空格把每一行居中到指定宽度。本地处理。Center every line to a target width using spaces, measuring display columns (CJK and emoji count as 2). Processed locally.
如何使用「居中 Unicode 文本」?How do I use the Center Unicode tool?
在「居中 Unicode 文本」中,把内容粘贴或输入到上方输入框,按需设置「宽度」、「宽度模型」,结果会实时显示在下方,点击「复制结果」即可复制。In the Center Unicode: Paste or type into the input box, adjust "Width", "Width model"; the result appears below instantly — click "Copy result" to copy it.
宽度是怎么算的?How is the width measured?
默认按东亚宽度(East Asian Width)算显示列:中日韩文字、全角字符和 Emoji 各占 2 列,组合附加符和零宽字符占 0 列,其余字符占 1 列,适合等宽字体。选“字素”则每个用户看到的字符都算 1。By default display columns follow East Asian Width: CJK characters, fullwidth forms and emoji take 2 columns, combining marks and zero-width characters take 0, and everything else takes 1, which suits monospaced fonts. Choose Graphemes to count every user-perceived character as 1.
多行文本怎么处理?What about several lines?
每一行都单独居中,空行保持为空;比目标宽度更宽的行原样保留,并在结果下方提示有几行。Every line is centred on its own and blank lines stay blank. Lines wider than the target are left unchanged and a note below the result says how many.
全角空格怎么用?How does the ideographic space option work?
勾选后用全角空格(占 2 列)补齐,剩下的奇数列用一个普通空格补上;按字素模型时每个全角空格算 1。The padding uses ideographic spaces (2 columns each), with one ordinary space for an odd remaining column; under the Graphemes model each ideographic space counts as 1.
输入和输出是什么样的?What does the input and output look like?
例如在「居中 Unicode 文本」中输入 hi,「宽度」设为 6,输出为:hi。For example, the Center Unicode turns the input hi, "Width" set to 6 into: hi.
有哪些选项可以调整?What options can I adjust?
「居中 Unicode 文本」的设置:「宽度」默认 40;「宽度模型」可选 显示列(中日韩/Emoji=2)、字素(每个=1)(默认 显示列(中日韩/Emoji=2));可勾选:「用全角空格」。每次生成结果都按当前设置处理。Settings in the Center Unicode — "Width" default 40; "Width model": Display columns (CJK/emoji = 2), Graphemes (1 each) (default Display columns (CJK/emoji = 2)); tick boxes: "Ideographic space". The result always uses the current settings.
处理大段文本会卡吗?Can it handle long text?
「居中 Unicode 文本」在浏览器中直接处理,几 MB 以内的文本通常瞬间完成;文本不会离开你的设备。The Center Unicode runs in your browser; text up to a few MB is usually processed instantly and never leaves your device.
「居中 Unicode 文本」免费吗?需要注册吗?Is the Center Unicode free? Do I need an account?
「居中 Unicode 文本」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Center Unicode is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.