Commit Graph
46 Commits
Author SHA1 Message Date
kirill-jjj 762eba359d russian: a bunch of improvements 2022-10-11 23:36:34 +03:00
Cameron Wong ddf2218f39 add test for Mandarin word 2022-09-29 09:27:12 +08:00
Cameron Wong b3af30a5be Rewrite cmn_rules. Vowel will be spoken as Mandarin only when it's with a tone number. Otherwise, it will be regarded as English. This will make English words translated more correctly. 2022-09-29 09:13:11 +08:00
kirill-jjj 563db55147 Russian: improve numbers 2022-09-18 01:17:00 +03:00
kirill-jjj 7c26a12cef Russian: Fix for number 8 2022-09-12 19:26:31 +03:00
Juho Hiltunen 366658e85a cmn: yue: add tests for latin characters as English or pinyin/jyutping 2022-08-31 21:15:23 +03:00
Juho Hiltunen aa24065d5b tests: Add tests for ignored or replaced characters (tr->chars_ignore) 2022-08-28 20:13:04 +03:00
Samuel Thibault c7cf819df7 Add .. test
Ref #1271
2022-08-04 10:58:47 +02:00
Valdis Vitolins 6fd31db229 Merge pull request #1148 2022-04-02 22:05:13 +03:00
Samuel Thibault f352f1e43f CheckThousandsGroup: Avoid reading uninitialized data
For the case when word is smaller than 4 characters, we should not look at
the 3rd or 4th character before checking the previous ones, otherwise
we'd at best read uninitialized data, at worse non-existing data.
2022-04-01 20:18:00 +02:00
Samuel Thibault 075cac9b07 fr: Fix PR replacement
Ref #853
2022-04-01 19:36:00 +02:00
Valdis Vitolins 22005d5c86 Test before pull request #1126: MatchRule: Do not overflow the text 2022-03-25 22:49:33 +02:00
Samuel Thibault 7f1222c6ad Properly maintain margin in ph_list2
TranslateWord2 uses phonemes in ph_list2. Apart from the breakable loops, it
may statically require up to 7 phonemes. Then TranslateClause always
uses 2 phonemes. We thus have to keep these margins along the loops to
avoid any overflow.

Fixes #1073 #1095
2022-03-15 15:47:09 +01:00
Valdis Vitolins 86bc55c5c4 Revert fixes for Russian from ineiev@gnu.org
This reverts commit 433d219eca.
2022-01-18 21:33:48 +02:00
Ineiev 2ecff9fd40 ru: add pronunciation for common acronym, сша 2022-01-18 20:09:12 +02:00
Ineiev aa663ad7f7 ru: improve definitions for l and l; 2022-01-18 20:09:12 +02:00
Ineiev 55fa5ea5d3 ru: use s. and z. instead of S and Z 2022-01-18 20:09:12 +02:00
Valdis Vitolins 17e6bd0672 Print out short message instead of long output for tests with long test string 2021-05-16 23:38:22 +03:00
Valdis Vitolins 842cd3e25e Replace test_phonemes(), test_phonemes1() and test_dict() with single test_phon() 2021-04-06 16:28:23 +03:00
Valdis Vitolins ec552d2566 Move common functions into common script 2021-04-05 23:24:06 +03:00
Juho Hiltunen 30214437fc test for #824 2020-12-30 12:01:56 +02:00
Valdis Vitolins 5e70981884 Add common abbreviations in Russian to the test 2020-07-22 17:50:52 +03:00
Valdis Vitolins a90234c9ea Add to test abbreviations explicitly defined in lv_list file 2020-07-22 17:41:36 +03:00
Valdis Vitolins 1fb68ffffe Fix issue #773: wrong pronunciation of Hawaiʻi 2020-07-04 19:21:19 +03:00
Valdis Vitolins a35c29f76d Latvian language improvements 2020-05-17 21:47:01 +03:00
BenTalagan 93fbca0e31 Fixing handling of sequence .' in english (potential acronym+genitive vs simple quote usage of apostrophe) 2020-05-07 13:49:12 +02:00
Valdis Vitolins cf4809a1e5 Fix bug #706: pronunciation error with abbreviations followed by 's 2020-04-10 22:55:58 +03:00
Samuel Thibault 171e8a4e09 Fix testsuite with /bin/sh being bash
With bash, echo "a\nb" will not interpret \n, while with dash, echo will
interpret \n. bash's echo would need -e, but dash does not know that
option and just prints it.

