yaz-icu - YAZ ICU utility


   yaz-icu [-c config] [-p opt] [-s] [-x] [infile]


   yaz-icu is utility which demonstrates the ICU chain module of yaz.

   The utility can be used in two ways. It may read some text using an XML
   configuration for configuring ICU and show text analysis. This mode is
   triggered by option -c which specififies the configuration to be used.
   The input file is read from standard input or from a file if infile is

   The utility may also show ICU information. This is triggered by option


   -c config
       Specifies the file containing ICU chain configuration which is XML

   -p type
       Specifies extra information to be printed about the ICU system. If
       type is c then ICU converters are printed. If type is l available
       locales are printed. If type is t available transliterators are

       Specifies that output should include sort key as well. Note that
       sort key differs between ICU versions.

       Specifies that output should be XML based rather than "text" based.


   The ICU chain configuration speicifies one or more rules to convert
   text data into tokens. The configuration format is XML based.

   The toplevel element must be named icu_chain. The icu_chain element has
   one required attribute locale which specifies the ICU locale to be used
   in the conversion steps.

   The icu_chain element must include elements where each element
   specifies a conversion step. The conversion is performed in the order
   in which the conversion steps are specified. Each conversion element
   takes one attribute: rule which serves as argument to the conversion

   The following conversion elements are available:

       Converts case and rule specifies how:

           Lowercase using ICU function u_strToLower.

           Upper case using ICU function u_strToUpper.

           To title using UCU function u_strToTitle.

           Fold case using ICU function u_strFoldCase.

       This is a meta step which specifies that a term/token is to be
       displayed. This term is retrieved in an application using function
       icu_chain_token_display (yaz/icu.h).

       Specifies an ICU transform rule using a transliterator Identifier.
       The rule attribute is the transliterator Identifier. See ICU
       Transforms[1] for more information.

       Specifies a rule-based transliterator. The rule attribute is the
       custom transformation rule to be used. See ICU Transforms[1] for
       more information.

       Breaks / tokenizes a string into components using ICU functions
       ubrk_open, ubrk_setText, .. . The rule is one of:

           Line. ICU: UBRK_LINE.

           Sentence. ICU: UBRK_SENTENCE.

           Word. ICU: UBRK_WORD.

           Character. ICU: UBRK_CHARACTER.

           Title. ICU: UBRK_TITLE.


   The following command analyzes text in file text using ICU chain
   configuration chain.xml:

           cat text | yaz-icu -c chain.xml

   The chain.xml might look as follows:

       <icu_chain locale="en">
         <transform rule="[:Control:] Any-Remove"/>
         <tokenize rule="w"/>
         <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
         <transliterate rule="xy > z"/>
         <casemap rule="l"/>



   ICU Home[2]

   ICU Transforms[1]


    1. ICU Transforms

    2. ICU Home


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.

Free Software

Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.

Free Books

The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.