-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply Ruby-Text on shiny #3612
Comments
The browser shows Wonder how to :
Reference: |
|
#墨学数学科学家笑傲江湖风清扬
require('BBmisc')
lib('shiny')
lib('shinyBS')
shinyApp(
ui = fluidPage(
'Chern Shiing-Shen',
tags$ruby('陈', tags$rp('(', .noWS = 'after'),
tags$rt('chén', .noWS = 'after'),
tags$rp(')', .noWS = 'after'),
'省', tags$rp('(', .noWS = 'after'),
tags$rt('xǐng', .noWS = 'after'),
tags$rp(')', .noWS = 'after'),
'身', tags$rp('(', .noWS = 'after'),
tags$rt('shēn', .noWS = 'after'),
tags$rp(')', .noWS = 'after')
),
br(),
br(),
tags$ruby('杨', tags$rp('('),
tags$rt('yáng'),
tags$rp(')'),
'振', tags$rp('('),
tags$rt('zhèn'),
tags$rp(')'),
'宁', tags$rp('('),
tags$rt('níng'),
tags$rp(')')
),
br(),
br(),
HTML('<ruby>丘<rp>(</rp><rt>qiū</rt><rp>)</rp>成<rp>(</rp><rt>chéng</rt><rp>)</rp>桐<rp>(</rp><rt>tóng</rt><rp>)</rp></ruby> !')
),
server = function(input, output) {
}
) Its work when not apply on |
There has advanced r packages
Reference: |
Hi @englianhu, As you've noted in your followup comment, ruby text in general should be fine with Shiny, in the sense that anywhere Shiny expects/allows HTML, you should be able to use ruby tags. However, unfortunately output$ryo_kr <- renderUI({
if (!file.exists('www/ryo-kr.html')) {
return(tags$div(class = 'Missing-Data-Class',
HTML('<ruby>건설<rp>(</rp><rt>geonseol</rt><rp>)</rp>중<rp>(</rp><rt>jung</rt><rp>)</rp></ruby> !'))
)
}
includeHTML('www/ryo-kr.html')
}) Edit: Oh maybe this is what you meant by "apply most simple if() else()" in your last comment |
System details
Browser Version:
Output of
sessionInfo()
:Example application or steps to reproduce the problem
Describe the problem in detail
renderUI()
.shinyWidgets::prettyRadioButtons()
align moved uponrenderUI
.References :
The text was updated successfully, but these errors were encountered: