|
From: <ala...@us...> - 2014-02-14 11:56:58
|
Revision: 468
http://sourceforge.net/p/latex-access/code/468
Author: alastair-irving
Date: 2014-02-14 11:56:54 +0000 (Fri, 14 Feb 2014)
Log Message:
-----------
Modified COM object so that the preprocessorfile setting works on Windows.
Specifically, the preprocessor needed to be created before the settings were activated and then passed as an argument to the activateSettings function.
Modified Paths:
--------------
latex_access/latex_access_com.py
Modified: latex_access/latex_access_com.py
===================================================================
--- latex_access/latex_access_com.py 2014-02-09 15:27:59 UTC (rev 467)
+++ latex_access/latex_access_com.py 2014-02-14 11:56:54 UTC (rev 468)
@@ -25,8 +25,8 @@
def __init__(self):
self.filename = os.path.join(os.path.expandvars("%appdata%"), "latex-access.conf")
self.speech_translator=speech.speech()
+ self.preprocessor=preprocessor.preprocessor()
self.activateSettings()
- self.preprocessor=preprocessor.preprocessor()
self.newcommands=preprocessor.newcommands(self.preprocessor)
_reg_progid_ = "latex_access"
_public_methods_ =["nemeth","speech","preprocessor_add","preprocessor_from_string","preprocessor_write","preprocessor_read","toggle_dollars_nemeth","toggle_dollars_speech", "activateSettings"]
@@ -76,7 +76,7 @@
and documentation."""
settings.loadSettings (os.path.expanduser(self.filename))
self.nemeth_translator=settings.brailleTableToUse ()
- return settings.activateSettings ({"braille":self.nemeth_translator,"speak":self.speech_translator})
+ return settings.activateSettings ({"braille":self.nemeth_translator,"speak":self.speech_translator,"preprocessor":self.preprocessor})
#Register the object
if __name__=='__main__':
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|