incompatible NWE macro(s) and thanks for a major upgrade.
Posted: 2007-10-09 02:36:04
More than a year ago, I have bugged martin to helped me in writing 'simple' macros which type hebrew texts. those macros have been in extensive use since then in NWE.
In the process of moving to NWP, we have discovered that all these macros are (apparently) incompatible with NWP. SInce the manual claims for compatibility I give here an example of an old macro, which still types the hebrew text, but looses all attributes.
This is done just for the sake of info, in case it interests nisus people, as I re-wrote all the macros with the new menu-driven language, and to my surprise and satisfaction- until now everything works with hebrew texts with no problem and- composition is very easy.
So this is to thank nisus people for this major upgrade- great!
In the process of moving to NWP, we have discovered that all these macros are (apparently) incompatible with NWP. SInce the manual claims for compatibility I give here an example of an old macro, which still types the hebrew text, but looses all attributes.
This is done just for the sake of info, in case it interests nisus people, as I re-wrote all the macros with the new menu-driven language, and to my surprise and satisfaction- until now everything works with hebrew texts with no problem and- composition is very easy.
So this is to thank nisus people for this major upgrade- great!
#Nisus Macro Block
#Send Text as RTF
#source front selection
#destination front selection
#after execution
#Format:Remove Attributes and Styles
#Format:Paragraph Alignment:Align Right
#End Nisus Macro Block
use utf8;
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
$message = '\u1492 ?\u1493 ?\u1505 ?\u1523 ?';
$fontSize = 9; # in points
$rtfSize = $fontSize * 2;
print "{\\rtf1\\mac{\\lang1037\\fs$rtfSize $message}}";