Skip to content
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

Table and Figure caption not showing Bengali characters #16

Open
raheems opened this issue Jun 27, 2017 · 6 comments
Open

Table and Figure caption not showing Bengali characters #16

raheems opened this issue Jun 27, 2017 · 6 comments

Comments

@raheems
Copy link

raheems commented Jun 27, 2017

I am testing the bookdown-demo-master to see if Bengali books can be written with bookdown. One issue I see is the caption of Tables and Figures. Non-English characters do not show up in the produced html file.

{r nice-tab, tidy=FALSE}
knitr::kable(
head(iris, 20), caption = 'The বাংলায় ক্যাপশন হচ্ছে কিনা পরীক্ষা করছি!',
booktabs = TRUE
)

When I run this, the output only shows "The !" in the caption of the table. That is it ignores the Bengali text completely. This is happening with Figure captions as well. Is there anything that I need to change to fix this? Thank you.

@yihui
Copy link
Member

yihui commented Jun 28, 2017

Please include your session info:

devtools::session_info('bookdown')

@raheems
Copy link
Author

raheems commented Jun 28, 2017

> devtools::session_info('bookdown')
Session info ------------------------------------------------------------
 setting  value                       
 version  R version 3.4.0 (2017-04-21)
 system   x86_64, mingw32             
 ui       RStudio (1.0.143)           
 language (EN)                        
 collate  English_United States.1252  
 tz       America/New_York            
 date     2017-06-27                  

Packages ----------------------------------------------------------------
 package   * version    date       source                            
 backports   1.1.0      2017-05-22 CRAN (R 3.4.0)                    
 base64enc   0.1-3      2015-07-28 CRAN (R 3.4.0)                    
 bitops      1.0-6      2013-08-17 CRAN (R 3.4.0)                    
 bookdown    0.4        2017-05-20 CRAN (R 3.4.0)                    
 caTools     1.17.1     2014-09-10 CRAN (R 3.4.0)                    
 digest      0.6.12     2017-01-27 CRAN (R 3.4.0)                    
 evaluate    0.10       2016-10-11 CRAN (R 3.4.0)                    
 graphics  * 3.4.0      2017-04-21 local                             
 grDevices * 3.4.0      2017-04-21 local                             
 highr       0.6        2016-05-09 CRAN (R 3.4.0)                    
 htmltools   0.3.6      2017-04-28 CRAN (R 3.4.0)                    
 jsonlite    1.5        2017-06-01 CRAN (R 3.4.0)                    
 knitr       1.16       2017-05-18 CRAN (R 3.4.0)                    
 magrittr    1.5        2014-11-22 CRAN (R 3.4.0)                    
 markdown    0.8        2017-04-20 CRAN (R 3.4.0)                    
 methods   * 3.4.0      2017-04-21 local                             
 mime        0.5        2016-07-07 CRAN (R 3.4.0)                    
 Rcpp        0.12.11    2017-05-22 CRAN (R 3.4.0)                    
 rmarkdown   1.6.0.9000 2017-06-18 Github (rstudio/rmarkdown@7669d66)
 rprojroot   1.2        2017-01-16 CRAN (R 3.4.0)                    
 stats     * 3.4.0      2017-04-21 local                             
 stringi     1.1.5      2017-04-07 CRAN (R 3.4.0)                    
 stringr     1.2.0      2017-02-18 CRAN (R 3.4.0)                    
 tools       3.4.0      2017-04-21 local                             
 utils     * 3.4.0      2017-04-21 local                             
 yaml        2.1.14     2016-11-12 CRAN (R 3.4.0)  

@yihui
Copy link
Member

yihui commented Jun 28, 2017

You are using Windows with an English locale. For best support of Bengali, you probably need to change your system locale to Bengali (from the Control Panel).

@raheems
Copy link
Author

raheems commented Jun 28, 2017

Thanks for the tip. I would believe this would solve the issue. Unfortunately, Bengali is not there under the Language for non-Unicode programs.

@yihui
Copy link
Member

yihui commented Jun 28, 2017

Then I'm afraid I cannot help. Sorry.

@raheems
Copy link
Author

raheems commented Jun 29, 2017

Totally understand. Thank you so much. For now I have to resort to LaTeX + Sweave for my upcoming project until that time when it will be easily accessible to other languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants