Advertisement
Guest User

Untitled

a guest
Jul 1st, 2019
118
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2.  
  3. \newcommand\remap[2]{%
  4.   \catcode`#1=\active
  5.   \begingroup
  6.   \lccode`~=`#1%
  7.   \lowercase{\endgroup\def~{\char`#2}}\ignorespaces}
  8. \newcommand\remapchars{%
  9.   \begingroup
  10.   \remap देp
  11.   \remap वq
  12.   \remap नाr
  13.   \remap गs
  14.   \remap रीt
  15.   \innerremap}
  16. \newcommand\innerremap[1]{#1\endgroup}
  17.  
  18. \begin{document}
  19.  
  20. `abcd'\remapchars{`देवनागरी'}`abcd'
  21.  
  22. \end{document}
Advertisement
RAW Paste Data Copied
Advertisement