GENBRK(1)
π GENBRK β bestie edition π
okay so this is genbrk(1), straight outta the ICU 78.3 Manual, and it's literally the little tool that turns your break iteration rules into binary data files. sit down, grab a boba, we're doing this π§β¨
β¨ NAME β¨
genbrk β compiles ICU break iteration rules source files into binary data files. that's it, that's the job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
genbrk [ -h, -?, --help ] [ -V, --version ] [ -c, --copyright ] [ -v,
--verbose ] [ -d, --destdir destination ] [ -i, --icudatadir directory ]
-r, --rules rule-file -o, --out output-file
π¦ DESCRIPTION π¦
so genbrk reads the break (boundary) rule source code from rule-file and creates a break iteration data file. no cap. and normally? that data file has the .brk extension. that's her signature move π
the details of the rule syntax can be found in ICU's User Guide. iykyk π
π OPTIONS π
-h,-?,--helpβ print help about usage and exit. the "hey bestie what do i do" button π«Ά-V,--versionβ print the version ofgenbrkand exit. main character introduction β¨-c,--copyrightβ embeds the standard ICU copyright into the output-file. legal slay π-v,--verboseβ display extra informative messages during execution. she's yapping and honestly? we're listening π¬-d,--destdirdestination β set the destination directory of the output-file to destination. where she drops the goods π-i,--icudatadirdirectory β look for any necessary ICU data files in directory. for example, the filepnames.icumust be located when ICU's data is not built as a shared library. the default ICU data directory is specified by the environment variableICU_DATA. most configurations of ICU do not require this argument. so like, usually you can skip it π§-r,--rulesrule-file β the source file to read. the input, the origin story π±-o,--outoutput-file β the output data file to write. the glow-up destination π
π CAVEATS π
okay listen, this part is important, don't scroll past it.
when the rule-file contains a byte order mark (BOM) at the beginning of the file, which is the Unicode character U+FEFF, then the rule-file is interpreted as Unicode. without the BOM, the file is interpreted in the current operating system default codepage.
so basically: no BOM = your OS's default codepage decides your fate. chaotic behaviour, not the cute kind π
in order to eliminate any ambiguity of the encoding for how the rule-file was written, it is recommended that you write this file in UTF-8 with the BOM. fr fr, just do it π
π ENVIRONMENT π
ICU_DATAβ specifies the directory containing ICU data. defaults to${prefix}/share/icu/78.3/. some tools in ICU depend on the presence of the trailing slash. it is thus important to make sure that it is present ifICU_DATAis set.
not the trailing slash being load-bearing π do NOT forget it, bestie, the tools will simply not vibe
π«Ά AUTHORS π«Ά
- George Rhoten
- Andy Heninger
the icons who made her π
β VERSION β
1.0
π COPYRIGHT π
Copyright (C) 2005 International Business Machines Corporation and others
π₯ SEE ALSO π₯
http://www.icu-project.org/userguide/boundaryAnalysis.html
and that's the whole page, bestie π this was ICU MANPAGE, dated 2 December 2005, and she's still serving GENBRK(1) energy to this very day. go compile something gorgeous πβ¨
π¦ where this page comes from
- arch rolling: icu 78.3-1 Β· LicenseRef-Unicode-3.0 AND BSD-2-Clause AND BSD-3-Clause AND NAIST-2003
- ubuntu stonking: icu-devtools 78.3-2ubuntu1 Β· MIT
- Copyright (C) 2016 and later: Unicode, Inc. and others
- Copyright (C) 2005-2006 International Business Machines Corporation and others
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms