sarcmark是如何实现的?

发布于 2024-08-18 06:25:11 字数 963 浏览 6 评论 0原文

这些人正在出售一种用于讽刺的专有感叹号,并且没有经过 Unicode 标准化过程,就提议它是可以下载此标记(尚不完全清楚以什么格式),并在您的书面通信中使用它(尚不清楚在何种程度上)。我的问题是到底下载了什么以及他们如何通过网络传输它。

我不确定这是否是某种多层讽刺笑话,我认为这在任何层面上都不是一个好主意,但我很好奇他们是否正在做一些聪明的事情来实现它并让它进行互操作(足够好奇)以克服我不愿意增加他们的口碑的想法)。

  • 他们提供了一张可以粘贴到文档中的图像——到目前为止,它只是一张价值 2 美元的剪贴画,没什么神秘的。
  • 他们提供带有新字形的字体(或者它是一个字符?) - 大概如果您要将其成功发送给某人,他们必须安装相同的字体,并且消息必须为收件人提供足够的信息选择那种字体来查看?
  • 他们声称可以在黑莓上使用短信 - 他们如何让它发挥作用?字形如何通过网络传输?我能想到的唯一方法是他们传输 Unicode 专用代码点,但是通过 SMS 网络这些代码点会很棘手,不是吗?

编辑:有一次投票以“与编程无关”的理由结束。我是一名程序员,我花了很多时间来追踪古老且完善的字符无法在网络上正确传输的问题。因此,当有人声称能够单方面发明一个字符并使其在设备之间正确传输且不会降级时,我很好奇,我想知道如何对其进行编程。它与编程相关 - 它与我的编程以及实现该符号的公司的编程相关。

编辑2:下面耶利米的回答提出了一个基本问题,了解字体的人应该能够澄清:提供一种仅包含一个新字形的字体就足够了吗?我的意思是,如果您正在查看 Arial 格式的文档,系统会在文档中遇到 U+E001 代码点,并且它不是活动 Arial 字体的一部分,系统是否会检查所有已安装的字体以查找一个有代码点字形的?或者是否必须以某种方式将新字形添加到您打算使用的每种字体中?我对“系统”这个词含糊其辞 - 我不知道该功能是否是由文字处理器或浏览器应用程序实现的,或者是由操作系统中的某些底层字体服务实现的。

