Ciao Mark S.
Brilliant thought! I can't think of many use cases beyond that one on added
punctuation in English I'd use. Maybe, once in a blue moon, I'd write a
hashed word followed by a colon "#Buddha: A man under a tree". A more
common one might be a full-stop: "And they came to the #Buddha." I think
the point you are making is a great one. One doesn't necessarily need a
complex regular expression. (Though the truth is the JavaScript RegEx for
these case is really simple---"#\w+\b"---that excludes all unwanted
punctuation as \b is a "null-space" match for "word-boundary". I just don't
know if TW macros can handle it.)
Best wishes
Josiah
On Monday, 21 August 2017 20:51:09 UTC+2, Mark S. wrote:
>
> I just realized that if all you want is remove the suffix "'s" that that
> can be done right now by changing the first filter expression to:
>
> [list[!!text]prefix{$:/_state/tesseract/hashtag2tag}]
> +[removeprefix{$:/_state/tesseract/hashtag2tag}removesuffix['s]]
>
> If there's other special grammatical deconstructions, you might try to
> list them out.
>
> Mark
>
> On Monday, August 21, 2017 at 11:25:43 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Ciao Mark
>>
>> *That's helpful*. When writing Twitter posts I could likely, without
>> loss of meaning, avoid apostrophes on hashed words by changing sentence
>> order. But changing orthography just for TW feels like a step too far. Its
>> an interesting issue.
>>
>> Best wishes
>> Josiah
>>
>> Mark S. wrote:
>>>
>>> To make the code work like you suggest it will take either a new filter
>>> operator and/or a new javascript macro. I can imagine a lower and upper
>>> filter operator. Handling the apostrophe is something else. Maybe if the
>>> user could just do "#Buddha 's"
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5337cee8-1860-4c7f-8750-9e34f30190f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.