You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the code if (!$pre.is(':visible')) { $pre.replaceWith(''); } would drop invisible tag 'rp' in recent versions of modern browsers. However, this method may cause some ePub readers which are not supported ruby (e.g. SumatraPDF) would missing parenthesis.
Taking SumatraPDF as ePub reader as an example, when ruby rp tags are existed would look like
ruby base(ruby text)
Meanwhile, the ePub file packed by save-as-ebook would look like
ruby base ruby text
I think it is better not drop the rp tags, even if they are invisible in ruby-supported browsers.
My ugly workaround code is if( pre.tagName.toLowerCase() === 'rp' ) { return; } , it just simply exclude rp tags when drop invisible tags.
The text was updated successfully, but these errors were encountered:
It seems that the code
if (!$pre.is(':visible')) { $pre.replaceWith(''); }
would drop invisible tag 'rp' in recent versions of modern browsers. However, this method may cause some ePub readers which are not supported ruby (e.g. SumatraPDF) would missing parenthesis.Taking SumatraPDF as ePub reader as an example, when ruby rp tags are existed would look like
Meanwhile, the ePub file packed by save-as-ebook would look like
I think it is better not drop the rp tags, even if they are invisible in ruby-supported browsers.
My ugly workaround code is
if( pre.tagName.toLowerCase() === 'rp' ) { return; }
, it just simply exclude rp tags when drop invisible tags.The text was updated successfully, but these errors were encountered: