From d2b83199bd1f2aa994df6f8c95f8be8e6267dd7b Mon Sep 17 00:00:00 2001 From: AvidSeeker Date: Thu, 18 Jul 2024 17:15:48 +0000 Subject: [PATCH] FEP-eb48: Hashtags (#371) Standardized method for identifying and displaying hashtags in posts across the Fediverse. Reviewed-on: https://codeberg.org/fediverse/fep/pulls/371 Co-authored-by: AvidSeeker Co-committed-by: AvidSeeker --- fep/eb48/fep-eb48.md | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 fep/eb48/fep-eb48.md diff --git a/fep/eb48/fep-eb48.md b/fep/eb48/fep-eb48.md new file mode 100644 index 0000000..ed3ad1a --- /dev/null +++ b/fep/eb48/fep-eb48.md @@ -0,0 +1,58 @@ +--- +slug: "eb48" +title: Hashtags +dateReceived: 2024-07-16 +discussionsTo: 'https://socialhub.activitypub.rocks/t/4369' +title: Timeline Preferences +authors: AvidSeeker +status: DRAFT +--- + +# FEP-eb48: Hashtags + +## Summary + +This proposal introduces a standardized method for identifying and displaying +hashtags in posts across the Fediverse. The rules define what constitutes a +hashtag and how it should be parsed and displayed, ensuring consistency and +predictability across different platforms and clients. + +## Hashtag Rules + +A string is considered a hashtag if it meets the following criteria: + +1. It starts with the `#` symbol. +2. It is followed by one or more alphanumeric characters (letters A-Z, a-z, or digits 0-9). +3. It may include underscores (`_`) but must not include any other special characters, spaces, or punctuation within the hashtag itself. + +## Examples + +The following examples illustrate how hashtags should be identified and +highlighted: + +- `#hashtag` +- "`#hashtag`" +- " `#hashtag`" +- (`#hashtag`/#hashtag) +- ( `#hashtag`/#hashtag) +- ( `#hashtag` /#hashtag) +- ( `#hashtag` / `#hashtag`) +- -`#hashtag` +- \_`#hashtag` +- !`#hashtag` +- ?`#hashtag` +- @`#hashtag` +- ;`#hashtag` +- ,`#hashtag` +- .'`#hashtag` +- [`#hashtag` +- &`#hashtag` +- ^`#hashtag` + +## Copyright + +CC0 1.0 Universal (CC0 1.0) Public Domain Dedication + +To the extent possible under law, the authors of this Fediverse Enhancement +Proposal have waived all copyright and related or neighboring rights to this +work.