Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unicode bidi text algorithm in C#?

Tags:

c#

unicode

bidi

Is there a C# version of the Unicode algorithm that takes a Unicode string and breaks it into runs that can be correctly rendered? Each run should be either left-to-right or right-to-left.

We understand this is part of the Java ICU4J, but that is a large library, and we're only looking for this specific functionality, to render text correctly.

like image 791
bright Avatar asked Nov 15 '25 19:11

bright


1 Answers

This is the unicode standard for bidi handling:

UNICODE BIDIRECTIONAL ALGORITHM

Also try: this

Implementations:

  1. JAVA
  2. C++

I'm sure you will be able to convert them to c# fairly simply

like image 190
Nissim Avatar answered Nov 17 '25 16:11

Nissim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!