These people are selling a proprietary exclamation mark for sarcasm, and without going through the Unicode standardisation process, are proposing that it's possible to download this mark (in what format it's not completely clear), and use it in your written communications (to what extent it's not clear). My question is what exactly is being downloaded and how exactly are they transmitting it across a network.

I'm not sure if it's some sort of multilayered sarcastic joke and I don't think it's a nice idea on any level, but I'm curious if they're doing anything clever to implement it and get it to interoperate (curious enough to override my reluctance to add to their word of mouth).

  • They provide an image that you can paste into a document - so far it's a $2 piece of clip art, nothing mysterious about it.
  • They provide a font with the new glyph (or is it a character?) - presumably if you were going to send that successfully to someone they'd have to have the same font installed and the message would have to have enough information for the recipient to choose that font for viewing it?
  • They claim to have it working for SMS on Blackberries - how do they get that to work? How is the glyph transmitted through the network? The only way I can think of is that they're transmitting Unicode private use codepoints, but those would be tricky to get through an SMS network, wouldn't they?

EDIT: There's a vote to close with a "non programming-related" justification. I'm a programmer, I spend a lot of time tracking down problems where ancient and well established characters fail to get transmitted across the network correctly. So when someone claims to be able to invent a character unilaterally and get it to transmit between devices correctly and without degradation, I'm curious, I wonder how one would program it. It's programming-related - it's related to my programming and to the programming of the company that implemented the symbol.

EDIT 2: A basic question, raised by Jeremiah's answer below, that someone who knows about fonts should be able to clarify: does it suffice to provide a font with just the one new glyph in it? What I mean is, if you're viewing a document in say Arial, the system comes across the U+E001 codepoint in the document, and it's not part of the active Arial font, will the system check all of its installed fonts to find one that has a glyph for the codepoint? Or does the new glyph have to be somehow added to every font you intend to use? I'm being vague about the word "system" - I don't know if that functionality is implemented by a word processor or browser application for example, or by some underlying font service in the operating system.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

女皇必胜 2024-08-25 06:25:11

在此博客文章中找到了一个很好的答案。

首先,标记被映射到
Unicode 代码点 U+E001,位于
私人使用区域,并且不属于
统一码标准。接下来,按顺序
要查看 SarcMark 字形,您需要
包含该标记的特殊字体
在U+E001。

下面是一个标记。它的外观或是否出现取决于您安装的字体,以及它是否被 StackOverflow 过滤掉。为了让 SarcMark 本身出现,您显然需要安装专有字体。

SARCMARK 位于括号之间:
[·]

我在谷歌上搜索了这个角色,但一无所获 此 Twitter 搜索 将找到 它的一些野外用途,以及代码点的一些用途似乎并不打算作为 sarcmarks。事实上,U+E001 在 SoftBank 表情符号变体中(根据其在 Twitter 上的使用情况,似乎在日本 SoftBank 网络之外使用)用于表示“BOY”或“BOY'S HEAD”字符(在此处查看)。使用私人使用代码点时,对此没有太多要做的事情 - 如果有人发推文“[U+E001] 那是一部很棒的电影”,他们的意思要么是“男孩,那是一部很棒的电影”,要么是“我的”下一个陈述将是讽刺性的:那是一部很棒的电影”,所以有时无论哪种解释都可以。

要通过 SMS 发送,必须使用 UCS2 之类的编码,而不是 7 位或 8 位 SMS 编码。

为了进行比较,无论是在想法还是实现方面,请查看项目 使 Emoji 成为 Unicode 的一部分。如果您有 GMail 帐户,您可以尝试向自己发送以下消息。如果所有各个部分都正常工作(剪切和粘贴、数据库、电子邮件基础设施、浏览器),Gmail 将显示一张笑脸表情符号。 U+FE343 是私人使用区域代码点,字形将停放在此处,直到为其分配官方代码点,并且 GMail 在显示该字符时会用图像替换该字符。

表情符号笑脸:U+FE343,utf8 f3be8d83
[]

专用区代码点+特殊字体技术足以使符号可以通过网络传输,可以存储在文件和数据库中(大多数时候),并且可以被用户查看。要使整个系统正常工作,唯一需要添加的技术就是使符号易于输入,这可能涉及在人们想要使用的任何平台上安装键盘快捷键。除了技术基础设施之外,让系统正常运行是一个营销问题,提供符号货币,并使讽刺俱乐部成为人们想要加入的俱乐部。考虑到这些限制,这是一个很好的解决方案,可以用于其他用途,例如允许王子粉丝互相交流。

Found a good answer in this blog post.

First off, the mark is mapped to
Unicode code point U+E001, which is in
a Private Use area, and is not part of
the Unicode standard. Next, in order
to see the SarcMark glyph, you need a
special font which contains the mark
at U+E001.

Below is a sarcmark. What it looks like or whether it appears at all is dependent on what fonts you have installed, and on it not being filtered out by StackOverflow. In order for the SarcMark itself to appear, you'll obviously need the proprietary font installed.

THE SARCMARK IS BETWEEN THE BRACKETS:
[]

I did a Google search for the character and found nothing. This Twitter search will find some uses of it out in the wild, and also some uses of the codepoint that don't seem be intended as sarcmarks. In fact, U+E001 is used in the SoftBank variant of Emoji (which, based on its usage on Twitter, seems to be used beyond the Japanese SoftBank network) for the "BOY" or "BOY'S HEAD" character (see it here). There isn't very much to be done about that when using Private Use codepoints - if someone Twitters, "[U+E001] that was a terrific movie", they either mean "Boy, that was a terrific movie", or "My next statement will be sarcastic: That was a terrific movie", so it sometimes works ok with either interpretation.

To send it through SMS, something like UCS2 would have to be used rather than a 7- or 8-bit SMS encoding.

For comparison, both in terms of the idea and the implementation, have a look at the project for making Emoji part of Unicode. If you have a GMail account, you can try sending yourself the message below. If all of the various parts work (cut and paste, databases, email infrastructure, browsers), Gmail will display an Emoji smirking face. U+FE343 is the Private Use Area codepoint where the glyph is being parked until an official codepoint is assigned to it, and GMail substitutes an image for the character when it displays it.

EMOJI SMIRKING FACE: U+FE343, utf8 f3be8d83
[????]

The Private Use Area codepoint + special font technique is sufficient to make the symbol transmittable through networks and storable in files and databases (most of the time), and viewable by users. The only technical thing to add to get the whole system to work is to make the symbol easily inputtable, which presumably involves installing keyboard shortcuts on whatever platforms people want to use. On top of that technical infrastructure, getting the system to work is a question of marketing, giving the symbol currency, and making the Sarcasm Club one that people want to join. Given the constraints, it's a nice solution that could be used for other things, for example to allow Prince fans to communicate with each other.

小巷里的女流氓 2024-08-25 06:25:11

也许第一个开始的地方是看看这个新角色适用于哪些应用程序。我认为这个角色最有用的地方是论坛,因为这似乎是最容易看到讽刺的地方。因此,如果它是论坛,那么使用您的猜测对其实现方式添加讽刺的唯一方法是 1. 使用 [ img ] (仅适用于某些论坛软件)标签 2. 修改字体系列,尽管我认为您需要修改每个字体系列以使字符显示良好(即,如果一个网站使用 Times New Roman,另一个网站使用 Arial) 我唯一的其他猜测是,正在使用某种标签,并且它是 IE(和其他网络浏览器)的插件)捕获标签并将其更改为 SarcMark。我知道 Firefox(和其他网络浏览器)的 Greasemonkey 等插件能够读取网页上的文本和 html,并在处理数据和查看某些数据字段时对该 html 进行更改。我知道 Greasemonkey 的一个扩展用于缩短人们在论坛上写的长句子,这样您就可以快速跳转到下一个人的帖子。这个标记可以像这样工作,但当然我们不会知道,除非有人尝试它并能够发现它是否以及如何工作。

