
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
Rubi characters are small superscript texts placed above or to the right of normal text. These characters are common in East Asian writings and serve a purpose in adding an extra pronunciation guide for unfamiliar readers. After seeing a twitter post by @mabelandtee, I developed a ReactJS concept component to deliver a similar result as Rubi characters, but for English.
For more information on Rubi Characters, check out this Wiki article

Via NPM:
npm install rubi-text --save
import Rubi from 'rubi-text'
const App = () => <Rubi text="Kernel">Colonel</Rubi>
export default App
| Prop | type | default | description | required |
|---|---|---|---|---|
| text | string | none | Your rubi text above the normal text | Yes |
| children | string | none | Your normal text | Yes |
| size | string | "12px" | Font size for your rubi text | No |
| offsetX | number | 0 | Offset rubi text on X-axis | No |
| offsetY | number | 0 | Offset rubi text on Y-axis | No |
| color | string | "initial" | Color of your rubi text | No |
| align | string | "center" | Aligns rubi text | No |
| justify | boolean | false | Justify Rubi text to width of normal text | No |
| lowerSpacing | boolean | false | Justify normal text to width of Rubi text | No |
| lowerCenter | boolean | false | Centers normal text to width of Rubi text | No |
| attachAfter | string | none | Add string after each char in normal text | No |
Be sure to check out the example folder to see these properties in action.
Not sure. I have some experience in multilingual websites, but I'm open to contributions.
No relation. "Ruby" or "Rubi" is just what it's called. I could have gone for "Ruby" but yeah, I'm pretty certain that's been taken.
I liked the concept and figured myself and other people would find it useful.
It does! And we actually use that here for semantic correctness. This component essentially makes it look better to write in your code. We also add several additional properties to improve readability.
Nope. Would appreciate a follow, though. Twitter | Twitch
The Rubi text will require that you have a line-height set for your content. I've found that line-height: 32px works best at minimum.
It does.
Of course. This isn't a standard in English writing systems. But it certainly makes it more interesting.
Yep. Make that pull request.
MIT © Technopathic
FAQs
A concept component to improve pronunciation descriptions.
We found that rubi-text demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.