GithubHelp home page GithubHelp logo

Comments (3)

zh-lx avatar zh-lx commented on July 29, 2024 1

separator

separator 的主要作用是用于指定输出结果的分隔符,而不是识别输入语句的分隔符。因为正常情况下连续文本是不会有空格的,空格大概率是开发者的一些格式处理,包内部兼容这些情况的成本太高但收益情况不普遍,所以需要开发者自行处理保证输入文本的正确性

from pinyin-pro.

zh-lx avatar zh-lx commented on July 29, 2024

感谢反馈,音 调 两个字如果中间空格隔开,是无法作为词汇进行多音词联想的,去掉空格可以正确识别

from pinyin-pro.

vanchKong avatar vanchKong commented on July 29, 2024

感谢反馈,音 调 两个字如果中间空格隔开,是无法作为词汇进行多音词联想的,去掉空格可以正确识别

基于此解决方案,应当在 html() 中同样增加 separator 选项,以防止此类问题的发生,同时需要考虑到原文本身就带有空格的情况。
这样好不好更好一些。

from pinyin-pro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.