[texworks] Tw & TL'10 on RedHat EL

kap4lin kap4lin at gmail.com
Sat Dec 5 20:44:58 CET 2009


On Sat, Dec 5, 2009 at 3:13 AM, Stefan Löffler <st.loeffler at gmail.com> wrote:
> Hi,
>
> On 2009-12-04 18:42, kap4lin wrote:
>> On Fri, Dec 4, 2009 at 1:23 AM, Stefan Löffler <st.loeffler at gmail.com> wrote:
>>
>>> On 2009-12-04 00:46, kap4lin wrote:
>>>
>>>>>> 3. Spell check in the latex document is missing.
>>>>>>
>>>>>>
>>>> Edit > Spelling shows only None. Any help
>>>>
>>> AFAIK, Tw looks for dictionaries in /usr/share/myspell/dicts. So the
>>> first and most obvious question is: does that directory exist and
>>> contain suitable .dic and .aff files?
>>>
>>
>> OK, my hunspell installation is in a local directory, not in
>> /usr/share/myspell/dicts/. Obviously, on the RHEL machine I do not
>> have access to /usr/share/, and also there is no myspell dir there.
>> So, how do I tell texworks, where to look? If it is hardcoded in the
>> source, I could change it locally
>
> OK, I thought as much. In this case, it's no wonder you don't get spell
> checking ;).
> Yes, that path is hard coded for Linux builds, though I have just opened
> an issue (247) to make this configurable in the future.
> To change this right now, open src/TWUtils.cpp, go to line 85 and replace
>            libPath = "/usr/share/myspell/dicts";
> by
>            libPath = QDir::homePath() + "/path/to/your/myspell/dicts";
> (or omit the QDir::homePath() part if myspell is not in your home
> directory but e.g. in /usr/local or somewhere).
> There are plenty of similar path specifications around that line which
> can help guide you.

Yeah, I replaced one hardcoded path by another hardcoded one. That
works for me for the time being.


-- 
Regards
Kap4Lin
--------------------------------------
http://counter.li.org  #402424


More information about the texworks mailing list