Skip to content

Feat: Add bidirectional unicode support 🌐 #104

Open
noam-ai wants to merge 1 commit intoYS-L:mainfrom
noam-ai:rtl
Open

Feat: Add bidirectional unicode support 🌐 #104
noam-ai wants to merge 1 commit intoYS-L:mainfrom
noam-ai:rtl

Conversation

@noam-ai
Copy link
Copy Markdown

@noam-ai noam-ai commented Oct 6, 2024

Using the unic_bidi Crate to add bidirectional unicode support.

Before:
image

After:
image

@noam-ai noam-ai changed the title Feat: Add Bidi unic support Feat: Add bidirectional unicode support Oct 6, 2024
@noam-ai noam-ai changed the title Feat: Add bidirectional unicode support Feat: Add bidirectional unicode support 🌐 Oct 6, 2024
Copy link
Copy Markdown
Owner

@YS-L YS-L left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! I'm curious about the behavior of existing tools (less, bat, vim, IDEs, etc.) in this regard - do they handle bidirectional Unicode in a similar way?

In general, I'm inclined to display the content in the CSV file "as is," without additional interpretation. However, if this is a common feature in existing tools, I'm open to making csvlens consistent with that behavior.

continue;
}
let bidi_info = BidiInfo::new(field, None);
let para = &bidi_info.paragraphs[0];
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this handle the case where there are multiple paragraphs?

@noam-ai
Copy link
Copy Markdown
Author

noam-ai commented Oct 19, 2024

Either one of those tools does not handle it that way ... in all of them it shows the "Wrong Way" (vim, bat, less)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants