• Resolved mahrr

    (@maloherry)


    Hello,
    I use a footnote plug-in where we insert the note between (( )) in the text. I’ve configured wp-Typography to replace “” by ??. But when there is a note just before the closing quotation mark, it is not replaced.

    For instance, on this post, here is what I have in the editor :

    Le "nouveau socialisme((long note))″ kurde, ou...

    It should be displayed :
    Le ? nouveau socialisme4 ? kurde, ou...

    but instead is displayed :
    Le ? nouveau socialisme4″ kurde, ou...

    Thanks for your help !

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author pepe

    (@pputzer)

    I’ll look into it. It’s possible that the use of (()) is too idiosyncratic to implement, though.

    Edit: Ah, by the time wp-Typography looks at it, the (()) has already been replaced. Then it’s probably a regular bug in the underlying library.

    • This reply was modified 4 years, 11 months ago by pepe.
    Thread Starter mahrr

    (@maloherry)

    Actually wp-Typography worked well with (()) when I used this plugin (I had to abandon it since it is not maintained anymore), so yes it must be something else!

    Thread Starter mahrr

    (@maloherry)

    Also, maybe it can be of some help, Footnotes Made Easy allows the user to change the plug-in priority. The default value is 11.

    • This reply was modified 4 years, 11 months ago by mahrr.
    Plugin Author pepe

    (@pputzer)

    Thank you @maloherry, I’ve thought already about that. As a workaround, you can try increasing the priority to something higher than what wp-Typography uses (9999, unless you filter the value or use the NextGEN Gallery plugin).

    However, I think there might a bug in the PHP-Typography library that should be fixed. I’ll have to look what HTML markup is generated for the footnotes, though.

    Thread Starter mahrr

    (@maloherry)

    All right it works with the priority at 10000, thanks!

    Plugin Author pepe

    (@pputzer)

    OK, I now see what the underlying issue is: The parser only sees the 4 inside the span as the adjacent text node in the DOM, and the resulting string 4" results in 4&Prime being output (whereas socialisme4" would result in socialisme4 »).

    I’ll experiment a bit to see whether it is possible to have all siblings be taken into account, but probably not (easily). It might remain an unsolvable edge case.

    Since there is a workaround, I’ll mark this thread as resolved.

    Thread Starter mahrr

    (@maloherry)

    OK still, if you can find a real solution that would be great, since the workaround seems to be causing strange behaviors. For instance, random notes and the WP admin bar are now in italic, I can’t figure out why…

    Plugin Author pepe

    (@pputzer)

    That would sound more of an issue with the footnote plugin (unclosed tags somewhere). Anyway, another workaround is adding a space before the closing ", e.g. socialisme((long note)) ". Spacing normalization should patch things up after replacing the " with the correct French quote characters.

    Thread Starter mahrr

    (@maloherry)

    My bad, that was due to a badly closed <em> tag : ((note <em> note))</em>
    Changing the priority of the footnote plugin seems to make this an issue, but it can easily be corrected!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Quotation mark issue’ is closed to new replies.