Announcement

Collapse
No announcement yet.

Add a word to the custom.dic

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add a word to the custom.dic

    Hi everyone,
    We are getting ready to go through a Re-Branding here at work. Management would like us to add a new word to everyone's custom.dic. Is this possible? the only thing that i could think of would be to delete the custom.dic and replace it with one that we provide, but that will piss a bunch of people. I don't think that there is a way to do this, but i figured i would ask.

    thanks much

    app

  • #2
    Re: Add a word to the custom.dic

    Email them the new word and get them to right click and add to dictionary. No need to try and script it or try any other complicated methods.
    1 1 was a racehorse.
    2 2 was 1 2.
    1 1 1 1 race 1 day,
    2 2 1 1 2

    Comment


    • #3
      Re: Add a word to the custom.dic


      But what on earth is the "word" to be added?

      I vote for "Supercalifragilisticexpialidocious"
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: Add a word to the custom.dic

        Thanks guys,
        that is what i thought we were going to have to do, but you know Marketing people. What i got from them is, you manage the computers, can't you "just add the word."

        They didn't like my answer.

        As for the word, it is a combination of a couple of words from the couple of companies that are merging.

        Yippee. Now i get to go deal with my default Exchange policies to make sure everyone gets the new email address at the Precise moment of the launch, and NOT A MOMENT before. yeah, right!!

        app

        Comment


        • #5
          Re: Add a word to the custom.dic

          Why not just set Outlook to send the email at the required time. Fire and Forget.
          1 1 was a racehorse.
          2 2 was 1 2.
          1 1 1 1 race 1 day,
          2 2 1 1 2

          Comment


          • #6
            Re: Add a word to the custom.dic

            If I'm correct, the file Custom.dic is a plain textfile, its default location is:
            %appdata%\microsoft\proof\Custom.dic

            With a logonscript you could add new lines to the textfile:
            (batch sample)
            Code:
            >>"%appdata%\microsoft\proof\Custom.dic" (
              echo.Supercalifragilisticexpialidocious
              echo.anotherword
              echo.NewCompanyname
            )
            But.. is must be done only once! Therefore the script must read the file first.

            note, If the custom dictionary reaches a size of 64 KB, Word cannot add new words to it!

            Maybe a better scripting solution would be copying a prefixed Corporate.dic file for every user, from a network share to the folder shown above. To enable the additional custom dictionary, add a new value (sequence) to the registrykey:
            HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\Custom Dictionaries\. You can do this with a VBS logonscript.

            I have not tried any of the options my self, but I think both solutions will work.

            \Rems
            Last edited by Rems; 8th September 2008, 13:54.

            This posting is provided "AS IS" with no warranties, and confers no rights.

            __________________

            ** Remember to give credit where credit's due **
            and leave Reputation Points for meaningful posts

            Comment


            • #7
              Re: Add a word to the custom.dic

              a batch sample:
              Code:
              @echo off
              
              :: Logon script snippet:
              :: "Add an additional Office dictionary to the users' profile"
              
              Setlocal EnableDelayedExpansion
              
              Set "Dictionary=Corporate.dic" (you can make the additional dictionary file Read-Only)
              
              Set "Sourcefolder=\\domain.local\netlogon\copyfiles"
              Set "Destinationfolder=%appdata%\microsoft\proof" (you must adjust the default path when the folder is re-directeted from userprofile!)
              
              Set "Regkey=HKCU\Software\Microsoft\Shared Tools\Proofing Tools\Custom Dictionaries"
              Set/a "Serial=0"
              
              :: Copy only if source file is newer
              For /F "delims=" %%* in ('echo.%Destinationfolder%') do (
               If exist "%Sourcefolder%\%Dictionary%" (
               xcopy.exe /K /D /Y "%Sourcefolder%\%Dictionary%" "%%*\"
               ) ELSE (goto :End1)
              )
              
              :: note, delims=<tab><space> in that order.
              For /F "tokens=1,3 delims=	 " %%a in ('Reg.exe QUERY "%Regkey%"^|Find /i "REG_SZ"') do (
                (Set/a IfIsNum=%%a)&&(
                  If [%%b]==[] (
                   Reg.exe DELETE "%Regkey%" /v %%a /f >nul)
                  If %%a GTR !Serial! Set/a "Serial=%%a+1"
                  (echo.%%b |Find /i "%dictionary%">nul)&&(Set IsInReg=TRUE)
                )
              )
              
              If /i NOT [%IsInReg%]==[TRUE] (
                Reg.exe ADD "%Regkey%" /v %Serial% /t REG_SZ /d %dictionary%
               )
              Endlocal
              :End1
              
              :: finished
              \Rems
              Last edited by Rems; 8th September 2008, 20:31.

              This posting is provided "AS IS" with no warranties, and confers no rights.

              __________________

              ** Remember to give credit where credit's due **
              and leave Reputation Points for meaningful posts

              Comment

              Working...
              X