misaki zh: the zero ideograph 〇 gives the raw symbol, so the zero is silent

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

The bug is in MisakiZhPhonemizer in scriptconv_copyleft/phonemizers/mul.py, around line 538, where text goes to misaki's pypinyin front end. First reproduce it: phonemize 二〇二四 and 二零二四 and compare the outputs, since the issue was auto-generated and not human-reviewed. Done means 〇 yields the same phonemes as 零, applied as a substitution in the wrapper before the call.

Written by the indexing model from the issue text.

Description

🤖 Auto-generated by Claude Opus 5.5 (claude-opus-5-5) via Claude Code — NOT human-reviewed. Verify before acting. The phoneme output below is from a run of the phoonnx session with the kokoro voice zf_xiaobei, with scriptconv-copyleft from the phoonnx dev install.

Observed

The misaki zh backend gives the raw symbol 〇 for the zero ideograph U+3007, where it reads 零 as l i ↗ ŋ.

Text Phonemes
零 零 七 l i ↗ ŋ, l i ↗ ŋ, ʨ ʰ i → (14 ids)
〇 〇 七 〇, 〇, ʨ ʰ i → (6 ids)

A voice tokenizer drops 〇, so the zero is silent.

Reproduce

Phonemize 二〇二四 with the misaki zh backend and compare with 二零二四.

Expected

〇 reads as 零 does. English Wiktionary, "〇", Chinese: "Used to express a zero digit in a number", and the entry sends its sense to 零, "zero". 二〇二四 is the common way to write a year digit by digit, so a user writes it directly as well as text2spoken.

Where

MisakiZhPhonemizer in scriptconv_copyleft/phonemizers/mul.py (line 538) passes the text to misaki's pypinyin front end, which keeps 〇 as a symbol. The wrapper can read 〇 as 零 before the call; a report to misaki is outside our orgs.

Dominant language
Python
Stars
0
Forks
0
Avg merge
6h 42m
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TigreGotico/scriptconv-copyleft

All issues in TigreGotico/scriptconv-copyleft

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.