@@ -330,21 +330,13 @@ def emit_break_module(f, break_table, break_cats, name):
330330grapheme_cats = load_properties ("auxiliary/GraphemeBreakProperty.txt" , [])
331331
332332# Control
333- # Note 1 :
333+ # Note:
334334# This category also includes Cs (surrogate codepoints), but Rust's `char`s are
335335# Unicode Scalar Values only, and surrogates are thus invalid `char`s.
336336# Thus, we have to remove Cs from the Control category
337- # Note 2:
338- # 0x0a and 0x0d (CR and LF) are not in the Control category for Graphemes.
339- # However, the Graphemes iterator treats these as a special case, so they
340- # should be included in grapheme_cats["Control"] for our implementation.
341337grapheme_cats ["Control" ]= group_cat (list (
342- (set (ungroup_cat (grapheme_cats ["Control" ]))
343- | set (ungroup_cat (grapheme_cats ["CR" ]))
344- | set (ungroup_cat (grapheme_cats ["LF" ])))
338+ set (ungroup_cat (grapheme_cats ["Control" ]))
345339- set (ungroup_cat ([surrogate_codepoints ]))))
346- del (grapheme_cats ["CR" ])
347- del (grapheme_cats ["LF" ])
348340
349341grapheme_table = []
350342for cat in grapheme_cats :