Output Devanagari (Hindi) from raw unicode using luatex Announcing the arrival of Valued...

What order were files/directories output in dir?

Do wooden building fires get hotter than 600°C?

The Nth Gryphon Number

How did Fremen produce and carry enough thumpers to use Sandworms as de facto Ubers?

Intuitive explanation of the rank-nullity theorem

Maximum summed subsequences with non-adjacent items

How would a mousetrap for use in space work?

Why do aircraft stall warning systems use angle-of-attack vanes rather than detecting airflow separation directly?

Significance of Cersei's obsession with elephants?

Lagrange four-squares theorem --- deterministic complexity

Google .dev domain strangely redirects to https

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

Is there any word for a place full of confusion?

What do you call the main part of a joke?

1-probability to calculate two events in a row

How many time has Arya actually used Needle?

Most bit efficient text communication method?

Deconstruction is ambiguous

Why are vacuum tubes still used in amateur radios?

Misunderstanding of Sylow theory

Amount of permutations on an NxNxN Rubik's Cube

Why weren't discrete x86 CPUs ever used in game hardware?

How to write capital alpha?

How many morphisms from 1 to 1+1 can there be?



Output Devanagari (Hindi) from raw unicode using luatex



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Conflict between color, graphicx and libertineXeTex - Times New Roman font for Romanian characters ș, ț, Ș and ȚIs LuaLaTeX producing faulty pdfs?Using a handwriting font from myscriptfont.comVietnamese in TexShop — MacTexspecial characters cannot show after changing font with lualatexVery multilingual work'table index is nil' error when using the Avenir font with fontspec + luatexTurkish characters do not appear end of the wordWho changed my Chinese character?












0















I can get the following code to compile, using luatex, with the Hindi/Devanagari characters correctly printed in the pdf:



documentclass{article}
usepackage{fontspec}
setmainfont{Times New Roman}
newfontscript{Devanagari}{deva,dev2}
newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

begin{document}
Here is normal text.
{hindi नमस्ते }
end{document}


However, I'm using a program that outputs the tex and that won't allow me to type the Hindi script into my tex editor; instead, it will only give me the unicode version of the word, "नमस्ते", which is "".



How can I get luatex to compile correctly from these raw code characters? What I want to compile (to produce a pdf with the single word "नमस्ते") is something like this:



documentclass{article}
usepackage{fontspec}
setmainfont{Times New Roman}
newfontscript{Devanagari}{deva,dev2}
newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

begin{document}
Here is normal text.
{hindi <U+0928><U+092E><U+0938><U+094D><U+0924><U+0947> }
end{document}


...but that won't work.









share



























    0















    I can get the following code to compile, using luatex, with the Hindi/Devanagari characters correctly printed in the pdf:



    documentclass{article}
    usepackage{fontspec}
    setmainfont{Times New Roman}
    newfontscript{Devanagari}{deva,dev2}
    newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

    begin{document}
    Here is normal text.
    {hindi नमस्ते }
    end{document}


    However, I'm using a program that outputs the tex and that won't allow me to type the Hindi script into my tex editor; instead, it will only give me the unicode version of the word, "नमस्ते", which is "".



    How can I get luatex to compile correctly from these raw code characters? What I want to compile (to produce a pdf with the single word "नमस्ते") is something like this:



    documentclass{article}
    usepackage{fontspec}
    setmainfont{Times New Roman}
    newfontscript{Devanagari}{deva,dev2}
    newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

    begin{document}
    Here is normal text.
    {hindi <U+0928><U+092E><U+0938><U+094D><U+0924><U+0947> }
    end{document}


    ...but that won't work.









    share

























      0












      0








      0








      I can get the following code to compile, using luatex, with the Hindi/Devanagari characters correctly printed in the pdf:



      documentclass{article}
      usepackage{fontspec}
      setmainfont{Times New Roman}
      newfontscript{Devanagari}{deva,dev2}
      newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

      begin{document}
      Here is normal text.
      {hindi नमस्ते }
      end{document}


      However, I'm using a program that outputs the tex and that won't allow me to type the Hindi script into my tex editor; instead, it will only give me the unicode version of the word, "नमस्ते", which is "".



      How can I get luatex to compile correctly from these raw code characters? What I want to compile (to produce a pdf with the single word "नमस्ते") is something like this:



      documentclass{article}
      usepackage{fontspec}
      setmainfont{Times New Roman}
      newfontscript{Devanagari}{deva,dev2}
      newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

      begin{document}
      Here is normal text.
      {hindi <U+0928><U+092E><U+0938><U+094D><U+0924><U+0947> }
      end{document}


      ...but that won't work.









      share














      I can get the following code to compile, using luatex, with the Hindi/Devanagari characters correctly printed in the pdf:



      documentclass{article}
      usepackage{fontspec}
      setmainfont{Times New Roman}
      newfontscript{Devanagari}{deva,dev2}
      newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

      begin{document}
      Here is normal text.
      {hindi नमस्ते }
      end{document}


      However, I'm using a program that outputs the tex and that won't allow me to type the Hindi script into my tex editor; instead, it will only give me the unicode version of the word, "नमस्ते", which is "".



      How can I get luatex to compile correctly from these raw code characters? What I want to compile (to produce a pdf with the single word "नमस्ते") is something like this:



      documentclass{article}
      usepackage{fontspec}
      setmainfont{Times New Roman}
      newfontscript{Devanagari}{deva,dev2}
      newfontface{hindi}[Script=Devanagari]{Lohit-Devanagari.ttf}

      begin{document}
      Here is normal text.
      {hindi <U+0928><U+092E><U+0938><U+094D><U+0924><U+0947> }
      end{document}


      ...but that won't work.







      fonts luatex languages characters





      share












      share










      share



      share










      asked 6 mins ago









      lethalSingerlethalSinger

      82




      82






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485697%2foutput-devanagari-hindi-from-raw-unicode-using-luatex%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485697%2foutput-devanagari-hindi-from-raw-unicode-using-luatex%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

          Castillo d'Acher Características Menú de navegación