bio_data_guide icon indicating copy to clipboard operation
bio_data_guide copied to clipboard

write book in spanish

Open MathewBiddle opened this issue 3 years ago • 5 comments

According to https://anhhoangduc.com/post/writing-a-book-with-bookdown-in-foreign-languages/ we should be able to update https://github.com/ioos/bio_data_guide/blob/main/bio-data-guide/preamble.tex with

\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\usepackage[spanish]{babel}

and all will be good? 😜

MathewBiddle avatar Sep 16 '22 12:09 MathewBiddle

Good question! It looks very simple but I would like to discover the truth!!! : )

cperaltab avatar Sep 16 '22 13:09 cperaltab

Google provides an API https://cloud.google.com/translate/docs/apis which is what a Google Summer of Code student used for translating ERDDAP. See the resultant java code. I can't tell, but there might be a cost associated with that service.

@albenson-usgs mentioned GBIF uses Crowdin to manage translations of their content.

MathewBiddle avatar Sep 16 '22 13:09 MathewBiddle

related to

  • https://github.com/rstudio/bookdown/issues/965

MathewBiddle avatar Sep 16 '22 13:09 MathewBiddle

You can use google translate services to test out their algorithm on a website using https://translate.google.com/?sl=auto&tl=en&op=websites.

For example: https://ioos-github-io.translate.goog/bio_data_guide/applications.html?_x_tr_sl=auto&_x_tr_tl=es&_x_tr_hl=en&_x_tr_pto=wapp

MathewBiddle avatar Sep 21 '22 17:09 MathewBiddle

Links we found from meeting between Carolina, Matt, Tylar, and me on 2022-09-21. ERDDAP translation:

  • https://q1zeng.github.io/
  • https://github.com/BobSimons/erddap/issues/50
  • https://github.com/Q1Zeng/erddap/blob/master/WEB-INF/classes/gov/noaa/pfel/erddap/util/translate.java

Possible R and Python packages or tutorials:

  • https://rpubs.com/Yach/google-translation-R
  • https://pypi.org/project/googletrans/
  • https://github.com/rhysd/translate-markdown
  • https://www.w3schools.com/TAgs/att_translate.asp#:~:text=The%20translate%20attribute%20specifies%20whether,%22no%22%3A%20ice%20cream

AbbyBenson avatar Sep 21 '22 17:09 AbbyBenson