cto-af / linebreak Goto Github PK
View Code? Open in Web Editor NEWFull Unicode 15.1 Line Breaking Algorithm, conformant with UAX #14.
Home Page: https://cto-af.github.io/linebreak/
License: MIT License
Full Unicode 15.1 Line Breaking Algorithm, conformant with UAX #14.
Home Page: https://cto-af.github.io/linebreak/
License: MIT License
The test on line 10287 of LineBreakTest.txt doesn't make sense to me:
× 1B18 ÷ 1B27 × 1B44 × 200C × 1B2B × 1B38 ÷ 1B31 × 1B44 × 1B1D × 1B36 ÷ # × [0.3] BALINESE LETTER CA (AK) ÷ [999.0] BALINESE LETTER PA (AK) × [28.12] BALINESE ADEG ADEG (VI) × [9.0] ZERO WIDTH NON-JOINER (CM1_CM) × [28.13] BALINESE LETTER MA (AK) × [9.0] BALINESE VOWEL SIGN SUKU (CM1_CM) ÷ [999.0] BALINESE LETTER SA SAPA (AK) × [28.12] BALINESE ADEG ADEG (VI) × [28.13] BALINESE LETTER TA LATIK (AK) × [9.0] BALINESE VOWEL SIGN ULU (CM1_CM) ÷ [0.3]
In particular, AK × VI × ZWJ × AK is supposed to match 28.13, which is:
28.13) ($AK | $DottedCircle | $AS) $VI × ($AK | $DottedCircle)
The ZWJ gets turned into VI by rule LB9. Therefore, when rule 28.13 runs, it sees AK VI VI AK, which doesn't match.
Note that LB9 says:
Do not break a combining character sequence; treat it as if it has the line breaking class of the base character in all of the following rules. Treat ZWJ as if it were CM.
LB9 does NOT say "treat it as if it is coalesced into the base character".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.