【问题标题】:The implementations of the "Unicode Line Breaking Algorithm" (UAX#14)“Unicode 换行算法”(UAX#14)的实现
【发布时间】:2018-12-14 15:28:39
【问题描述】:

我一直在四处寻找Unicode Line Breaking Algorithm (UAX#14) 的最新实现来移植它以满足我的需要。

我找到了一个old,但看似规范sample implementation 的算法,其中使用了“基于对表的实现”。该实现引用了被删除的旧文档starting from Unicode 10.0corresponding section。所以,

  • 为什么"§7: Pair Table-Based Implementation"被删除,有什么替代方案?

  • 算法的最新版本是否有任何公开和完整的实现,或者至少是算法的最后一个版本,其中“基于表的实现”还在(Unicode 9.0)?

【问题讨论】:

    标签: unicode implementation


    【解决方案1】:

    #14 和 #29 的最新官方换行符实现包含在 Unicode 组织维护的 Rust crate icu_segmenter 中。请参阅https://unicode-org.github.io/icu4x-docs/doc/icu_segmenter/ 上的 API 文档

    【讨论】:

      【解决方案2】:

      这是 JavaScript 中的一个:linebreak

      【讨论】:

      • 那个也是基于pair表的
      猜你喜欢
      • 2014-06-21
      • 1970-01-01
      • 2013-06-29
      • 1970-01-01
      • 1970-01-01
      • 2020-07-13
      • 2019-01-01
      • 2016-06-06
      • 1970-01-01
      相关资源
      最近更新 更多