8 ms·
Show HN: unicode.style
- tambourine_man 8y agoOn iOS, the selection popover interferes with the one you designed.
- echelon 8y agoSame on Android. Very neat utility, though!
- richrichardsson 8y agoOn macOS (High Sierra) the Gothic and next font after that (sorry I forgot what the icon was) don't work for capital letters (get a rectangle with some small digits in). The "Courier" font and handwriting style ones work fine.
- ekmartin 8y agoGood point. I’m planning on implementing a static (always-enabled) toolbar for mobile devices — hopefully that’ll make it better.
- pohl 8y agoMaybe if your options appeared below the selection rather than above they wouldn’t interfere.
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- JimDabell 8y agoScreen readers don’t do very well with this, so please only use it for novelty purposes. Otherwise you will unnecessarily be locking people out from what you write.
- cryptonector 8y agoThat really has to get fixed though.
- robin_reala 8y agoIt’s really not a screenreader’s job to guess what a character might be being pressed into service to represent in a given scenario, and to try to work out when that’s inappropriate and it should be using the original specified meaning.
- bonoboTP 8y agoWell, it kind of is. In my mind, a screen reader should read anything that a healthy human can. Ideally even text in images and any sort of weirdness.
- gumby 8y agoThen again different healthy humans read texts differently. There's no such thing as a canonical reading and any reading bring in prior semantics. There was a sign posted in the break room of a lab I used to work at. It read, "<long complex equation> is easy for you to read, but not for everyone. Volunteer to read for the blind." It was a good double whammy.
- SEMW 8y agoIt doesn't and shouldn't. The whole point of having Mathematical Alphanumeric Symbols as separate unicode code points, rather than just using normal latin characters with style markup, is so they can be used when the different letters have semantically different meanings -- in particular in maths when 𝘹 and 𝘅 can be in the same formula, representing different concepts. They're not a replacement for style markup. In other words, they're different characters specifically so that screen readers can know to read them out loud differently! Trying to 'fix' screenreaders by having them read anything that them as if they were normal latin characters, to accommodate people who like using the Mathematical Symbols block for fun in places which only allow plain text, would completely defeat the actual purpose of them. https://www.unicode.org/faq/ligature_digraph.html#Pf6 https://www.unicode.org/faq/ligature_digraph.html#Pf6
- pimlottc 8y agoNot clear what this does? Also, copy button doesn’t work on iOS.
- Groxx 8y agoit's a wysiwyg-style editor for bold / italics / etc where it replaces the selected range with the unicode bold/etc characters. type some text, then select it. that'll give you a format editor.
- sebazzz 8y agoA little faded gray hint could have helped :)
- gkoberger 8y agoIt lets you 𝗯𝗼𝗹𝗱 or 𝕤𝕥𝕪𝕝𝕖 stuff in unicode, so plain-text places (like Hacker News) can get formatting.
- Avery3R 8y agoHN supports italics it's not entirely plain-text
- function_seven 8y ago𝙾𝚗𝚎 𝚘𝚏 𝚝𝚑𝚎 𝚐𝚘𝚝𝚌𝚑𝚊𝚜 𝚘𝚗 𝙷𝙽 𝚝𝚘𝚍𝚊𝚢 𝚒𝚜 𝚠𝚑𝚎𝚗 𝚌𝚘𝚖𝚖𝚎𝚗𝚝𝚘𝚛𝚜 𝚞𝚜𝚎 𝚌𝚘𝚍𝚎 𝚏𝚘𝚛𝚖𝚊𝚝𝚝𝚒𝚗𝚐 𝚝𝚘 𝚖𝚊𝚔𝚎 𝚊 𝚋𝚕𝚘𝚌𝚔𝚚𝚞𝚘𝚝𝚎, 𝚝𝚑𝚎𝚗 𝚜𝚘𝚖𝚎𝚘𝚗𝚎 𝚎𝚕𝚜𝚎 𝚑𝚊𝚜 𝚝𝚘 𝚛𝚎𝚙𝚕𝚢 𝚠𝚒𝚝𝚑 𝚒𝚝 𝚞𝚗𝚏𝚘𝚛𝚖𝚊𝚝𝚝𝚎𝚍 𝚏𝚘𝚛 𝚝𝚑𝚎 𝚋𝚎𝚗𝚎𝚏𝚒𝚝 𝚘𝚏 𝚖𝚘𝚋𝚒𝚕𝚎 𝚞𝚜𝚎𝚛𝚜. 𝙸 𝚌𝚘𝚞𝚕𝚍 𝚜𝚎𝚎 𝚝𝚑𝚒𝚜 𝚋𝚎𝚒𝚗𝚐 𝚊 𝚠𝚘𝚛𝚔𝚊𝚛𝚘𝚞𝚗𝚍 𝚏𝚘𝚛 𝚝𝚑𝚊𝚝 𝚕𝚒𝚖𝚒𝚝𝚊𝚝𝚒𝚘𝚗. 𝙵𝚒𝚡𝚎𝚍 𝚠𝚒𝚍𝚝𝚑 𝚝𝚎𝚡𝚝 𝚠𝚒𝚝𝚑𝚘𝚞𝚝 𝚝𝚑𝚎 𝚑𝚘𝚛𝚒𝚣𝚘𝚗𝚝𝚊𝚕 𝚜𝚌𝚛𝚘𝚕𝚕𝚒𝚗𝚐 𝚘𝚗 𝚗𝚊𝚛𝚛𝚘𝚠 𝚜𝚌𝚛𝚎𝚎𝚗𝚜.
- e_proxus 8y agoOr perhaps HN should fix some properties formatting after all these years? Code gets posted here pretty regularly after all...
- deleted 8y ago[deleted]
- alpb 8y agoI'm having trouble understanding what this does. Apparently there's a popover when you select the text you typed. I had to go to https://github.com/ekmartin/unicode-style https://github.com/ekmartin/unicode-style to figure this out.
- nmstoker 8y agoYup, appears relatively hard to use via Chrome mobile with Gboard. You just about can, but most words get swallowed and the site popover is in the same place as the Android text assistance popover
- floatrock 8y agoIt's a kinda ascii-art thing that 𝔩𝔢𝔱𝔰 𝔶𝔬𝔲 𝔞𝔫𝔰𝔴𝔢𝔯 𝔥𝔫 𝔠𝔬𝔪𝔪𝔢𝔫𝔱𝔰 𝔞𝔩𝔩 𝔣𝔞𝔫𝔠𝔶 𝔩𝔦𝔨𝔢 𝔱𝔥𝔦𝔰. 𝕆𝕣 𝕝𝕚𝕜𝕖 𝕥𝕙𝕚𝕤 𝕚𝕗 𝕪𝕠𝕦 𝕨𝕒𝕟𝕥 𝕝𝕖𝕤𝕤 𝕘𝕠𝕥𝕙𝕚𝕔 𝕞𝕠𝕣𝕖 𝕠𝕦𝕥𝕝𝕚𝕟𝕖. 𝙸𝚜𝚗'𝚝 𝚞𝚗𝚒𝚌𝚘𝚍𝚎 𝚐𝚛𝚎𝚊𝚝?
- rglover 8y ago𝔇𝔬𝔱𝔥 𝔨𝔫𝔬𝔴 𝔥𝔬𝔴 𝔱𝔬 𝔲𝔰𝔢 𝔰𝔞𝔦𝔡 𝔞𝔲𝔱𝔬𝔪𝔞𝔱𝔢𝔡 𝔠𝔬𝔪𝔭𝔲𝔱𝔢𝔯 𝔬𝔭𝔢𝔯𝔞𝔱𝔦𝔬𝔫?
- 8xde0wcNwpslOw 8y agoAlso seems to support the "standard" shortcuts for formatting (Ctrl+I/U/B, perhaps others), but yeah, the introduction might be lacking.
- waynenilsen 8y agohttps://github.com/ekmartin/unicode-style/blob/master/src/transform.js https://github.com/ekmartin/unicode-style/blob/master/src/tr... I learned something new today, thanks!
- mejari 8y agoUnderlines a̲r̲̲̲e̲̲̲̲̲̲̲ ̲̲̲̲̲̲̲a̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲ ̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲l̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲̲ittle nesty when re-selecting already underlined characters from the left
- bradleybuda 8y ago𝔥𝔦 𝕥𝕙𝕖𝕣𝕖 𝓯𝓻𝓲𝓮𝓷𝓭
- neogodless 8y agoIt was not initially 𝗮𝗽𝗽𝗮𝗿𝗲𝗻𝘁 to me that I could 𝘴𝘵𝘺𝘭𝘦 things that I typed.
- PeterisP 8y agoDoesn't work with accented latin alphabet characters ("ü𝕓𝕖𝕣") - is it a fundamental restriction of the styled unicode charset or a mapping issue? Seems like it should be supported but would need a transition from precomposed characters to the equivalent combination of letter + diacritic.
- nebulous1 8y agoYou should keep the toolbar on the screen.
- jotato 8y agoNice work. +1 I would 𝗹𝗼𝘃𝗲 to see this as a chrome plugin.
- braythwayt 8y agoI have been using https://yaytext.com https://yaytext.com for quite a while. Only for novelty purposes, of course.
- ChrisGranger 8y agoPeople might find Unicode Text Converter useful as well. http://qaz.wtf/u/convert.cgi?text=Hacker_News http://qaz.wtf/u/convert.cgi?text=Hacker_News
- lucideer 8y agoAndroid Firefox is just showing me black boxes for those Unicode ranges, so this definitely can't be very effectively used everywhere (I haven't tried yet, but I'm guessing some native messaging apps may have similar issues).
- jancsika 8y agoThis reveals all kinds of bugs in current software. For example, if I use the tool to make a url italic, then pasting that url into Chrome's url bar gives me back a bunch of unicode rectangles. But that's not what I wanted. I wanted Chrome's url bar to interpret those unicode code points as an italic version of the actual unicode code points I want. Chrome should add a check for edge cases like these and add branches to map the string to the corresponding non-styled code points automatically. Someone needs to send lots of bug reports to all the relevant pieces of software that currently have this bug. Firefox, Chromium, probably Edge, Webkit. Those are just the browsers, but I'm sure there are more. I'm not actually sure about Firefox tbh, but maybe just send the bug report first and see if it gets accepted to find out. Ooh, here's another one-- if you paste some unicode.style'd text into LibreOffice does it convert it to the "normal" code points and add the relevant styling? If not, it should, otherwise it's broken. Actually, I just realized another issue. If I type something in the url bar that is styled with unicode.style, then there is no way for Chrome to know whether I want it displayed styled or not. For example, maybe I'm pasting it there temporarily so that I can copy/paste it later in a Tweet. In that case I probably want to keep the current styling for the tweet. So Chrome should map to the normalized unicode code points (just in case I'm typing a url or want to instantiate a search), but still display the styled version. Then when I copy it again, it should put the unicode.style version into the buffer. And the app which receives the pasted buffer should receive the unicode.style code points. And of course that app should also normalize it underneath while retaining the styled display for the same reasons. To deal with this complexity, there should probably be a standardized way for all apps to deal with styled text. Please help by testing every app and filing relevant bug reports.
- function_seven 8y agoI can't tell if you're being serious or tongue-in-cheek, but I like this comment nonetheless. Did Unicode ever have any business assigning separate code points for italic versions of latin glyphs? Am I ignorant as to their true purpose? EDIT: SEMI just answered my second question. Math. Makes sense.
- wgjordan 8y ago
- kowdermeister 8y agoI would make it more clear what the app does and that you should highlight text to format it. I discovered that by accident.
- na85 8y agoNeat idea but completely unusable on Firefox mobile due to the context menu that pops up whenever text is selected and obscures the site's menu that does the same.
- tambourine_man 8y agoNeat. Suggestion: maybe don’t “underline” characters such as y or g
- EdSharkey 8y agoThere is something about rendering these unicode code points that seems to make Firefox jank more than usual (when scrolling this page up and down). Are rendering these code points especially costly for some reason?
- jtolmar 8y agoThis is entertaining but it's completely broken on Chrome mobile in a way I've never seen before.
- burgerdev 8y agoIs it just me, or does the BB style render the most interesting characters as rectangles? (Chrome on OS X) 𝔸 𝔹 𝔻 𝔼 𝔽 𝔾 𝕀 𝕁 𝕂 𝕃 𝕄 𝕆 𝕊 𝕋 𝕌 𝕍 𝕎 𝕏 𝕐
- app4soft 8y agoWhat about "strikethrough" and "slashthrough"?[0,1,2] P.S.: It's look like you reinvent YayText[3] website ;-) [0] http://adamvarga.com/strike/ http://adamvarga.com/strike/ [1] https://yaytext.com/strike/ https://yaytext.com/strike/ [2] https://yaytext.com/slash/ https://yaytext.com/slash/ [3] https://yaytext.com/ https://yaytext.com/
- username3 8y ago𝔲𝔫𝔦𝔠𝔬𝔡𝔢.𝔰𝔱𝔶𝔩𝔢 𝔉𝔬𝔯𝔪𝔞𝔱 𝔱𝔢𝔵𝔱 𝔲𝔰𝔦𝔫𝔤 𝔲𝔫𝔦𝔠𝔬𝔡𝔢 𝔠𝔥𝔞𝔯𝔞𝔠𝔱𝔢𝔯𝔰. 𝔓𝔞𝔰𝔱𝔢 𝔞𝔫𝔶𝔴𝔥𝔢𝔯𝔢 𝔱𝔥𝔞𝔱 𝔞𝔠𝔠𝔢𝔭𝔱𝔰 𝔭𝔩𝔞𝔦𝔫 𝔱𝔢𝔵𝔱.
- Too 8y agoThis seems like a major source of security issues. How can i protect myself from it? Am i supposed to normalize ALL untrusted user input or will that break normal text in some language i'm not familiar with? Or only normalize things that are supposed to be unique, like urls, usernames and other identifiers?
- tmalsburg2 8y agoThis would be great as an Emacs extension. Is there something like this?