When working with the muse had to meet with some problems.
1. In the muse-mode in the faces to display the titles listed font helv. But there are no Russian characters. If kastomiziruem faces, muse when still overwrites settings for faces. Catch make feature-wrapping, which after treatment uvtanovki muse-mode again perekonfiguriruyutsya faces.
2. Habr not show a single digit 0 (zero), rastsvechennuyu manner.
Application
The text of the script to call the utility.
import subprocess
def src_form (command, in_src):
in_str = in_src
proc = subprocess.Popen ([command],
shell = True,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,)
stdout_value = proc.communicate (in_str) []
lines_in = stdout_value.splitlines ()
lines_out = []
print "<literal>"
for line in lines_in:
l_out = ""
l_out = line.lstrip ()
spaces = len (line) - len (l_out)
for j in xrange (spaces):
l_out = "" + l_out
print l_out
print "</ literal>"
1. In the muse-mode in the faces to display the titles listed font helv. But there are no Russian characters. If kastomiziruem faces, muse when still overwrites settings for faces. Catch make feature-wrapping, which after treatment uvtanovki muse-mode again perekonfiguriruyutsya faces.
2. Habr not show a single digit 0 (zero), rastsvechennuyu manner.
Application The text of the script to call the utility.
import subprocess
def src_form (command, in_src):
in_str = in_src
proc = subprocess.Popen ([command],
shell = True,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,)
stdout_value = proc.communicate (in_str) []
lines_in = stdout_value.splitlines ()
lines_out = []
print "<literal>"
for line in lines_in:
l_out = ""
l_out = line.lstrip ()
spaces = len (line) - len (l_out)
for j in xrange (spaces):
l_out = "" + l_out
print l_out
print "</ literal>"
In Ubuntu 9.04 flyspell included in emacs. So:
M-x flyspell-mode
Spelling and checked on the fly.
Formatting source programs: muse + python
There is a built-translated source program in HTML by using the package htmlizer.el, but unfortunately in this Habré HTML not shown. Will be subverted.
Good sources translates into an HTML utility code2html, but its output must be a little fix to the text of the program looked good in the Habré. That is, instead, insert the leading spaces &nobsp;
To do this, write a small function in Python. Then in the text insert a tag call python interpreter, the text of the program and call our function like this:
<python markup="">
import srcform
src = "" "
i = 1
while i <10:
print i
i + = 1
"
srcform.src_form ( 'code2html-lpython-H-t4', src)
</ python>
The result:
i = 1
while i <10:
print i
i + = 1
Convert to HTML
M-x muse-publish-this-file
Publish with style: html
M-x flyspell-mode
Formatting source programs: muse + python
There is a built-translated source program in HTML by using the package htmlizer.el, but unfortunately in this Habré HTML not shown. Will be subverted.
Good sources translates into an HTML utility code2html, but its output must be a little fix to the text of the program looked good in the Habré. That is, instead, insert the leading spaces &nobsp;
To do this, write a small function in Python. Then in the text insert a tag call python interpreter, the text of the program and call our function like this:
<python markup="">
import srcform
src = "" "
i = 1
while i <10:
print i
i + = 1
"
srcform.src_form ( 'code2html-lpython-H-t4', src)
</ python>
The result:
i = 1
while i <10:
print i
i + = 1
Convert to HTML
M-x muse-publish-this-file
Publish with style: html
Partitioning with muse is very simple, so for example if string start with an asterisk, or nesokolkih when broadcast muse transform this line into the title with a level equal to the number of stars. For example like this:
* The title of the first level
** The title of the second level
In order to make par, you should leave a blank line in
text. To select a word, it is necessary obramit its one, two
or three asterisks:
* highlighted word stronger ** * ** *** *** _podcherknutoe_ further monospeys = =
highlighted word is stronger the more stressed monospeys
You can create a table:
Dvoynoya feature | | Shares field title
Single feature | Shares field body of table
Another line | body of table
Triple feature of | | Shares fields footer
Shares a single feature of a field body of table
Another series of the body of table
* The title of the first level
** The title of the second level
In order to make par, you should leave a blank line in text. To select a word, it is necessary obramit its one, two
or three asterisks:
* highlighted word stronger ** * ** *** *** _podcherknutoe_ further monospeys = =
highlighted word is stronger the more stressed monospeys
You can create a table:
Dvoynoya feature | | Shares field title
Single feature | Shares field body of table
Another line | body of table
Triple feature of | | Shares fields footer
Shares a single feature of a field body of table
Another series of the body of table
The most traditional UNIX-wei. The point is that writing an article in text form, while respecting certain agreements, rather simple, these simple rules, you then process the text parser, which makes our text in the HTML file that we put in the form of editing articles Habr.
Setting
In Debian / Ubuntu package with this regime is called the muse-el. So:
apt-get muse-el
In. Emacs add:
(require 'muse)
(require 'muse-html)
Now you can switch mode muse:
M-x muse-mode
Setting In Debian / Ubuntu package with this regime is called the muse-el. So:
apt-get muse-el
In. Emacs add:
(require 'muse)
(require 'muse-html)
Now you can switch mode muse:
M-x muse-mode
The article omitted the translation-related issues that will bring a new release is 3.5 - this has already been written. You will tell what awaits us in the future, beyond FF 3.5. Transferred only basic points.
- The Mozilla planned a number of improvements for the next release of FF with the code name Namoroka.
One of them - is the technology of isolation of processes, called Electrolysis, which aims at protecting the fall of the entire Fox. This will help the browser to stay afloat if dropped in a single tab (you do not like? =)), Because the FF now falls entirely and noise, while providing less beautiful solution to restore all the tabs after rebuta.
The first phase will Electrolysis'a isolation plugins, such as Adobe Systems' Flash, so the problem of flash not crash the entire browser.
«The development is moving faster than we expected, and by the end of July, we hope that we have a prototype Electrolysis'a.»
The next phase will be greater insulation technology, which will separate the processes of Tabov. A prototype of the decision will be somewhere at the end of the year ...
Also in the future we will 64-bit version of FF for the Makah. We already have people working on this, the bulk of the work will be done by the end of the quarter. Again, this is a prototype as possible, rather than release.
[bad news]
Despite the fact that the 64 bit version of Windows is distributed - «It is not part of our supported platforms.» - Said Beltzner (Development Director, the browser Mozilla FireFox).
[/ bad news]
New OS from Apple - Snow Leopard - totally 64bitnaya, including Safari, Apple, and glory in the fact that Javascript runs much faster on 64-bit version.
Most addon'ov FFoksu will need to smoothly move on 64bitnye version, except those that include skompilennoe under 32bitnuyu platform.
Naturally we will improve the speed, load and speed of the interface where the same without the release of this to release.
- The Mozilla planned a number of improvements for the next release of FF with the code name Namoroka.
One of them - is the technology of isolation of processes, called Electrolysis, which aims at protecting the fall of the entire Fox. This will help the browser to stay afloat if dropped in a single tab (you do not like? =)), Because the FF now falls entirely and noise, while providing less beautiful solution to restore all the tabs after rebuta. The first phase will Electrolysis'a isolation plugins, such as Adobe Systems' Flash, so the problem of flash not crash the entire browser.
«The development is moving faster than we expected, and by the end of July, we hope that we have a prototype Electrolysis'a.»
The next phase will be greater insulation technology, which will separate the processes of Tabov. A prototype of the decision will be somewhere at the end of the year ...
Also in the future we will 64-bit version of FF for the Makah. We already have people working on this, the bulk of the work will be done by the end of the quarter. Again, this is a prototype as possible, rather than release.
[bad news]
Despite the fact that the 64 bit version of Windows is distributed - «It is not part of our supported platforms.» - Said Beltzner (Development Director, the browser Mozilla FireFox).
[/ bad news]
New OS from Apple - Snow Leopard - totally 64bitnaya, including Safari, Apple, and glory in the fact that Javascript runs much faster on 64-bit version.
Most addon'ov FFoksu will need to smoothly move on 64bitnye version, except those that include skompilennoe under 32bitnuyu platform.
Naturally we will improve the speed, load and speed of the interface where the same without the release of this to release.
