Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Thai hyphenation patterns based on LibThai 0.1.29 #53

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

thep
Copy link
Contributor

@thep thep commented Apr 18, 2022

I have updated Thai hyphenation patterns based on the updated word list of LibThai 0.1.29 and would like to merge it in.

thep added 29 commits April 18, 2022 16:04
* Makefile.am, +tdict-currency.txt:
  - Add new list.

* tdict-city.txt:
* tdict-collection.txt:
* tdict-common.txt:
* tdict-district.txt:
* tdict-geo.txt:
* tdict-history.txt:
* tdict-ict.txt:
* tdict-lang-ethnic.txt:
* tdict-proper.txt:
* tdict-science.txt:
* tdict-slang.txt:
* tdict-spell.txt:
* tdict-std.txt:
  - Updated from libthai 0.1.29.

* thai-exc.pat:
  - Drop '<SARA-I>7ตี' exception, duplicating generated '<SARA-I>3ตี'.
* tdict-std.txt:
  - Add missing hyphens in 'กะ~รุง-กะ-รัง' and 'กะ~รุ่ง-กะ-ริ่ง'.
* thai-exc.pat:
  - Move 'ง1ว' fixes to be with 'ม1ว' fixes.
  - Add fixes for 'ร1ว'.
* tdict-std.txt:
* tdict-collection.txt:
* tdict-common.txt:
* tdict-proper.txt:
* tdict-std-compound.txt:
  - Adjust hyphenations.

* Makefile, +thai-fixup.sed:
  - Add fixup mechanism to adjust patgen-generated rules
    which cannot be corrected using exceptions.
  - First fixup: '3นียะ' -> '3นี3ยะ'.

* thai-exc.pat:
  - Drop 'นี7ยะ' exception, duplicated with '3นี[3]ยะ'.
  - Drop 'ฉ6นี', 'าร6นี', 'วีช6นี', 'สส6นี', 'มท6นี', 'เสว6นะ' exceptions,
    according to the adjusted hyphenations.
* thai-exc.pat:
  - Instead of listing possible -นะ cases, which have been growing,
    esp. after the recent hyphenation scheme adjustment,
    let's turn it on by default and list inhibitions instead.
* thai-exc.pat:
  - Instead of listing possible -ณะ cases,
    let's turn it on by default and list inhibitions instead.
* thai-fixup.sed:
  - Fixups: 'ก5ขณะ' -> 'ก5ข5ณะ', 'ก5ขณา' -> 'ก5ข5ณา'
  - This requires 'ข4ณะ' early inhibition in thai-exc.pat
    before the special case 'ก5ข5ณะ' is applied.
* tdict-std.txt:
  - Adjust hyphenation 'อา-ปณะ' -> 'อา-ป-ณะ' for harmony with the rest.
* thai-fixup.sed:
  - Fixup: 'ล5กนะ' -> 'ล5ก7นะ' for 'โล~ก-นะ' inhibited by 'ก6นะ'
    in thai-exc.pat.
* thai-exc.pat:
  - Add exception 'งก7นะ' for 'อัง~ก-นะ'.
* thai-exc.pat:
  - Instead of listing possible -ชะ cases,
    let's turn it on by default and list inhibitions instead.
* thai-exc.pat:
  - Instead of listing possible -ละ cases,
    let's turn it on by default and list inhibitions instead.
* tdict-district.txt:
  - Adjust hyphenation 'อิน-ทา-มระ' -> 'อิน-ทา-ม-ระ' for harmony with the rest.
* thai-exc.pat:
  - Add forcing exceptions for:
    - โล~กุ~ต-ระ
    - ภา~ต-ระ
    - กเล~ว-ระ
    - มัต~ส-ระ
    - กุ~ร-ระ
    - สัง~วัจ~ฉ-ระ
    - อัก~ข-ระ
    - อิน~ทา~ม-ระ
* thai-exc.pat:
  - Add forcing exceptions for:
    - ตฤ~ตี-ยะ
    - มัต~ส-ยะ
    - อนา~ร-ยะ, อา~ร-ยะ, เศา~ร-ยะ
* tdict-common.txt:
* tdict-history.txt:
  - Adjust hyphenation 'อา-สวะ' -> 'อา-ส-วะ', 'ปัล-ลวะ' -> 'ปัล-ล-วะ'.

* thai-exc.pat:
  - Add forcing exceptions for:
    - เก~ศ-วะ
    - ปุง~ค-วะ
    - ปัล~ล-วะ
    - มัท~ท-วะ
    - สัน~ถ-วะ
    - อา~ส-วะ
* tdict-std-compound.txt:
  - Adjust hyphenations '{คู่,ทาน}-บา-รมี' -> '{คู่,ทาน}-บา-ร-มี'
    in accordance with tdict-std.txt.
* tdict-proper.txt:
  - Adjust hyphenation 'โค-ตมี' -> 'โค-ต-มี'
  - Also adjust 'โค-ตมะ' -> 'โค-ต-มะ'

