f60a27a7cd
								
							 
						 
						
							
									Do not overflow ph_buf 
							 
							
							
With emojis, phoneme strings can be very long 
							
						 
						3 years ago  
				
					
						
							
								 
						
							
								1da9ad10e8
								
							 
						 
						
							
									Add tertiary translator 
							 
							
							
TranslateWord2 passes translator2 as tr to TranslateWord which may call
TranslateWord3, SpeakIndividualLetters, TranslateLetter, which was calling
SetTranslator2 again, thus freeing the very tr being used. Make that
latter use another translator. 
							
						 
						3 years ago  
				
					
						
							
								 
						
							
								3038d40081
								
							 
						 
						
							
									code cleanup: remove unnecessary #defines. 
							 
							
							
Found by parsing the results from this bash script:
for define in $(grep define *.h |  awk'{print $2}');
do if ! grep -q $define *.c
then
        echo "$define not found";
fi
done 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								0e7202f9a9
								
							 
						 
						
							
									code cleanup: remove unused language option l_length_mods. 
							 
							
							
It is not used by any language. There is no need to check for it in
LoadVoice(). 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								863655903a
								
							 
						 
						
							
									code cleanup: move SetLengthMods to setlengths.c 
							 
							
							
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								c6ef7061ca
								
							 
						 
						
							
									code cleanup: use #defines for stress positions. 
							 
							
							
The #defines should be renamed to better convey their meaning. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								389ce6b738
								
							 
						 
						
							
									code cleanup: remove unused FLAG_HYPHENATED and related code. 
							 
							
							
The flag is never set anywhere so the if-clause will always evaluate to false. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								c4740b3053
								
							 
						 
						
							
									New language option lowercaseSentence 
							 
							
							
When set in a language file, a period followed by a lower case letter is
detected as end of sentence. Normal behavior is to require a capital
letter. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								b0a7ef2789
								
							 
						 
						
							
									add macro L4() needed by Klingon (piqd) 
							 
							
							
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								0cf3ee564c
								
							 
						 
						
							
									Code cleanup: remove param2 from langopts and rename keyword option in language files. 
							 
							
							
- param2[] is only used to set a second value to LOPT_BRACKET_PAUSE. It is simpler
to have two values in param[] instead. This simplifies the codebase.
- Instead of setting "option bracket X Y" in language files, use
keywords "brackets X" and "bracketsAnnounced Y" instead to follow the
naming convention of other keywords.
- Add missing documentation to docs/voices.md. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								1aae299ae2
								
							 
						 
						
							
									code cleanup: remove unused REDUCE_T 
							 
							
							
There is no code related to it. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								2c93961ebe
								
							 
						 
						
							
									code cleanup: remove unused stress_amps_r 
							 
							
							
It is set but never used. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								61efed30fa
								
							 
						 
						
							
									fixed spelling mistakes 
							 
							
							
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								aafa55cbbc
								
							 
						 
						
							
									code cleanup: remove unnecessary code related to LOPT_CAPS_IN_WORD 
							 
							
							
translate.h gives two settings to LOPT_CAPS_IN_WORD, but only one of them is actually ever used. 
							
						 
						4 years ago  
				
					
						
							
								 
						
							
								50f58168e1
								
							 
						 
						
							
									code cleanup: remove unused *constcharptr and MakeWawe2() 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								0352616de9
								
							 
						 
						
							
									code cleanup: remove ununsed ctrl_embedded 
							 
							
							
