Translate PDF and Word documents between English and Sanskrit

Translate a Word file or a PDF with selectable text from English into Sanskrit, or from Sanskrit into English, with the layout kept. It is a machine translation of modern prose; read the section below before using it for verse or a text that matters.

English

Applications are invited under section 24(2) of the Housing Act, 2016. The last date is 31-03-2027 and the fee is Rs 250. For help write to help@example.gov.in or visit https://www.example.gov.in/apply.

Sanskrit, translated

рдЖрд╡рд╛рд╕рдХрд╛рдиреВрдирд╕реНрдп рдзрд╛рд░рд╛ 24(2) рдЕрдиреНрддрд░реНрдЧрддрдВ рдЖрд╡реЗрджрдирдкрддреНрд░рд╛рдгрд┐ рдЖрдордиреНрддреНрд░рд┐рддрд╛рдирд┐ рд╕рдиреНрддрд┐, 2016ред рдЕрдиреНрддрд┐рдорддрд┐рдерд┐рдГ 31-03-2027 рд╢реБрд▓реНрдХрдВ рдЪ 250 рд░реВрдкреНрдпрдХрдореН рдЕрд╕реНрддрд┐ред рд╕рд╛рд╣рд╛рдпреНрдпрд╛рд░реНрдердВ help@example.gov.in рдЗрддреНрдпрддреНрд░ рд▓рд┐рдЦрдиреНрддреБ рдЕрдерд╡рд╛ https://www.example.gov.in/apply рдЗрддреНрдпрддреНрд░ рдЧрдЪреНрдЫрдиреНрддреБред

The three-sentence test notice, as the English-to-Sanskrit translation returned it. All six protected items came back, but the year of the Act was moved to the end of the first sentence.

Translate a Word file, a PDF with a text layer, or a photo of a page between English and Sanskrit, either way. Machine translation, in beta; a free account with a confirmed e-mail address is needed.

English to Sanskrit, and Sanskrit to English

Both directions work the same way. A Word file is edited where it stands: every paragraph style, table, list, header, footer and page setting stays the fileтАЩs own and only the words change, so a Sanskrit circular comes back as an English circular, and an English notice as a Sanskrit one, with its centred heading, numbered list and bordered table where they were. A PDF with selectable text is first turned into a Word file and then translated, so the result is a Word file you can edit, and how closely it follows the PDF is the PDF-to-Word conversionтАЩs doing.

Translated Sanskrit is set in Noto Sans Devanagari, as real Unicode text you can search and edit; if that font is not on your computer, choose any Sanskrit font in Word. Numbers, dates, section references, amounts, times of day, e-mail addresses and web addresses are taken out before a sentence is sent and put back afterwards, and an answer in which one does not come back exactly once is not accepted. A sentence that still cannot be translated stays in the source language and is highlighted yellow; it is never dropped, and never filled in with a guess.

What to read carefully in the Sanskrit

As in Kannada, the year of the Act came back at the end of the first sentence, after the verb: рдЖрдордиреНрддреНрд░рд┐рддрд╛рдирд┐ рд╕рдиреНрддрд┐, 2016ред The year is kept, but it no longer stands beside the ActтАЩs name. Sanskrit word order is free, and a number tied to a name can move away from it.

The test was a modern administrative notice, and the machine translates Sanskrit as modern prose. It was not tested on verse, on a commentary, or on a text with sandhi across long compounds, and no metre is kept. Use it to get the sense of a document, not as a translation of scripture or a scholarly text.

What was measured for Sanskrit

Before Sanskrit was switched on, the production pipeline translated the test notice from English into Sanskrit and back. In both directions 6 of 6 protected items came back exactly: the section reference, the year, the date, the amount, the e-mail address and the web address. The Sanskrit side was written in the Devanagari script, and the English read back close to the original. A Word notice with a heading, a centred line with a bold date, a numbered list, a table, a tab, a header and a footer was also translated into Sanskrit and back, and its paragraph settings, table grid, page setup, header and footer were identical to the source, on the same number of pages.

That is a check of the machinery, not of the language. It says the tool kept your numbers and your layout; it does not say every sentence reads the way a Sanskrit writer would put it.

Sanskrit in a scan or an old font

A scanned PDF has no text to translate, so it is refused rather than guessed at. Read it first with Sanskrit OCR, correct what needs correcting, and translate the Word file that comes out. Sanskrit set in an old Devanagari font such as Kruti Dev pastes as Latin letters; convert it to Unicode with the Kruti Dev converter first, then translate.

Footnotes, endnotes and comments are not translated yet, and the result says so. Text inside a picture is not translated. Sanskrit OCR reads scans of printed Sanskrit, and its Word file can be translated straight away.

What happens to each part of the file

Numbers, dates, sections, amounts, addresses
Kept exactly as written, in both directions. A sentence where one comes back changed is not accepted.
Headings, lists, tables, header and footer
Kept: the Word file is edited in place. Header and footer text is translated too.
A sentence that could not be translated
Stays in the source language, highlighted yellow, and is counted in the report.
Verse and classical texts
Not tested. The checks used modern prose.
Footnotes, endnotes, comments, text in pictures
Not translated yet. The report says so.
A Sanskrit readerтАЩs check
Not done yet. Read the result before you rely on it.

Frequently asked questions

Can I translate a Sanskrit PDF into English?

Yes, if it has selectable text in Unicode Devanagari. The result gives the sense of modern prose; for verse or a commentary, have it read by a Sanskrit scholar.

Does it translate shlokas?

It will translate the words, but it was not tested on verse and does not keep metre, so a verse translation should be read by someone who reads Sanskrit.

Has a person who reads Sanskrit checked these translations?

Not yet. No Sanskrit reader has checked a translation from this tool so far; only Telugu and Hindi have been read by a person. What has been checked for Sanskrit is checked by machine: that every protected item comes back, that the text is in the Sanskrit script, that the layout does not change and that it reads back into English. A machine check cannot tell a good sentence from an awkward one, so read the result, and have anything official or legal checked by someone who reads Sanskrit.

Is it free, and do I need an account?

A free account with a confirmed e-mail address translates its first few pages without charge, once per account; a page of translation is 2,000 characters of text, so a dense A4 page can count as more than one. Pages past the free allowance are paid in credits (one credit is one rupee) at the rate on the Pricing page, and the price is shown before anything is charged. The Limits page has the free numbers as they stand today.

What happens to my file?

It is stored encrypted while it is translated and removed by a cleanup that runs every 15 minutes, so nothing is kept longer than 4 hours after upload. The text is sent to an outside machine-translation service to be translated; the Privacy page says what is sent and what is not.

Related tools

More about translation