Editing Changing the font for a script
From LuaTeXWiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
\directlua{ | \directlua{ | ||
local DIR = node.id("dir") | local DIR = node.id("dir") | ||
+ | local prevglyf = nil | ||
function arabic_text (head) | function arabic_text (head) | ||
โ | |||
local isArab = false | local isArab = false | ||
for item in node.traverse_id(node.id"glyph", head) do | for item in node.traverse_id(node.id"glyph", head) do |