Coder Social home page Coder Social logo

thisisdemetrio / yang-furigana Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 292 KB

Kind of a shortcut when you have an Angular Application and you need the <ruby> tag but with a easiest syntax

License: MIT License

JavaScript 14.43% TypeScript 85.57%

yang-furigana's Introduction

Hi there ๐Ÿ‘‹

So, yeah, that's me.

๐Ÿง‘โ€๐Ÿ’ป I live in Milan, Italy and I write code for living.
๐Ÿงช That's a choice of life coming in 2017: before of that, I was a chemist.

I like a lot of stuff, like:

  • ๐Ÿšด bike-touring
  • โ™˜ chess
  • ๐Ÿ€ sports (just to watch)
  • ๐Ÿป beer
  • ๐Ÿ”ฐ try to speak foreign languages
  • ๐Ÿ€„ mah-jong
  • ๐Ÿคผโ€โ™‚๏ธ sumo (just watching)

(not necessarily in this order)

Right now...

  • ๐ŸŽต the song I'm hooked to is Your Woman by White Town
  • ๐Ÿ“– reading Python Design Patterns (actually, not a book)
  • ๐Ÿฟ I'm watching Succession and Game Changer
  • ๐Ÿ“š Studying AI (hoarding courses on DeepLearning.ai - I'm using OpenAI API at work and I quickly need to catch up with the hype)
  • ๐ŸŽฎ on spare time I'm playing Baba is You and chess on Lichess
  • ๐Ÿ’ป working on personal projects with Angular and Python (trying new code best practices and/or keeping in touch with these technologies)
  • ๐Ÿ‘พ wishing having enough time/will to write small videogames with Phaser.io (I actually have a repo somewhere...)

Reach out

yang-furigana's People

Contributors

thisisdemetrio avatar

Stargazers

 avatar

Watchers

 avatar

yang-furigana's Issues

Handle ngFurigana attribute in case of HTML element with children

In case of a structure like this:

<div ngFurigana="ใ‚ใ—ใŸ">
    ๆ˜Žๆ—ฅ
   <p> And here we go with something different</p>
</div>

There could be a problem of showing the furigana. Therefore is necessary to evaluate what to do:

  • show ngFurigana only if has no children elements;
  • show ngFurigana only if it's a span attribute
    In any case, the furigana won't be shown in case the chosen condition above is not respected.

Also alert user (a warning, as example) in case furigana can not be shown.

Handle ngFuriganaClass attribute to give CSS class to <rp> and <rt> components only

The main idea is to evaluate the possibility to attribute a class only to the rp and rt class in an HTML structure like this:

<ruby>
  ๆ˜Žๆ—ฅ
  <rp>(</rp>
  <rt>ใ‚ใ—ใŸ</rt>
  <rp>)</rp>
</ruby>

If possible, create a new attribute, called ngFuriganaClass (or something simillar) to apply a CSS class to that element

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.