We can however just put \n litteraly in the script, both bash and dash
will understand it.
2020-01-04 15:27:49 +01:00
Reece H. Dunn c6ac526847 When printing phonemes, don't add a space at the start of a sentence or clause. 2018-08-19 13:11:18 +01:00
Reece H. Dunn 65186c07df Preserve the sourceix property of a deleted phonSWITCH phoneme. 2018-08-19 10:11:05 +01:00
Reece H. Dunn cf6d14783c Preserve the sourceix property of a deleted phoneme for replaced phonemes. 2018-08-19 09:35:03 +01:00
Reece H. Dunn bfb624824e Move the additional English replacement rule test to language-replace.test. 2018-07-21 19:40:00 +01:00
Reece H. Dunn 672c07b3a9 Reorganize the language pronunciation tests. 2018-07-21 19:37:43 +01:00
Valdis Vitolins 52767d9c03 Add ft and st ligatures in en_rules file, create test for ligature replacement 2018-07-09 20:19:52 +03:00
Reece H. Dunn 172859c4dd Add a test case for skipping multi-word replacements in emoji. 2018-06-30 14:04:44 +01:00
Reece H. Dunn eb8ced46e3 Don't treat words without alpha characters (e.g. emoji) as upper case. 2018-04-30 07:09:28 +01:00
Reece H. Dunn b1754542fb Add a test case for espeak-ng issue #471. 2018-04-30 07:06:56 +01:00
Reece H. Dunn 8f30e3d607 Revert "en: use '@' instead of 'I' for the ROSES vowel in en and en-GB."
This reverts commit 223ff9c8ad.
2018-04-13 07:29:26 +01:00
Reece H. Dunn d6c65da159 en: don't velarize n across word boundaries
It is possible -- especially at higher speeds -- for the n at the
end of a word to be velarised if the next word starts with a velar
plosive. I prefer the velarised sound between word boundaries, but
others do not. As such, limit the velarisation to within the word
only.

[1]	https://en.wikipedia.org/wiki/English_phonology
2018-03-29 22:58:22 +01:00
Reece H. Dunn 223ff9c8ad en: use '@' instead of 'I' for the ROSES vowel in en and en-GB. 2018-03-28 07:25:15 +01:00
Reece H. Dunn a29d3f642c Test my and ka handling of long emoji names, and number pronunciation previously broken by that support. 2018-03-25 16:16:48 +01:00
Reece H. Dunn 566e904b33 LookupDict2: Fix searching entries longer than 128
This is a fix for https://github.com/nvaccess/nvda/issues/7740.

With the addition of emoji support, dictionary entries can now be
longer than 128 bytes. This fix makes sure the character is
interpreted as an unsigned byte so it does not treat long entries
as having a negative offset.

Treating the offset as a signed byte (like in the previous code)
could cause the hash chain search to loop indefinitely when
processing certain input, like the Tamil characters in the NVDA
issue noted above that is added as a test case to translate.test.
2018-03-25 12:52:22 +01:00
Reece H. Dunn 81cfcecfe7 tests: remove a todo comment that is not relevant (it was added by mistake) 2018-03-15 07:20:09 +00:00
Reece H. Dunn eaa08a2bc3 translate: Don't crash translating root words that map to another list entry.
If the list file contains a text replacement to another
entry in the list file, e.g.:

	ripost     riposte $text
	riposte    rI#p0st

calling it from a prefix or suffix rule such as 'riposted'
causes word_out[0] to be NULL, as TranslateWord3 has the
information needed to perform the mapping. In this case,
no phonemes have been written in this loop and the phonemes
have been calculated, so don't override them.
2018-03-11 17:58:15 +00:00
Reece H. Dunn ad4155e705 tests: Add test cases for NVDA issue 7805. 2018-03-11 16:11:34 +00:00
Reece H. Dunn 15190d4de1 tests: rename {phoneme-output => translate}.test 2018-03-11 14:08:10 +00:00