MIT License

Copyright (c) 2026 the xjyutping authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

-------------------------------------------------------------------------------
Third-party material

The files in src/xjyutping/data/ are generated by tools/build-data.py of
the LaTeX package (https://github.com/Beyond3345/xjyutping-tex) and are
distributed under Creative Commons Attribution-ShareAlike 4.0
(CC BY-SA 4.0, https://creativecommons.org/licenses/by-sa/4.0/), because
they adapt share-alike material. They are built from:

  * the LSHK Cantonese Pronunciation List of Characters for Computers
    (jyutping-table), Creative Commons Attribution 4.0 (CC BY 4.0);
  * rime-cantonese jyut6ping3.chars and jyut6ping3.words, Creative Commons
    Attribution 4.0 (CC BY 4.0);
  * CC-Canto, Copyright (c) 2015-17 Pleco Inc., and the CC-CEDICT Cantonese
    readings, Copyright (c) 2015 Pleco Software Inc., both Creative Commons
    Attribution-ShareAlike 3.0 (CC BY-SA 3.0), as distributed with Jyut
    Dictionary (https://github.com/aaronhktan/jyut-dict);
  * the word list of ToJyutping by the Cantonese Computational Linguistics
    Infrastructure Development Workgroup (CanCLID),
    https://github.com/CanCLID/ToJyutping, BSD 2-Clause License (the notice
    is reproduced below);
  * OpenCC HKVariants.txt and TWVariants.txt, Apache License 2.0;
  * readings of 640 characters from the book data of 粵音資料集叢 by 石見田
    (https://github.com/jyutnet/cantonese-books-data), published without a
    licence statement and used with attribution;
  * word frequencies: essay-cantonese.txt of rime-cantonese (CC BY 4.0) and
    the number of times each word is used in the transcripts of
    WenetSpeech-Yue by the ASLP-lab (https://github.com/ASLP-lab/WenetSpeech-Yue,
    CC BY-NC 4.0). The counts are statistics of the corpus; no text of it is
    included.

The 'fancy' and 'discord' tone symbols (TONE_MARKS in
src/xjyutping/__init__.py) come from Visual Jyutping
(https://github.com/VincentTam/visual-jyutping), MIT License,
Copyright (c) 2024 Vincent Tam.

The word list of ToJyutping, which the data files adapt, is distributed
under the following licence:

    BSD 2-Clause License

    Copyright (c) 2024 Cantonese Computational Linguistics Infrastructure Development Workgroup
    All rights reserved.

    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice, this
       list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright notice,
       this list of conditions and the following disclaimer in the documentation
       and/or other materials provided with the distribution.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
