kovidgoyal
04-23-2007, 11:27 PM
Does anybody know what the LRF tags for SimpleChar1 and SimpleChar2 are?
|
View Full Version : SimpleChar? kovidgoyal 04-23-2007, 11:27 PM Does anybody know what the LRF tags for SimpleChar1 and SimpleChar2 are? igorsk 04-24-2007, 02:29 AM Here's a quote from the IEC spec: DrawChar = (element.Plot | element.CR | element.Fill | element.CharButton | element.Yoko | element.Tate | element.Nekase | element.NoBR | element.DrawChar | element.Italic | element.Bold | SimpleChar1)* SimpleChar1 = (element.Rubi | element.Box | element.EmpDots | element.EmpLine | element.Sub | element.Sup | element.Space | SimpleChar0)* SimpleChar0 = (text | element.Gaiji | element.AltString)* SimpleChar2 = (element.Plot | SimpleChar0)* kovidgoyal 04-24-2007, 10:02 AM thanks but I need the *LRF* tag i.e. the F5?? hex numbers to write into an LRF file. igorsk 04-24-2007, 10:17 AM Um, these are not actual tags but just placeholders for a number of possible elements in the source LRS (e.g. SimpleChar1 can be Rubi, Box, EmpDots etc). kovidgoyal 04-24-2007, 11:11 AM Hmm then I guess I don't understand the LRS spec. For e.g. it defines DrawChar as (element.Plot | element.CR | element.Fill | element.CharButton | element.Yoko | element.Tate | element.Nekase | element.NoBR | element.DrawChar | element.Italic | element.Bold | SimpleChar1)* This is exactly the same way SimpleChar1 is defined. But I know that DrawChar is an actual LRFTag F5C3/4?? EDIT: Ah I see DrawChar is redefined as an element later on. Seems to be a rather inconsistent spec. scotty1024 04-25-2007, 12:12 PM Not all LRS tags/attributes have a corresponding LRF value. Would have been nice but for whatever reason they've done what they've done. My other favorite is <BlockSpace>, putting that into LRF is fun. kovidgoyal 04-25-2007, 01:29 PM Yeah the LRS spec itself is nothing to write home about and the mapping to LRF adds another layer of badly thought out complexity. I've been thinking about writing a LRF display widget but I simply dont understand the format well enough for that. |