Coder Social home page Coder Social logo

Comments (4)

FrankYFTang avatar FrankYFTang commented on September 24, 2024

I also think this is very confusing especially when the granularity is GRAPHEME . Should CreateSegmentIterator then set it to undefined (which is not a string)? or a different string?

from proposal-intl-segmenter.

littledan avatar littledan commented on September 24, 2024

I agree, the initial value should be undefined. PRs welcome, or I'll write one if no one else does.

Beyond that, the implementation-defined nature is defnitely confusing. I was intending that this could be a member of ICU's type enum, but I wasn't sure how to indicate that (I don't see these semantics anywhere in Unicode/CLDR). The big application that I'm aware of for this property is, when breaking lines, to tell between a hard and soft line break, and when breaking words, to tell whether we're starting whitespace or starting another word. Do you have any particular idea for how we should present this aspect of the API?

from proposal-intl-segmenter.

littledan avatar littledan commented on September 24, 2024

Oh, I forgot about how we actually did define the break types in the break type table, heh. I guess the change needed is to set it to undefined. Sorry for getting so confused above.

from proposal-intl-segmenter.

FrankYFTang avatar FrankYFTang commented on September 24, 2024

your changes in #41 address it will. The issue is "string" vs "value". Using the word "value" is surely much better on those part of spec. Thanks!

from proposal-intl-segmenter.

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.