Jump to content

Module:Sandbox/Lesser Cartographies/lua

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lesser Cartographies (talk | contribs) at 07:03, 17 December 2014 (Hmmm....). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Taking lua for a spin.
local p = {}

function p.TranslateLaTeX()
  local l2u = require( "Module:LaTeX2UTF8" )  
  local s = [[
  @book {MR0161818,
  AUTHOR = {Erd{\H{o}}s, P{\'a}l and Sur{\'a}nyi, J{\'a}nos},
  TITLE = {V\'alogatott fejezetek a sz\'amelm\'eletb{\H o}l},
  PUBLISHER = {Tank\"onyvkiad\'o V\'allalat, Budapest},
  YEAR = {1960},
  PAGES = {250},
  MRCLASS = {10.00},
  MRNUMBER = {0161818 (28 \#5022)},
  } 
  ]]
  s = l2u.p.translate_diacritics( s )
  s = l2u.p.translate_special_characters( s )
  return s
end

return p