![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Nov 2007
Location: Brea, CA
Device: PRS-505
|
Emphasis Line and Emphasis Dot
I'm working on a little pet project of mine, that involves decoding/encoding LRS files -- and I was curious -- what exactly are Emphasis Lines and Emphasis Dots, and how would I go about making an LRF file with say, html2lrf that includes/displays examples of them?
I see that Emphasis Line can be of type None, Solid, Dotted, Dashed or Doubled... Any hints would be appreciated. Thanks! |
![]() |
![]() |
![]() |
#2 |
Gizmologist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,615
Karma: 929550
Join Date: Jan 2006
Location: Republic of Texas Embassy at Jackson, TN
Device: Pocketbook Touch HD3
|
I'm guessing here, but emphasis line might be underlining? No guesses for emphasis dot.
That's really cryptic. I assume this is how they refer to these things inside the LRS formatting? ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Nov 2007
Location: Brea, CA
Device: PRS-505
|
I'm getting this naming convention from the BBeBXylog (LRS) specification:
http://www.y-adagio.com/public/commi...0_1017e_DC.pdf As well as from some previous work that had been done with reverse engineering the LRF format: http://www.sven.de/librie/Librie/LrfTag kovidgoyal also uses the these terms in his code -- but for some reason, Python and I just don't grok each other and his libprs code base hasn't revealed to me what exactly they are and how to produce them. If my pet project works out, I'll have a set of tools for going from LRF to LRS (XML) and LRS to LRF. The work I'm doing is in C#, and currently successfully decompiles very simple documents from LRF to LRS. This will let me then use XSLT to transform various XML stuff that I have to LRS, then to LRF, with a very high degree of control on the final formatting. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Do you have the LRS spec? It's somewhat more verbose than lrf2lrs
![]() Those two are mostly Japanese (East Asian) typography. As italic or bold do not work too well in Japanese, the emphasis is done by either an underline or round dots placed under each character (or on the left in vertical writing) . I beleive PRS renders Emphasis Line as underline in non-Japanese texts. |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah EmpLine is underline/overline can be controlled in html2lrf with the text-underline CSS property. See https://libprs500.kovidgoyal.net/dow.../html-demo.zip for a demo of it. Incidentally there are implementations of both lrf2lrs and lrs2lrf in libprs500 svn
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Nov 2007
Location: Brea, CA
Device: PRS-505
|
I did notice that you had some LRS/LRF things in your SVN. What exactly is the state of those tools? When I'd previously asked about LRS compiling to LRF, you indicated there weren't any tools that currently worked:
https://www.mobileread.com/forums/showthread.php?t=16663 Or was the problem more specifically with the LRS output from html2lrf using the --lrs option??? I'm also working on this in C# because for some reason, I just never seem to be able to grok Python. I'm able to handle C/C++, Java, Perl, PHP, C#, CFML and a half dozen other languages, but most projects written in Python just give me heartburn and I have a hard time following through other people's Python code... <shrug> |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah lrs2lrf is a new addition
![]() Feel free to write your own tools, though LRS to LRF is almost done, there are a couple of bugs left to iron out, is all. LRF to LRS is done, and has been stable for a while. Last edited by kovidgoyal; 01-19-2008 at 07:22 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML/CSS for (German) s p a c e d o u t emphasis | frabjous | Workshop | 21 | 05-16-2011 04:52 PM |
Dot on my kindle (International)? | ensyed | Amazon Kindle | 5 | 12-17-2010 01:33 PM |
Calibre loses all forms of Emphasis | spa | Calibre | 8 | 11-01-2010 06:06 AM |
Old news: Sony PRS-505 wins international red dot design award - 2008 | Wetdogeared | News | 0 | 06-20-2009 09:51 AM |
Microsoft's latest stunt: On 10 dot net | Alexander Turcic | Lounge | 0 | 03-13-2006 08:06 AM |