[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

index marker content as Rubi



As an element of a task at hand for me, I threw together a simple sed
script to change the contents of index markers into rubi attached to the
index term (in this case, the 'index term' is the alphabetic-only 'word'
immediately following the index marker).  The script is about as
bulletproof as a US schoolchild, but, in case anybody has a use for it,
here it is (for FM 5.5.6 MIF):

/^[ 	]*<Marker $/{
N
N
N
N
N
N
N
s/^[ 	]*<Marker \n[ 	]*<MType [0-9][0-9]*>\n[ 	]*<MTypeName \(.\)Index\(.\)>\n[ 	]*<MText .\(.*\).>\n[ 	]*<MCurrPage .[0-9][0-9]*.>\n.*<Unique.*\n.*end of Marker\n[ 	]*<String .\([a-zA-Z][a-zA-Z]*\)\(.*\).>$/   <RubiCompositeBegin > <String \1\4\2> <RubiTextBegin > <String \1\3\2> <RubiTextEnd > <RubiCompositeEnd > <String \1\5\2>/
}

James Eric Lawson
Research Publications Editor III
National Simulation Resource

eric@bioeng.washington.edu


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **