locked
Spell check in UPPERCASE RRS feed

  • Question

  • Hi all,

    I have a problem with spell check in a multi-line text box in SharePoint Server 2010 list.

    When write a word with an error (nutrittion, for example) everything is good. BUT, when write NUTRITTION (in uppercase), the spell check does not recognize error.

    Any idea?

    Thanks in advance,

    Pablo.


    Pablo Alejandro Fain

    MCP, MCSA, MCTS, MCITP

    This posting is provided AS IS, with no warranties

    Wednesday, January 30, 2013 2:55 PM

Answers

  • Hi Pablo,

    Out of the box, Office 2010 clients skips spellchecking on words in uppercase. Checking the uppercase words can be enabled in the Office client UI - see:
    http://technet.microsoft.com/en-us/library/gg153528.aspx
    and
    http://wordribbon.tips.net/T006004_Spell-checking_Uppercase_Words.html

    Unfortunately I can't seem to locate any similar toggle on the SharePoint side of things. The SharePoint 2010 Enterprise Farm Feature "Spell Checking" is enabled to provide spell checking in List items as you describe.

    In the JavaScript file used as part of this feature, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\SpellChecker.js, this portion of the isIgnorableWord  function seems to ignore the word if it is uppercase:

    function isIgnorableWord()
    {ULSVPR:;
    	var szWord=CmsSpellCheckVars.sCurrentWord.toUpperCase();
    	var iWordLength=CmsSpellCheckVars.sCurrentWord.length;
    	var ix=0;
    	var fReturn=false;
    	for (ix=0; ix < CmsSpellCheckVars.rgIgnorablePrefixes.length; ix++)
    	{
    		var iPrefixLength=CmsSpellCheckVars.rgIgnorablePrefixes[ix].length;
    		if (iWordLength >=iPrefixLength &&
    		   szWord.substr(0,iPrefixLength)===CmsSpellCheckVars.rgIgnorablePrefixes[ix])
    			return true;
    	}
    I reckon that if you need to enable spellchecking on upper case strings you'd have to disable the Spell Checking Farm Feature and write your own custom Ribbon Bar spellchecking action that implements the logic you need.

     


    Keith Tuomi | Twitter: @itgroove_keith | Blog: http://yalla.itgroove.net

    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

    Wednesday, January 30, 2013 6:29 PM

All replies

  • Hi Pablo,

    Out of the box, Office 2010 clients skips spellchecking on words in uppercase. Checking the uppercase words can be enabled in the Office client UI - see:
    http://technet.microsoft.com/en-us/library/gg153528.aspx
    and
    http://wordribbon.tips.net/T006004_Spell-checking_Uppercase_Words.html

    Unfortunately I can't seem to locate any similar toggle on the SharePoint side of things. The SharePoint 2010 Enterprise Farm Feature "Spell Checking" is enabled to provide spell checking in List items as you describe.

    In the JavaScript file used as part of this feature, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\SpellChecker.js, this portion of the isIgnorableWord  function seems to ignore the word if it is uppercase:

    function isIgnorableWord()
    {ULSVPR:;
    	var szWord=CmsSpellCheckVars.sCurrentWord.toUpperCase();
    	var iWordLength=CmsSpellCheckVars.sCurrentWord.length;
    	var ix=0;
    	var fReturn=false;
    	for (ix=0; ix < CmsSpellCheckVars.rgIgnorablePrefixes.length; ix++)
    	{
    		var iPrefixLength=CmsSpellCheckVars.rgIgnorablePrefixes[ix].length;
    		if (iWordLength >=iPrefixLength &&
    		   szWord.substr(0,iPrefixLength)===CmsSpellCheckVars.rgIgnorablePrefixes[ix])
    			return true;
    	}
    I reckon that if you need to enable spellchecking on upper case strings you'd have to disable the Spell Checking Farm Feature and write your own custom Ribbon Bar spellchecking action that implements the logic you need.

     


    Keith Tuomi | Twitter: @itgroove_keith | Blog: http://yalla.itgroove.net

    Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you.

    Wednesday, January 30, 2013 6:29 PM
  • Thanks Keith!

    Pablo Alejandro Fain

    MCP, MCSA, MCTS, MCITP

    This posting is provided AS IS, with no warranties

    Friday, February 1, 2013 12:52 AM