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

configurable foreign language punctuation? #46

Closed
tdhock opened this issue May 14, 2020 · 3 comments
Closed

configurable foreign language punctuation? #46

tdhock opened this issue May 14, 2020 · 3 comments

Comments

@tdhock
Copy link

tdhock commented May 14, 2020

Hi @tvraman I have found that emacspeak-speak-word does a great job at speaking punctuation marks in French after doing (dtk-set-language fr).

For example the character / is spoken as "barre oblique" and ( is spoken as "parenthèse gauche" which is great.

However the character \ is spoken as "backslash" which is English. Is there any way to configure a French version, for example "Barre oblique inversée" ?

There are several others I would like to configure/change, for example [ is "left bracket" but should be "crochet gauche"

I tried searching the source code for these words, which I thought may lead to some configuration variables, but I did not find anything, so I am asking here.

Thanks in advance for any help/advice.

@tvraman
Copy link
Owner

tvraman commented May 14, 2020

Emacspeak gets char names from the unicode table.
It also has extension points for pronunciations in module
dtk-unicode.el study the code there.

@tvraman tvraman closed this as completed May 14, 2020
@tdhock
Copy link
Author

tdhock commented May 15, 2020

I looked at dtk-unicode.el and I only see a few defcustom items. The most relevant seems to be dtk-unicode-character-replacement-alist and I tried adding the following item to that alist:

(91 . "crochet gauche")

but I don't hear any change after that, even after restarting emacspeak.

I also don't see any mention of language, so can you please explain how I could get emacspeak to do language-specific customization? For example the character [ would be "left bracket" by default in English, and then "crochet gauche" after having done (dtk-set-language fr).

@tvraman
Copy link
Owner

tvraman commented May 15, 2020 via email

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

No branches or pull requests

2 participants