• Resolved yosmc

    (@yosmc)


    Hi,

    Thanks for providing this great plugin. Unfortunately, I am having a bit of an issue with some of the hyphens, as the program sometimes puts a hyphen in places where it’s grammatically correct, but where no real person would ACTUALLY ever put a hyphen.

    Is there any chance that you would allow users to specify a custom list of words with hyphens that overrides the default hyphenation? My specific issue is with page titles, so it’s not like I would want to override tons of hyphenations in a text, but being able to apply a quick fix if one of the headlines looks odd would be really helpful!

    Thanks!

    https://wordpress.org/plugins/hyphenator/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author e2b

    (@e2b)

    Hello. There are multiple ways to address your problem. You can specify a CSS class that shouldn’t be hyphenated (and is set within your website’s template accordingly), you can define exceptions right within the plugin options page and you might adjust the minimum length of words that should be hyphenated, so that hyphenation is only used for longer ones, leaving most of the words unhyphenated. There is nothing like an option to only use common hyphenations.

    Thread Starter yosmc

    (@yosmc)

    Thanks for the reply. I’ve already tried/considered the approaches mentioned, but I am afraid that none of them work for me:

    – As I said, the issue I’m having is with post titles, and using additional css classes within titles will screw up all kinds of things, e.g. the links used for twitter and facebook.

    – Exceptions don’t address the problem, because the issues I’m having mostly appear with the longer words that should definitely get a hyphen somewhere, just not where it is happening by default. Biotechnolo-gy just looks odd in a post title, but that doesn’t mean there should be no hyphen at all.

    – Same goes for minimum length, setting the minimum length to 14 characters just to avoid the above situation would seem like an overkill.

    Thinking about it, minimum length for word parts might do the trick, i.e. only hyphenate if both parts of the word that is separated are at least X characters long.

    Plugin Author e2b

    (@e2b)

    • I don’t see how adding additional classes that are only used for Hyphenator might be a problem for your website besides from having the overhead in code. Design etc. shouldn’t be affected.
    • Exceptions allow you to define custom positions for hyphens, too. So a word is hyphenated only at the positions you provided. E.g. “Assembly-women” will only split “Assemblywomen” at the given hyphen position if hyphenated at all.
    • As far as I know, Hyphenator.js (the JavaScript provided by this plugin) doesn’t support minimum length for hyphenated parts.
    Thread Starter yosmc

    (@yosmc)

    That is truly awesome – I totally missed the fact that exceptions allows you to define hyphen positions. Exactly what I wanted – thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom hyphenation?’ is closed to new replies.