164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# Copyright (C) 2016 and later: Unicode, Inc. and others. 264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# License & terms of use: http://www.unicode.org/copyright.html 38de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# Copyright (c) 2002-2016 International Business Machines Corporation and 4b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# others. All Rights Reserved. 5b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 6b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# file: line.txt 7b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 8b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Line Breaking Rules 98de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# Implement default line breaking as defined by 1064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# Unicode Standard Annex #14 Revision 37 for Unicode 9.0 11b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# http://www.unicode.org/reports/tr14/ 1227f654740f2a26ad62a5c155af9199af9e69b889claireho# 1364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# Includes extensions to the handling of emoji ZWJ sequences from 1464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# https://goo.gl/cluFCn 158de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 1627f654740f2a26ad62a5c155af9199af9e69b889claireho# TODO: Rule LB 8 remains as it was in Unicode 5.2 1727f654740f2a26ad62a5c155af9199af9e69b889claireho# This is only because of a limitation of ICU break engine implementation, 1827f654740f2a26ad62a5c155af9199af9e69b889claireho# not because the older behavior is desirable. 191b7d32f919554dda9c193b32188251337bc756f1Fredrik Roubert# 201b7d32f919554dda9c193b32188251337bc756f1Fredrik Roubert# This corresponds to CSS line-break=strict (BCP47 -u-lb-strict). 211b7d32f919554dda9c193b32188251337bc756f1Fredrik Roubert# It sets characters of class CJ to behave like NS. 22b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 23b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 24b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Character Classes defined by TR 14. 25b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 26b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 27b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru!!chain; 28b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 29b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$AI = [:LineBreak = Ambiguous:]; 3064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$AL = [:LineBreak = Alphabetic:]; 31b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$BA = [:LineBreak = Break_After:]; 32b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$BB = [:LineBreak = Break_Before:]; 33b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$BK = [:LineBreak = Mandatory_Break:]; 34b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$B2 = [:LineBreak = Break_Both:]; 35b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CB = [:LineBreak = Contingent_Break:]; 36103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius$CJ = [:LineBreak = Conditional_Japanese_Starter:]; 37b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CL = [:LineBreak = Close_Punctuation:]; 3864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# $CM = [:LineBreak = Combining_Mark:]; 3950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$CP = [:LineBreak = Close_Parenthesis:]; 40b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CR = [:LineBreak = Carriage_Return:]; 4164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$EB = [[:LineBreak = EB:]\U0001F3C2\U0001F3C7\U0001F3CC\U0001F46A-\U0001F46D\U0001F46F\U0001F574\U0001F6CC]; 4264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$EM = [:LineBreak = EM:]; 43b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$EX = [:LineBreak = Exclamation:]; 44b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$GL = [:LineBreak = Glue:]; 45103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius$HL = [:LineBreak = Hebrew_Letter:]; 46b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$HY = [:LineBreak = Hyphen:]; 47b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$H2 = [:LineBreak = H2:]; 48b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$H3 = [:LineBreak = H3:]; 4964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$ID = [:LineBreak = Ideographic:]; 50b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$IN = [:LineBreak = Inseperable:]; 51b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$IS = [:LineBreak = Infix_Numeric:]; 52b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$JL = [:LineBreak = JL:]; 53b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$JV = [:LineBreak = JV:]; 54b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$JT = [:LineBreak = JT:]; 55b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LF = [:LineBreak = Line_Feed:]; 56b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$NL = [:LineBreak = Next_Line:]; 5764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# NS includes CJ for CSS strict line breaking. 58103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius$NS = [[:LineBreak = Nonstarter:] $CJ]; 59b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$NU = [:LineBreak = Numeric:]; 60b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$OP = [:LineBreak = Open_Punctuation:]; 61b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$PO = [:LineBreak = Postfix_Numeric:]; 62b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$PR = [:LineBreak = Prefix_Numeric:]; 63b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$QU = [:LineBreak = Quotation:]; 6454dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius$RI = [:LineBreak = Regional_Indicator:]; 65b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SA = [:LineBreak = Complex_Context:]; 66b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SG = [:LineBreak = Surrogate:]; 67b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SP = [:LineBreak = Space:]; 68b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SY = [:LineBreak = Break_Symbols:]; 69b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$WJ = [:LineBreak = Word_Joiner:]; 70b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$XX = [:LineBreak = Unknown:]; 71b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$ZW = [:LineBreak = ZWSpace:]; 7264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$ZWJ = [:LineBreak = ZWJ:]; 7364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 7464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$EmojiNRK = [[\p{Emoji}] - [$RI \u002a\u00230-9©®™〰〽]]; 7564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# Data for Extended Pictographic scraped from CLDR common/properties/ExtendedPictographic.txt, r12773 7664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$Extended_Pict = [\U0001F774-\U0001F77F\u2700-\u2701\u2703-\u2704\u270E\u2710-\u2711\u2765-\u2767\U0001F030-\U0001F093\U0001F094-\U0001F09F\U0001F10D-\U0001F10F\U0001F12F\U0001F16C-\U0001F16F\U0001F1AD-\U0001F1E5\U0001F203-\U0001F20F\U0001F23C-\U0001F23F\U0001F249-\U0001F24F\U0001F252-\U0001F2FF\U0001F7D5-\U0001F7FF\U0001F000-\U0001F003\U0001F005-\U0001F02B\U0001F02C-\U0001F02F\U0001F322-\U0001F323\U0001F394-\U0001F395\U0001F398\U0001F39C-\U0001F39D\U0001F3F1-\U0001F3F2\U0001F3F6\U0001F4FE\U0001F53E-\U0001F548\U0001F54F\U0001F568-\U0001F56E\U0001F571-\U0001F572\U0001F57B-\U0001F586\U0001F588-\U0001F589\U0001F58E-\U0001F58F\U0001F591-\U0001F594\U0001F597-\U0001F5A3\U0001F5A6-\U0001F5A7\U0001F5A9-\U0001F5B0\U0001F5B3-\U0001F5BB\U0001F5BD-\U0001F5C1\U0001F5C5-\U0001F5D0\U0001F5D4-\U0001F5DB\U0001F5DF-\U0001F5E0\U0001F5E2\U0001F5E4-\U0001F5E7\U0001F5E9-\U0001F5EE\U0001F5F0-\U0001F5F2\U0001F5F4-\U0001F5F9\u2605\u2607-\u260D\u260F-\u2610\u2612\u2616-\u2617\u2619-\u261C\u261E-\u261F\u2621\u2624-\u2625\u2627-\u2629\u262B-\u262D\u2630-\u2637\u263B-\u2647\u2654-\u265F\u2661-\u2662\u2664\u2667\u2669-\u267A\u267C-\u267E\u2680-\u2691\u2695\u2698\u269A\u269D-\u269F\u26A2-\u26A9\u26AC-\u26AF\u26B2-\u26BC\u26BF-\u26C3\u26C6-\u26C7\u26C9-\u26CD\u26D0\u26D2\u26D5-\u26E8\u26EB-\u26EF\u26F6\u26FB-\u26FC\u26FE-\u26FF\u2388\U0001FA00-\U0001FFFD\U0001F0A0-\U0001F0AE\U0001F0B1-\U0001F0BF\U0001F0C1-\U0001F0CF\U0001F0D1-\U0001F0F5\U0001F0AF-\U0001F0B0\U0001F0C0\U0001F0D0\U0001F0F6-\U0001F0FF\U0001F80C-\U0001F80F\U0001F848-\U0001F84F\U0001F85A-\U0001F85F\U0001F888-\U0001F88F\U0001F8AE-\U0001F8FF\U0001F900-\U0001F90F\U0001F91F\U0001F928-\U0001F92F\U0001F931-\U0001F932\U0001F93F\U0001F94C-\U0001F94F\U0001F95F-\U0001F97F\U0001F992-\U0001F9BF\U0001F9C1-\U0001F9FF\U0001F6C6-\U0001F6CA\U0001F6E6-\U0001F6E8\U0001F6EA\U0001F6F1-\U0001F6F2\U0001F6D3-\U0001F6DF\U0001F6ED-\U0001F6EF\U0001F6F7-\U0001F6FF]; 7764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 7864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# By LB9, a ZWJ also behaves as a CM. Including it in the definition of CM avoids having to explicitly 7964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# list it in the numerous rules that use CM. 8064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# By LB1, SA characters with general categor of Mn or Mc also resolve to CM. 8164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 8264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$CM = [[:LineBreak = Combining_Mark:] $ZWJ [$SA & [[:Mn:][:Mc:]]]]; 83b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 84b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Dictionary character set, for triggering language-based break engines. Currently 8564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# limited to LineBreak=Complex_Context (SA). 86b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 8764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$dictionary = [$SA]; 88b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 89b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 90b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Rule LB1. By default, treat AI (characters with ambiguous east Asian width), 9164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# SA (Dictionary chars, excluding Mn and Mc) 92b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# SG (Unpaired Surrogates) 93b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# XX (Unknown, unassigned) 94b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# as $AL (Alphabetic) 95b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 9664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$ALPlus = [$AL $AI $SG $XX [$SA-[[:Mn:][:Mc:]]]]; 9764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 98b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 99b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru## ------------------------------------------------- 100b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 101b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru!!forward; 102b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 103b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 104b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# CAN_CM is the set of characters that may combine with CM combining chars. 105b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Note that Linebreak UAX 14's concept of a combining char and the rules 106b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# for what they can combine with are _very_ different from the rest of Unicode. 107b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 108b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Note that $CM itself is left out of this set. If CM is needed as a base 109b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# it must be listed separately in the rule. 110b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 111b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM = [^$SP $BK $CR $LF $NL $ZW $CM]; # Bases that can take CMs 112b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CANT_CM = [ $SP $BK $CR $LF $NL $ZW $CM]; # Bases that can't take CMs 113b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 114b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 115b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# AL_FOLLOW set of chars that can unconditionally follow an AL 116b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Needed in rules where stand-alone $CM s are treated as AL. 117b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 11864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$AL_FOLLOW = [$BK $CR $LF $NL $ZW $SP $CL $CP $EX $HL $IS $SY $WJ $GL $OP $QU $BA $HY $NS $IN $NU $PR $PO $ALPlus]; 119b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 120b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 121b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 122b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Rule LB 4, 5 Mandatory (Hard) breaks. 123b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 124b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB4Breaks = [$BK $CR $LF $NL]; 1258de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$LB4NonBreaks = [^$BK $CR $LF $NL $CM]; 126b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CR $LF {100}; 127b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 128b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 129b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 6 Do not break before hard line breaks. 130b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 131b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB4NonBreaks? $LB4Breaks {100}; # LB 5 do not break before hard breaks. 132b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* $LB4Breaks {100}; 1338de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $LB4Breaks {100}; 134b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 135b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 7 x SP 136b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# x ZW 137b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB4NonBreaks [$SP $ZW]; 138b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* [$SP $ZW]; 1398de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ [$SP $ZW]; 140b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 141b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 142b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 8 Break after zero width space 14327f654740f2a26ad62a5c155af9199af9e69b889claireho# TODO: ZW SP* <break> 14427f654740f2a26ad62a5c155af9199af9e69b889claireho# An engine change is required to write the reverse rule for this. 14527f654740f2a26ad62a5c155af9199af9e69b889claireho# For now, leave the Unicode 5.2 rule, ZW <break> 146b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 147b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8Breaks = [$LB4Breaks $ZW]; 148b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8NonBreaks = [[$LB4NonBreaks] - [$ZW]]; 149b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 15064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB 8a ZWJ x (ID | Extended_Pict | EmojiNRK) Emoji ZWJ sequences. 1518de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 15264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$ZWJ ($ID | $Extended_Pict | $EmojiNRK); 153b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 1548de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 9 Combining marks. X $CM needs to behave like X, where X is not $SP, $BK $CR $LF $NL 1558de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# $CM not covered by the above needs to behave like $AL 156b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# See definition of $CAN_CM. 157b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 158b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM+; # Stick together any combining sequences that don't match other rules. 1598de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+; 160b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 161b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 162b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 11 Do not break before or after WORD JOINER & related characters. 163b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 16464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$CAN_CM $CM* $WJ; 16564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$LB8NonBreaks $WJ; 16664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $WJ; 167b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 16864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$WJ $CM* .; 169b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 170b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 171c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 12 Do not break after NBSP and related characters. 172b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# GL x 173c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# 17464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$GL $CM* .; 1758de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 176c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# 177c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 12a Do not break before NBSP and related characters ... 178c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# [^SP BA HY] x GL 179c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# 18064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert[[$LB8NonBreaks] - [$SP $BA $HY]] $CM* $GL; 18164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $GL; 182b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 183b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 184b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 185b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 186b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 13 Don't break before ']' or '!' or ';' or '/', even after spaces. 187b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 188b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8NonBreaks $CL; 189b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* $CL; 1908de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $CL; # by rule 10, stand-alone CM behaves as AL 191b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 19250294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$LB8NonBreaks $CP; 19350294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$CAN_CM $CM* $CP; 1948de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $CP; # by rule 10, stand-alone CM behaves as AL 19550294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho 196b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8NonBreaks $EX; 197b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* $EX; 1988de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $EX; # by rule 10, stand-alone CM behaves as AL 199b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 200b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8NonBreaks $IS; 201b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* $IS; 2028de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $IS; # by rule 10, stand-alone CM behaves as AL 203b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 204b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB8NonBreaks $SY; 205b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CAN_CM $CM* $SY; 2068de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $SY; # by rule 10, stand-alone CM behaves as AL 207b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 208b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 209b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 210c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 14 Do not break after OP, even after spaces 211b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 21264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$OP $CM* $SP* .; 213b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 21464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$OP $CM* $SP+ $CM+ $AL_FOLLOW?; # by rule 10, stand-alone CM behaves as AL 21564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert # by rule 8, CM following a SP is stand-alone. 216b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 217b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 15 21864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$QU $CM* $SP* $OP; 219b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 220b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 16 22164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($CL | $CP) $CM* $SP* $NS; 222b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 223b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 17 22464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$B2 $CM* $SP* $B2; 225b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 226b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 227b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 18 Break after spaces. 228b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 229b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB18NonBreaks = [$LB8NonBreaks - [$SP]]; 230b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB18Breaks = [$LB8Breaks $SP]; 231b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 232b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 233b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 19 234b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# x QU 23564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$LB18NonBreaks $CM* $QU; 23664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $QU; 237b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 238b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# QU x 23964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$QU $CM* .; 240b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 241b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 242b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 20 243b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# <break> $CB 244b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# $CB <break> 245b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 246b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB20NonBreaks = [$LB18NonBreaks - $CB]; 247b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 248b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 21 x (BA | HY | NS) 249b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# BB x 250b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 25164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$LB20NonBreaks $CM* ($BA | $HY | $NS); 25264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ ($BA | $HY | $NS); 253b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 25464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$BB $CM* [^$CB]; # $BB x 25564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$BB $CM* $LB20NonBreaks; 256b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 257103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius# LB 21a Don't break after Hebrew + Hyphen 258103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius# HL (HY | BA) x 2598de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 26064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$HL $CM* ($HY | $BA) $CM* [^$CB]?; 261103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius 26259d709d503bab6e2b61931737e662dd293b40578ccornelius# LB 21b (forward) Don't break between SY and HL 26359d709d503bab6e2b61931737e662dd293b40578ccornelius# (break between HL and SY already disallowed by LB 13 above) 26464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$SY $CM* $HL; 26559d709d503bab6e2b61931737e662dd293b40578ccornelius 266b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 22 26764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL) $CM* $IN; 26864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $IN; # by rule 10, any otherwise unattached CM behaves as AL 26964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$EX $CM* $IN; 27064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ID | $EB | $EM) $CM* $IN; 27164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$IN $CM* $IN; 27264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$NU $CM* $IN; 273b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 274b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 275b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# $LB 23 27664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# 27764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL) $CM* $NU; 27864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $NU; # Rule 10, any otherwise unattached CM behaves as AL 27964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$NU $CM* ($ALPlus | $HL); 28064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 28164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB 23a 28264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# 28364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$PR $CM* ($ID | $EB | $EM); 28464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ID | $EB | $EM) $CM* $PO; 28564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 286b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 287b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 288b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 24 289b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 29064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($PR | $PO) $CM* ($ALPlus | $HL); 29164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL) $CM* ($PR | $PO); 29264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ ($PR | $PO); # Rule 10, any otherwise unattached CM behaves as AL 293b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 294b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 295b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 25 Numbers. 296b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 29764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert(($PR | $PO) $CM*)? (($OP | $HY) $CM*)? $NU ($CM* ($NU | $SY | $IS))* 29864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert ($CM* ($CL | $CP))? ($CM* ($PR | $PO))?; 299b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 300b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 26 Do not break a Korean syllable 301b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 30264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$JL $CM* ($JL | $JV | $H2 | $H3); 30364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($JV | $H2) $CM* ($JV | $JT); 30464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($JT | $H3) $CM* $JT; 305b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 306b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 27 Treat korean Syllable Block the same as ID (don't break it) 30764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($JL | $JV | $JT | $H2 | $H3) $CM* $IN; 30864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($JL | $JV | $JT | $H2 | $H3) $CM* $PO; 30964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$PR $CM* ($JL | $JV | $JT | $H2 | $H3); 310b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 311b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 312b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 28 Do not break between alphabetics 313b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 31464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL) $CM* ($ALPlus | $HL); 31564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ ($ALPlus | $HL); # The $CM+ is from rule 10, an unattached CM is treated as AL 316b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 317b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 29 31864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$IS $CM* ($ALPlus | $HL); 319b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 32050294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho# LB 30 32164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL | $NU) $CM* $OP; 32264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $OP; # The $CM+ is from rule 10, an unattached CM is treated as AL. 32364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$CP $CM* ($ALPlus | $HL | $NU); 32450294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho 3258de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 30a Do not break between regional indicators. Break after pairs of them. 3268de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# Tricky interaction with LB8a: ZWJ x ID 32764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$RI $CM* $RI / [[^$BK $CR $LF $NL $SP $ZW $WJ $CL $CP $EX $IS $SY $GL $QU $BA $HY $NS $CM] {eof}]; 32864339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$RI $CM* $RI $CM* $ZWJ / [[^$BK $CR $LF $NL $SP $ZW $WJ $CL $CP $EX $IS $SY $GL $QU $BA $HY $NS $CM $ID $Extended_Pict $EmojiNRK] {eof}]; 32964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$RI $CM* $RI $CM* [$CM-$ZWJ] / [[^$BK $CR $LF $NL $SP $ZW $WJ $CL $CP $EX $IS $SY $GL $QU $BA $HY $NS $CM] {eof}]; 3308de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 33164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$RI $CM* $RI $CM* [$BK $CR $LF $NL $SP $ZW $WJ $CL $CP $EX $IS $SY $GL $QU $BA $HY $NS {eof}]; 33264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$RI $CM* $RI $CM* $ZWJ ($ID | $Extended_Pict | $EmojiNRK); 3338de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 3348de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 30b Do not break between an Emoji Base and an Emoji Modifier 3358de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$EB $CM* $EM; 336b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 337b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 338b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Reverse Rules. 339b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 340b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru## ------------------------------------------------- 341b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 342b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru!!reverse; 343b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 34464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB 9 Combining Marks. 34564339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# Stick together any combining sequences that don't match other rules. 346b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 34764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert^$CM+ $CAN_CM?; 348b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 349b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 350b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Sequences of the form (shown forwards) 351b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# [CANT_CM] <break> [CM] [whatever] 352b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# The CM needs to behave as an AL 353b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 354b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$AL_FOLLOW $CM+ / ( 355b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru [$BK $CR $LF $NL $ZW {eof}] | 356b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru $SP+ $CM+ $SP | 357b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru $SP+ $CM* ([^$OP $CM $SP] | [$AL {eof}])); # if LB 14 will match, need to surpress this break. 3588de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert # LB14 says OP SP* x . 359b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # becomes OP SP* x AL 360b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # becomes OP SP* x CM+ AL_FOLLOW 361b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # 362b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # Further note: the $AL in [$AL {eof}] is only to work around 363b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # a rule compiler bug which complains about 364b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru # empty sets otherwise. 3658de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 366b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 3678de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 4, 5, 6 368b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 369b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB4Breaks [$LB4NonBreaks-$CM]; 370b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LB4Breaks $CM+ $CAN_CM; 371b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$LF $CR; 372b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 373b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 374b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 7 x SP 375b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# x ZW 376b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru[$SP $ZW] [$LB4NonBreaks-$CM]; 377b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru[$SP $ZW] $CM+ $CAN_CM; 378b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 37927f654740f2a26ad62a5c155af9199af9e69b889claireho# LB 8 ZW SP* <break> 38027f654740f2a26ad62a5c155af9199af9e69b889claireho# TODO: to implement this, we need more than one look-ahead hard break in play at a time. 38127f654740f2a26ad62a5c155af9199af9e69b889claireho# Requires an engine enhancement. 38227f654740f2a26ad62a5c155af9199af9e69b889claireho# / $SP* $ZW 383b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 38464339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB 8a ZWJ x (ID | Extended_Pict | EmojiNRK) 3858de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 38664339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ID | $Extended_Pict | $EmojiNRK) $ZWJ $CM* $CAN_CM?; 3878de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 3888de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 389b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 9,10 Combining marks. 390b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# X $CM needs to behave like X, where X is not $SP or controls. 391b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# $CM not covered by the above needs to behave like $AL 392b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Stick together any combining sequences that don't match other rules. 3938de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $CAN_CM; 394b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 395b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 396b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 11 3978de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 3988de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$WJ $CM* $CAN_CM; 3998de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$WJ [$LB8NonBreaks-$CM]; 400b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 401b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru $CANT_CM $CM* $WJ; 4028de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$CAN_CM $CM* $WJ; 403b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 404c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 12a 405c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# [^SP BA HY] x GL 406b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 4078de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$GL $CM* [$LB8NonBreaks-[$CM $SP $BA $HY]]; 408b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 409c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 12 410b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# GL x 411b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 412b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CANT_CM $CM* $GL; 4138de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$CAN_CM $CM* $GL; 414b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 415b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 416b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 13 417b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CL $CM+ $CAN_CM; 41850294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$CP $CM+ $CAN_CM; 419b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$EX $CM+ $CAN_CM; 420b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$IS $CM+ $CAN_CM; 421b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SY $CM+ $CAN_CM; 422b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 423b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$CL [$LB8NonBreaks-$CM]; 42450294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$CP [$LB8NonBreaks-$CM]; 425b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$EX [$LB8NonBreaks-$CM]; 426b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$IS [$LB8NonBreaks-$CM]; 427b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SY [$LB8NonBreaks-$CM]; 428b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 429b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 430b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 14 OP SP* x 431b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 43264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert. $SP* $CM* $OP; 43364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$AL_FOLLOW? $CM+ $SP+ $CM* $OP; # by LB 10, behaves like $AL_FOLLOW? $AL $SP+ $CM* $OP 434b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 435b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 436b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 15 4378de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$OP $SP* $CM* $QU; 438b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 439b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 16 4408de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$NS $SP* $CM* ($CL | $CP); 441b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 442b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 17 4438de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$B2 $SP* $CM* $B2; 444b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 445b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 18 break after spaces 446b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Nothing explicit needed here. 447b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 448b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 449b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 450b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 19 451b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 4528de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$QU $CM* $CAN_CM; # . x QU 4538de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$QU $LB18NonBreaks; 454b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 455b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 4568de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$CAN_CM $CM* $QU; # QU x . 457b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru $CANT_CM $CM* $QU; 4588de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 459b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 460b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 20 Break before and after CB. 461b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# nothing needed here. 462b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 463b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 464b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 21 4658de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($BA | $HY | $NS) $CM* [$LB20NonBreaks-$CM]; # . x (BA | HY | NS) 466b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 4678de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert[$LB20NonBreaks-$CM] $CM* $BB; # BB x . 4688de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert[^$CB] $CM* $BB; # 469b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 470103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius# LB21a 471103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius[^$CB] $CM* ($HY | $BA) $CM* $HL; 472b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 47359d709d503bab6e2b61931737e662dd293b40578ccornelius# LB21b (reverse) 4748de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$HL $CM* $SY; 475b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 476b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 22 4778de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* ($ALPlus | $HL); 4788de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* $EX; 4798de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* ($ID | $EB | $EM); 4808de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* $IN; 4818de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* $NU; 482b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 483b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 23 4848de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$NU $CM* ($ALPlus | $HL); 4858de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($ALPlus | $HL) $CM* $NU; 486b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 48764339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB23a 4888de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($ID | $EB | $EM) $CM* $PR; 48964339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert$PO $CM* ($ID | $EB | $EM); 49064339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert 49164339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert# LB 24 49264339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($ALPlus | $HL) $CM* ($PR | $PO); 49364339d36f8bd4db5025fe2988eda22b491a9219cFredrik Roubert($PR | $PO) $CM* ($ALPlus | $HL); 494b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 495b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 496b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 25 49750294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho($CM* ($PR | $PO))? ($CM* ($CL | $CP))? ($CM* ($NU | $IS | $SY))* $CM* $NU ($CM* ($OP | $HY))? ($CM* ($PR | $PO))?; 498b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 499b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 26 5008de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($H3 | $H2 | $JV | $JL) $CM* $JL; 5018de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($JT | $JV) $CM* ($H2 | $JV); 5028de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$JT $CM* ($H3 | $JT); 503b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 504b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 27 5058de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$IN $CM* ($H3 | $H2 | $JT | $JV | $JL); 5068de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$PO $CM* ($H3 | $H2 | $JT | $JV | $JL); 5078de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert ($H3 | $H2 | $JT | $JV | $JL) $CM* $PR; 508b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 509b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 28 5108de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($ALPlus | $HL) $CM* ($ALPlus | $HL); 511b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 512b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 513b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# LB 29 5148de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($ALPlus | $HL) $CM* $IS; 515b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 51650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho# LB 30 5178de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$OP $CM* ($ALPlus | $HL | $NU); 5188de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($ALPlus | $HL | $NU) $CM* $CP; 51950294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho 52054dcd9b6a06071f647dac967e9e267abb9410720Craig Cornelius# LB 30a 5218de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# Pairs of Regional Indicators. 5228de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# The following two rules are nearly identical. The first matches only sequences with an odd number of adjacent RIs, 5238de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# the second with an even number. Stripping away the cruft they look like 5248de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# [^RI] RI / (RI RI)+ ^RI; 5258de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# [^RI] RI RI / (RI RI)+ ^RI; 5268de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# 5278de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert[{bof} $NS $HY $BA $QU $CL $CP $EX $IS $SY $WJ $GL $ZW $SP $BK $CR $LF $NL $ZWJ] $CM* $RI / ($CM* $RI $CM* $RI)+ $CM* [{eof}[^$RI $CM]]; 5288de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert[{bof} $NS $HY $BA $QU $CL $CP $EX $IS $SY $WJ $GL $ZW $SP $BK $CR $LF $NL $ZWJ] $CM* $RI $CM* $RI / ($CM* $RI $CM* $RI)+ $CM* [{eof}[^$RI $CM]]; 5298de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 5308de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# In general, adjacent RIs stay together. The hard-break rules, above, overide this, forcing in the boundaries between pairs. 5318de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$RI $CM* $RI; 5328de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 5338de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# WJ, GL, QU, etc. are classes with rules like "WJ x " which includes "WJ x RI". 5348de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$RI $CM* ([$WJ $GL $QU $BB] | (($HY | $BA)$CM* $HL)); 5358de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 5368de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 5378de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 30b Do not break between an Emoji Base and an Emoji Modifier 5388de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert$EM $CM* $EB; 5398de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 540b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 541b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru## ------------------------------------------------- 542b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 543b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru!!safe_reverse; 544b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 545c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 9 5468de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ [^$CM $BK $CR $LF $NL $ZW $SP]; 5478de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^$CM+ $SP / .; 548b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 549c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 14 550b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SP+ $CM* $OP; 551b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 552c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 15 553b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SP+ $CM* $QU; 554b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 555c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 16 55650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho$SP+ $CM* ($CL | $CP); 557c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru 558c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 17 559b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$SP+ $CM* $B2; 560b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 561103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius# LB 21 562103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius$CM* ($HY | $BA) $CM* $HL; 563103e9ffba2cba345d0078eb8b8db33249f81840aCraig Cornelius 564c69afcec261fc345fda8daf46f0ea6b4351dc777Jean-Baptiste Queru# LB 25 565b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru($CM* ($IS | $SY))+ $CM* $NU; 56650294ead5e5d23f5bbfed76e00e6b510bd41eee1claireho($CL | $CP) $CM* ($NU | $IS | $SY); 567b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 5688de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert# LB 30 5698de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert($CM* $RI)+; 5708de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert 571b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# For dictionary-based break 572b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$dictionary $dictionary; 573b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 574b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru## ------------------------------------------------- 575b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 576b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru!!safe_forward; 577b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 578b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# Skip forward over all character classes that are involved in 579b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# rules containing patterns with possibly more than one char 580b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# of context. 581b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 582b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# It might be slightly more efficient to have specific rules 583b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# instead of one generic one, but only if we could 584b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# turn off rule chaining. We don't want to move more 585b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# than necessary. 586b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru# 5878de051c3d18a56cc126f0f44e368495a52f9148cFredrik Roubert^[$CM $OP $QU $CL $CP $B2 $PR $HY $BA $SP $RI $ZWJ $dictionary]+ [^$CM $OP $QU $CL $CP $B2 $PR $HY $BA $RI $ZWJ $dictionary]; 588b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru$dictionary $dictionary; 589b13da9df870a61b11249bf741347908dbea0edd8Jean-Baptiste Queru 590