bookmarks

Bookmark (책갈피) collection.

bookmarks.BookmarkCollection

collections.bookmarks.BookmarkCollection(app)

doc.bookmarks — collection of HWP bookmarks (책갈피).

Enumerates the document’s HeadCtrlNext chain, yielding a :class:Bookmark for each control whose CtrlID is "bokm".

Methods

Name Description
add Insert a bookmark at the current cursor position.

add

collections.bookmarks.BookmarkCollection.add(name)

Insert a bookmark at the current cursor position.

bookmarks.Bookmark

collections.bookmarks.Bookmark(app, name)

Value object for a single HWP bookmark.

Methods

Name Description
goto Move the cursor to this bookmark. Returns success.
remove Delete this bookmark. Returns success.

goto

collections.bookmarks.Bookmark.goto()

Move the cursor to this bookmark. Returns success.

remove

collections.bookmarks.Bookmark.remove()

Delete this bookmark. Returns success.

Back to top