Skip to content

Commit

Permalink
Process base symbols after other dictionaries
Browse files Browse the repository at this point in the history
Definitions from base/symbols.dic should really be used as last resort:
notably if Orca provides some translations we should use them instead.
  • Loading branch information
sthibaul committed May 9, 2024
1 parent b091946 commit f962299
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/speechd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ SymbolsPreprocFile "symbols.dic"
SymbolsPreprocFile "emojis.dic"
SymbolsPreprocFile "orca.dic"
SymbolsPreprocFile "orca-chars.dic"
SymbolsPreprocFile "symbols-fallback.dic"

# The DefaultCapLetRecognition: if set to "spell", capital letters
# should be spelled (e.g. "capital b"), if set to "icon",
Expand Down
2 changes: 1 addition & 1 deletion locale/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

nobase_localedata_DATA = \
base/font-variants.dic \
base/symbols.dic \
base/symbols-fallback.dic \
\
af/emojis.dic \
am/emojis.dic \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion locale/import-symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def createCLDRAnnotationsDict(sources):
with codecs.open(path.join(NVDALang, "symbols.dic"), "w", "utf_8_sig", errors="replace") as dicFile:
dicFile.write(docHeader)
dicFile.write(NVDADic)
copy("en/symbols.dic", "base/symbols.dic")
copy("en/symbols.dic", "base/symbols-fallback.dic")

# Create all emojis dictionaries
processedFiles = ["root.xml","en_001.xml","sr_Cyrl.xml","sr_Cyrl_BA.xml"] # To avoid creating too much directories when we process a file in a non-standard language
Expand Down

0 comments on commit f962299

Please sign in to comment.