Opera Dragonfly в offline: маленькое полное руководство

: « ?». , . Opera Dragonfly Opera 12 Presto.

, — . , , . , , .

Opera Dragonfly Local



, ,


, 31 2013 Opera Software ASA 1 2014 . My Opera.
, my.opera.comwww.opera.com/ru/whereismyopera URI : « ?!!».
:

Opera Presto , . «» « » Opera Dragonfly , . . , , , IE8 . , .

.

Opera Dragonfly


Windows 7 64bit. , .


1. opera:config
2. «dragon»
3. «Developer Tools URL». https://dragonfly.opera.com/app/
4. , Opera Dragonfly. C:\Opera\dragonfly.

.
, , , .
2- , B).

A) — , .


5. 12 dragonfly.opera.com/app
6. « 0»
7. , Ctrl+S, « » = «dragonfly», « » = «XML- ». .
8. , , «dragonfly.xml» «dragonfly_files».
9. C:\Opera\dragonfly\ dragonfly.xml dragonfly_files.
10. dragonfly.xml client-ru.xml
11. opera:config «Developer Tools URL» «file://localhost/C:/Opera/dragonfly/client-ru.xml»

B) — .


5. Opera Dragonfly: dragonfly.opera.com/app/zips
6. default zips — latest dragonfly. client-ru.zip client-en.zip
7. client-ru.zip C:\Opera\dragonfly\. client-ru.xml .
[7.1] , client-en.zip, . xml , css .
8. opera:config «Developer Tools URL» «file://localhost/C:/Opera/dragonfly/client-ru.xml»

PS: rb.labtodo.com/page/use-opera-dragonfly-offline, , , Developer Tools URL file://localhost/c:\opera\client-ru.zip/client-ru.xml. zip .

) —


5. ( !) github.com/operasoftware/dragonfly. / .
6. () , (-) - DragonKeeper ( ) — github.com/operasoftware/dragonfly-build-tools. / .

, DragonKeeper , , , … « » . .. /tools

Dragonfly Presto, , .

6. . www.python.org/downloads , 2.6.* — 2.7.*.
, Python 2

Python 2.7.11



, UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026'
, , , .

Python 3.5.1


>python tools/dfbuild.py -dtsm src build
File «tools/dfbuild.py», line 393
except (IOError, os.error), why:
^
SyntaxError: invalid syntax

--.
, 2- 3- . — sebastianraschka.com/Articles/2014_python_2_3_key_diff.html


, :

except (.*)?, (\w+):
except \1 as \2:

raise\s+(.*)?, (\w+)
raise \1\(\2\)

(manually)
print
print\(



, , , , - :)
, /tools. 2-.

Python 2.7.11, 2.


File "tools/dfbuild.py", line 458, in _convert_imgs_to_data_uris
temp.write(line.encode("ascii"))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 12: ordinal not in range(128)


… google, stackoverflow,…

«ascii» «utf-8»:
File "tools/dfbuild.py", line 465, in _convert_imgs_to_data_uris
fp.write(temp.read().encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 126562: ordinal not in range(128)

« ».

, — - \u2026?
Ellipsis… , .
, , css- Dragonfly base64 .
/style/dragonfly.css?
!!! , , ! utf-8 .
(, , )

! . :

.
, tools/dfbuild.py 458-
temp.write(line.encode("ascii"))

temp.write(line.encode("ascii", "xmlcharrefreplace"))
docs.python.org/2/howto/unicode.html
: python tools/dfbuild.py -dtsm src build

master github.com/FlameStorm/dragonfly . -.
, Dragonfly . js .

7. Dragonfly /build. client-ru.xml, style/dragonfly.css, script/dragonfly-ru.js
8. .


Opera Dragonfly Local works!

It's alive, alive!

.
, !

PS: , , Opera 12.18

PPS: , Vivaldi — ! - Shpankov — !

Source: https://habr.com/ru/post/es392947/


All Articles