GNOME Bugzilla – Bug 322391
Add support for furigana (ruby text)
Last modified: 2018-05-22 12:12:19 UTC
Pango should have support for furigana (ruby text), that is an additional text rendered beside the normal line, usually to give phonetic reading or other info which helps interpret writing, common in Asian ideographic writing systems. This is the place to dump ideas on what's needed and useful when implementing that.
I'm patching gstreamer subparsing plugin to support sami subtitle support (bugzilla #169936), and If it'll be impletmented, it can be apply in sami subtitle support too.
It may be worthwhile to note that, if it's decided to implement ruby support in Pango, W3C has a recommendation at http://www.w3.org/TR/ruby/ for ruby markup that could be useful. Notably, the <rp/> element may be superfluous in Pango, as the same backwards compatibility considerations probably don't need to be made. Other than that, the complex ruby markup could prove useful.
Interesting link: http://yacob.org/ethio-ruby/
(09:02:34 PM) mjg59: What would be involved in implementing it? (09:03:08 PM) Behdad Esfahbod: mjg59: umm. hard question. an API would be the start. (09:03:47 PM) Behdad Esfahbod: it shouldn't be hard to experiment externally. (09:04:30 PM) Behdad Esfahbod: mjg59: one way to do: define a PangoAttribute for the ruby text, then implement a PangoRenderer like gdk/gdkpango.c does that interprets your new attribute and uses a separate PangoLayout to render the annotation. (09:05:32 PM) Behdad Esfahbod: mjg59: that's kind what I see it being implemented in pango eventually. or maybe something more hardcoded, like how the hexbox stuff is implemented.
Kinda related to bug 503083. A main obstacle to using PangoAttribute's for ruby text is that attributes will be freely split to keep iteration simple...
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/31.