Commit afefe1d0 authored by Etienne Nadji's avatar Etienne Nadji

modifié : plugin/vim_epub.py

	modifié :         plugin/vim_epub.vim
	nouveau fichier : snippets/UltiSnips/smil.snippets
parent df40871d
......@@ -1489,14 +1489,13 @@ def epub_contents_buffer(vim,epub):
try:
vim.command(":bn")
except vim.error, error:
print error,type(error)
if error == 85:
contents_buffer = True
bn = vim.current.buffer.name.decode("utf8")
if bn in buffers:
break
return False
else:
if bn == epub.contents_buffer:
contents_buffer = True
......
......@@ -352,10 +352,7 @@ with Open_EPUB(vim.buffers) as epubs:
css_to_open.append([css,fdef["line"]])
if css_to_open:
for buf in css_to_open:
#vim.command(':e \'{0}\\n\''.format(buf[0]))
epub_contents_buffer(vim,epubs)
pass
pass
# * xhtml *
# SI des fichiers (X)HTML
......
priority -50
###########################################################################
# SMIL XML Snippets #
# #
# By etnadji, for vim-epub #
###########################################################################
snippet smil "SMIL: smil body" b
<smil xmlns="http://www.w3.org/ns/SMIL" xmlns:epub="http://www.idpf.org/2007/ops" version="3.0">
<body>
$0
</body>
</smil>
endsnippet
snippet par "SMIL: par(allel)" b
<par>$0</par>
endsnippet
snippet audio "SMIL: audio clip" b
<audio clipBegin="${2:h}:${3:m}:${4:s}.${5:ms}" clipEnd="${6:h}:${7:m}:${8:s}.${9:ms}" src="${1:../Audio/p001.mp3}"/>$0
endsnippet
snippet text "SMIL: text" b
<text src="${1:text.xhtml}${2:#anchor}"/>$0
endsnippet
seq epub:textref="p001.xhtml" epub:type="bodymatter chapter">
snippet seq "SMIL: seq(uence)" b
<seq epub:textref="${1:text.xhtml}" epub:type="${2:epubsemantics}">
$0
</sep>
endsnippet
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment