Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Assign width 1 to control characters#45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Manishearth merged 1 commit intounicode-rs:masterfromJules-Bertholet:control
May 9, 2024

Conversation

@Jules-Bertholet
Copy link
Contributor

Unicodesays the following:

control characters are not given theDefault_Ignorable_Code_Point property. To avoid security problems, such characters [...], when not interpreted and not displayable by normal rendering, should be displayed in fallback rendering with a fallback glyph, so that there is a visible indication of their presence in the text.

In addition, U+2028 LINE SEPARATOR and U+2029 PARAGRAPH SEPARATOR are assigned width 1, which is inconsistent with assigning width 0 to\n.

The single-character width functions continue to returnNone for control characters (and now do so for\0 as well). The sequence\r\n is assigned total width 1.

@ManishearthManishearth merged commit3063422 intounicode-rs:masterMay 9, 2024
@Jules-BertholetJules-Bertholet deleted the control branchMay 9, 2024 18:06
@ManishearthManishearth mentioned this pull requestJun 6, 2024
andyyu2004 added a commit to andyyu2004/zi that referenced this pull requestJun 7, 2024
Seeunicode-rs/unicode-width#55 and related PRunicode-rs/unicode-width#45.It's unclear exactly where the root cause is, in ratatui or somewhere here. Will just pin the dependency and keep an eye out for now.
Aetf added a commit to Aetf/unicode-truncate that referenced this pull requestJun 24, 2024
This is consistent with how unicode-width handles string width vs charwidth.See alsounicode-rs/unicode-width#45
Aetf added a commit to Aetf/unicode-truncate that referenced this pull requestJun 24, 2024
This is consistent with how unicode-width handles string width vs charwidth.See alsounicode-rs/unicode-width#45
Aetf added a commit to Aetf/unicode-truncate that referenced this pull requestJun 24, 2024
This is consistent with how unicode-width handles string width vs charwidth.See alsounicode-rs/unicode-width#45
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ManishearthManishearthManishearth approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Jules-Bertholet@Manishearth

[8]ページ先頭

©2009-2025 Movatter.jp