It's a duplicate of CTRL_EMBEDDED. 
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								8352683e1b
								
							 
						 
						
							
									Add a NUM_DEFAULT define. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								ee1557ece2
								
							 
						 
						
							
									Add defines for the numbers2 thousandplex bit flags. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								eb3c1eb985
								
							 
						 
						
							
									Move the NUM2_ comments to the relevant defines. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								915d51512a
								
							 
						 
						
							
									Create a NUM2_THOUSANDS_VAR_BITS define. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								e8f774326d
								
							 
						 
						
							
									Align the NUM2_ bitmask defines to make them easier to read. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								62e8efad66
								
							 
						 
						
							
									Move the NUM_ comments to the relevant defines. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								b8fbcf86ff
								
							 
						 
						
							
									Separate the NUM_DFRACTION flags from the rest of the NUM_ bitmask flags. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								5a8b7bdcfe
								
							 
						 
						
							
									Align the NUM_ bitmask defines to make them easier to read. 
							 
							
							
							
						 
						5 years ago  
				
					
						
							
								 
						
							
								61672f5e24
								
							 
						 
						
							
									Use defines for the different number breaking systems to improve readability. 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								55c64036e0
								
							 
						 
						
							
									Use UTF-8 strings in replace rules, instead of a packed UTF-16 pair. 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								dd7f788dcf
								
							 
						 
						
							
									remove unused ints testing and phoneme_change 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								8904700ad3
								
							 
						 
						
							
									remove unused wmark and all related code 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								f73ebfd126
								
							 
						 
						
							
									maintainability: pass current_alphabet as argument to TranslateLetter() instead of using global 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								d196d93ed5
								
							 
						 
						
							
									maintainability: move variables to files where they are used, allowing removal of unnecessary extern declarations 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								1bad240de8
								
							 
						 
						
							
									maintainability: remove some unused variables and unnecessary extern declarations 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								c4ec7bfe34
								
							 
						 
						
							
									remove option_phoneme_variants that is never set and always evaluates true 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								7ee0d7905c
								
							 
						 
						
							
									remove unused int option_tone2 
							 
							
							
It is set in voices.c but never used. docs/voices.md indicates that the keyword intonation only takes one parameter, confirming that option_tone2 is unused. 
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								9012f3f0bf
								
							 
						 
						
							
									headers: continue with synthdata.h 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								e04ae259e0
								
							 
						 
						
							
									headers: add new file compiledict.h with declarations of functions in compiledict.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								655dbf6b7a
								
							 
						 
						
							
									remove unnecessary include of synthesize.h 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								231a1d0944
								
							 
						 
						
							
									headers: add new file dictionary.h with declarations of functions in dictionary.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								cd991bd2c9
								
							 
						 
						
							
									headers: add new file numbers.h with declarations of functions in numbers.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								07160f9286
								
							 
						 
						
							
									headers: add new file synthdata.h with declarations of functions in synthdata.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								d395efa481
								
							 
						 
						
							
									headers: add new file phonemelist.h with declarations of functions in phonemelist.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								098904dfe0
								
							 
						 
						
							
									headers: add new file setlengths.h with declarations of functions in setlengths.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								9d12d23d2a
								
							 
						 
						
							
									headers: add new file intonation.h with declarations of functions in intonation.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								706df97b20
								
							 
						 
						
							
									headers: add new file readclause.h with declarations of functions in readclause.c 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								30ad5c39f6
								
							 
						 
						
							
									move struct MatchRecord to dictionary.c since it's the only file that uses it 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								342f077755
								
							 
						 
						
							
									remove unused declarations of ChangePhonemes_ru() and struct CHANGEPH 
							 
							
							
these are the only references in the code. 
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								738492100a
								
							 
						 
						
							
									make all headers (almost) self-contained by using include guards and #include statements within headers 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								78749f14f8
								
							 
						 
						
							
									readability fix: use boolean instead of 0 and 1 for loop control 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								5a0af78af9
								
							 
						 
						
							
									3-letter language code constants replaced with C macro L3() 
							 
							
							
							
						 
						7 years ago  
				
					
						
							
								 
						
							
								70d492c8dc
								
							 
						 
						
							
									Move utf8_out back to translate.c as it is no longer used in tests. 
							 
							
							
							
						 
						8 years ago  
				
					
						
							
								 
						
							
								54e87adbb8
								
							 
						 
						
							
									Move isspace2 from compiledict.c to translate.c. 
							 
							
							
							
						 
						8 years ago