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

    (@coffee2code)

    WordPress & Plugin Developer

    @dentopolis777 : Just so I’m clear on your request, you’re saying you want to linkify a word such as “forums” and you have the “Case sensitive text matching” checkbox checked (so “forums” gets linked but “FORUMS” does not), you would still expect “Forums” at the start of a sentence to get linked.

    If so, that makes sense. I’ll consider the implications and implementation for the next release.

    Thread Starter dentopolis777

    (@dentopolis777)

    on my dentopedia in polish language we use terms like “wirus HIV” or “wirus hiv”. so i have “Case sensitive text matching” checkbox unchecked. But when such terms is at the beginning of the sentence so “. wirus HIV” or “. wirus hiv” it should be converted into “. Wirus HIV” or “. Wirus hiv”.

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @dentopolis777 : Ah. Your description is different than I expected, but it does bring to light what I consider a bug with the plugin (and may be exactly what you are pointing out).

    So currently, as you have, if you tell the plugin to link “wirus HIV” with that checkbox unchecked, it would cause all case insensitive matches in your text to be replaced with the term you defined in the plugin.

    Examples:

    • “wirus HIV” becomes “wirus HIV” (good)
    • “Wirus HIV” becomes “wirus HIV” (bad)

    Thus, a sentence that is “xxx. Wirus HIV” becomes “xxx. wirus HIV”, which is undesirable.

    The plugin should preserve the original text and simply add the link to it, and it will do so in v1.8.

    If, however, your original text was “. wirus HIV”, then I don’t feel that the plugin should change the capitalization. It should honor what was originally there, which it doesn’t do yet.

    Does the change I proposed seem like it will fix your problem? Or did you really want for the plugin to change the capitalization of the original text?

    Thread Starter dentopolis777

    (@dentopolis777)

    hmm…here you have an example:https://www.dentopolis.org/test-2/

    source code from this page:
    case 1)
    Kserostomia is a linked word and only the first letter should be capital.

    case 2)
    some sentence with wirus HIV and wirus hiv inline. the linked word is hiv in this example. HIV should be capital here but a whole word because it’s an abbreviation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Capitalize first letter’ is closed to new replies.