?

Log in

No account? Create an account
Angle quotes and HTML entities - LogJam [entries|archive|friends|userinfo]
LogJam

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Angle quotes and HTML entities [Nov. 8th, 2004|11:19 pm]
LogJam
logjam
[_avm_]
In Russian typographic traditions, «angle quotes» are used instead of “double quotes”. So for those who write their posts in Russian, a patch that autosenses the language and uses correct quotes:
Angle quotes patch
Other things I often need are em-dashes and ellipses (guess I’ll have to do something with my style). Typically I typeset them with HTML entities (like — and …). The following is a patch that replaces the often-used HTML entities with their Unicode equivalents as you type (e.g. © becomes ©). It also adds an option to conf.xml and a checkbox to the Preferences window.
HTML entities patch
(Some additional autoformattings are thrown in for good measure, like replacing three dots with ellipsis.)
The patches probably don't belong in the trunk (I'd call that bloat), but em-dash lovers might just use them.
Upd.: the patches seemed to apply cleanly with logjam 4.5.1, but I haven't checked later versions.
LinkReply

Comments:
From: evan
2004-11-08 08:49 pm (UTC)
Cool! Perhaps the smart-quotes option could be generalized into a "do magic things while I type", including the copyright, ellipsis, etc.

Also, see my input page on how to configure your keyboard for typing these characters: http://neugierig.org/content/input/ .


(In the future, these sorts of patches belong on logjam_dev.)
(Reply) (Thread)
From: evan
2004-11-08 08:51 pm (UTC)
Also, allowing some setting for what language your entry is in allows for both Russian-style quotes and for Russian spell checking.

However, your solution is better if you intend to mix English and Russian.
(Reply) (Thread)
[User Picture]From: tymofiy
2004-11-25 03:56 pm (UTC)
Cool. Thank you very much.

Огромное человеческое спасибо.
(Reply) (Thread)
[User Picture]From: andy_shev
2006-04-02 09:27 am (UTC)

please

Please, put the URL to a normal diff also instead of this html page.
(It'll be perfected for packagers and developers).
Thank you.
(Reply) (Thread)
From: _avm_
2006-04-02 01:39 pm (UTC)

Re: please

(Reply) (Parent) (Thread)