* thai-exc.pat:
  - Group exceptions for -มี together.
  - Add forcing exceptions for:
    - ปัญ~จ-มี
    - โค~ต-มี
    - บา~ร-มี
    - ลัก~ษ-มี
  - Drop blocking exceptions for:
    - กู~ร-มะ (allowed in new scheme)
  - Add forcing exceptions for:
    - โค~ต-มะ
  - Drop forcing exceptions for:
    - ธรร-มะ (already ruled by '5มะ' and no longer blocked by 'ร6มะ')
* thai-exc.pat:
  - Add forcing exceptions for:
    - เคณ-ฑะ, ปิณ-ฑะ, มุณ-ฑะ
    - เลณ-ฑุ, กาฐ~มาณ-ฑุ
* tdict-std.txt:
  - Adjust hyphenation 'อัน-ตกะ' -> 'อัน-ต-กะ' (new scheme)
* thai-fixup.sed:
  - Add fixup: 'ปิ5หก' -> 'ปิ5ห5ก'
    Oddly, '1กะ' got overridden by 'ปิ5หก' without any inhibition code,
    causing wrong hyphenation of 'ปิหกะ' as 'ปิ-หกะ', not 'ปิ-ห-กะ' as expected.
* thai-exc.pat:
  - Drop all forcing exceptions for '-กะ', as '1กะ' already rules them all.
* thai-exc.pat:
  - Add forcing exceptions for:
    - มณ-ฑป
    - ปาณ-ฑพ
    - ภัณ-ฑู
    - กัณ-ฐี
* tdict-std-compound.txt:
  - Adjust 'ตรี-มู-รติ' -> 'ตรี-มู-ร-ติ' in accordance with tdict-std.txt.
* tdict-std.txt:
  - Adjust 'กี-รติ' -> 'กี-ร-ติ' (new scheme)

* thai-exc.pat:
  - Add forcing exceptions for:
    - กี~ร-ติ
    - มู~ร-ติ
    - อา~ร-ติ
  - Add blocking exceptions for:
    - อภิ~ร-ดี
* tdict-std.txt:
  - Adjust 'กติญ-ชลี' -> 'กติญ-ช-ลี' in accordance with 'อัญ-ช-ลี'.

* thai-exc.pat:
  - Add forcing exceptions for:
    - อัญ~ช-ลี
    - ปิป~ผ-ลี
* tdict-proper.txt:
  - Adjust 'กัส-สปะ' -> 'กัส-ส-ปะ' (new scheme)

* thai-exc.pat:
  - Turn blocking exceptions into forcing for:
    - กัจ~ฉ-ปะ
    - กัส~ส-ปะ
* thai-exc.pat:
  - Force '-ทะ' with '5ทะ' in general.
  - Drop all other exceptions on '-ทะ'.
* tdict-std.txt:
  - Adjust อุ-รพี -> อุ-ร-พี (new scheme)

* thai-exc.pat:
  - Drop blocking exception for ทา~ร-พี
  - Drop forcing exception 'ทร7พี', as '5พี.' already covers it
    after the blocking 'ร6พี' was dropped.
  - Drop forcing exception 'เท7พี', as '5พี.' already covers it.
  - Group '-วี' exceptions together.
* tdict-std.txt:
  - Revert ปัณ-ร-สี -> ปัณ-รสี (compound Sanskrit)
* tdict-history.txt:
  - Adjust ปาฏ-ลี-บุตร -> ปา-ฏ-ลี-บุตร in accordance with ปา-ฏ-ลิ.

* thai-exc.pat:
  - Add forcing exception for ปา~ฏ-ลิ.
* tdict-common.txt:
  - Adjust ภคัน-ท-ลา-พาธ in accordance with tdict-std.txt:
    - ภคัน-ทลา-พาธ -> ภคัน-ท-ลา-พาธ
    - ภา-รตะ -> ภา-ร-ตะ
* tdict-std.txt:
  - Adjust เม-ทนี -> เม-ท-นี in accordance with เม-ท-นี-ดล

* thai-exc.pat:
  - Drop blocking exception for ภา~ร-ตะ
* tdict-proper.txt:
  - Adjust exceptions ยโส-ธรา -> ยโส-ธ-รา in accordance with วสุน-ธ-รา.

* thai-exc.pat:
  - Add forcing exceptions for วสุน~ธ-รา, ยโส~ธ-รา.
* tdict-proper.txt:
  - Adjust กุม-ภ-กรรณ -> กุมภ-กรรณ (compound Sanskrit)

* thai-exc.pat:
  - Add forcing exception for อุป~ถัม-ภก
* tdict-proper.txt:
  - Adjust ศิริ-พงษ์ -> ศิ-ริ-พงษ์; ศิริ-ราช -> ศิ-ริ-ราช (new scheme)
* thai-exc.pat:
  - Add SUPER blocking exceptions for 'อา~ศิ-ร~พจน์', 'อา~ศิ-ร~พาท'
* thai-exc.pat:
  - Add forcing exceptions for:
    - เก~ส-รี
    - จันทร~เศ-ขร
    - ทวา-ทศ
    - ปรัส~ส-บท
    - เยีย~ร-ยง
    - ฟู~จิต-สึ
    - ยา~โย-อิ
    - เบ-ตง
    - ไอ-นุ
    - รช-นิ
* tdict-std.txt:
  - Adjust 'ลิมป-นะ' -> 'ลิม-ป-นะ' (new scheme)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant