1. For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
    Dismiss Notice
  2. Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
    Dismiss Notice
  3. If you wish to change your username, please ask via conversation to tehelgee instead of asking via my profile. I'd like to not clutter it up with such requests.
    Dismiss Notice
  4. Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
    Dismiss Notice

Is it possible to add support for Ruby Text?

Discussion in 'Suggestions & Bugs' started by Xamusel, Sep 7, 2019.

  1. Xamusel

    Xamusel Currently a Gamma-11 on FFN

    Joined:
    Oct 1, 2015
    Messages:
    948
    Likes Received:
    1,088
    I'm asking this because I have a story that I'm working on that requires the Ruby Text feature. If I don't have it, it won't make much sense for the way the story text works, at least on some occasions.
     
    wasprider likes this.
  2. alethiophile

    alethiophile Shadowed Philosopher Administrator

    Joined:
    Apr 26, 2013
    Messages:
    3,906
    Likes Received:
    17,057
    Now it is.

    [rubytext]漢[rt]かん[/rt]字[rt]じ[/rt][/rubytext] will now give かん

    Works on non-Japanese text too, of course.
     
    Last edited: Sep 14, 2019
  3. Xamusel

    Xamusel Currently a Gamma-11 on FFN

    Joined:
    Oct 1, 2015
    Messages:
    948
    Likes Received:
    1,088
    Thanks. :) I appreciate that.
     
    wasprider likes this.
  4. evildice

    evildice (Verified d4)

    Joined:
    Jan 10, 2015
    Messages:
    2,442
    Likes Received:
    18,136
    purelesbiansmuthand-holding

    Nice.
     
    Last edited by a moderator: Sep 14, 2019
  5. BlackHadou

    BlackHadou The Bunny Cometh!

    Joined:
    Aug 10, 2015
    Messages:
    4,104
    Likes Received:
    16,749
    THANKBest YOUForum!!!!
     
    Last edited by a moderator: Sep 14, 2019
    january1may and The Out Of World like this.
  6. justinkal

    justinkal Well worn.

    Joined:
    Aug 15, 2015
    Messages:
    7,425
    Likes Received:
    16,152
    Would it be possible to add an autospaced version that uses the following syntax?
    [ruby='upper row']lower row[/rubytext]

    Edit:
    Didn't realize it would autospace if you just didn't split the top row among multiple rt tags.
     
    Last edited by a moderator: Sep 14, 2019
  7. BlackHadou

    BlackHadou The Bunny Cometh!

    Joined:
    Aug 10, 2015
    Messages:
    4,104
    Likes Received:
    16,749
    That might be dangerous, since that's the html syntax.
     
  8. alethiophile

    alethiophile Shadowed Philosopher Administrator

    Joined:
    Apr 26, 2013
    Messages:
    3,906
    Likes Received:
    17,057
    Yes, this is just directly emitting the HTML tags with the same names, so the semantics are the same. In particular, each rt element will be centered over the text that directly preceded it.
     
  9. alethiophile

    alethiophile Shadowed Philosopher Administrator

    Joined:
    Apr 26, 2013
    Messages:
    3,906
    Likes Received:
    17,057
    To alert anyone watching here, the tag [ruby] has been changed to [rubytext].
     
  10. BlackHadou

    BlackHadou The Bunny Cometh!

    Joined:
    Aug 10, 2015
    Messages:
    4,104
    Likes Received:
    16,749
    Some notes as someone using Rubytext.

    1. Nettally breaks if it reads a vote with rubytext in it.

    2. If you forget to close the rubytext tag it does fuuuuuunky things in the preview (the text keeps going off the right side of your screen). I'm not sure I wanna know what it looks like in actual post.
     
  11. MissileTeatime

    MissileTeatime By the power of Vaporware!

    Joined:
    Apr 21, 2017
    Messages:
    721
    Likes Received:
    1,362
    That sounds like the same shenanigans as described here. A couple people noticed, I doubt anyone bothered with a screenshot. But I predict it would look pretty much the same.
     
  12. alethiophile

    alethiophile Shadowed Philosopher Administrator

    Joined:
    Apr 26, 2013
    Messages:
    3,906
    Likes Received:
    17,057
    1 is a Nettally problem; it's probably trying to treat the rubytext tag as a vote category. Nothing I can do about that here.

    2 is pretty expected; the bbcode reduces directly to underlying HTML, and if you fail to close a ruby tag in HTML it messes up everything something fierce. Sadly, not much I can do about that either.
     
    wasprider likes this.