118 |
|
|
119 |
# automatic system for previous |
# automatic system for previous |
120 |
if os.path.isfile(FILE): |
if os.path.isfile(FILE): |
121 |
print 'Loading the RDF graph from the file %s', FILE |
print 'Loading the RDF graph from the file %s.'% FILE |
122 |
do_load_graph = 1 |
do_load_graph = 1 |
123 |
else: |
else: |
124 |
print 'Creating a new RDF graph' |
print 'Creating a new RDF graph.' |
125 |
do_load_graph = 0 |
do_load_graph = 0 |
126 |
|
|
127 |
|
|
206 |
ppAct.assocNotes(noteC1, 1, noteB3) |
ppAct.assocNotes(noteC1, 1, noteB3) |
207 |
ppAct.assocNotes(noteA4, 1, noteC2) |
ppAct.assocNotes(noteA4, 1, noteC2) |
208 |
|
|
|
# search a note for accursing one. |
|
|
it = fen.graph.findN_11X_Iter(paperA, ff.vocab.CANVAS2D.contains) |
|
|
noteA1 = it.next() |
|
209 |
|
|
210 |
spanImageFactory = ff.spanimages.gl.DefaultSpanImageFactory( |
spanImageFactory = ff.spanimages.gl.DefaultSpanImageFactory( |
211 |
ff.spanimages.gl.PageScrollBlockImager()) |
ff.spanimages.gl.PageScrollBlockImager()) |
230 |
context = Context(w, fen, ppAct, nodeview, spanImageFactory) |
context = Context(w, fen, ppAct, nodeview, spanImageFactory) |
231 |
nodeview.setContext(context) |
nodeview.setContext(context) |
232 |
textnodeview.setContext(context) |
textnodeview.setContext(context) |
233 |
context.states.cursor.setAccursed(noteA1) |
|
234 |
|
# search a note for accursing one. |
235 |
|
it = fen.graph.findN_11X_Iter(paperA, ff.vocab.CANVAS2D.contains) |
236 |
|
context.states.cursor.setAccursed(it.next()) |
237 |
context.states.cursor.setCursorOffset(3) |
context.states.cursor.setCursorOffset(3) |
238 |
context.ppView = irregu |
context.ppView = irregu |
239 |
context.pageView = None |
context.pageView = None |