Probably the first place to start is to see what applications this new character works in. I think the most useful place for this character would be forums because that seems to be where sarcasm is mostly seen. So if it is forums than the only way to add sarcasm using your guesses to how it's implemented is 1. use [ img ] (only works for certain forum software) tags 2. modify a font family though I'd imagine you'd need to modify every font family for the character to show well (i.e., if one website uses Times New Roman and another uses Arial) My only other guess is that there's some sort of tag being uses and that it's a addon to IE (and other webbrowsers) that catches the tag and changes it to a SarcMark. I know that addons such as Greasemonkey for Firefox (and other webbrowsers) are capable of reading the text and html on a webpage and making changes to that html as it processes the data and sees certain fields of data. I know that one Greasemonkey extension is used to shorten long sentences that people write up on forums so you can quickly jump to the next persons post. This sarcmark could work like this but of course we wont know unless someone tries it and is able to discover if and how it works.

oО清风挽发oО 2024-08-25 06:25:11

我喜欢 Sarcmark 的想法,但我认为创作者的做法完全错误。除非我发送的人已经购买并安装了该字体,否则它几乎没有用。

我认为实现此类目标的唯一方法是说服 Unicode 联盟将其添加到 Unicode 标准中。这样做的一个问题是他们可能无法从中赚钱。

I like the idea of the Sarcmark, but I think the creator has gone about it all wrong. Unless the person I'm sending to has bought and installed the font, it's pretty much useless.

I think the only way to achieve something like this would be to convince the Unicode Consortium to add it to the Unicode standard. One problem with this is they probably couldn't make money off it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文