04-24-2007, 12:27 AM | #1 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
SimpleChar?
Does anybody know what the LRF tags for SimpleChar1 and SimpleChar2 are?
|
04-24-2007, 03:29 AM | #2 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Here's a quote from the IEC spec:
Code:
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)* |
Advert | |
|
04-24-2007, 11:02 AM | #3 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
thanks but I need the *LRF* tag i.e. the F5?? hex numbers to write into an LRF file.
|
04-24-2007, 11:17 AM | #4 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
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).
|
04-24-2007, 12:11 PM | #5 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm then I guess I don't understand the LRS spec. For e.g. it defines DrawChar as
Code:
(element.Plot | element.CR | element.Fill | element.CharButton | element.Yoko | element.Tate | element.Nekase | element.NoBR | element.DrawChar | element.Italic | element.Bold | SimpleChar1)* EDIT: Ah I see DrawChar is redefined as an element later on. Seems to be a rather inconsistent spec. Last edited by kovidgoyal; 04-24-2007 at 12:40 PM. |
Advert | |
|
04-25-2007, 01:12 PM | #6 |
Banned
Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
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. |
04-25-2007, 02:29 PM | #7 |
creator of calibre
Posts: 44,409
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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.
|