Migrate to C #

I am looking for an example project that will do text wrapping in C #. Ideally, this would be inferred from a TeX decryption algorithm or similar. I'm currently interested in English, although other languages ​​may be required in the future. Has anyone seen something like this? I plan to incorporate this into the MonoTouch project using CoreText.

+6
source share
2 answers

Obviously, Donald Knuth's algorithms are excellent. Although there is no C # implementation, have you considered converting another implementation to C #? (For example, you could transform a Java implementation that is pretty close to C #.)

Another option is to use a simpler implementation, which can be found at fooobar.com/questions/166534 / ....

+3
source

I found a C # implementation of the Knuth-Liang hyphenation transfer algorithm in https://github.com/alkozko/NHyphenator and it seems to work fine.

But there are currently two drawbacks:

  • It cannot load TeX hyphenation template files out of the box (however adding support for them seems trivial).
  • It is not clear which license refers to the source code.
+4
source

Source: https://habr.com/ru/post/887251/


All Articles