• On the site http://www.opvoedingsboek.nl I’ve tried to change the settings of hyphenator to include these exceptions:
    echt-scheiding, kinder-yoga, jaar-feesten, multi-media, kinderwijze,

    I use hyphenator in the sidebar category list, which is designed as orange and pink blocks stacked top to bottom on site. In the sidebar.php I defined the class:
    <div id="secondary" class="sidebar hyphenate">

    The category names are hyphened, but the exceptions are not displayed as defined. I haven’t been able to solve this problem after searching for more information here and on the developer site.

    WP version: 3.1
    Hyphenator: 4.0.0

    Language is set to Dutch; otherwise I use default settings.

    In the source code (header section) of the page it says:
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="nl-NL">
    Manually changing the language settings in the header.php to lang=”nl” didn’t help.

    Generated plugin code (through wp-head()php string):

    <!-- Hyphenator for WordPress -->
    	<script src="http://www.opvoedingsboek.nl/wp-content/plugins/hyphenator/Hyphenator.js" type="text/javascript"></script>
    	<script src="http://www.opvoedingsboek.nl/wp-content/plugins/hyphenator/patterns/nl.js" type="text/javascript"></script>
    	<script type="text/javascript">
    		Hyphenator.config({
    			classname: 'hyphenate',
    			displaytogglebox: true,
    			remoteloading: false,
    			defaultlanguage: 'nl'
    		});
    		Hyphenator.addExceptions('', 'echt-scheiding, kinder-yoga, jaar-feesten, multi-media, kinderwijze,');
    		Hyphenator.run();
    	</script>

    I tested it in Firefox 3.6, Opera 10.11 and Chrome 20.0.xxx

    Please help! Thanks, Patricia

Viewing 1 replies (of 1 total)
  • I’ve checked your code, but can’t find the problem. The last comma without a following word let the previous exception be ignored, but that’s only a problem for “kinderwijze”. I don’t know why the others aren’t used. Sorry.

    I’ve only written the WordPress plugin, the JavaScript code who does actually the hyphenation is from Mathias Nater (Hyphenator.js). I’ve wrote him an e-mail, maybe he is able to help.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Hyphenator] exceptions settings not applied’ is closed to new replies.