Word Count Bug
  • I noticed that once I type " -> " (without quotation marks) somewhere in my post Mars Edit Word Count stops working. It only counts the words up to and including the ->
    (Sometimes *some* words after the -> are also counted, but I can't really find a pattern)

    Reproduce:
    Open new document and enter
    abc def ghi -> jkl mno pqr sto

    Expected output:
    7 words

    Result:
    4 words

    A little further poking also showed the same effect for <- and with <- -> you can "comment out" words from word count.
    abc def ghi <- jkl mno -> pqr stu
    gives 5 words

    I'm using Mars Edit 3.2.2 (4263)

    I guess this might be quite hard to fix, that's why I want to state very clearly that this behaviour is no problem for me.
    I only use -> at the very early drafting stages when I really don't care about word count, but I wanted to report it non the less.

    Finally I got to say I'm really happy with MarsEdit
    (FTP support would be great, but even without it MarsEdit definitely ranks amongst my top 5 software tools)

    Alex
  • Thanks so much for reporting this, and especially for letting me know that it's not a seriously vexing issue for you. I'm going to add it to my bug list. It probably has something to do with the fact that MarsEdit tries to prevent HTML tags from being included in the word count. Are you editing in Rich Text or HTML mode?

    I'm really glad to hear you're liking MarsEdit. Supporting (S)FTP has been on my todo list for a while. I agree it would be a great alternative especially since some blog systems don't have great media upload facilities.

    Daniel
  • I'm using HTML mode with a Markdown filter.

    I thought counting might be easiest if you do it after applying the output filter, stripping all formatting tags.

    Sorry for answering this so late, but I was without internet for the last few days.
  • Thanks, it makes sense to do it after applying the output filter, if it's a special format like Markdown. I'll add this to my TODO list.
  • This is affecting me too as I write about PHP. See http://akrabat.com/caps/4c7c54b8.png

    No filters like Markdown being used here, and I'm in HTML mode. Again, it's not a show-stopper as the word count is merely for my interest.


    Regards,

    Rob...
  • Thanks akrabat. Yeah, there is definitely something up with using > and < in the raw HTML of the post. Now, the thing is that is technically "illegal" HTML (you should use escaped versions of those characters in HTML), but MarsEdit should probably be smart enough to figure it out anyway.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!